/* =============================================================
   IC EDUSOLUTIONS - Portal de Empleo
   Sistema de diseño 2026 · minimalista · mobile-first
   ============================================================= */

:root {
  /* Brand */
  --primary: #2EB2FF;
  --primary-dark: #1a9ae0;
  --primary-darker: #0f7fb8;
  --primary-light: #e8f6ff;
  --primary-soft: #f5fbff;

  /* Neutrals */
  --ink: #0a0e1a;
  --ink-soft: #1a2233;
  --gray-900: #1f2937;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;

  /* Semantic */
  --success: #10b981;
  --success-soft: #d1fae5;
  --warning: #f59e0b;
  --warning-soft: #fef3c7;
  --danger: #ef4444;
  --danger-soft: #fee2e2;
  --info: #3b82f6;
  --info-soft: #dbeafe;

  /* Surfaces */
  --bg: #fafbfc;
  --bg-soft: #f3f6fa;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --border: rgba(10, 14, 26, 0.08);
  --border-strong: rgba(10, 14, 26, 0.14);

  /* Text */
  --text: #0a0e1a;
  --text-soft: #374151;
  --text-muted: #6b7280;

  /* Spacing scale (4px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px;  --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-7: 32px;  --s-8: 40px;
  --s-9: 48px; --s-10: 64px; --s-11: 80px; --s-12: 96px;

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

  /* Shadows con tinte corporativo */
  --shadow-xs: 0 1px 2px rgba(10, 14, 26, 0.04);
  --shadow-sm: 0 2px 6px rgba(10, 14, 26, 0.06), 0 1px 2px rgba(10, 14, 26, 0.04);
  --shadow: 0 6px 20px rgba(10, 14, 26, 0.08), 0 2px 6px rgba(10, 14, 26, 0.04);
  --shadow-lg: 0 20px 40px rgba(10, 14, 26, 0.10), 0 6px 12px rgba(10, 14, 26, 0.06);
  --shadow-primary: 0 10px 30px rgba(46, 178, 255, 0.25), 0 4px 10px rgba(46, 178, 255, 0.15);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transitions */
  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 240ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
  --t-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container: 1180px;
  --container-narrow: 760px;
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0e1a;
    --bg-soft: #0f1424;
    --surface: #131826;
    --surface-elevated: #1a2034;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #f5f7fb;
    --text-soft: #c7cdd9;
    --text-muted: #8b94a7;
    --gray-100: #1f2638;
    --gray-200: #2a3145;
    --gray-300: #3a4256;
    --gray-50: #131826;
    --primary-light: rgba(46, 178, 255, 0.12);
    --primary-soft: rgba(46, 178, 255, 0.06);
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5), 0 6px 12px rgba(0, 0, 0, 0.3);
  }
}

/* =============================================================
   Reset & Base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 3.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: -0.028em; }
#idiomas h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.125rem; }
p { margin: 0; }

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--primary); }

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

button { font: inherit; cursor: pointer; }

ul { padding: 0; margin: 0; list-style: none; }

::selection { background: var(--primary); color: white; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* =============================================================
   Layout
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--s-6);
}

section {
  padding: var(--s-11) 0;
  position: relative;
}
@media (max-width: 720px) {
  section { padding: var(--s-9) 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: var(--r-full);
}
@media (prefers-color-scheme: dark) {
  .eyebrow { color: var(--primary); }
}

/* =============================================================
   Header / Navigation
   ============================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--t-base);
}
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(10, 14, 26, 0.7); }
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-xs);
}
@media (prefers-color-scheme: dark) {
  .site-header.is-stuck { background: rgba(10, 14, 26, 0.92); }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--s-6);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand-logo {
  height: 48px;
  width: auto;
  max-width: 200px;
  display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-7);
}
.nav-links a {
  color: var(--text-soft);
  font-size: 0.94rem;
  font-weight: 500;
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}
.nav-links a.btn,
.nav-links a.btn-primary,
.nav-links a.btn-ghost,
.nav-links a.header-cta {
  color: white !important;
  border-bottom: none !important;
  background: var(--primary) !important;
  padding: 11px 22px !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  font-size: 0.94rem !important;
  letter-spacing: -0.01em !important;
  box-shadow: 0 4px 12px rgba(46, 178, 255, 0.30) !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  height: auto !important;
  min-height: 40px !important;
}
.nav-links a.btn:hover,
.nav-links a.btn-primary:hover,
.nav-links a.header-cta:hover {
  color: white !important;
  background: var(--primary-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(46, 178, 255, 0.40) !important;
}
.nav-links a.btn-ghost { color: var(--text-soft) !important; }
.nav-links a.btn-ghost:hover { color: var(--primary-dark) !important; }

/* CTA del header: mas prominente */
.header-cta {
  font-size: 0.94rem !important;
}
.nav-links a:hover { color: var(--primary-dark); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
.nav-links a:hover::after { transform: scaleX(1); }

/* Hamburguesa (oculta en desktop) */
.nav-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: all var(--t-fast);
}
.nav-toggle:hover { border-color: var(--primary); color: var(--primary-dark); }
.nav-toggle svg { width: 22px; height: 22px; }

