/* ═══════════════════════════════════════════════════════════════════════════
   DataEquipos Chile — Sistema de Diseño v3 "Autoridad de Mercado"
   
   Concepto: Precision industrial meets editorial luxury
   La única encuesta B2B que se siente como una herramienta de clase mundial.
   Cada pixel justifica el tiempo del ejecutivo que la está respondiendo.
   
   Tipografía: Playfair Display (serif dramático) + Plus Jakarta Sans (técnico limpio)
   Paleta: Azul noche profundo · Ámbar ejecutivo · Blanco puro
   Motión: Transiciones con propósito, nunca decorativas
═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* Azules */
  --night:      #070e17;
  --abyss:      #0c1a28;
  --deep:       #0f2236;
  --navy:       #163352;
  --ocean:      #1e4d78;
  --steel:      #2e6fa3;
  --horizon:    #4a8ec2;
  --sky:        #7ab3d4;
  --mist:       #b8d4e8;
  --frost:      #e4eff6;
  --ice:        #f2f7fa;

  /* Ámbar */
  --gold:       #c47b28;
  --amber:      #d98e3a;
  --honey:      #e8a855;
  --cream:      #f5e2c4;
  --parchment:  #fdf6ec;

  /* Neutros */
  --white:      #ffffff;
  --smoke:      #f8fafc;
  --fog:        #f0f4f7;
  --silver:     #dce6ed;
  --slate:      #8ba3b5;
  --iron:       #4a6275;
  --ink:        #1a2d3d;

  /* Semánticos */
  --ok:         #1a7a52;
  --ok-pale:    #e8f5ef;
  --warn:       #9a4e1a;
  --warn-pale:  #fdf0e8;
  --error:      #8b1a1a;

  /* Superficies */
  --surface:        rgba(255, 255, 255, 0.94);
  --surface-pure:   #ffffff;
  --surface-tinted: rgba(228, 239, 246, 0.60);
  --glass-dark:     rgba(7, 14, 23, 0.82);
  --glass-navy:     rgba(15, 34, 54, 0.88);

  /* Bordes */
  --border:      rgba(26, 45, 61, 0.09);
  --border-mid:  rgba(26, 45, 61, 0.15);
  --border-dark: rgba(26, 45, 61, 0.25);
  --border-gold: rgba(196, 123, 40, 0.30);

  /* Tipografía */
  --f-display: 'Playfair Display', Georgia, serif;
  --f-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  /* Escala tipográfica */
  --text-xs:   0.72rem;
  --text-sm:   0.82rem;
  --text-base: 0.92rem;
  --text-md:   1rem;
  --text-lg:   1.12rem;
  --text-xl:   1.3rem;
  --text-2xl:  1.6rem;
  --text-3xl:  2rem;
  --text-4xl:  2.6rem;
  --text-5xl:  3.4rem;

  /* Espaciado */
  --sp-1: 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;

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

  /* Sombras */
  --sh-xs:  0 1px 3px rgba(7,14,23,0.06), 0 1px 2px rgba(7,14,23,0.04);
  --sh-sm:  0 2px 8px rgba(7,14,23,0.08), 0 1px 3px rgba(7,14,23,0.05);
  --sh-md:  0 6px 20px rgba(7,14,23,0.10), 0 2px 6px rgba(7,14,23,0.06);
  --sh-lg:  0 16px 40px rgba(7,14,23,0.12), 0 4px 12px rgba(7,14,23,0.07);
  --sh-xl:  0 28px 64px rgba(7,14,23,0.14), 0 8px 20px rgba(7,14,23,0.08);
  --sh-2xl: 0 48px 96px rgba(7,14,23,0.18), 0 12px 30px rgba(7,14,23,0.10);
  --sh-gold: 0 10px 28px rgba(196,123,40,0.28);
  --sh-inset: inset 0 1px 0 rgba(255,255,255,0.12);

  /* Ease curves */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);

  /* Tiempos */
  --t1: 100ms;
  --t2: 180ms;
  --t3: 280ms;
  --t4: 420ms;
  --t5: 600ms;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::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 {
  font-family: var(--f-body);
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--ink);
  background: var(--ice);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Fondo ambientado */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 5% 0%,   rgba(74,142,194,0.13) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 95% 5%,  rgba(15,34,54,0.10)  0%, transparent 45%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(196,123,40,0.06) 0%, transparent 55%),
    linear-gradient(180deg, var(--ice) 0%, #edf4f8 40%, #f0f5f8 100%);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

a    { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.hidden { display: none !important; }

/* ── Layout Shell ───────────────────────────────────────────────────────── */
.site-shell {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 20px 0 100px;
}

/* ── Survey mode ────────────────────────────────────────────────────────── */
body.survey-mode .hero,
body.survey-mode .info-strip { display: none; }

body.survey-mode .site-shell { padding-top: 12px; }

body.survey-mode .topbar {
  position: sticky;
  top: 10px;
  z-index: 50;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

body.survey-mode .topbar-link { display: none; }
body.survey-mode .brand-logo  { width: 155px; }

/* ════════════════════════════════════════════════════════════════════════
   TOPBAR
════════════════════════════════════════════════════════════════════════ */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding: 14px 22px;
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity var(--t2);
}
.brand:hover { opacity: 0.78; }

.brand-logo { width: 200px; height: auto; }

.brand-country {
  font-size: 1.45rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--fog);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--sh-xs);
  /* Sin texto — solo emoji de bandera */
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--deep);
  color: var(--white);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--sh-md);
  transition: background var(--t2), transform var(--t2) var(--ease-out), box-shadow var(--t2);
}
.topbar-link:hover {
  background: var(--ocean);
  transform: translateY(-1px);
  box-shadow: var(--sh-lg);
}

