/* =====================================================================
 * Cristina Lahoz — cristinalahoz.com
 * Stylesheet principal — sistema de diseño editorial, light-mode.
 * v1.0 · Mayo 2026
 * ===================================================================== */

/* =====================================================================
 * 1 · TIPOGRAFÍAS LOCALES
 * ===================================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/PlusJakartaSans-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/PlusJakartaSans-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* =====================================================================
 * 2 · TOKENS DE DISEÑO
 * Paleta, tipografía, espaciado, radios, sombras, movimiento.
 * ===================================================================== */

:root {
  /* Paleta de marca */
  --deep-night:   #221F45;
  --fresh-mind:   #C6DBA8;
  --royal-purple: #8856DE;
  --bright-flow:  #C69ED8;

  /* Superficies neutrales — nunca blanco puro, nunca cálido */
  --surface:        #FAFAFB;
  --surface-sunk:   #F5F5F7;
  --surface-mint:   #E7EFD7;
  --hairline:       #E6E6EC;
  --hairline-soft:  #EFEFF3;
  --accent-wash:    #F1E8FB;

  /* Escala de tinta */
  --ink-900: #221F45;
  --ink-700: #3C3A5E;
  --ink-500: #6B6A85;
  --ink-400: #8E8DA3;

  /* Foreground semántico */
  --fg-1:       var(--ink-900);
  --fg-2:       var(--ink-700);
  --fg-3:       var(--ink-500);
  --fg-on-night: #F5F5F7;
  --accent:     var(--royal-purple);

  /* Tipografía */
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-sans:    'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-util:    'Poppins', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Escala tipográfica */
  --t-hero:    clamp(52px, 7.5vw, 100px);
  --t-h1:      clamp(40px, 5vw, 72px);
  --t-h2:      clamp(28px, 3.4vw, 50px);
  --t-h3:      clamp(20px, 2vw, 28px);
  --t-body:    16px;
  --t-lead:    19px;
  --t-meta:    13px;
  --t-eyebrow: 11px;

  /* Espaciado — base 4px */
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(20px, 4.5vw, 72px);

  /* Radios */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-2xl:  32px;
  --r-pill: 999px;

  /* Sombras — monocromáticas, sin color */
  --shadow-1: 0 1px 0 rgba(34,31,69,.04), 0 1px 3px rgba(34,31,69,.06);
  --shadow-2: 0 2px 4px rgba(34,31,69,.05), 0 8px 28px rgba(34,31,69,.09);
  --ring-focus: 0 0 0 3px rgba(136,86,222,.28);

  /* Movimiento */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-2: 220ms;
  --dur-3: 340ms;
}

/* =====================================================================
 * 3 · RESET + BASE
 * ===================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--surface);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.6;
}

::selection {
  background: var(--fresh-mind);
  color: var(--deep-night);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--dur-2) var(--ease-out);
}

button { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
}

/* =====================================================================
 * 4 · UTILIDADES
 * ===================================================================== */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Accesibilidad — contenido solo para lectores de pantalla / GEO */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Eyebrow — etiqueta de sección en uppercase con guión */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
  flex-shrink: 0;
}

.eyebrow-light { color: var(--fresh-mind); }
.eyebrow-mint  { color: var(--deep-night); opacity: 0.7; }

/* --------- Botones --------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  transition: filter var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
  outline-offset: 4px;
}

.btn:hover               { filter: brightness(0.94); transform: translateY(-1px); }
.btn:focus-visible       { box-shadow: var(--ring-focus); outline: none; }

.btn-primary             { background: var(--deep-night); color: var(--fg-on-night); border-color: var(--deep-night); padding: 13px 26px; }
.btn-secondary           { background: transparent; color: var(--deep-night); border-color: var(--deep-night); padding: 13px 26px; }
.btn-ghost               { background: transparent; color: var(--deep-night); border-color: transparent; padding: 13px 16px; }
.btn-on-night-primary    { background: var(--fresh-mind); color: var(--deep-night); border-color: var(--fresh-mind); padding: 13px 26px; }
.btn-on-night-secondary  { background: transparent; color: var(--fg-on-night); border-color: rgba(245,245,247,.35); padding: 13px 26px; }

.btn-sm { font-size: 14px; padding: 9px 18px; }
.btn-lg { font-size: 16px; padding: 16px 34px; }

/* --------- Chips --------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--hairline);
  color: var(--fg-2);
  font-family: var(--font-util);
}

.chip-mint {
  background: var(--surface-mint);
  border-color: transparent;
  color: var(--deep-night);
}

/* --------- Scroll animations --------- */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