.nav-links {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--surface);
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t-base), opacity var(--t-base);
  z-index: 49;
}
.nav-links.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav-links a {
  padding: var(--s-4) 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}
.nav-links a:last-child { border-bottom: none; }
.nav-links a::after { display: none; }
.nav-links .btn {
  margin-top: var(--s-3);
  text-align: center;
}

@media (min-width: 821px) {
  .nav-links {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: var(--s-7) !important;
    padding: 0 !important;
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .nav-links a {
    padding: 0 !important;
    border-bottom: none !important;
  }
  .nav-toggle { display: none !important; }
}

/* =============================================================
   Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 12px 22px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(46, 178, 255, 0.35), 0 6px 12px rgba(46, 178, 255, 0.2);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  color: var(--text-soft);
  border-color: var(--border-strong);
  background: var(--surface);
}
.btn-ghost:hover {
  color: var(--primary-dark);
  border-color: var(--primary);
  background: var(--primary-soft);
}

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* =============================================================
   Hero
   ============================================================= */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--s-10));
  padding-bottom: var(--s-11);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; left: -10%;
  width: 70%; height: 80%;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 60%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .hero::before { background: radial-gradient(circle, rgba(46,178,255,0.18) 0%, transparent 60%); }
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; right: -15%;
  width: 60%; height: 70%;
  background: radial-gradient(circle, rgba(46, 178, 255, 0.10) 0%, transparent 60%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-9);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-8); }
}

.hero h1 { margin-bottom: var(--s-5); }
.hero h1 .grad {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-darker) 50%, #6f5cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 540px;
  margin-bottom: var(--s-7);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-7);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.hero-trust .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-soft);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--success-soft); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

/* Hero card (preview of the form) */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--s-7);
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: rotate(-1deg);
  transition: transform var(--t-slow);
}
.hero-card:hover { transform: rotate(0); }
.hero-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--r-2xl) + 2px);
  background: linear-gradient(135deg, var(--primary), #6f5cff);
  z-index: -1;
  opacity: 0.3;
  filter: blur(20px);
}
.hero-card-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 5px 12px;
  border-radius: var(--r-full);
  margin-bottom: var(--s-4);
}
.hero-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--s-2);
}
.hero-card-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.hero-card-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--bg-soft);
  border-radius: var(--r-md);
  font-size: 0.93rem;
  border: 1px solid var(--border);
}
.hero-card-item .num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.hero-card-item .text { color: var(--text-soft); }
.hero-card-item strong { color: var(--text); }

/* =============================================================
   Stats bar
   ============================================================= */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-6);
  padding: var(--s-7) var(--s-8);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow);
  margin-top: -var(--s-7);
  position: relative;
  z-index: 2;
}
@media (max-width: 720px) {
  .stats-bar { padding: var(--s-5); }
}
.stat {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.stat .num {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--primary-dark);
  line-height: 1;
}
.stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* =============================================================
   Section header
   ============================================================= */
.section-head {
  text-align: center;
  margin-bottom: var(--s-9);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-head.left { text-align: left; margin-left: 0; margin-right: 0; }
.section-head .eyebrow { margin-bottom: var(--s-4); }
.section-head h2 { margin-bottom: var(--s-4); }
.section-head p {
  color: var(--text-soft);
  font-size: 1.08rem;
}

/* =============================================================
   Idioma cards (Inglés, Francés, Alemán, Español)
   ============================================================= */
.idiomas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-5);
}
.idioma-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-7);
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.idioma-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent, var(--primary));
  opacity: 0.6;
  transition: opacity var(--t-base);
}
.idioma-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent, var(--primary));
}
.idioma-card:hover::after { opacity: 1; }
.idioma-card .flag {
  width: 56px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-3);
  overflow: hidden;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 30%, transparent);
}
.idioma-card .flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.idioma-card h3 { margin-bottom: var(--s-2); }
.idioma-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}
.idioma-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.idioma-card .meta-plazas {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.idioma-card .meta strong { color: var(--text); font-size: 1rem; }
.idioma-card .meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
}

