/* ============================================================
   DESPIERTA ARGENTINA — style.css (único archivo CSS)
   Tema DARK PREMIUM (inspirado en despiertaargentina.impulsopro.tech)
   Fondo casi negro azulado + turquesa como acento, tipografía Poppins
   ============================================================ */

/* ── RESET + BASE ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Fondos dark ── */
  --bg:          #071013;
  --bg2:         #0b1519;
  --panel:       #101b20;
  --panel2:      #17262d;

  /* ── Texto ── */
  --text:        #f5f8fa;
  --muted:       #e0ecef;   /* contraste ≥4.5:1 sobre los fondos dark */

  /* ── Acentos turquesa ── */
  --turq:        #00d6c9;
  --turq2:       #44fff2;
  --turq-dark:   #00b3a8;

  /* ── Gradientes / glow reutilizables ── */
  --grad-turq:   linear-gradient(135deg, #00d6c9, #78fff6);
  --grad-card:   linear-gradient(145deg, #17262d, #101b20);
  --glow-turq:   0 0 24px rgba(0, 214, 201, 0.35);

  /* ── Glassmorphism dark ── */
  --glass-bg:     rgba(16, 27, 32, 0.55);
  --glass-border: rgba(0, 214, 201, 0.18);
  --glass-blur:   blur(16px);

  /* ── Tipografía (Poppins con fallbacks) ── */
  --font-head:   'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body:   'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* ── Layout ── */
  --max-w:       1200px;
  --nav-h:       80px;
  --radius:      22px;
  --radius-sm:   12px;
  --transition:  0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* ── Aliases de compatibilidad ──
     Las páginas internas usan var(--navy)/var(--white)/var(--text-dark)... en
     estilos inline/embebidos. Redefinirlas en dark hace que ese HTML se oscurezca
     solo, sin tener que tocar cada regla. (Los literales #fff/#f4f5f7 sí se editan.) */
  --teal:        var(--turq);
  --teal-dark:   var(--turq-dark);
  --navy:        var(--bg2);
  --navy-2:      var(--bg);
  --white:       var(--text);
  --off-white:   var(--panel2);
  --text-dark:   var(--text);
  --text-mid:    var(--muted);
  --text-light:  #9fb4ba;
  --border:      rgba(255, 255, 255, 0.08);
  --glow-teal:   var(--glow-turq);
}

/* ── KEYFRAMES ─────────────────────────────── */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  /* Sin 'forwards': el transform de la animación no debe persistir, porque un
     transform en <body> rompe position:fixed (navbar y modal quedarían anclados
     al body en vez del viewport). Tras la animación, body vuelve a transform:none. */
  animation: pageFadeIn 0.6s ease-out;
}

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

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Accesibilidad: focus visible para teclado ── */
:focus-visible {
  outline: 2px solid var(--turq2);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Scroll reveal (solo con JS activo y sin reduced-motion) ── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .js .reveal.visible { opacity: 1; transform: none; }
}

/* ── BUTTONS ──────────────────────────────── */
.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: var(--grad-turq);
  color: #071013;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: var(--glow-turq);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 36px rgba(0, 214, 201, 0.55);
}

.btn-wa {
  position: relative;
  width: 100%;
  min-height: 44px;
  background: var(--panel2);
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 24px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition);
  z-index: 1;
}
.btn-wa::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,214,201,0.18), transparent);
  transition: all 0.5s ease;
  z-index: -1;
}
.btn-wa:hover {
  background: #25D366;
  color: #071013;
  border-color: #25D366;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.32);
}
.btn-wa:hover::before { left: 100%; }

.btn-wa-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: var(--grad-turq);
  color: #071013;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  padding: 18px 48px;
  border-radius: 50px;
  box-shadow: var(--glow-turq);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-wa-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(0, 214, 201, 0.6);
}

