/* RESET */

body {
   padding-top: 90px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

* {
  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);
}



/* 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;
  }
}


/* CONTENEDOR GENERAL */
.contacto {
  padding: 120px 20px;
  background: linear-gradient(135deg, #f2f6f9, #ffffff);
}

/* CAJA PRINCIPAL */
.contacto-container {
  max-width: 1100px;
  margin: auto;
  background: white;
  border-radius: 25px;
  padding: 60px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

/* TÍTULO */
.contacto h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 15px;
  color: #0a3b3b;
}

/* TEXTO */
.contacto-texto {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
  font-size: 1.1rem;
  color: #555;
}

/* GRID */
.contacto-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}
/* contacto */
.contact-form-modern {
  background: #ffffff;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.08);
  max-width: 620px;
  margin: 150px auto;
}


.contact-form-modern h3 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 5px;
  color: #0f3d3e;
}

.form-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
}

.input-group {
  position: relative;
  margin-bottom: 25px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1.5px solid #ddd;
  font-size: 1rem;
  outline: none;
  background: transparent;
  transition: 0.3s ease;
}

.input-group label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  padding: 0 6px;
  color: #888;
  font-size: 0.9rem;
  pointer-events: none;
  transition: 0.3s;
}

.input-group textarea + label {
  top: 18px;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #00b3a4;
}

.input-group input:focus + label,
.input-group textarea:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:not(:placeholder-shown) + label {
  top: -8px;
  font-size: 0.75rem;
  color: #00b3a4;
  background: #fff;
}

.btn-send {
  width: 100%;
  background: linear-gradient(135deg, #00b3a4, #009c91);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 179, 164, 0.35);
}

/* ================= 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;
  border-top: 1px solid #000000; /* color y grosor */
  padding: 100px;
}



/* 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;
  }
}
/* 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;
}