/* ════════════════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(270px, 0.9fr);
  gap: 20px;
  padding: 52px 52px 52px 56px;
  margin-bottom: 14px;
  background: var(--surface-pure);
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: var(--r-3xl);
  box-shadow: var(--sh-2xl);
  position: relative;
  overflow: hidden;
}

/* Línea dorada superior */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 56px; right: 56px;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--honey) 20%,
    var(--amber) 50%,
    var(--honey) 80%,
    transparent 100%);
  opacity: 0.6;
}

/* Mancha ambiental */
.hero::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,142,194,0.10) 0%, transparent 65%);
  pointer-events: none;
}

/* Número decorativo de fondo */
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: var(--sp-5);
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--honey));
  border-radius: 999px;
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(2.1rem, 3.4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.06;
  color: var(--night);
  max-width: 17ch;
  margin-bottom: var(--sp-5);
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--ocean);
}

.hero-text {
  font-size: var(--text-md);
  font-weight: 300;
  color: var(--iron);
  max-width: 50ch;
  line-height: 1.76;
  margin-bottom: var(--sp-5);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}

.hero-meta span {
  padding: 5px 12px;
  background: var(--fog);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--navy);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* ── Métricas del hero ─────────────────────────────────────────────────── */
.hero-panel {
  display: flex;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

.hero-panel-grid {
  width: 100%;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.metric-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 148px;
  padding: 20px;
  border-radius: var(--r-xl);
  background: linear-gradient(145deg, var(--abyss) 0%, var(--navy) 100%);
  color: var(--white);
  box-shadow: var(--sh-lg), var(--sh-inset);
  position: relative;
  overflow: hidden;
  transition: transform var(--t3) var(--ease-out), box-shadow var(--t3);
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-xl), var(--sh-inset);
}

/* Dot pattern dentro de metric cards */
.metric-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 70px; height: 70px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 10px 10px;
  border-radius: 0 0 0 var(--r-xl);
}

.metric-card-wide {
  grid-column: 1 / -1;
  min-height: 96px;
  background: linear-gradient(135deg, var(--parchment) 0%, var(--cream) 100%);
  color: var(--ink);
  border: 1px solid var(--border-gold);
  box-shadow: var(--sh-sm);
}

.metric-card-wide::after { display: none; }

.metric-label,
.equipment-kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.metric-label { opacity: 0.55; }
.metric-card-wide .metric-label { color: var(--gold); opacity: 1; }

.metric-card strong {
  display: block;
  margin-top: var(--sp-2);
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 1.7vw, 1.65rem);
  font-weight: 600;
  line-height: 1.2;
}