/* ── NAVBAR ───────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(7, 16, 19, 0.55);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  height: var(--nav-h);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
  background: rgba(7, 16, 19, 0.9);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}

.nav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.nav-logo-fallback {
  width: 60px; height: 60px;
  background: var(--panel2);
  color: var(--turq);
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.4rem;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--turq);
  transition: width var(--transition);
}

.nav-link:hover, .nav-link.active { color: var(--turq); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* CTA "Resultados" en el navbar */
.nav-link-cta { color: var(--turq2); font-weight: 700; }
.nav-link-cta::after { background: var(--turq2); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 25px; height: 2px;
  background: var(--text);
  transition: all var(--transition);
  border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── HERO ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* WebP vía <picture>: el wrapper no debe romper el fill de las imágenes de
   fondo (hero y CTA usan height:100% contra el contenedor absoluto). */
.hero-bg picture,
.section-wa-bg picture,
.vision-image picture { display: contents; }

/* Overlay más suave (deja ver más la foto) + tinte dark abajo */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(0,214,201,0.12), transparent 42%),
    linear-gradient(
      to bottom,
      rgba(7,16,19,0.10) 0%,
      rgba(7,16,19,0.28) 50%,
      rgba(7,16,19,0.78) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 48px;
}

.hero-text {
  padding-bottom: 0;
  opacity: 0;
  animation: slideInLeft 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-supertitle {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #8ff3ec 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 0px;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.55));
  letter-spacing: -1px;
}

.hero-subtitle-name {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--turq);
  margin-bottom: 24px;
  text-shadow: 0 4px 18px rgba(0,0,0,0.6);
  letter-spacing: 1px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(0.85rem, 1.6vw, 1.3rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.4;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  letter-spacing: 3px;
  text-transform: uppercase;
  border-top: 1px solid rgba(0, 214, 201, 0.35);
  padding-top: 16px;
  display: inline-block;
}

.hero-subtitle {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* WhatsApp Form Card */
.hero-form-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 28px 28px 20px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.5), var(--glow-turq);
  opacity: 0;
  animation: slideInRight 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero-form-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,214,201,0.5), rgba(0,214,201,0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.form-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.wa-icon {
  width: 48px; height: 48px;
  background: rgba(0, 214, 201, 0.12);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-card-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.form-card-sub {
  font-size: 0.82rem;
  color: var(--turq);
  font-weight: 600;
}

.wa-form { display: flex; flex-direction: column; gap: 14px; }

.field-group { display: flex; flex-direction: column; gap: 5px; }

.field-label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.field-optional { font-weight: 400; color: var(--muted); }

.field-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--panel2);
  transition: all var(--transition);
  outline: none;
}
.field-input::placeholder { color: rgba(255,255,255,0.45); }

.field-input:focus {
  border-color: var(--turq);
  background: var(--panel);
  box-shadow: var(--glow-turq);
}

.field-input.error { border-color: #ff6b6b; }

.field-error {
  font-size: 0.78rem;
  color: #ff6b6b;
  display: none;
}
.field-error.show { display: block; }

.form-disclaimer {
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

/* ── DARK BANNER ──────────────────────────── */
.banner-dark {
  background: var(--bg2);
  padding: 60px 0;
  text-align: center;
}

.banner-text {
  font-family: var(--font-head);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  color: var(--turq);
  line-height: 1.8;
  max-width: 860px;
  margin-inline: auto;
}

/* ── VISIÓN SECTION ───────────────────────── */
.section-vision {
  background: var(--bg);
  padding: 80px 0;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: stretch;
}

.vision-image {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel2);
  position: relative;
  min-height: 100%;
  border: 1px solid var(--border);
}

.vision-image img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vision-image.img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel2);
  min-height: 400px;
}

.vision-content { display: flex; flex-direction: column; gap: 24px; justify-content: space-between; padding-block: 10px; }

.section-title-dark {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}

.vision-content p {
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.8;
  font-style: italic;
}

