/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: #f5f7fa;
  color: #1a1a1a;
  line-height: 1.6;
  padding-top: 70px;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== VARIABLES ===== */
:root {
  --primary-color: #0f2a44;
  --secondary-color: #1b3a5b;
  --accent-color: #f4b860;

  --light-bg: #f5f7fa;
  --white: #ffffff;

  --text-dark: #1a1a1a;
  --text-light: #ffffff;

  --shadow-soft: 0 5px 20px rgba(0, 0, 0, 0.08);
}

h1,
h2,
h3 {
  font-weight: 600;
  color: var(--primary-color);
}

section {
  padding: 80px 10%;
}

.about__title,
.services__title,
.proyectos__title,
.team__title,
.clientes__title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
}

/* ===== NAVBAR ===== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10%;
  background: rgba(15, 42, 68, 0.95);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

.logo_img {
  height: 45px;
}

.navbar__links ul {
  display: flex;
  gap: 30px;
}

.navbar__links a {
  color: white;
  font-weight: 500;
  transition: 0.3s;
}

.navbar__links a:hover {
  color: var(--accent-color);
}

/* ====== HERO SECTION =========== */
.hero {
  position: relative;
  width: 100%;
  height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 42, 68, 0.65);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 20px;
  color: white;
}

.hero__content__title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 1px;
  color: white;
}

.hero__content__description {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.hero__content__button {
  position: relative;
  z-index: 3;
  background: var(--accent-color);
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 20px;
  color: #1a1a1a;
  transition: 0.3s;
}

.hero__content__button:hover {
  background: #ffcc66;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero__content__title {
    font-size: 2.2rem;
  }

  .hero__content__description {
    font-size: 1rem;
  }

  .hero {
    height: 50vh;
  }
}

/* ===== NOSOTROS ===== */
.about__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}
.about__description {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: #555;
}
.about__list {
  margin-bottom: 25px;
}

.about__list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1rem;
}

.about__list-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent-color);
}

.about__list-item::before {
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.about__image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.about__certifications {
  display: flex;
  gap: 50px;
  margin-top: 20px;
}

.certification {
  width: 80px;
  height: 80px;
  border-radius: 40%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  padding: 5px;
  background: white;
}

@media (max-width: 768px) {
  .about__container {
    grid-template-columns: 1fr;
  }

  .about__image {
    order: -1;
  }
}

/* ===CLIENTES ==== */

.clientes {
  background: white;
  text-align: center;
  padding: 50px 10%;
}

.clientes__title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.clientes__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.cliente_logo {
  height: 70px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: 0.3s;
}

.cliente_logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .clientes__logos {
    gap: 30px;
  }

  .cliente_logo {
    height: 55px;
  }
}

/* ==== RECOMENDATION ==== */

.recomendation {
  background: var(--primary-color);
  max-width: 100%;
  color: white;
  text-align: center;
  padding: 70px 10%;
}

.recomendation__title {
  font-size: 1.6rem;

  margin-bottom: 15px;

  font-weight: 600;

  color: white;
}
.recomendation__description {
  max-width: 700px;

  margin: auto;

  line-height: 1.6;

  font-size: 1rem;

  color: #e4e4e4;
}

.recomendation strong {
  color: var(--accent-color);

  font-weight: 600;
}

.recomendation::before {
  content: "";

  display: block;

  width: 60px;
  height: 4px;

  background: var(--accent-color);

  margin: 0 auto 25px auto;

  border-radius: 2px;
}

@media (max-width: 768px) {
  .recomendation {
    padding: 60px 20px;
  }

  .recomendation__title {
    font-size: 1.3rem;
  }

  .recomendation__description {
    font-size: 0.95rem;
  }
}

/* ==== SERVICES ==== */

.services {
  background: #f5f7fa;

  padding: 80px 10%;

  text-align: center;
}
.services__container {
  max-width: 1200px;
  margin: auto;
}
.services__title {
  font-size: 2rem;

  margin-bottom: 10px;

  color: var(--primary-color);
}
.services__subtitle {
  max-width: 600px;

  margin: 0 auto 50px auto;

  color: #555;

  font-size: 1rem;
}
.services__cards {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

  gap: 30px;
}
.services__card {
  background: white;

  padding: 35px 25px;

  border-radius: 10px;

  box-shadow: var(--shadow-soft);

  transition: all 0.3s ease;
}
.services__card:hover {
  transform: translateY(-8px);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}