.metric-card-wide strong { color: var(--abyss); }

/* ════════════════════════════════════════════════════════════════════════
   BOTONES
════════════════════════════════════════════════════════════════════════ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    transform var(--t2) var(--ease-spring),
    box-shadow var(--t2),
    background var(--t2),
    opacity var(--t2);
}

.button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

/* Primario — azul noche */
.button-primary {
  background: linear-gradient(135deg, var(--ocean) 0%, var(--deep) 100%);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(15,34,54,0.28), var(--sh-inset);
}
.button-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15,34,54,0.34), var(--sh-inset);
}
.button-primary:active:not(:disabled) { transform: translateY(0); }

/* Secundario */
.button-secondary {
  background: var(--surface-pure);
  color: var(--ink);
  border: 1.5px solid var(--border-mid);
  box-shadow: var(--sh-xs);
}
.button-secondary:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--border-dark);
  box-shadow: var(--sh-sm);
}

/* CTA ámbar dorado — solo hero */
.button-cta {
  background: linear-gradient(135deg, var(--amber) 0%, var(--gold) 100%);
  color: var(--white);
  box-shadow: var(--sh-gold), var(--sh-inset);
}
.button-cta:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(196,123,40,0.36), var(--sh-inset);
}

/* ════════════════════════════════════════════════════════════════════════
   INFO STRIP
════════════════════════════════════════════════════════════════════════ */
.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-md);
}

.info-strip article {
  padding: 18px 16px 16px;
  border-radius: var(--r-lg);
  background: var(--surface-tinted);
  border: 1px solid var(--border);
  transition: border-color var(--t3), box-shadow var(--t3), transform var(--t3) var(--ease-out);
}

.info-strip article:hover {
  border-color: rgba(74,142,194,0.28);
  box-shadow: var(--sh-sm);
  transform: translateY(-2px);
}

.info-strip article::before {
  content: '';
  display: block;
  width: 28px; height: 3px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--honey));
}

.info-strip h2 {
  font-family: var(--f-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--abyss);
  margin-bottom: 6px;
}

.info-strip p {
  font-size: var(--text-sm);
  color: var(--iron);
  font-weight: 300;
  line-height: 1.72;
}

.info-strip a {
  color: var(--ocean);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--t1);
}
.info-strip a:hover { color: var(--gold); }

/* ════════════════════════════════════════════════════════════════════════
   SURVEY SECTION
════════════════════════════════════════════════════════════════════════ */
.survey-section {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--r-3xl);
  margin-bottom: 20px;
  min-height: calc(100vh - 90px);
  background: var(--surface-pure);
  border: 1px solid rgba(255,255,255,0.95);
  box-shadow: var(--sh-2xl);
}

body.survey-mode .survey-section {
  min-height: calc(100vh - 100px);
  padding: 22px 26px;
  border-radius: var(--r-2xl);
}

/* ── Survey Header ──────────────────────────────────────────────────── */
.survey-header {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-5);
  align-items: flex-end;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
}

body.survey-mode .survey-header {
  position: sticky;
  top: 88px;
  z-index: 20;
  align-items: center;
  margin: -4px -6px 18px;
  padding: 8px 6px 16px;
  border-bottom: none;
  background: linear-gradient(180deg,
    rgba(255,255,255,1.00) 0%,
    rgba(255,255,255,0.97) 72%,
    rgba(255,255,255,0.00) 100%);
}

.survey-header > div:first-child .eyebrow { margin-bottom: 6px; }

.survey-header h2 {
  font-family: var(--f-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--abyss);
  margin: 0;
  line-height: 1.15;
}

/* ── Progress Panel ─────────────────────────────────────────────────── */
.progress-panel {
  width: min(100%, 460px);
  padding: 16px 20px 18px;
  border-radius: var(--r-xl);
  background: linear-gradient(145deg, var(--night) 0%, var(--navy) 100%);
  color: var(--white);
  box-shadow: var(--sh-xl), var(--sh-inset);
  position: relative;
  overflow: hidden;
}

/* Textura sutil */
.progress-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}

.progress-panel::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(74,142,194,0.12);
}

.progress-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: 12px;
}

.progress-topline-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