/* ── BLOG PREVIEW ─────────────────────────── */
.section-blog-preview {
  background: var(--bg2);
  padding: 60px 0;
}

.blog-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  max-width: 860px;
  margin-inline: auto;
  box-shadow: 0 15px 45px rgba(0,0,0,0.3);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,214,201,0.4);
  box-shadow: 0 22px 60px rgba(0,0,0,0.4), 0 0 24px rgba(0,214,201,0.12);
}

.blog-card-title {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 10px;
}

.blog-card-excerpt {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.blog-card-image {
  width: 200px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-image.img-fallback {
  height: 200px;
  background: var(--panel2);
}

/* ── 10 PROPUESTAS ─────────────────────────── */
.section-propuestas {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(0,214,201,0.06) 0%, transparent 70%);
  padding: 80px 0;
  position: relative;
}

.propuestas-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--turq);
  text-align: center;
  margin-bottom: 8px;
}

.propuestas-subtitle {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.propuestas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.eje-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.eje-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0,214,201,0.4);
  box-shadow: 0 22px 55px rgba(0,0,0,0.4), 0 0 24px rgba(0,214,201,0.1);
}

.eje-img-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 21/9;
  background: rgba(255,255,255,0.04);
}

.eje-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.eje-card:hover .eje-img-wrap img { transform: scale(1.04); }

.eje-img-wrap.img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,214,200,0.08);
}

.eje-body { padding: 0 4px 4px; }

.eje-label {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--turq);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.eje-arrow {
  font-size: 1rem;
  transition: transform var(--transition);
}
.eje-card:hover .eje-arrow { transform: translateX(4px); }

.eje-desc {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* ── SECTION RESULTADOS (CTA encuesta) ─────── */
.section-resultados {
  background: var(--bg2);
  background-image:
    radial-gradient(ellipse 70% 90% at 50% 0%, rgba(0,214,201,0.10) 0%, transparent 70%);
  padding: 90px 0;
  text-align: center;
  border-top: 1px solid rgba(0,214,201,0.12);
  border-bottom: 1px solid rgba(0,214,201,0.12);
}

.section-resultados-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 760px;
}

.badge-encuesta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turq2);
  padding: 9px 20px;
  border-radius: 50px;
  border: 1px solid rgba(0,214,201,0.35);
  background: rgba(0,214,201,0.06);
}
.badge-encuesta::before, .badge-encuesta::after {
  content: '';
  width: 26px; height: 2px;
  background: var(--turq);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0,214,201,0.8);
}

.resultados-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  color: var(--text);
  line-height: 1.15;
}

.resultados-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
}

.btn-resultados {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  padding: 16px 40px;
  border-radius: 50px;
  background: var(--grad-turq);
  color: #071013;
  box-shadow: var(--glow-turq);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-resultados:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(0,214,201,0.6);
}

/* ── WHATSAPP CTA ─────────────────────────── */
.section-wa {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}

.section-wa-bg {
  position: absolute;
  inset: 0;
}

.section-wa-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.section-wa-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,16,19,0.72), rgba(7,16,19,0.85));
}

.section-wa-content {
  position: relative;
  z-index: 1;
}