/* =============================================================
   How it works (pasos)
   ============================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-6);
  counter-reset: step;
}
.step {
  position: relative;
  padding: var(--s-6) var(--s-5);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--primary);
  opacity: 0.18;
  line-height: 1;
  display: block;
  margin-bottom: var(--s-3);
}
.step h3 { margin-bottom: var(--s-2); font-size: 1.1rem; }
.step p { color: var(--text-soft); font-size: 0.95rem; }

/* =============================================================
   Benefits
   ============================================================= */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-5);
}
.benefit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: all var(--t-base);
}
.benefit:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.benefit-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
}
.benefit-icon svg {
  width: 24px;
  height: 24px;
}
.benefit h3 { font-size: 1.05rem; }
.benefit p { color: var(--text-soft); font-size: 0.93rem; }
.benefit p a {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  transition: color 0.15s;
}
.benefit p a:hover { color: var(--primary-darker); }

/* =============================================================
   FAQ accordion
   ============================================================= */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-base);
}
.faq-item.open { border-color: var(--primary); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-6);
  background: transparent;
  border: none;
  text-align: left;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  cursor: pointer;
  transition: background var(--t-fast);
}
.faq-q:hover { background: var(--bg-soft); }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-base);
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner {
  padding: 0 var(--s-6) var(--s-5);
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* =============================================================
   Questionnaire / Form
   ============================================================= */
.form-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  position: relative;
}
.form-section::before {
  content: '';
  position: absolute;
  top: 10%; left: 50%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 60%);
  filter: blur(80px);
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

.form-wrap {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Progress bar */
.progress {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-6) var(--s-7);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.progress-step {
  flex: 1;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--gray-200);
  position: relative;
  overflow: hidden;
  transition: background var(--t-base);
}
.progress-step.active::before,
.progress-step.done::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: var(--r-full);
  animation: fillIn 400ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.progress-step.done::before {
  animation: none;
  opacity: 1;
}
@keyframes fillIn {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}
.progress-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}
.progress-text strong { color: var(--primary-dark); }

/* Steps */
.form-step {
  display: none;
  padding: var(--s-8) var(--s-7);
  animation: stepIn 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.form-step.active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-head {
  margin-bottom: var(--s-7);
}
.step-head h3 {
  font-size: 1.4rem;
  margin-bottom: var(--s-2);
  letter-spacing: -0.02em;
}
.step-head p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.field {
  margin-bottom: var(--s-5);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: var(--s-2);
}
.field label .req { color: var(--danger); margin-left: 2px; }
.field .hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: var(--s-2);
}

.input, .select, .textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  transition: all var(--t-fast);
  appearance: none;
  -webkit-appearance: none;
}
.input:hover, .select:hover, .textarea:hover {
  border-color: var(--gray-400);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}
.input::placeholder, .textarea::placeholder { color: var(--gray-400); }

.textarea { resize: vertical; min-height: 100px; line-height: 1.5; }

.select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  padding-top: 16px;
  padding-bottom: 16px;
}

/* =============================================================
   Custom dropdown de Zona de Madrid
   ============================================================= */
.zone-select {
  position: relative;
}
.zone-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}
.zone-select-btn:hover { border-color: var(--gray-400); }
.zone-select-btn:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}
.zone-select-value {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zone-select-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.zone-select-btn[aria-expanded="true"] .zone-select-chevron {
  transform: rotate(180deg);
}
.zone-select-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(10, 14, 26, 0.20), 0 6px 14px rgba(10, 14, 26, 0.08);
  max-height: 360px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: zone-pop-in 180ms ease-out;
  transform-origin: top center;
  overflow-anchor: none;
}
.zone-select-panel[hidden] {
  display: none !important;
}
@keyframes zone-pop-in {
  from { opacity: 0; transform: translateY(-4px) scaleY(0.96); }
  to { opacity: 1; transform: translateY(0) scaleY(1); }
}
.zone-select-search {
  flex-shrink: 0;
  margin: 10px 10px 6px;
  padding: 9px 12px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  background: var(--bg-soft);
}
.zone-select-search:focus {
  border-color: var(--primary);
  background: var(--surface);
}
.zone-select-options {
  flex: 1;
  overflow-y: auto;
  padding: 4px 8px 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}