#progress-label {
  font-size: var(--text-md);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.01em;
}

#autosave-status {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.48);
  transition: color var(--t2);
}

.restart-link {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  font-size: var(--text-xs);
  font-weight: 700;
  color: rgba(255,255,255,0.36);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--t2);
}
.restart-link:hover { color: rgba(255,255,255,0.72); }

/* Barra de progreso */
.progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255,255,255,0.10);
  border-radius: 999px;
  overflow: visible;
  position: relative;
}

.progress-bar {
  height: 100%;
  width: 20%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sky) 0%, rgba(255,255,255,0.85) 100%);
  transition: width var(--t5) var(--ease-out);
  position: relative;
}

/* Punto luminoso al final de la barra */
.progress-bar::after {
  content: '';
  position: absolute;
  right: -3px; top: 50%;
  transform: translateY(-50%);
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.25), 0 0 8px rgba(255,255,255,0.6);
}

/* Pasos indicadores */
.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.progress-step-dot {
  font-size: 10px;
  color: rgba(255,255,255,0.28);
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color var(--t3);
}

.progress-step-dot.done   { color: rgba(255,255,255,0.7); }
.progress-step-dot.active { color: var(--honey); }

/* ════════════════════════════════════════════════════════════════════════
   FORMULARIO
════════════════════════════════════════════════════════════════════════ */
#survey-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  animation: stepReveal var(--t4) var(--ease-out) both;
}

@keyframes stepReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-copy {
  margin-bottom: var(--sp-5);
  max-width: 70ch;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}

.step-copy h3 {
  font-family: var(--f-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--night);
  margin-bottom: 6px;
  line-height: 1.15;
}

.step-copy p {
  color: var(--iron);
  font-weight: 300;
  font-size: var(--text-base);
  line-height: 1.72;
  max-width: 58ch;
}

/* ════════════════════════════════════════════════════════════════════════
   FIELD BLOCKS
════════════════════════════════════════════════════════════════════════ */
.field-block {
  margin-bottom: var(--sp-4);
  padding: 16px;
  background: var(--surface-pure);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  transition: border-color var(--t3), box-shadow var(--t3);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-block:focus-within {
  border-color: rgba(74,142,194,0.30);
  box-shadow: var(--sh-sm), 0 0 0 3px rgba(74,142,194,0.06);
}

/* text-field suelto dentro de field-block: mismo marco azul que fieldset */
.field-block > label.text-field,
.field-block > .text-field {
  border: 1.5px solid rgba(74, 142, 194, 0.20);
  border-radius: var(--r-md);
  padding: 14px 16px;
  background: rgba(242, 247, 250, 0.50);
  transition: border-color var(--t2), background var(--t2);
  margin: 0;
}

.field-block > label.text-field:focus-within,
.field-block > .text-field:focus-within {
  border-color: rgba(74, 142, 194, 0.42);
  background: rgba(228, 239, 246, 0.55);
}

.field-grid {
  display: grid;
  gap: var(--sp-4);
}

.two-up   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Cada pregunta (fieldset) tiene su propio marco azul suave con bordes redondos */
fieldset {
  border: 1.5px solid rgba(74, 142, 194, 0.20);
  border-radius: var(--r-md);
  padding: 16px 16px 14px;
  background: rgba(242, 247, 250, 0.50);
  margin: 0;
  transition: border-color var(--t2), background var(--t2);
}

fieldset + fieldset,
fieldset + .text-field,
.text-field + fieldset {
  margin-top: 10px;
}

fieldset:focus-within {
  border-color: rgba(74, 142, 194, 0.42);
  background: rgba(228, 239, 246, 0.55);
}

legend,
.field-block h5,
.text-field > span {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--abyss);
  margin-bottom: 10px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.field-hint {
  font-size: var(--text-xs);
  color: var(--slate);
  font-weight: 400;
  margin: -4px 0 10px;
  line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════════════════
   CHOICE CARDS — el corazón del formulario
════════════════════════════════════════════════════════════════════════ */
.choice-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
}

.choice-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

.equipment-grid {
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
}

.choice-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--fog);
  border: 1.5px solid var(--border);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  transition:
    border-color var(--t1),
    background    var(--t1),
    transform     var(--t2) var(--ease-spring),
    box-shadow    var(--t2),
    color         var(--t1);
}