/* ── FOOTER ───────────────────────────────── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.social-link {
  color: var(--muted);
  transition: color var(--transition), transform var(--transition);
  display: inline-flex;
}
.social-link:hover { color: var(--turq); transform: translateY(-2px); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0 !important;
}

.footer-portrait {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}

.footer-portrait img {
  width: auto;
  max-width: 100%;
  max-height: 350px;
  object-fit: contain;
  object-position: bottom;
}

.contact-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-field { display: flex; flex-direction: column; gap: 6px; }

.contact-field label {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 6px;
  font-family: var(--font-head);
}

.contact-field input,
.contact-field textarea {
  background: var(--panel2);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  padding: 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: all var(--transition);
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--turq);
  background: var(--panel);
  box-shadow: var(--glow-turq);
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.btn-contact {
  width: 100%;
  min-height: 44px;
  background: var(--grad-turq);
  color: #071013;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: var(--glow-turq);
  transition: transform var(--transition), box-shadow var(--transition);
  margin-top: 10px;
}

.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(0,214,201,0.55);
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr 380px; gap: 32px; }
  .propuestas-grid { gap: 22px; }
}

@media (max-width: 800px) {
  .hero-content { grid-template-columns: 1fr; padding-bottom: 40px; }
  .hero-text { display: none; }
  .hero { min-height: 100svh; align-items: center; justify-content: center; }
  .hero-content { justify-items: center; padding-top: 20px; }
  .hero-form-card { width: 100%; max-width: 400px; }

  .vision-grid { grid-template-columns: 1fr; gap: 32px; }
  .vision-image { aspect-ratio: 4/3; }

  .blog-card { grid-template-columns: 1fr; padding: 32px 28px; }
  .blog-card-image { width: 100%; }
  .blog-card-image img { height: 180px; }

  .propuestas-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-portrait { order: -1; }
  .footer-portrait img { max-width: 220px; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(7, 16, 19, 0.97);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: flex;
  }
  .nav-link {
    font-size: 1.4rem;
    color: var(--text) !important;
  }
  .nav-link-cta { color: var(--turq2) !important; }
  .nav-toggle { display: flex; z-index: 1001; }
  .nav-toggle span { background: var(--text); }
}

@media (max-width: 480px) {
  .hero-form-card { padding: 20px 18px; }
  .btn-wa-pill { font-size: 1.1rem; padding: 16px 32px; }
  .btn-resultados { font-size: 1rem; padding: 16px 28px; width: 100%; }
  .blog-card { padding: 28px 20px; }
  .section-resultados { padding: 70px 0; }
}

/* ── ACCESIBILIDAD: respetar prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-text, .hero-form-card, .libro-hero-cover { opacity: 1 !important; }
}

/* ============================================================
   SECCIÓN EL LIBRO ("Entre el Coaching y el Espíritu")
   ============================================================ */

/* ── Botón secundario fantasma ── */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 32px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--turq);
  background: rgba(0, 214, 201, 0.08);
}

/* ── HERO del libro ── */
.libro-hero .hero-content { align-items: center; }
.libro-hero .hero-img { object-position: center; }

.libro-hero-lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
  margin-top: 18px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.libro-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.libro-hero-cover {
  position: relative;
  width: fit-content;
  margin-inline: auto;
  opacity: 0;
  animation: slideInRight 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.libro-hero-cover img {
  width: 100%;
  max-width: 320px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), var(--glow-turq);
}

.libro-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--turq2);
  padding: 8px 16px;
  border-radius: 50px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

/* ── Chips ── */
.libro-chips-section { background: var(--bg2); padding: 40px 0; }
.libro-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.libro-chip {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  padding: 11px 22px;
  border-radius: 50px;
  border: 1px solid rgba(0, 214, 201, 0.3);
  background: rgba(0, 214, 201, 0.06);
}

/* ── Sección "El libro es solo el comienzo" (combo 12 meses) ── */
.libro-incluye-section { background: var(--bg2); padding: 80px 0; }
.libro-incluye-head { text-align: center; margin-bottom: 8px; }
.libro-incluye-head .badge-encuesta { margin-bottom: 18px; }

/* ── Grilla de cards del libro ── */
.libro-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.libro-card-grid--3 { grid-template-columns: repeat(3, 1fr); }

.libro-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.libro-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 214, 201, 0.4);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.4), 0 0 24px rgba(0, 214, 201, 0.1);
}
.libro-card-icon { font-size: 2rem; line-height: 1; }
.libro-card-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--turq);
}
.libro-card-text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Temas (tags) ── */
.libro-temas-section { background: var(--bg2); padding: 80px 0; }
.libro-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 820px;
  margin-inline: auto;
}
.libro-tag {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  background: var(--panel2);
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
}
.libro-tag:hover { color: var(--turq); border-color: var(--turq); transform: translateY(-2px); }