.stagger-1 { transition-delay: 0ms; }
.stagger-2 { transition-delay: 90ms; }
.stagger-3 { transition-delay: 180ms; }
.stagger-4 { transition-delay: 270ms; }

/* =====================================================================
 * 5 · NAVEGACIÓN FIJA
 * ===================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}

/* Fondo transparente sobre el hero oscuro — texto claro */
.nav.nav-over-dark .nav-links a { color: rgba(245,245,247,.88); }
.nav.nav-over-dark .nav-hamburger span { background: var(--fg-on-night); }

/* Scrolled — fondo sólido + hairline */
.nav.scrolled {
  background: var(--surface);
  box-shadow: 0 1px 0 var(--hairline);
}
.nav.scrolled .nav-links a { color: var(--fg-1); opacity: .78; }
.nav.scrolled .nav-links a:hover { opacity: 1; }
.nav.scrolled .nav-hamburger span { background: var(--fg-1); }

.nav-logo img { width: 200px; height: 50px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--fg-1);
  opacity: .78;
  transition: opacity var(--dur-2) var(--ease-out);
}

.nav-cta { display: flex; align-items: center; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: transparent;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--fg-1);
  border-radius: 2px;
  transition: all var(--dur-2) var(--ease-out);
}

/* Menú móvil */
.nav-mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--deep-night);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  transform: translateX(100%);
  transition: transform var(--dur-3) var(--ease-out);
}

.nav-mobile-menu.open { transform: translateX(0); }

.nav-mobile-close {
  position: absolute;
  top: 20px;
  right: var(--gutter);
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--fg-on-night);
}

.nav-mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 600;
  color: var(--fg-on-night);
  letter-spacing: -0.015em;
  text-decoration: none;
  opacity: .88;
  transition: opacity var(--dur-2) var(--ease-out);
}

.nav-mobile-menu a:hover { opacity: 1; }

/* Dropdown de Servicios en la navegación */
.nav-links .nav-dropdown { position: relative; }
.nav-links .nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--dur-2) var(--ease-out);
  opacity: .6;
}
.nav-links .nav-dropdown:hover > a::after,
.nav-links .nav-dropdown:focus-within > a::after { transform: translateY(0) rotate(225deg); }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 12px;
  transform: translateX(-50%) translateY(6px);
  min-width: 264px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(34, 31, 69, .14);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility var(--dur-2) var(--ease-out);
  z-index: 110;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-links .nav-dropdown:hover .nav-dropdown-menu,
.nav-links .nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu li { width: 100%; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  color: var(--fg-1) !important;
  opacity: 1 !important;
  transition: background var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.nav-dropdown-menu a:hover {
  background: var(--surface-sunk);
  color: var(--royal-purple) !important;
}

/* Submenú de Servicios en el menú móvil */
.nav-mobile-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}
.nav-mobile-menu a.nav-mobile-sublink {
  font-size: clamp(15px, 3.4vw, 18px);
  font-weight: 500;
  opacity: .66;
}
.nav-mobile-menu a.nav-mobile-sublink:hover { opacity: .95; }

/* =====================================================================
 * 6 · HERO — Imagen de fondo, gradiente, texto superpuesto
 * ===================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background-image: url('../assets/hero-web-cristinalahoz.png');
  background-size: cover;
  background-position: center 15%;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 120px;   /* espacio para nav */
  padding-bottom: var(--sp-20);
}

/* Gradiente oscuro — protege el texto con autoridad */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(34, 31, 69, 0.18) 0%,
      rgba(34, 31, 69, 0.45) 40%,
      rgba(34, 31, 69, 0.85) 75%,
      rgba(34, 31, 69, 0.94) 100%
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-eyebrow {
  margin-bottom: var(--sp-5);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--t-hero);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--fg-on-night);
  text-wrap: balance;
  margin-bottom: var(--sp-6);
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--fresh-mind);
}

.hero-lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: rgba(245, 245, 247, .82);
  max-width: 580px;
  margin-bottom: var(--sp-10);
}

.hero-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-12);
}

/* Estadísticas credenciales en la base del hero */
.hero-stats {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 var(--sp-6);
  border-right: 1px solid rgba(245,245,247,.18);
}

