/* =========================================
   1. RESET Y ESTILOS BASE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: #fff; color: #1d1d1f; -webkit-font-smoothing: antialiased; line-height: 1.5;
}
h1,h2,h3,h4,h5,h6 { color: #1d1d1f; letter-spacing: -0.02em; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================
   2. NAVEGACIÓN (DESKTOP)
   ========================================= */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 64px; padding: 0 32px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.07); 
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}

.nav-side-left { display: flex; align-items: center; justify-content: flex-start; gap: 16px; }
.nav-side-right { display: flex; align-items: center; justify-content: flex-end; }

.nav-social-icon { width: 20px; height: 20px; color: #1d1d1f; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.nav-social-icon:hover { color: #00A87A; transform: translateY(-2px); }

.nav-center-group { display: flex; align-items: center; justify-content: center; gap: 32px; }
.nav-link { font-size: 0.85rem; color: #4a4a4e; font-weight: 500; letter-spacing: 0.01em; cursor: pointer; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: #1d1d1f; }

.nav-logo-inline { padding: 0 12px; }
.nav-logo-img { max-height: 22px; width: auto; display: block; }

/* Dropdown Desktop */
.nav-item-dropdown { position: relative; display: flex; align-items: center; height: 64px; }
.nav-item-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-arrow { transition: transform .2s; }
.nav-item-dropdown:hover .nav-arrow { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute; top: 60px; left: 50%; transform: translateX(-50%) translateY(10px); width: 260px;
  background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08); padding: 8px;
  opacity: 0; visibility: hidden; transition: all .2s ease; z-index: 210; text-align: left;
}
.nav-item-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.dropdown-link { display: flex !important; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 8px; transition: background .2s; }
.dropdown-link:hover { background: #fafafa; }

.dd-icon { width: 32px; height: 32px; background: rgba(0,168,122,0.1); color: #00A87A; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.dd-text { display: flex; flex-direction: column; }
.dd-title { font-size: 0.85rem; font-weight: 500; color: #1d1d1f; }
.dd-desc { font-size: 0.7rem; color: #646464; font-weight: 400; }

.nav-cta-btn { font-size: 0.78rem; font-weight: 500; color: #fff; background: #1d1d1f; padding: 9px 22px; border-radius: 100px; transition: background .2s; white-space: nowrap; }
.nav-cta-btn:hover { background: #00A87A; }

/* =========================================
   3. MENÚ MÓVIL (LÓGICA Y ESTILOS)
   ========================================= */
.mobile-toggle { display: none; } 
.mobile-menu { display: none; }

@media (max-width: 1100px) {
  nav { display: flex; justify-content: space-between; padding: 0 20px; }
  .hide-mobile { display: none !important; }

  .mobile-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    background: none; border: none; cursor: pointer; width: 30px; height: 30px; z-index: 300;
  }
  .mobile-toggle .bar { width: 22px; height: 2px; background-color: #1d1d1f; transition: all 0.3s ease; }
  .mobile-toggle.active .bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .mobile-toggle.active .bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

  
  .mobile-menu {
    display: block;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: 0;
    background: #ffffff;
    z-index: 190;
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  }

  .mobile-menu.active {
    height: calc(100vh - 64px);
  }

  .mobile-menu-content {
    height: 100%;
    padding: 40px 32px 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Empuja el footer hacia abajo */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .mobile-menu.active .mobile-menu-content {
    opacity: 1;
    visibility: visible;
  }

  /* Links Principales */
  .mobile-link {
    display: block;
    font-size: 1.7rem;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
  }

/* Links de Servicios (ahora con el mismo tamaño que los principales) */
.mobile-link-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.7rem;      /* Mismo tamaño que .mobile-link */
  font-weight: 600;    /* Misma negrita */
  color: #1d1d1f;      /* Mismo color oscuro */
  letter-spacing: -0.03em;
  padding: 10px 0;     /* Ajuste de espacio vertical */
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s ease;
}

/* Ajuste para la flecha verde para que se vea proporcional */
.mobile-link-sub span {
  color: #00A87A;
  font-weight: 300;
  font-size: 1.5rem;   /* Un poco más grande para que no se vea pequeña */
}

  .mobile-divider {
    height: 1px;
    background: #f2f2f7;
    margin: 24px 0;
  }

  .mobile-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #00A87A;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
  }

  /* Animación Escalonada (Staggered) */
  .mobile-menu.active .mobile-link,
  .mobile-menu.active .mobile-link-sub,
  .mobile-menu.active .mobile-label {
    transform: translateY(0);
    opacity: 1;
  }

  /* Retrasos para que aparezcan uno por uno */
  .mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
  .mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
  .mobile-menu.active .mobile-label { transition-delay: 0.2s; }
  .mobile-menu.active .mobile-link-sub:nth-child(5) { transition-delay: 0.25s; }
  .mobile-menu.active .mobile-link-sub:nth-child(6) { transition-delay: 0.3s; }

  /* Footer del menú */
  .mobile-footer {
    margin-top: auto;
    padding-top: 40px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease 0.4s;
  }
  
  .mobile-menu.active .mobile-footer {
    transform: translateY(0);
    opacity: 1;
  }

  .mobile-cta {
    width: 100%;
    height: 54px;
    font-size: 1rem;
    margin-bottom: 30px;
  }

/* Ajuste de iconos en el footer del menú móvil */
.mobile-socials {
  display: flex;
  justify-content: center;
  gap: 24px; /* Espacio entre círculos */
}

.mobile-socials .nav-social-icon {
  width: 48px;
  height: 48px;
  background: #f5f5f7; /* Gris muy claro tipo Apple */
  border-radius: 50%;
  color: #1d1d1f;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* Efecto al tocar o hacer clic */
.mobile-socials .nav-social-icon:active {
  background: #e8e8ed;
  transform: scale(0.95);
  color: #00A87A; /* Cambia a tu color verde de acento */
}
}

/* =========================================
   4. COMPONENTES GLOBALES (BOTONES Y SECCIONES)
   ========================================= */
.btn-dark { display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 500; color: #fff; background: #1d1d1f; padding: 12px 28px; border-radius: 100px; transition: all .2s; border: none; cursor: pointer; }
.btn-dark:hover { background: #00A87A; }

.btn-link { font-size: 0.9rem; font-weight: 500; color: #1d1d1f; display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.btn-link:hover { color: #00A87A; }
.btn-link svg { transition: transform .2s; }
.btn-link:hover svg { transform: translateX(3px); }

/* Encabezados de Sección */
.section-header { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 64px; align-items: end; }
@media(max-width: 960px){ .section-header { grid-template-columns: 1fr; gap: 16px; } }

.section-kicker { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #00A87A; margin-bottom: 14px; }
.section-h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 200; letter-spacing: -.04em; line-height: 1.08; }
.section-h2 strong { font-weight: 500; }
.section-desc { font-size: .9rem; color: #4a4a4e; line-height: 1.7; font-weight: 300; align-self: end; padding-bottom: 4px; }

/* =========================================
   5. FOOTER
   ========================================= */
footer { border-top: 1px solid rgba(0,0,0,0.07); padding: 60px 32px 40px; }
.footer-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(0,0,0,0.07); margin-bottom: 24px; }
@media(max-width: 768px){ .footer-inner { grid-template-columns: 1fr; gap: 32px; } }

.foot-logo { font-size: 1rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; }
.foot-logo span { color: #00A87A; }
.foot-desc { font-size: .78rem; color: #646464; line-height: 1.7; font-weight: 300; max-width: 210px; margin-bottom: 20px; }
.foot-socials { display: flex; gap: 8px; }
.foot-soc { width: 30px; height: 30px; border: 1px solid rgba(0,0,0,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .7rem; color: #4a4a4e; transition: all .2s; font-weight: 600; }
.foot-soc:hover { border-color: #1d1d1f; color: #1d1d1f; }

.foot-col h6 { font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #646464; margin-bottom: 16px; }
.foot-col ul { display: flex; flex-direction: column; gap: 9px; }
.foot-col ul a { font-size: .8rem; color: #4a4a4e; transition: color .2s; }
.foot-col ul a:hover { color: #1d1d1f; }

.footer-bottom { max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: .75rem; color: #646464; }
.footer-bottom a { color: #646464; margin-left: 18px; transition: color .2s; }
.footer-bottom a:hover { color: #4a4a4e; }

/* =========================================
   6. ANIMACIONES Y ETIQUETAS
   ========================================= */
.fade-up {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}
.fade-up.in { opacity: 1; transform: translateY(0); }

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px; 
  font-size: .68rem; font-weight: 600; letter-spacing: .12em; 
  text-transform: uppercase; color: #00A87A; margin-bottom: 36px;
}
.hero-tag::after { content: ''; width: 24px; height: 1px; background: #00A87A; }