/* ── Texto introductorio centrado ── */
.libro-intro {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

/* ── Video destacado de Leonardo ── */
.libro-video-section { background: var(--bg); padding: 80px 0; }
.libro-video-feature {
  max-width: 400px;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45), var(--glow-turq);
  background: #000;
}
.libro-video { width: 100%; height: 100%; display: block; background: #000; object-fit: cover; }
.libro-video-feature .libro-video { aspect-ratio: 9 / 16; }

/* ── Galería 3 videos formación ── */
.libro-formacion-section { background: var(--bg2); }
.libro-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.libro-video-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.libro-video-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 214, 201, 0.4);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
}
.libro-video-card .libro-video { aspect-ratio: 9 / 16; }

/* ── Comunidad ── */
.libro-comunidad-section { background: var(--bg); padding: 80px 0; }

/* ── Checklist del CTA final ── */
.libro-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  margin: 6px auto 10px;
  text-align: left;
}
.libro-check {
  position: relative;
  padding-left: 30px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.libro-check::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  background: var(--turq);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── BANNER del libro en Inicio ── */
.banner-libro { background: var(--bg); padding: 36px 0; }
.banner-libro-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--grad-card);
  border: 1px solid rgba(0, 214, 201, 0.3);
  border-radius: var(--radius);
  padding: 26px 32px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35), 0 0 24px rgba(0, 214, 201, 0.08);
}
.banner-libro-cover {
  width: 86px;
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.banner-libro-body { flex: 1; min-width: 0; }
.banner-libro-kicker {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turq2);
  margin-bottom: 4px;
}
.banner-libro-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--text);
  line-height: 1.15;
}
.banner-libro-text {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 4px;
}
.banner-libro .btn-dark { flex-shrink: 0; }

/* ── MODAL GLASSMORPHISM ── */
.glass-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(7, 16, 19, 0.7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.glass-modal-backdrop[hidden] { display: none; }

.glass-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 28px 24px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), var(--glow-turq);
}
.glass-modal::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 214, 201, 0.5), rgba(0, 214, 201, 0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.glass-modal-head { margin-bottom: 22px; padding-right: 28px; }
.glass-modal-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.glass-modal-sub { font-size: 0.92rem; color: var(--muted); line-height: 1.5; }
.glass-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: color var(--transition), background var(--transition);
}
.glass-modal-close:hover { color: var(--turq); background: rgba(0, 214, 201, 0.1); }

@media (prefers-reduced-motion: no-preference) {
  .glass-modal { animation: modalIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

/* ── RESPONSIVE: sección El Libro ── */
@media (max-width: 1024px) {
  .libro-card-grid, .libro-card-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  /* En el hero del libro SÍ mostramos texto + portada (no como el hero presidencial) */
  .libro-hero .hero-text { display: block; }
  .libro-hero .hero-content { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .libro-hero-lead { margin-inline: auto; }
  .libro-hero-cta { justify-content: center; }
  .libro-hero-cover { order: -1; }
  .libro-hero .hero-title { letter-spacing: 2px; }

  .libro-card-grid, .libro-card-grid--3 { grid-template-columns: 1fr; }
  .libro-video-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .libro-checklist { grid-template-columns: 1fr; max-width: 320px; }

  .banner-libro-inner { flex-direction: column; text-align: center; }
  .banner-libro-body { text-align: center; }
}

@media (max-width: 480px) {
  .libro-hero-cta .btn-resultados,
  .libro-hero-cta .btn-ghost { width: 100%; }
  .glass-modal { padding: 26px 20px 20px; }
  .glass-modal-title { font-size: 1.3rem; }
}