/* Hover */
.choice-card:hover,
.choice-card:focus-within {
  border-color: var(--horizon);
  background: var(--ice);
  transform: translateY(-1px);
  box-shadow: var(--sh-sm);
  color: var(--deep);
}

/* Input */
.choice-card input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--ocean);
  margin: 0;
}

/* Seleccionado */
.choice-card.is-selected {
  border-color: var(--ocean);
  background: linear-gradient(160deg,
    rgba(74,142,194,0.12) 0%,
    rgba(228,239,246,0.85) 100%);
  color: var(--deep);
  box-shadow: var(--sh-sm), 0 0 0 1px rgba(74,142,194,0.15);
  transform: translateY(-1px);
  font-weight: 600;
}

/* Checkmark visual en selected */
.choice-card.is-selected::after {
  content: '';
  position: absolute;
  top: 8px; right: 10px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ocean);
  opacity: 0.7;
}

/* ════════════════════════════════════════════════════════════════════════
   TEXT FIELDS
════════════════════════════════════════════════════════════════════════ */
.text-field { display: block; }

.text-field input,
.text-field select,
.text-field textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface-pure);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: var(--text-base);
  transition: border-color var(--t2), box-shadow var(--t2), background var(--t2);
  -webkit-appearance: none;
  appearance: none;
}

/* Select custom arrow */
.text-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a6275' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.text-field textarea { resize: vertical; }

.text-field input:focus,
.text-field select:focus,
.text-field textarea:focus {
  outline: none;
  border-color: var(--horizon);
  background: var(--surface-pure);
  box-shadow: 0 0 0 4px rgba(74,142,194,0.12);
}

.text-field input::placeholder,
.text-field textarea::placeholder {
  color: rgba(26,45,61,0.30);
  font-weight: 300;
}

/* ════════════════════════════════════════════════════════════════════════
   EQUIPMENT STEP NAV
════════════════════════════════════════════════════════════════════════ */
.dynamic-stack {
  display: grid;
  gap: var(--sp-3);
  flex: 1;
  min-height: 0;
}

.equipment-step-nav {
  display: grid;
  gap: 10px;
  margin-bottom: var(--sp-4);
  padding: 14px 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--frost) 0%, var(--ice) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--sh-xs);
}

.equipment-step-head { display: flex; align-items: center; }

.equipment-step-counter {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.04em;
}

.equipment-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* Chips de navegación por equipo */
.equipment-chip {
  border: 1.5px solid var(--border-mid);
  background: var(--surface-pure);
  color: var(--navy);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition:
    transform var(--t2) var(--ease-spring),
    box-shadow var(--t2),
    background var(--t2),
    border-color var(--t2),
    color var(--t2);
}

.equipment-chip:hover {
  border-color: var(--horizon);
  transform: translateY(-1px);
  box-shadow: var(--sh-sm);
  color: var(--deep);
}

.equipment-chip.is-active {
  background: linear-gradient(135deg, var(--ocean) 0%, var(--deep) 100%);
  border-color: transparent;
  color: var(--white);
  box-shadow: var(--sh-md);
  transform: translateY(-1px);
}

.equipment-chip.is-complete:not(.is-active) {
  background: var(--ok-pale);
  border-color: rgba(26,122,82,0.28);
  color: var(--ok);
}

/* Check mark en chip completado */
.equipment-chip.is-complete:not(.is-active)::before {
  content: '✓ ';
  font-size: 10px;
}

/* ════════════════════════════════════════════════════════════════════════
   EQUIPMENT CARDS
════════════════════════════════════════════════════════════════════════ */
.equipment-card {
  padding: 20px;
  background: var(--surface-pure);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--t3);
}

.equipment-card:focus-within {
  box-shadow: var(--sh-md);
}

.equipment-card-header {
  margin-bottom: var(--sp-4);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}

.equipment-card-header-text { flex: 1; }

.equipment-kicker {
  color: var(--amber);
  margin-bottom: 3px;
}

.equipment-card h4 {
  font-family: var(--f-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--night);
  margin: 0;
  line-height: 1.2;
}