.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child  { border-right: none; }

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--fresh-mind);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(245,245,247,.55);
  font-family: var(--font-util);
  line-height: 1.3;
}

/* =====================================================================
 * 7 · TICKER DE CREDENCIALES
 * ===================================================================== */

.ticker-band {
  background: var(--deep-night);
  padding: 13px 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 32s linear infinite;
}

.ticker-band:hover .ticker-track { animation-play-state: paused; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fresh-mind);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 var(--sp-8);
  font-family: var(--font-util);
}

.ticker-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--royal-purple);
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================================================================
 * 8 · BASE DE SECCIÓN — padding, fondos alternativos
 * ===================================================================== */

.section        { padding: var(--sp-20) 0; }
.section-sunk   { background: var(--surface-sunk); }
.section-mint   { background: var(--surface-mint); }
.section-night  { background: var(--deep-night); color: var(--fg-on-night); }

.section-h2 {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--fg-1);
  text-wrap: balance;
  max-width: 640px;
}

.section-h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.section-lead {
  font-size: 17px;
  color: var(--fg-2);
  line-height: 1.6;
  max-width: 520px;
  margin-top: var(--sp-5);
}

/* =====================================================================
 * 9 · SECCIÓN DE DOLOR — ¿Te suena?
 * ===================================================================== */

.pain-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: end;
  margin-bottom: var(--sp-12);
}

.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.pain-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--royal-purple);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}

.pain-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.pain-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--fg-1);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: var(--sp-2);
}

.pain-card-desc {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.6;
}

/* =====================================================================
 * 10 · SERVICIOS — Portafolio de entrada múltiple
 * ===================================================================== */

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-8);
  margin-bottom: var(--sp-12);
  flex-wrap: wrap;
}

/* Fila 1: 1fr (Diagnóstico) + 2fr (DME estrella) */
.services-grid-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

/* Fila 2: 1fr (Medición) + 1fr (IA) */
.services-grid-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

/* DME — Servicio estrella: borde Royal Purple */
.service-card.star {
  border: 2px solid var(--royal-purple);
}

.star-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(136,86,222,.2);
}

.service-card-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-family: var(--font-util);
}

.service-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.2;
  color: var(--fg-1);
  text-wrap: balance;
}

.service-card-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  flex: 1;
}

.service-divider {
  border: none;
  height: 1px;
  background: var(--hairline);
}

.service-card-for {
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.5;
}

.service-card-for strong {
  font-weight: 600;
  color: var(--fg-2);
}

/* Mención del Método CALMA dentro del DME */
.service-calma-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.service-calma-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.service-card-cta { margin-top: auto; }

/* =====================================================================
 * 11 · MANIFIESTO — Pull quote editorial
 * ===================================================================== */

.manifesto-section { position: relative; overflow: hidden; }

.manifesto-inner {
  max-width: 900px;
}

.manifesto-blockquote {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 62px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.018em;
  color: var(--deep-night);
  text-wrap: balance;
  margin: var(--sp-6) 0 var(--sp-8);
}

.manifesto-blockquote .quote-mark {
  color: var(--accent);
}

.manifesto-blockquote em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.manifesto-attribution {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.manifesto-attribution img {
  height: 26px;
  width: auto;
  opacity: .9;
}

.manifesto-attribution span {
  font-size: 14px;
  color: var(--ink-700);
}

/* =====================================================================
 * 12 · AUTORIDAD — Banda de credenciales en Deep Night
 * ===================================================================== */

.authority-band {
  background: var(--deep-night);
  padding: var(--sp-12) 0;
}

.authority-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  position: relative;
}

.authority-sep {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 48px;
  background: rgba(245,245,247,.12);
}

.authority-sep:nth-child(1) { left: 50%; }

.authority-item {
  text-align: center;
  padding: var(--sp-4) var(--sp-8);
}

.authority-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--fresh-mind);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.authority-label {
  font-size: 13px;
  color: rgba(245,245,247,.5);
  font-family: var(--font-util);
  line-height: 1.4;
}

/* =====================================================================
 * 13 · SOBRE MÍ — Perfil humanizado
 * ===================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: var(--sp-16);
  align-items: center;
}

.about-portrait img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--r-2xl);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-1);
}

.about-eyebrow {
  display: inline-flex;
  margin-bottom: var(--sp-5);
}

.about-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--fg-1);
  text-wrap: balance;
  margin-bottom: var(--sp-6);
}

.about-body {
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: var(--sp-8);
}

.about-body p + p { margin-top: var(--sp-4); }

.about-body strong {
  font-weight: 600;
  color: var(--fg-1);
}

.about-tags {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

/* =====================================================================
 * 14 · CTA FINAL — Contacto / Formulario
 * ===================================================================== */