.services__icon {
  width: 60px;
  height: 60px;

  margin: 0 auto 20px auto;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(15, 42, 68, 0.08);
}
.services__icon svg {
  width: 30px;
  height: 30px;

  color: var(--primary-color);
}
.services__card__title {
  font-size: 1.2rem;

  margin-bottom: 10px;

  color: var(--primary-color);
}
.services__card__description {
  font-size: 0.95rem;

  color: #555;

  line-height: 1.5;
}

/* =======PROYECTOS====== */

.proyectos {
  background: white;

  padding: 80px 10%;

  text-align: center;
}
.proyectos__title {
  font-size: 2rem;

  margin-bottom: 10px;

  color: var(--primary-color);
}
.proyectos__subtitle {
  max-width: 650px;

  margin: 0 auto 50px auto;

  color: #555;

  font-size: 1rem;

  line-height: 1.6;
}
.proyectos__grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 25px;

  max-width: 1400px;

  margin: 0 auto;  
}

.proyecto {
  position: relative;

  overflow: hidden;

  border-radius: 10px;

  box-shadow: var(--shadow-soft);

  cursor: pointer;
}
.proyecto img {
  width: 100%;

  height: 260px;

  object-fit: cover;

  display: block;

  transition: 0.4s ease;
}
.proyecto:hover img {
  transform: scale(1.08);
}
.proyecto::after {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.45);

  opacity: 0;

  transition: 0.3s;
}
.proyecto:hover::after {
  opacity: 1;
}
.proyecto::before {
  content: attr(data-title);

  position: absolute;

  bottom: 20px;
  left: 20px;
  right: 20px;

  color: white;

  font-size: 0.95rem;

  font-weight: 500;

  text-align: left;

  opacity: 0;

  z-index: 2;

  transition: 0.3s;
}
.proyecto:hover::before {
  opacity: 1;
}
@media (max-width: 768px) {
  .proyectos {
    padding: 60px 20px;
  }

  .proyectos__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .proyecto img {
    height: 220px;
  }
}

/* =======TEAM====== */
.team {
  background: #f5f7fa;

  padding: 80px 10%;

  text-align: center;
}
.team__title {
  font-size: 2rem;

  margin-bottom: 50px;

  color: var(--primary-color);
}
.team__members {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

  gap: 50px;

  max-width: 1200px;

  margin: auto;
}
.team__member {
  background: white;

  padding: 30px 20px;

  border-radius: 12px;

  box-shadow: var(--shadow-soft);

  transition: 0.3s ease;
}
.team__member:hover {
  transform: translateY(-6px);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}
.team__member-image {
  width: 120px;
  height: 120px;

  border-radius: 50%;

  object-fit: cover;

  margin: 0 auto 15px auto;

  border: 4px solid var(--accent-color);
}
.team__member-name {
  font-size: 20px;

  font-weight: 600;

  margin-bottom: 5px;

  color: var(--primary-color);
}
.team__member-position {
  font-size: 15px;

  color: #666;
}
@media (max-width: 768px) {
  .team {
    padding: 60px 20px;
  }

  .team__member-image {
    width: 100px;
    height: 100px;
  }
}

/* ====FOOTER==== */

.footer {
  background: var(--primary-color);
  color: white;
  padding: 50px 20px 20px; 
}

/* CONTENEDOR PRINCIPAL */

.footer__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 850px;
  margin: auto;
}

/* TITULOS */

.footer__title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: white;
}

/* LISTA DE CONTACTO */

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ITEMS DE CONTACTO */

.footer__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: #e3e3e3;
}

/* ICONOS LUCIDE */

.footer__list svg {
  width: 18px;
  height: 18px;
  color: var(--accent-color);
  flex-shrink: 0;
  margin-top: 3px;
}

/* LINKS */

.footer a {
  color: #e3e3e3;
  text-decoration: none;
  transition: 0.3s;
}

.footer a:hover {
  color: var(--accent-color);
}

/* TEXTO REDES */

.footer__text {
  font-size: 0.95rem;
  color: #e3e3e3;
  margin-bottom: 15px;
}

/* ICONOS REDES */

