/* RESET */
body {
  padding-top: 90px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px; /* 👈 mismo tamaño que el otro */
  z-index: 1000;
  background: rgba(0,0,0,0.85);
}


.header.scrolled {
  background: rgba(0,0,0,0.85);
}

/* NAV CONTAINER */
.nav-container {
  width: 100%;
  height: 100%;   /* 👈 clave */
  padding: 0 40px; /* 👈 quitamos padding vertical */
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* LOGO */
.logo-img {
  height: 80px;
}

/* ================= DESKTOP ================= */
.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
   font-family: 'Poppins', Arial, sans-serif;

}


.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #03ac99;
  transition: 0.3s;
}

.nav a:hover {
  color: #03ac99;
}

.nav a:hover::after {
  width: 100%;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
  display: none;
  width: 36px;
  height: 26px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 3000;
}

.menu-toggle span {
  width: 100%;
  height: 4px;
  background: #03ac99;
  border-radius: 4px;
  transition: 0.35s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.hero {
  min-height: 100vh;
  background: url("../imagenes/nosotros.webp") center / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 20px 60px;
}
@media (max-width: 800px) {
  .hero {
    background: url("../imagenes/nosotros2.webp") center / cover no-repeat;
    padding: 120px 20px 40px;
  }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  padding: 20px 30px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50px;
  color: #fff;
  text-align: center;
}

/* CONTENEDOR DEL TEXTO */
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 10px; /* controla separación entre bloques */
}

/* PÁRRAFOS */
.hero-text p {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.55;
  text-align: justify;
  text-justify: inter-word;
}

/* AJUSTE FINO DE LA CAJA (opcional pero recomendado) */
.hero-content {
  padding: 20px 30px; /* mantiene proporción */
  max-width: 1100px;
}


/* BOTÓN *//* ================= FOOTER ESTILO MODERNO ================= */

.footer-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 80px 6%;
  background: #ffffff;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
  
}



/* TARJETAS */
.footer-card {
  background: #037e6f8a;
  padding: 30px;
  border-radius: 16px;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* LÍNEA DECORATIVA */
.footer-card::before {
  content:"";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #04c8b7, #ffffff);
}

/* HOVER */
.footer-card:hover {
  transform: translateY(-8px);
  background: #02574e84;
}

/* TÍTULOS */
.footer-card h3,
.footer-card h4 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

/* TEXTO */
.footer-card p,
.footer-card a {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.6;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}

/* HOVER LINKS */
.footer-card a:hover {
  color: #38bdf8;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .footer-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-wrapper {
    grid-template-columns: 1fr;
  }
}
/* ================= FOOTER BOTTOM ================= */

.footer-bottom {
  width: 100%;
  margin: 0;
  padding: 20px 0;
  background: #000;
  text-align: center;
}



/* Texto del footer */
.footer-bottom p {
  margin: 0;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 600px) {
  .footer-bottom {
    font-size: 0.85rem;
    padding-top: 20px;
  }
}
.footer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cfcfcf;
  text-decoration: none;
}

.footer-link img {
  width: 60px;
  height: auto;
  object-fit: contain;
}
/* ===== ANIMACIÓN FOOTER AL SCROLL ===== */
.footer-card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.footer-card.show {
  opacity: 1;
  transform: translateY(0);
}
.footer-constancia {
  text-align: center;
  margin-top: 40px;
}

.constancia-img {
  max-width: 220px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.constancia-img:hover {
  transform: scale(1.05);
}

.footer-bottom {
  width: 100%;
  background-color: #000;
  color: #ffffff;
  text-align: center;
  padding: 18px 12px;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 5;
   position: relative;
  bottom: 0;
  margin: 0;
}
.btn {
  display: inline-block;
  margin-top: 25px;
  padding: 16px 38px;
  background: #fff;
  color: #000;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: 0.3s ease;
}

.btn:hover {
  background: #03ac99;
  color: #fff;
}

/* OCULTAR EXTRAS EN DESKTOP */
.nav-mobile-extra {
  display: none;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
  }

  /* MENU MOBILE – SIN PARPADEO */
  .nav {
    position: fixed;
    inset: 0;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;

    opacity: 0;
    pointer-events: none;

    /* ❌ SIN TRANSICIÓN AQUÍ */
    transition: none;
  }

  /* ✅ TRANSICIÓN SOLO CUANDO SE ACTIVA */
  .nav.active {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.35s ease;
  }

  /* LINKS MOBILE */
  .nav a {
    font-size: 2rem;
    font-weight: bold;
    color: #03ac99;
    letter-spacing: 1px;
    text-decoration: none;

    opacity: 0;
    transform: translateY(20px);

    /* ✨ SOMBRA EN TEXTO */
    text-shadow:
      
      0 8px 18px rgba(0,0,0,0.25);
  }

  .nav.active a {
    animation: itemIn 0.5s ease forwards;
  }

  .nav.active a:nth-child(1) { animation-delay: 0.1s; }
  .nav.active a:nth-child(2) { animation-delay: 0.2s; }
  .nav.active a:nth-child(3) { animation-delay: 0.3s; }
  .nav.active a:nth-child(4) { animation-delay: 0.4s; }
  .nav.active a:nth-child(5) { animation-delay: 0.5s; }
  .nav.active a:nth-child(6) { animation-delay: 0.6s; }

  /* EXTRAS MOBILE */
  .nav-mobile-extra {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-top: 30px;

    opacity: 0;
    transform: translateY(20px);
  }

  .nav.active .nav-mobile-extra {
    animation: itemIn 0.5s ease forwards;
    animation-delay: 0.6s;
  }

  .nav-social {
    display: flex;
    gap: 25px;
  }

  .nav-social img {
    width: 32px;
    height: 32px;
  }
}

/* ANIMACIÓN */
@keyframes itemIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =============================
   🔥 BOTÓN WHATSAPP FLOTANTE
============================= */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float img {
  width: 40px;
  height: 40px;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 15px 35px rgba(0,0,0,0.35);
}

/* AJUSTE MOBILE */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 55px;
    height: 55px;
  }

  .whatsapp-float img {
    width: 40px;
    height: 40px;
  }
}