.cta-section {
  position: relative;
  overflow: hidden;
  padding: var(--sp-20) 0;
}

.cta-wave {
  position: absolute;
  top: 40px;
  right: -40px;
  opacity: .2;
  pointer-events: none;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-20);
  align-items: center;
}

.cta-eyebrow { margin-bottom: var(--sp-5); }

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 66px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: var(--fg-on-night);
  text-wrap: balance;
  margin-bottom: var(--sp-6);
}

.cta-headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--fresh-mind);
}

.cta-sublead {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(245,245,247,.74);
  max-width: 440px;
  margin-bottom: var(--sp-10);
}

.cta-contact-meta {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(245,245,247,.5);
}

.cta-email {
  font-family: var(--font-mono);
  color: var(--fresh-mind);
  font-size: 13px;
}

/* Formulario */
.contact-form-wrap {
  background: rgba(245,245,247,.04);
  border: 1px solid rgba(245,245,247,.12);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
}

.form-group { margin-bottom: var(--sp-4); }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(245,245,247,.68);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  background: rgba(245,245,247,.05);
  border: 1px solid rgba(245,245,247,.16);
  border-radius: var(--r-md);
  color: var(--fg-on-night);
  outline: none;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}

.form-input::placeholder,
.form-textarea::placeholder { color: rgba(245,245,247,.28); }

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(198,219,168,.55);
  box-shadow: 0 0 0 3px rgba(198,219,168,.12);
}

.form-textarea { resize: vertical; min-height: 96px; }

select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(245,245,247,.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
select.form-input:invalid { color: rgba(245,245,247,.28); }

.form-submit {
  width: 100%;
  margin-top: var(--sp-5);
  background: var(--fresh-mind);
  color: var(--deep-night);
  border: none;
  border-radius: var(--r-pill);
  padding: 15px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: filter var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}

.form-submit:hover { filter: brightness(.94); transform: translateY(-1px); }

.form-privacy {
  margin-top: var(--sp-4);
  font-size: 12px;
  color: rgba(245,245,247,.38);
  text-align: center;
  line-height: 1.5;
}

/* Estado de éxito */
.form-success {
  display: none;
  text-align: center;
  padding: var(--sp-12) 0;
}
.form-success.active { display: block; }

.form-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fresh-mind);
  color: var(--deep-night);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-5);
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--fg-on-night);
  margin-bottom: var(--sp-2);
}

.form-success p {
  font-size: 15px;
  color: rgba(245,245,247,.62);
}

/* CTA alternativo — lead magnet */
.cta-alt {
  border-top: 1px solid rgba(245,245,247,.08);
  padding-top: var(--sp-8);
  margin-top: var(--sp-8);
}

.cta-alt-label {
  font-size: 14px;
  color: rgba(245,245,247,.55);
  margin-bottom: var(--sp-4);
}

/* =====================================================================
 * 14b · QUIZ POPUP
 * ===================================================================== */

.quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(34, 31, 69, .72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-3) var(--ease-out), visibility var(--dur-3) var(--ease-out);
}

.quiz-overlay.active {
  opacity: 1;
  visibility: visible;
}

.quiz-modal {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-2xl);
  box-shadow: 0 24px 80px rgba(34, 31, 69, .24);
  max-width: 560px;
  width: calc(100% - 40px);
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--sp-10) var(--sp-8);
}

.quiz-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--ink-400);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--r-sm);
  transition: color var(--dur-2) var(--ease-out);
}

.quiz-close:hover { color: var(--fg-1); }

/* Screens */
.quiz-screen {
  display: none;
  text-align: center;
}

.quiz-screen.active { display: block; }

/* Intro */
.quiz-title {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 600;
  color: var(--fg-1);
  margin-bottom: var(--sp-3);
}

.quiz-subtitle {
  font-size: 15px;
  color: var(--fg-3);
  margin-bottom: var(--sp-8);
}

.quiz-btn-start {
  background: var(--royal-purple);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  padding: 14px 36px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}

.quiz-btn-start:hover { filter: brightness(.9); transform: translateY(-1px); }