.zone-select-options::-webkit-scrollbar {
  width: 6px;
}
.zone-select-options::-webkit-scrollbar-track {
  background: transparent;
}
.zone-select-options::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 999px;
}
.zone-select-group-label {
  padding: 10px 12px 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.zone-select-option {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 11px 14px;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  font-size: 0.94rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.zone-select-option span {
  color: var(--text-muted);
  font-size: 0.82rem;
}
.zone-select-option:hover,
.zone-select-option.is-focused {
  background: var(--primary-soft);
}
.zone-select-option.is-selected {
  background: var(--primary-light);
  font-weight: 600;
}
.zone-select-option.is-selected span { color: var(--primary-dark); }
.zone-select-option.hidden { display: none; }

.field.error .input,
.field.error .select,
.field.error .textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-soft);
}
.field.error .err {
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: var(--s-2);
  display: flex;
  align-items: center;
  gap: 4px;
}
.field.error label { color: var(--danger); }

/* Choice cards (para idioma, etc.) */
.choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s-3);
}
.choice {
  position: relative;
  cursor: pointer;
}
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-5) var(--s-3);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-soft);
  transition: all var(--t-fast);
  min-height: 92px;
}
.choice:hover .choice-card {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.choice input:checked + .choice-card {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--text);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.choice input:focus-visible + .choice-card {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.choice-card .ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 32px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(10, 14, 26, 0.18);
}
.choice-card .ic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Toggle (yes/no) */
.toggle-row {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.toggle {
  position: relative;
  cursor: pointer;
  flex: 1;
  min-width: 140px;
}
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-5);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  font-weight: 500;
  transition: all var(--t-fast);
}
.toggle:hover .toggle-card { border-color: var(--primary); }
.toggle input:checked + .toggle-card {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-darker);
  font-weight: 600;
}

/* File dropzone */
.dropzone {
  position: relative;
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-xl);
  padding: var(--s-9) var(--s-6);
  text-align: center;
  background: var(--bg-soft);
  cursor: pointer;
  transition: all var(--t-base);
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.dropzone-icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--s-4);
  border-radius: var(--r-full);
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dropzone-icon svg {
  width: 30px;
  height: 30px;
}
.dropzone h4 {
  font-size: 1.05rem;
  margin-bottom: var(--s-2);
}
.dropzone p {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.dropzone .formats {
  display: flex;
  gap: var(--s-2);
  justify-content: center;
  margin-top: var(--s-4);
  flex-wrap: wrap;
}
.format-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.dropzone-preview {
  display: none;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-top: var(--s-4);
}
.dropzone-preview.show { display: flex; }
.dropzone-preview .preview-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dropzone-preview .preview-icon svg {
  width: 24px;
  height: 24px;
}
.dropzone-preview .preview-info {
  flex: 1;
  min-width: 0;
}
.dropzone-preview .preview-name {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dropzone-preview .preview-size {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.dropzone-preview .preview-remove {
  background: var(--danger-soft);
  color: var(--danger);
  border: none;
  border-radius: var(--r-md);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
}
.dropzone-preview .preview-remove:hover {
  background: var(--danger);
  color: white;
}

/* Checkbox */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-fast);
  font-size: 0.93rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.checkbox:hover { border-color: var(--primary); background: var(--primary-soft); }
.checkbox input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.checkbox strong { color: var(--text); }
.checkbox .req { color: var(--danger); margin-left: 2px; }
.checkbox a { color: var(--primary-dark); font-weight: 500; }

/* Navigation buttons */
.form-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-5) var(--s-7);
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.form-nav .spacer { flex: 1; }

.form-status {
  text-align: center;
  padding: var(--s-6);
  font-size: 0.92rem;
  color: var(--text-muted);
  display: none;
}
.form-status.show { display: block; }
.form-status .spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: var(--s-2);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================================
   Cookie banner
   ============================================================= */
.cookie-banner {
  position: fixed;
  bottom: var(--s-5);
  left: var(--s-5);
  right: var(--s-5);
  max-width: 540px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-5) var(--s-6);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: none;
  animation: slideUp 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.show { display: block; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner h4 {
  font-size: 1rem;
  margin-bottom: var(--s-2);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.cookie-banner p {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-bottom: var(--s-4);
  line-height: 1.55;
}
.cookie-banner p a { color: var(--primary-dark); text-decoration: underline; }
.cookie-actions {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.cookie-actions .btn { padding: 9px 16px; font-size: 0.88rem; }
@media (max-width: 480px) {
  .cookie-banner { left: var(--s-3); right: var(--s-3); padding: var(--s-4); }
  .cookie-actions .btn { flex: 1; min-width: 0; }
}

/* =============================================================
   Cookie settings modal
   ============================================================= */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
}
.cookie-modal.open { display: flex; }

.cookie-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: cookie-overlay-in 240ms ease-out;
}
@keyframes cookie-overlay-in { from { opacity: 0; } to { opacity: 1; } }

.cookie-modal-card {
  position: relative;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--r-2xl);
  box-shadow: 0 25px 60px rgba(10, 14, 26, 0.30), 0 8px 18px rgba(10, 14, 26, 0.18);
  max-width: 520px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow: auto;
  animation: cookie-card-in 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cookie-card-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-soft);
  color: var(--text-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  z-index: 2;
}
.cookie-modal-close:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: rotate(90deg);
}

