:root {
  --azul-profundo: #0A2D5E;
  --azul-teal: #0086A3;
  --verde-esencia: #4CAF50;
  --morado-suave: #C4B5FD;
  --morado-serenidad: #7B61FF;
  --morado-texto: #6D28D9;
  --amarillo-acento: #FBBF24;
  --rosa-calido: #F472B6;
  --fondo-calido: #F8FCFD;
  --blanco: #FFFFFF;
  --texto-cuerpo: #334155;
  --texto-suave: #64748B;
  --borde-suave: #E2E8F0;
  --sombra-card: 0 10px 30px -10px rgba(10, 45, 94, 0.08);
  --sombra-hover: 0 16px 36px -10px rgba(0, 134, 163, 0.16);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--fondo-calido);
  color: var(--texto-cuerpo);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

img, svg { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

/* ========================================================
   NAVEGACIÓN TIPO ISLA (BOTONES ATRACTIVOS Y CENTRADOS)
   ======================================================== */
.main-nav {
  position: fixed; top: 0; left: 0; width: 100%; min-height: 80px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  z-index: 9999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 2rem;
}

.brand-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; z-index: 10001; }
.brand-logo img { height: 48px; width: auto; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: 'Outfit', sans-serif; font-size: 1.45rem; font-weight: 900; color: var(--azul-profundo); line-height: 1; }
.brand-sub { font-size: 0.68rem; font-weight: 700; color: var(--azul-teal); letter-spacing: 0.5px; text-transform: uppercase; }

/* Contenedor de Botones Centrados */
.nav-links {
  display: flex;
  gap: 4px;
  background: #FFFFFF;
  border: 1px solid var(--borde-suave);
  padding: 6px 8px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(10, 45, 94, 0.05);
  align-items: center;
  list-style: none;
  margin: 0 auto;
}

/* Enlaces estilo Píldora (Botón) */
.nav-links li a {
  display: inline-block;
  color: var(--texto-suave);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links li a:hover {
  background: #F1F5F9;
  color: var(--azul-teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

/* Botón Portal OS en el Nav */
.nav-links li.nav-btn-item { margin-left: 4px; }
.nav-links li.nav-btn-item .btn-login {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--azul-profundo), #1E40AF);
  color: #fff; padding: 8px 20px; border-radius: 50px;
  font-weight: 800; font-size: 0.88rem;
  box-shadow: 0 4px 12px rgba(10, 45, 94, 0.2); transition: all 0.3s ease;
}
.nav-links li.nav-btn-item .btn-login:hover {
  background: linear-gradient(135deg, var(--azul-teal), #00A6C7);
  box-shadow: 0 6px 16px rgba(0, 134, 163, 0.3); transform: translateY(-2px); color: #fff;
}

/* Botón Hamburguesa */
.nav-toggle {
  display: none; flex-direction: column; justify-content: space-between;
  width: 32px; height: 22px; background: transparent; border: none; cursor: pointer; z-index: 10001; padding: 0;
}
.nav-toggle .bar { width: 100%; height: 3px; background-color: var(--azul-profundo); border-radius: 4px; transition: all 0.3s ease; display: block; }

/* ========================================================
   BOTONES GLOBALES
   ======================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 50px; font-weight: 700; text-decoration: none; font-size: 0.95rem; cursor: pointer; border: none; transition: all 0.3s ease; white-space: nowrap; }
.btn-teal { background: linear-gradient(135deg, var(--azul-teal), #00A6C7); color: var(--blanco); box-shadow: 0 8px 20px rgba(0, 134, 163, 0.25); }
.btn-teal:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(0, 134, 163, 0.35); }
.btn-outline-warm { background: var(--blanco); color: var(--azul-profundo); border: 1.5px solid var(--borde-suave); }
.btn-outline-warm:hover { border-color: var(--azul-teal); color: var(--azul-teal); transform: translateY(-2px); }

/* ========================================================
   SECCIONES Y COMPONENTES (HERO)
   ======================================================== */
.hero { padding-top: calc(85px + clamp(1.5rem, 4vw, 3rem)); padding-bottom: clamp(1.5rem, 4vw, 3rem); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; }
.guide-pill { display: inline-block; background: #DCFCE7; color: #15803D; font-family: 'Outfit', sans-serif; font-size: 0.78rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 14px; border-radius: 20px; margin-bottom: 0.4rem; }
.guide-subhead { font-size: 0.95rem; font-weight: 700; color: var(--azul-profundo); margin-bottom: 1.2rem; display: flex; align-items: center; gap: 8px; }
.hero-title { font-family: 'Outfit', sans-serif; font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08; font-weight: 900; color: var(--azul-profundo); letter-spacing: -1px; margin-bottom: 0.8rem; position: relative; }
.hero-title .title-sin-miedo { color: var(--azul-teal); display: inline-block; }
.quote-box { margin: 1rem 0 1.5rem 0; }
.quote-handwritten { font-family: 'Outfit', sans-serif; font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 800; color: var(--azul-profundo); line-height: 1.25; letter-spacing: -0.3px; display: block; }
.quote-subtext { color: var(--texto-cuerpo); font-size: clamp(0.9rem, 1.5vw, 1rem); margin-top: 0.5rem; max-width: 520px; }
.hero-cta-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1rem; }

/* ========================================================
   CARRUSEL DINÁMICO (HERO)
   ======================================================== */
/* ========================================================
   CARRUSEL DINÁMICO (HERO) - FORMATO HORIZONTAL
   ======================================================== */
.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px; /* Ampliado para imágenes horizontales */
  margin: 0 auto;
  box-shadow: 0 25px 50px -12px rgba(10, 45, 94, 0.25);
  border-radius: 28px;
  background: var(--blanco);
  border: 6px solid var(--blanco); 
}

.carousel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9; /* Cambiado a formato horizontal panorámico */
  background: #F8FAFC;
  overflow: hidden;
  border-radius: 22px;
}

.carousel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  transform: scale(1.05);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Contain en lugar de cover para asegurar que se lea todo el texto de la pieza */
  background-color: var(--fondo-calido); /* Fondo sutil si sobran bordes */
}