/* Número de equipo dentro del card */
.equipment-card-number {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--deep) 100%);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 800;
  box-shadow: var(--sh-sm);
}

/* ════════════════════════════════════════════════════════════════════════
   BRAND GRID
════════════════════════════════════════════════════════════════════════ */
.brand-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brand-row {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--surface-tinted);
  border: 1px solid var(--border);
  transition: border-color var(--t2), box-shadow var(--t2);
}

.brand-row:focus-within {
  border-color: rgba(74,142,194,0.38);
  box-shadow: var(--sh-xs);
}

/* Número de posición en brand rows */
.brand-row::before {
  content: attr(data-brand-position);
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--slate);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Share Cards ──────────────────────────────────────────────────── */
.share-card {
  padding: 10px 13px;
  border-radius: var(--r-md);
  border: 1.5px dashed var(--border-mid);
  background: rgba(228,239,246,0.35);
  transition: background var(--t2), border-color var(--t2);
}

.share-card:focus-within {
  background: rgba(228,239,246,0.7);
  border-color: var(--horizon);
  border-style: solid;
}

/* ════════════════════════════════════════════════════════════════════════
   STEP 5 CLOSING
════════════════════════════════════════════════════════════════════════ */
.add-more-block {
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--surface-tinted);
  border: 1.5px dashed rgba(74,142,194,0.25);
  margin-bottom: var(--sp-4);
}

.closing-grid { margin-top: var(--sp-4); }

.closing-note {
  margin-top: var(--sp-4);
  padding: 20px 24px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--night) 0%, var(--navy) 100%);
  color: rgba(255,255,255,0.82);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.76;
  box-shadow: var(--sh-xl), var(--sh-inset);
  position: relative;
  overflow: hidden;
}

.closing-note::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.closing-note::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(74,142,194,0.08);
}

/* ════════════════════════════════════════════════════════════════════════
   FEEDBACK
════════════════════════════════════════════════════════════════════════ */
.form-feedback {
  min-height: 24px;
  margin: var(--sp-2) 0 var(--sp-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--warn);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--t2);
}

.form-feedback:not(:empty)::before {
  content: '⚠';
  font-size: 13px;
}

.form-feedback.is-success {
  color: var(--ok);
}

.form-feedback.is-success::before {
  content: '✓';
}

/* ════════════════════════════════════════════════════════════════════════
   FORM ACTIONS
════════════════════════════════════════════════════════════════════════ */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-3);
  padding: 16px 0 6px;
  position: sticky;
  bottom: 0;
  z-index: 15;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.00) 0%,
    rgba(255,255,255,0.94) 28%,
    rgba(255,255,255,0.99) 100%);
}

/* ── Scrollbar por step ─────────────────────────────────────────── */
.form-step[data-step].is-active {
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(74,142,194,0.3) transparent;
}

.form-step::-webkit-scrollbar { width: 4px; }
.form-step::-webkit-scrollbar-thumb {
  background: rgba(74,142,194,0.3);
  border-radius: 999px;
}

/* ════════════════════════════════════════════════════════════════════════
   DRAFT BANNER
════════════════════════════════════════════════════════════════════════ */
.draft-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 18px 22px 18px 28px;
  margin-bottom: var(--sp-5);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--abyss) 0%, var(--ocean) 100%);
  color: var(--white);
  box-shadow: var(--sh-xl), var(--sh-inset);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

/* Borde ámbar izquierdo */
.draft-banner::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--honey), var(--amber));
  border-radius: var(--r-xl) 0 0 var(--r-xl);
}

.draft-banner-msg {
  margin: 0;
  font-size: var(--text-base);
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
}

.draft-banner-msg strong { color: var(--white); }

.draft-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.draft-banner .button-primary {
  background: linear-gradient(135deg, var(--amber), var(--gold));
  box-shadow: var(--sh-gold);
}

.draft-banner .button-secondary {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.82);
}

.draft-banner .button-secondary:hover {
  background: rgba(255,255,255,0.18);
}

/* ── Autosave flash ─────────────────────────────────────────────────── */
@keyframes autosave-flash {
  0%   { color: rgba(255,255,255,0.38); }
  30%  { color: rgba(255,255,255,0.86); }
  100% { color: rgba(255,255,255,0.38); }
}