.cookie-modal-header {
  padding: 36px 32px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--primary-soft), var(--surface));
}
.cookie-modal-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.cookie-modal-header h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.cookie-modal-header p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.cookie-modal-body {
  padding: 20px 32px 8px;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.cookie-option:last-child { border-bottom: none; }
.cookie-option-info { flex: 1; min-width: 0; }
.cookie-option-info h4 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-option-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.cookie-option-required {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-darker);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
}

/* Switch (toggle) moderno */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-switch-slider {
  position: absolute;
  inset: 0;
  background: var(--gray-300);
  border-radius: 999px;
  transition: background 0.2s;
}
.cookie-switch-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.cookie-switch input:checked + .cookie-switch-slider {
  background: var(--primary);
}
.cookie-switch input:checked + .cookie-switch-slider::before {
  transform: translateX(20px);
}
.cookie-switch.is-locked {
  cursor: not-allowed;
  opacity: 0.7;
}
.cookie-switch.is-locked .cookie-switch-slider::before {
  transform: translateX(20px);
}
.cookie-switch.is-locked input:checked + .cookie-switch-slider {
  background: var(--primary);
}

.cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--s-3);
  padding: 18px 32px 28px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

@media (max-width: 520px) {
  .cookie-modal-card { border-radius: var(--r-xl); }
  .cookie-modal-header, .cookie-modal-body, .cookie-modal-footer {
    padding-left: 22px;
    padding-right: 22px;
  }
}

/* =============================================================
   Footer
   ============================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--s-10) 0 var(--s-7);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.5;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-8);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}
.footer-brand .footer-logo {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.footer-col h5 {
  color: white;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s-4);
  font-weight: 700;
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--s-2); }
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.93rem;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: var(--s-3);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.7); }
.footer-bottom a:hover { color: var(--primary); }

/* =============================================================
   Reveal on scroll
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   Legal pages
   ============================================================= */
.legal {
  padding: calc(var(--header-h) + var(--s-10)) 0 var(--s-11);
  background: var(--bg);
}
.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: var(--s-3);
}
.legal .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--s-7);
}
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--s-9);
  box-shadow: var(--shadow-sm);
}
.legal-content h2 {
  font-size: 1.3rem;
  margin: var(--s-7) 0 var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}
.legal-content h2:first-of-type {
  margin-top: 0; padding-top: 0; border-top: none;
}
.legal-content h3 {
  font-size: 1.05rem;
  margin: var(--s-5) 0 var(--s-2);
  color: var(--text);
}
.legal-content p, .legal-content li {
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: var(--s-3);
}
.legal-content ul {
  padding-left: var(--s-6);
  list-style: disc;
}
.legal-content ul li { margin-bottom: var(--s-2); }
.legal-content strong { color: var(--text); }
.legal-content a { color: var(--primary-dark); text-decoration: underline; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: var(--s-5);
  transition: color var(--t-fast);
}
.legal-back:hover { color: var(--primary-dark); }

/* =============================================================
   Gracias page
   ============================================================= */
.thanks-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-9) var(--s-6);
  background: radial-gradient(ellipse at top, var(--primary-soft) 0%, var(--bg) 60%);
}

/* Hint de spam: en una sola línea en desktop, permite wrap en móvil */
.thanks-spam-hint {
  color: var(--text-muted);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px auto 0;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
}
.thanks-spam-hint svg { flex-shrink: 0; }
@media (max-width: 640px) {
  .thanks-spam-hint { white-space: normal; font-size: 0.82rem; }
}
.thanks-card {
  max-width: 560px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--s-10) var(--s-8);
  box-shadow: var(--shadow-lg);
}
.thanks-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s-6);
  font-size: 2.2rem;
  animation: pop 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.thanks-card h1 {
  font-size: 2rem;
  margin-bottom: var(--s-4);
}
.thanks-card p {
  color: var(--text-soft);
  margin-bottom: var(--s-6);
  line-height: 1.65;
}
.thanks-card .actions {
  display: flex;
  gap: var(--s-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================================
   Util
   ============================================================= */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0 !important; }