/* Progress */
.quiz-progress {
  font-family: var(--font-util);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--royal-purple);
  margin-bottom: var(--sp-5);
}

/* Questions */
.quiz-question {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 600;
  color: var(--fg-1);
  line-height: 1.3;
  margin-bottom: var(--sp-6);
}

/* Options */
.quiz-options {
  display: grid;
  gap: var(--sp-3);
  text-align: left;
}

.quiz-option {
  background: var(--surface-sunk);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-2);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}

.quiz-option:hover {
  border-color: var(--royal-purple);
  background: var(--accent-wash);
  color: var(--fg-1);
}

/* Back button */
.quiz-back {
  display: inline-block;
  margin-top: var(--sp-5);
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--fg-3);
  cursor: pointer;
  transition: color var(--dur-2) var(--ease-out);
}

.quiz-back:hover { color: var(--fg-1); }

/* Result */
.quiz-result-badge {
  font-family: var(--font-util);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--royal-purple);
  margin-bottom: var(--sp-3);
}

.quiz-result-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  color: var(--fg-1);
  margin-bottom: var(--sp-4);
}

.quiz-result-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 440px;
  margin: 0 auto var(--sp-6);
}

.quiz-btn-cta {
  display: inline-block;
  background: var(--royal-purple);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 13px 32px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: filter var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
  margin-bottom: var(--sp-8);
}

.quiz-btn-cta:hover { filter: brightness(.9); transform: translateY(-1px); }

/* Email capture */
.quiz-email-capture {
  border-top: 1px solid var(--hairline);
  padding-top: var(--sp-6);
  margin-top: var(--sp-2);
}

.quiz-email-label {
  font-size: 13px;
  color: var(--fg-3);
  margin-bottom: var(--sp-3);
}

.quiz-email-row {
  display: flex;
  gap: var(--sp-2);
  max-width: 380px;
  margin: 0 auto;
}

.quiz-email-input {
  flex: 1;
  font-family: inherit;
  font-size: 14px;
  padding: 10px 14px;
  background: var(--surface-sunk);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  color: var(--fg-1);
  outline: none;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}

.quiz-email-input:focus {
  border-color: var(--royal-purple);
  box-shadow: var(--ring-focus);
}

.quiz-email-input::placeholder { color: var(--ink-400); }

.quiz-email-submit {
  background: var(--fresh-mind);
  color: var(--deep-night);
  border: none;
  border-radius: var(--r-md);
  padding: 10px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: filter var(--dur-2) var(--ease-out);
}

.quiz-email-submit:hover { filter: brightness(.94); }

.quiz-email-success {
  display: none;
  font-size: 13px;
  color: var(--royal-purple);
  margin-top: var(--sp-3);
}

.quiz-email-success.active { display: block; }

/* Mobile fullscreen */
@media (max-width: 640px) {
  .quiz-modal {
    max-width: 100%;
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    padding: var(--sp-8) var(--sp-5);
  }
}

/* =====================================================================
 * 15 · FOOTER
 * ===================================================================== */

.footer {
  background: #131127; /* Tono más oscuro que --deep-night para contraste visual con la sección CTA */
  color: var(--fg-on-night);
  padding: var(--sp-20) 0 var(--sp-10);
  border-top: 2px solid rgba(198, 219, 168, 0.3); /* Separador más visible con --fresh-mind */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  align-items: start;
  margin-bottom: var(--sp-16);
}

.footer-brand img {
  width: 200px;
  height: 50px;
  margin-bottom: var(--sp-6);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(245,245,247,.58);
  max-width: 300px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fresh-mind);
  margin-bottom: var(--sp-5);
  font-family: var(--font-util);
}

.footer-links {
  list-style: none;
  display: grid;
  gap: var(--sp-3);
}

.footer-links a {
  font-size: 14px;
  color: rgba(245,245,247,.72);
  text-decoration: none;
  transition: color var(--dur-2) var(--ease-out);
}

.footer-links a:hover { color: var(--fg-on-night); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(245,245,247,.08);
  font-size: 13px;
  color: rgba(245,245,247,.38);
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
  margin-left: var(--sp-5);
  transition: color var(--dur-2) var(--ease-out);
}
.footer-bottom a:hover { color: rgba(245,245,247,.7); }

/* =====================================================================
 * 16 · RESPONSIVO — Tablet y móvil
 * ===================================================================== */