.autosave-flash { animation: autosave-flash 1.8s var(--ease-in-out); }

/* ════════════════════════════════════════════════════════════════════════
   PÁGINA DE GRACIAS (reutiliza variables del mismo archivo)
════════════════════════════════════════════════════════════════════════ */
.gracias-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.gracias-card {
  width: min(680px, 100%);
  background: var(--surface-pure);
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: var(--r-3xl);
  box-shadow: var(--sh-2xl);
  overflow: hidden;
  animation: cardEntry var(--t5) var(--ease-out) both;
}

@keyframes cardEntry {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.gracias-header {
  padding: 44px 48px 36px;
  background: linear-gradient(135deg, var(--night) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.gracias-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--honey), var(--amber), var(--honey), transparent);
}

.gracias-header::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(74,142,194,0.12);
}

.gracias-icon {
  width: 72px; height: 72px;
  margin: 0 auto var(--sp-5);
  background: linear-gradient(135deg, var(--amber), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: var(--sh-gold);
  position: relative;
  z-index: 1;
  animation: iconPop 0.6s var(--ease-spring) 0.3s both;
}

@keyframes iconPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.gracias-header h1 {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.gracias-header h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--honey);
}

.gracias-header p {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.66);
  font-weight: 300;
  position: relative;
  z-index: 1;
}

.gracias-body {
  padding: 36px 48px 44px;
}

.gracias-items {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}

.gracias-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: var(--surface-tinted);
  border: 1px solid var(--border);
  animation: itemSlide var(--t4) var(--ease-out) both;
}

.gracias-item:nth-child(1) { animation-delay: 0.15s; }
.gracias-item:nth-child(2) { animation-delay: 0.25s; }
.gracias-item:nth-child(3) { animation-delay: 0.35s; }

@keyframes itemSlide {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.gracias-item-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--deep) 100%);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--sh-xs);
}

.gracias-item-text strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--abyss);
  margin-bottom: 2px;
}

.gracias-item-text span {
  font-size: var(--text-sm);
  color: var(--iron);
  font-weight: 300;
  line-height: 1.55;
}

.gracias-divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

.gracias-contact {
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--parchment);
  border: 1px solid var(--border-gold);
  font-size: var(--text-sm);
  color: var(--iron);
  font-weight: 300;
  line-height: 1.65;
}

.gracias-contact a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gracias-footer {
  padding: 20px 48px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.gracias-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gracias-brand-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════════════ */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  .hero h1 { max-width: 100%; }
  .hero::after { display: none; }

  .info-strip { grid-template-columns: 1fr; }

  .survey-header {
    flex-direction: column;
    align-items: flex-start;
  }

  body.survey-mode .survey-header { top: 78px; }

  .progress-panel { width: 100%; }

  .two-up,
  .three-up,
  .brand-grid { grid-template-columns: 1fr; }

  .gracias-header { padding: 32px 28px 28px; }
  .gracias-body   { padding: 28px 28px 36px; }
  .gracias-footer { padding: 18px 28px 24px; }
}

@media (max-width: 720px) {
  .site-shell {
    width: calc(100vw - 16px);
    padding-top: 10px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
  }

  .brand { width: 100%; justify-content: space-between; }
  .brand-logo { width: 165px; }
  .topbar-link { width: 100%; justify-content: center; }

  .hero {
    padding: 22px;
    border-radius: var(--r-2xl);
  }

  .info-strip,
  .survey-section {
    border-radius: var(--r-2xl);
    padding: 16px;
  }

  .choice-grid,
  .choice-grid.compact,
  .equipment-grid { grid-template-columns: 1fr; }

  .hero-actions,
  .form-actions { flex-direction: column; }
  .form-actions .button { width: 100%; justify-content: center; }

  .progress-topline { flex-direction: column; gap: 4px; }
  .progress-topline-right { align-items: flex-start; }

  body.survey-mode .topbar { top: 6px; }
  body.survey-mode .survey-header { top: 72px; }

  .gracias-card { border-radius: var(--r-2xl); }
  .gracias-header { padding: 28px 20px 24px; }
  .gracias-body   { padding: 24px 20px 30px; }
  .gracias-footer { padding: 16px 20px 22px; flex-direction: column; align-items: flex-start; }
}