.footer__social-icons {
  display: flex;
  gap: 15px;
  list-style: none;
  padding: 0;
}

/* BOTONES REDES */

.footer__social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: 0.3s;
}

/* ICONOS LUCIDE */

.footer__social-icons svg {
  width: 20px;
  height: 20px;
  color: white;
}

/* HOVER REDES */

.footer__social-icons a:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

/* SEPARADOR */

.footer__bottom {
  max-width: 850px;
  margin: 30px auto 0 auto;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

/* COPYRIGHT */

.footer__copyright {
  font-size: 0.85rem;
  color: #cfcfcf;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .footer {
    padding: 40px 20px;
    text-align: center;
  }

  .footer__container {
    gap: 25px;
  }

  .footer__list li {
    justify-content: center;
  }

  .footer__social-icons {
    justify-content: center;
  }
}

/* ========================
WHATSAPP FLOAT
======================== */

.whatsapp-float {
  position: fixed;

  bottom: 25px;
  right: 25px;

  width: 55px;
  height: 55px;

  border-radius: 50%;

  background: #25d366;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);

  z-index: 999;

  transition: 0.3s;
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;

  color: white;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;

    width: 50px;
    height: 50px;
  }
}

/* =========================================
   GALERÍA - VISTA AMPLIADA
   ========================================= */

.proyecto {
  cursor: zoom-in;
}

/* Fondo oscuro */
.modal-proyecto {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);

  align-items: center;
  justify-content: center;

  padding: 30px;
}

/* Cuando se abre */
.modal-proyecto.active {
  display: flex;
}

/* Contenedor de la imagen */
.modal-proyecto__contenido {
  position: relative;
  max-width: 1100px;
  max-height: 90vh;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Imagen ampliada */
.modal-proyecto__imagen {
  max-width: 100%;
  max-height: 80vh;

  object-fit: contain;

  border-radius: 8px;

  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Título */
.modal-proyecto__titulo {
  margin-top: 15px;

  color: white;

  font-size: 1.1rem;
  font-weight: 500;

  text-align: center;
}

/* Botón X */
.modal-proyecto__cerrar {
  position: absolute;

  top: -15px;
  right: -15px;

  width: 40px;
  height: 40px;

  border: none;
  border-radius: 50%;

  background: white;
  color: var(--primary-color);

  font-size: 25px;
  line-height: 40px;

  cursor: pointer;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);

  transition: 0.3s;
}

.modal-proyecto__cerrar:hover {
  transform: scale(1.1);
  background: var(--accent-color);
}


/* =========================================
   CELULAR
   ========================================= */

@media (max-width: 768px) {

  .modal-proyecto {
    padding: 15px;
  }

  .modal-proyecto__imagen {
    max-height: 75vh;
  }

  .modal-proyecto__titulo {
    font-size: 0.9rem;
  }

  .modal-proyecto__cerrar {
    top: -10px;
    right: -5px;

    width: 35px;
    height: 35px;

    font-size: 20px;
    line-height: 35px;
  }
}

/* =========================================
   TARJETA VER MÁS PROYECTOS
   ========================================= */

.proyecto__ver-mas {
  height: 260px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f5f7fa;

  border: 2px dashed var(--primary-color);
  border-radius: 10px;

  cursor: pointer;

  transition: all 0.3s ease;

  box-shadow: var(--shadow-soft);
}

.proyecto__ver-mas:hover {
  background: var(--primary-color);

  transform: translateY(-4px);

  border-color: var(--primary-color);
}

.proyecto__ver-mas-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 10px;

  color: var(--primary-color);

  transition: 0.3s ease;
}

.proyecto__ver-mas:hover .proyecto__ver-mas-content {
  color: white;
}

.proyecto__ver-mas-icono {
  width: 65px;
  height: 65px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--primary-color);
  color: white;

  font-size: 42px;
  font-weight: 300;

  line-height: 1;

  transition: 0.3s ease;
}

.proyecto__ver-mas:hover .proyecto__ver-mas-icono {
  background: var(--accent-color);
  color: var(--primary-color);

  transform: scale(1.1);
}

.proyecto__ver-mas-texto {
  font-size: 0.95rem;

  font-weight: 600;

  text-align: center;

  letter-spacing: 0.5px;
}