/* Controles (Flechas) */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
  color: var(--azul-profundo);
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.carousel-btn:hover {
  background: var(--blanco);
  color: var(--azul-teal);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* Indicadores (Puntitos) */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 10;
  background: rgba(10, 45, 94, 0.5); /* Ligeramente más oscuro para que contraste en piezas claras */
  padding: 8px 16px;
  border-radius: 30px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--blanco);
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}


/* ========================================================
   GLOBALES SECCIONES
   ======================================================== */
.section-title-wrap { text-align: center; margin: clamp(2.5rem, 5vw, 3.8rem) 0 clamp(1.5rem, 3vw, 2.2rem) 0; }
.tag-section { color: var(--azul-teal); font-weight: 800; font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; }
.section-title-wrap h2 { font-family: 'Outfit', sans-serif; font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 900; color: var(--azul-profundo); margin-top: 0.2rem; }
.section-title-wrap p { color: var(--texto-cuerpo); font-size: clamp(0.92rem, 1.6vw, 1rem); max-width: 640px; margin: 0.4rem auto 0 auto; }

/* QUIÉNES SOMOS */
.badge-pill-soft { display: inline-block; font-family: 'Outfit', sans-serif; font-size: 0.75rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 0.6rem; }
.intro-split-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: stretch; margin-bottom: 2.5rem; }
.manifesto-box { background: var(--blanco); border-radius: 22px; padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid var(--borde-suave); box-shadow: var(--sombra-card); display: flex; flex-direction: column; justify-content: space-between; }
.manifesto-box h3 { font-family: 'Outfit', sans-serif; font-size: clamp(1.4rem, 2.8vw, 1.7rem); color: var(--azul-profundo); margin-bottom: 0.6rem; }
.manifesto-box p { font-size: 0.95rem; color: var(--texto-cuerpo); line-height: 1.65; margin-bottom: 0.8rem; }
.brand-symbol-box { background: linear-gradient(135deg, #0A2D5E, #0086A3); border-radius: 22px; padding: clamp(1.4rem, 3vw, 2.2rem); color: #fff; box-shadow: var(--sombra-card); display: flex; flex-direction: column; justify-content: space-between; }
.brand-symbol-box h3 { font-family: 'Outfit', sans-serif; font-size: clamp(1.3rem, 2.5vw, 1.6rem); margin: 0.4rem 0 0.8rem 0; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; margin-top: 1.5rem; }
.value-card { background: #FFFFFF; border: 1px solid var(--borde-suave); border-radius: 18px; padding: 1.4rem 1.2rem; text-align: left; transition: all 0.25s ease; }
.value-card:hover { transform: translateY(-3px); border-color: var(--val-color, var(--azul-teal)); box-shadow: var(--sombra-card); }
.value-icon { font-size: 1.8rem; margin-bottom: 0.5rem; display: inline-block; }
.value-card h4 { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--azul-profundo); margin-bottom: 0.2rem; }
.value-card p { font-size: 0.85rem; color: var(--texto-suave); line-height: 1.45; }

/* MODULOS */
.ecosystem-modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin: 1.2rem 0 2.5rem 0; }
.module-card { background: var(--blanco); border-radius: 18px; padding: 1.5rem 1.2rem; border: 1px solid var(--borde-suave); box-shadow: var(--sombra-card); transition: all 0.25s; }
.module-card:hover { transform: translateY(-4px); box-shadow: var(--sombra-hover); border-color: var(--azul-teal); }
.module-card .mod-number { font-family: 'Outfit', sans-serif; font-size: 0.72rem; font-weight: 800; color: var(--azul-teal); letter-spacing: 1px; }
.module-card h3 { font-family: 'Outfit', sans-serif; font-size: 1.15rem; color: var(--azul-profundo); margin: 0.2rem 0 0.6rem 0; }
.module-card ul { list-style: none; font-size: 0.85rem; color: var(--texto-cuerpo); display: flex; flex-direction: column; gap: 5px; }
.module-card ul li::before { content: '✓ '; color: var(--verde-esencia); font-weight: 800; }

/* ENTORNOS Y NORMATIVA */
.sectors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.sector-card { background: var(--blanco); border-radius: 18px; padding: 1.5rem 1.2rem; border: 1px solid var(--borde-suave); transition: all 0.2s; }
.sector-card:hover { border-color: var(--azul-profundo); transform: translateY(-3px); box-shadow: var(--sombra-card); }
.sector-badge-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 0.8rem; background: #F1F5F9; }
.sector-card h4 { font-family: 'Outfit', sans-serif; font-size: 1.1rem; color: var(--azul-profundo); margin-bottom: 0.2rem; }
.sector-card p { font-size: 0.86rem; color: var(--texto-cuerpo); }

.normativa-box { background: #F8FAFC; border: 1.5px solid var(--borde-suave); border-radius: 22px; padding: clamp(1.4rem, 3vw, 2.2rem); margin-top: 2rem; }
.normativa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.normativa-item { background: #fff; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--borde-suave); font-size: 0.85rem; }

/* GUÍA Y RESPIRACIÓN */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-bottom: 2.5rem; }
.card-problem { background: var(--blanco); border-radius: 18px; padding: 1.6rem 1.3rem; box-shadow: var(--sombra-card); border: 1px solid var(--borde-suave); transition: all 0.25s; }
.card-problem:hover { transform: translateY(-4px); box-shadow: var(--sombra-hover); border-color: var(--card-color); }
.card-problem-icon { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 0.8rem; background: var(--icon-bg); }
.card-problem h3 { font-family: 'Outfit', sans-serif; font-size: 1.18rem; font-weight: 800; color: var(--azul-profundo); margin-bottom: 0.3rem; }
.card-problem p { font-size: 0.88rem; color: var(--texto-cuerpo); }

.myths-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.myth-card { background: var(--blanco); border: 1px solid var(--borde-suave); border-radius: 18px; padding: 1.4rem; transition: all 0.25s; }
.myth-card:hover { transform: translateY(-3px); border-color: var(--morado-serenidad); box-shadow: var(--sombra-card); }
.myth-fake-pill { display: inline-block; background: #FEE2E2; color: #DC2626; font-size: 0.72rem; font-weight: 800; padding: 3px 10px; border-radius: 8px; margin-bottom: 0.4rem; }
.myth-statement { font-weight: 800; color: var(--azul-profundo); font-size: 0.98rem; margin-bottom: 0.3rem; }
.myth-reality { font-size: 0.86rem; color: var(--texto-cuerpo); line-height: 1.5; }

.breathing-box { background: linear-gradient(135deg, #0A2D5E, #0086A3); border-radius: 22px; padding: clamp(1.4rem, 3vw, 2.2rem); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 1.8rem; margin-top: 2rem; }
.breathing-steps-grid { display: grid; grid-template-columns: repeat(4, auto); gap: 8px; margin-top: 1rem; align-items: center; }
.breathing-step-pill { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 10px; padding: 6px 12px; font-size: 0.85rem; font-weight: 700; white-space: nowrap; text-align: center; }
.breathing-circle-anim { width: 82px; height: 82px; flex-shrink: 0; border-radius: 50%; border: 3px dashed var(--verde-esencia); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.3rem; animation: pulseBox 8s infinite ease-in-out; }
@keyframes pulseBox { 0%, 100% { transform: scale(1); border-color: var(--verde-esencia); } 25% { transform: scale(1.12); border-color: var(--amarillo-acento); } 50% { transform: scale(1.12); border-color: var(--morado-suave); } 75% { transform: scale(1); border-color: var(--verde-esencia); } }

/* MULTIMEDIA Y CONTACTO */
.podcast-warm-box { background: linear-gradient(135deg, #EFF6FF 0%, #F5F3FF 100%); border: 1px solid #DBEAFE; border-radius: 22px; padding: clamp(1.4rem, 3vw, 2.2rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 3rem; }
.pod-meta { display: flex; align-items: center; gap: 14px; }
.pod-disc { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--morado-texto), var(--azul-teal)); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; flex-shrink: 0; box-shadow: 0 8px 18px rgba(109, 40, 217, 0.25); }

.channels-gold-bar { background: linear-gradient(135deg, #FEF3C7, #FFFBEB); border: 2px solid #F59E0B; border-radius: 20px; padding: clamp(1.2rem, 2.5vw, 1.8rem); margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.channels-gold-info { flex: 1; min-width: 0; }
.emergency-friendly-bar { background: var(--azul-profundo); color: var(--blanco); border-radius: 20px; padding: clamp(1.4rem, 2.5vw, 2rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 3.5rem; box-shadow: 0 16px 36px rgba(10, 45, 94, 0.18); }
.phone-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.phone-tag { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); padding: 8px 14px; border-radius: 12px; font-weight: 800; color: var(--blanco); text-decoration: none; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 6px; transition: background 0.2s; white-space: nowrap; }
.phone-tag:hover { background: rgba(255, 255, 255, 0.22); }

/* VISTA EQUIPO */
.team-hero { text-align: center; margin: 100px 0 3rem 0; }
.team-hero h1 { font-family: 'Outfit', sans-serif; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; color: var(--azul-profundo); letter-spacing: -1px; margin-bottom: 0.6rem; }
.team-hero h1 span { background: linear-gradient(135deg, var(--azul-teal), var(--morado-serenidad)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.team-hero p { color: var(--texto-cuerpo); font-size: clamp(0.95rem, 1.8vw, 1.1rem); max-width: 760px; margin: 0 auto; }
.metrics-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; background: var(--blanco); border: 1px solid var(--borde-suave); border-radius: 20px; padding: 1.5rem; margin-bottom: 3.5rem; text-align: center; box-shadow: var(--sombra-card); }
.metric-item { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0.5rem; }
.metric-item .val { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; color: var(--verde-esencia); font-family: 'Outfit', sans-serif; line-height: 1.1; }
.metric-item .lbl { color: var(--texto-suave); font-size: 0.85rem; font-weight: 600; margin-top: 4px; }
.leaders-grid { display: flex; flex-direction: column; gap: 2.2rem; margin-bottom: 4rem; }
.profile-card { background: var(--blanco); border: 1px solid var(--borde-suave); border-radius: 24px; padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; grid-template-columns: 240px 1fr; gap: clamp(1.5rem, 3vw, 2.8rem); align-items: center; box-shadow: var(--sombra-card); transition: all 0.25s ease; }
.profile-card:hover { transform: translateY(-3px); box-shadow: var(--sombra-hover); border-color: var(--card-border-hover, var(--azul-teal)); }
.avatar-container { width: 200px; height: 230px; border-radius: 20px; margin: 0 auto 0.8rem auto; overflow: hidden; box-shadow: 0 12px 24px rgba(10, 45, 94, 0.1); border: 2px solid var(--borde-suave); background: linear-gradient(135deg, var(--azul-profundo), var(--azul-teal)); display: flex; align-items: center; justify-content: center; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.avatar-fallback { font-size: 3.5rem; font-weight: 800; color: #fff; }
.role-badge { display: inline-block; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; }
.info-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-family: 'Outfit', sans-serif; color: var(--azul-profundo); margin-bottom: 0.2rem; }
.info-content .title-sub { color: var(--azul-teal); font-size: 0.98rem; font-weight: 700; margin-bottom: 0.8rem; }
.info-content .bio { color: var(--texto-cuerpo); font-size: 0.95rem; margin-bottom: 1.2rem; line-height: 1.68; }
.tags-list { display: flex; gap: 8px; flex-wrap: wrap; }
.tech-tag { background: #F1F5F9; border: 1px solid var(--borde-suave); padding: 5px 12px; border-radius: 8px; font-size: 0.8rem; font-weight: 700; color: var(--azul-profundo); }

/* VISTA LOGIN */
.login-wrapper { min-height: calc(100vh - 72px); display: flex; align-items: center; justify-content: center; padding: 100px 1.5rem 4rem 1.5rem; }
.login-card { background: var(--blanco); border-radius: 28px; border: 1px solid var(--borde-suave); box-shadow: 0 20px 50px -10px rgba(10, 45, 94, 0.1); width: 100%; max-width: 500px; padding: clamp(1.5rem, 4vw, 3rem); position: relative; overflow: hidden; }
.login-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: linear-gradient(90deg, var(--verde-esencia), var(--azul-teal), var(--morado-texto)); }
.login-header { text-align: center; margin-bottom: 2rem; }
.login-header h2 { font-family: 'Outfit', sans-serif; font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 800; color: var(--azul-profundo); }
.login-header p { color: var(--texto-suave); font-size: 0.92rem; margin-top: 0.4rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--azul-profundo); margin-bottom: 0.4rem; }
.form-control { width: 100%; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--borde-suave); font-family: inherit; font-size: 0.95rem; transition: all 0.2s; background: #F8FAFC; }
.form-control:focus { outline: none; border-color: var(--azul-teal); background: #fff; box-shadow: 0 0 0 4px rgba(0, 134, 163, 0.1); }
.role-selector { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 1.4rem; }
.role-option { border: 1.5px solid var(--borde-suave); border-radius: 12px; padding: 10px; text-align: center; cursor: pointer; transition: all 0.2s; font-size: 0.85rem; font-weight: 700; color: var(--texto-cuerpo); }
.role-option input { display: none; }
.role-option:has(input:checked) { border-color: var(--azul-teal); background: #E0F2FE; color: var(--azul-teal); }
.btn-submit { width: 100%; padding: 14px; border-radius: 12px; font-size: 1rem; font-weight: 800; justify-content: center; }
.alert-box { padding: 12px; border-radius: 10px; background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; font-size: 0.85rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 8px; }

/* FOOTER */
footer { background: #F1F5F9; border-top: 1px solid var(--borde-suave); padding: 2.5rem 0 2rem 0; text-align: center; }

/* ========================================================
   REGLAS RESPONSIVAS A PRUEBA DE FALLOS (MOBILE)
   ======================================================== */
@media (max-width: 1050px) {
  
  /* 1. OBLIGAR AL NAVEGADOR A MOSTRAR LA HAMBURGUESA */
  .nav-toggle {
    display: flex !important;
    position: absolute;
    right: 1.5rem;
    top: 26px;
  }

  /* 2. MENU MÓVIL: DESLIZA DESDE LA IZQUIERDA */
  .nav-links {
    position: fixed !important;
    top: 76px !important;
    left: -100% !important; 
    width: 100% !important;
    height: calc(100vh - 76px) !important;
    background: #ffffff !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 1.5rem 1rem !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    transition: left 0.3s ease !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    display: flex !important; 
  }

  /* 3. CLASE QUE ACTIVA EL JS */
  .nav-links.nav-open {
    left: 0 !important;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--borde-suave);
  }
  .nav-links li a {
    display: block !important;
    padding: 1.2rem 1.5rem !important;
    font-size: 1.1rem !important;
    color: var(--azul-profundo) !important;
    border-radius: 0 !important;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  .nav-links li a:hover {
    background: #F8FAFC !important;
  }
  
  .nav-links li.nav-btn-item {
    padding: 1.5rem !important; border: none !important;
  }
  .nav-links li.nav-btn-item .btn-login {
    width: 100%; justify-content: center;
    padding: 1rem !important; font-size: 1.05rem !important;
  }

  /* Animación de las rayas de la hamburguesa */
  .nav-toggle.open .bar:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
  .nav-toggle.open .bar:nth-child(2) { opacity: 0; }
  .nav-toggle.open .bar:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

  /* Ajustes generales Móvil */
  .hero-tab-btn { padding: 10px 8px; font-size: 0.82rem; }
  .hero-grid, .intro-split-grid, .normativa-grid, .profile-card { grid-template-columns: 1fr; text-align: center; }
  .ecosystem-modules { grid-template-columns: repeat(2, 1fr); }
  .breathing-box, .channels-gold-bar, .podcast-warm-box, .emergency-friendly-bar { flex-direction: column; text-align: center; }
  .channels-gold-bar .btn { width: 100%; }
  .breathing-steps-grid { grid-template-columns: 1fr; justify-content: center; }
  .phone-badges, .tags-list { justify-content: center; }
  .metrics-bar { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 500px) {
  .ecosystem-modules { grid-template-columns: 1fr; }
  .phone-tag { width: 100%; justify-content: center; }
  .role-selector { grid-template-columns: 1fr; }
}