/* ── Print ──────────────────────────────────────────────────────────── */
@media print {
  body::before { display: none; }
  .topbar, .hero-actions, .form-actions, .draft-banner { display: none; }
  .survey-section { box-shadow: none; border: 1px solid #ccc; }
}

/* ════════════════════════════════════════════════════════════════════════
   LANDING RAÍZ — Selector de países
════════════════════════════════════════════════════════════════════════ */

.landing-shell {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 20px 0 80px;
}

/* Hero landing */
.landing-hero {
  padding: 60px 56px 52px;
  margin-bottom: 20px;
  background: var(--surface-pure);
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: var(--r-3xl);
  box-shadow: var(--sh-2xl);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.landing-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 56px; right: 56px;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--honey) 20%,
    var(--amber) 50%,
    var(--honey) 80%,
    transparent 100%);
  opacity: 0.6;
}

.landing-hero::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 450px; height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,142,194,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.landing-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.landing-brand-country {
  font-size: 1.45rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--fog);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--sh-xs);
}

.landing-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.06;
  color: var(--night);
  max-width: 22ch;
  margin: 0 auto 16px;
}

.landing-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--ocean);
}

.landing-intro {
  font-size: var(--text-md);
  font-weight: 300;
  color: var(--iron);
  max-width: 54ch;
  margin: 0 auto 36px;
  line-height: 1.76;
}

/* Cards de país */
.country-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 840px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.country-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--r-2xl);
  border: 1.5px solid var(--border);
  background: var(--fog);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition:
    transform var(--t3) var(--ease-spring),
    box-shadow var(--t3),
    border-color var(--t3),
    background var(--t3);
}

.country-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-xl);
  border-color: var(--horizon);
  background: var(--surface-pure);
}

.country-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  opacity: 0;
  transition: opacity var(--t3);
}

.country-card:hover::before { opacity: 1; }

.country-card-chile::before {
  background: linear-gradient(90deg, var(--amber), var(--honey));
}

.country-card-brasil::before {
  background: linear-gradient(90deg, #2d7a3a, #4aab5c);
}

.country-flag {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

.country-card h2 {
  font-family: var(--f-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--night);
  margin-bottom: 8px;
}

.country-card p {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--iron);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 24px;
}

.country-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.country-card-meta span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(74,142,194,0.10);
  color: var(--navy);
  border: 1px solid var(--border);
}

.country-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ocean);
  transition: gap var(--t2);
}

.country-card:hover .country-card-cta { gap: 12px; }

.country-card-cta::after {
  content: '→';
  font-size: 1rem;
}

/* Sección de contexto bajo los cards */
.landing-context {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-md);
}

.landing-context article {
  padding: 18px 16px 16px;
  border-radius: var(--r-lg);
  background: var(--surface-tinted);
  border: 1px solid var(--border);
}

.landing-context article::before {
  content: '';
  display: block;
  width: 28px; height: 3px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--honey));
}

.landing-context h3 {
  font-family: var(--f-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--abyss);
  margin-bottom: 6px;
}

.landing-context p {
  font-size: var(--text-sm);
  color: var(--iron);
  font-weight: 300;
  line-height: 1.68;
}

/* Landing topbar simplificado */
.landing-topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 22px;
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-md);
}

/* ── Responsive landing ──────────────────────────────────────────── */
@media (max-width: 720px) {
  .landing-hero {
    padding: 32px 20px 28px;
    border-radius: var(--r-2xl);
  }

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

  .landing-context {
    grid-template-columns: 1fr;
    border-radius: var(--r-xl);
  }

  .landing-hero h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
}

/* ════════════════════════════════════════════════════════════════════════
   PÁGINA OBRIGADO (Brasil) — misma base que gracias de Chile
════════════════════════════════════════════════════════════════════════ */

/* Reutiliza toda la base .gracias-* del bloque anterior.
   Solo se añaden overrides de color Brasil donde aplica. */

.obrigado-accent::before {
  background: linear-gradient(90deg, transparent, #4aab5c, #2d7a3a, #4aab5c, transparent) !important;
}