@media (max-width: 1024px) {
  .pain-intro     { grid-template-columns: 1fr; }
  .about-grid     { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: var(--sp-10); }
  .footer-brand   { grid-column: 1 / -1; }
  .cta-grid       { grid-template-columns: 1fr; gap: var(--sp-12); }
  .cta-sublead    { max-width: 100%; }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta       { display: none; }
  .nav-hamburger { display: flex; }

  .services-grid-top    { grid-template-columns: 1fr; }
  .services-grid-bottom { grid-template-columns: 1fr; }

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

  .authority-inner {
    grid-template-columns: 1fr;
  }

  .authority-sep { display: none; }

  .authority-item {
    padding: var(--sp-5) var(--sp-4);
    border-bottom: 1px solid rgba(245,245,247,.1);
    text-align: left;
  }

  .authority-item:last-child { border-bottom: none; }

  .hero-stats {
    flex-direction: column;
    gap: var(--sp-3);
  }

  .hero-stat {
    padding: 0;
    border-right: none;
    flex-direction: row;
    align-items: center;
    gap: var(--sp-3);
  }

  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-brand { grid-column: 1; }

  .hero { background-size: cover; background-position: 70% center; padding-bottom: var(--sp-16); }
  .hero h1 { font-size: clamp(36px, 9vw, 58px); }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .manifesto-blockquote { font-size: clamp(26px, 7vw, 38px); }
}

/* =====================================================================
 * 17 · BANNER DE CONSENTIMIENTO DE COOKIES (GDPR)
 * ===================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--deep-night);
  border-top: 1px solid rgba(245,245,247,.12);
  box-shadow: 0 -4px 24px rgba(34,31,69,.18);
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-3) var(--ease-out), visibility var(--dur-3) var(--ease-out);
}

.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-6) var(--gutter);
}

.cookie-banner-text {
  margin-bottom: var(--sp-4);
}

.cookie-banner-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-on-night);
  margin-bottom: 6px;
}

.cookie-banner-desc {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(245,245,247,.6);
}

.cookie-banner-desc a {
  color: var(--fresh-mind);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-2);
}

.cookie-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: var(--r-pill);
  padding: 9px 18px;
  cursor: pointer;
  transition: filter var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}

.cookie-btn:hover { filter: brightness(.92); transform: translateY(-1px); }

.cookie-btn-accept {
  background: var(--fresh-mind);
  color: var(--deep-night);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--fg-on-night);
  border: 1px solid rgba(245,245,247,.25);
}

.cookie-btn-manage {
  background: transparent;
  color: rgba(245,245,247,.6);
  border: 1px solid transparent;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-btn-save {
  background: var(--royal-purple);
  color: #fff;
  margin-top: var(--sp-3);
}

/* Panel de preferencias */
.cookie-prefs {
  display: none;
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(245,245,247,.08);
  margin-top: var(--sp-4);
}

.cookie-prefs.active { display: block; }

.cookie-pref-row {
  padding: var(--sp-2) 0;
}

.cookie-pref-label {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 13px;
  color: rgba(245,245,247,.7);
  line-height: 1.5;
  cursor: pointer;
}

.cookie-pref-label strong {
  color: var(--fg-on-night);
  font-weight: 600;
}

.cookie-pref-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--royal-purple);
  flex-shrink: 0;
}

/* Página legal — estilos comunes */
.legal-page { padding: calc(64px + var(--sp-12)) 0 var(--sp-20); }
.legal-page .container { max-width: 800px; }
.legal-page h1 { font-family: var(--font-display); font-size: var(--t-h2); font-weight: 600; letter-spacing: -0.018em; color: var(--fg-1); margin-bottom: var(--sp-8); }
.legal-page h2 { font-family: var(--font-display); font-size: var(--t-h3); font-weight: 600; color: var(--fg-1); margin-top: var(--sp-10); margin-bottom: var(--sp-4); }
.legal-page h3 { font-size: 17px; font-weight: 600; color: var(--fg-1); margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.legal-page p, .legal-page li { font-size: 15px; line-height: 1.7; color: var(--fg-2); }
.legal-page p + p { margin-top: var(--sp-3); }
.legal-page ul, .legal-page ol { margin: var(--sp-3) 0; padding-left: var(--sp-6); }
.legal-page li + li { margin-top: var(--sp-2); }
.legal-page a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-page .legal-update { font-size: 13px; color: var(--fg-3); margin-bottom: var(--sp-8); }
