/* ============================================================
   basedatos.cl — Landing
   Concepto: "Estratos de datos / Cordillera"
   Fuente: Mulish · Animaciones: AOS + parallax + contadores
   ============================================================ */

:root {
  /* Paleta "Hielo y cobre" */
  --bg:        #0A1220;
  --bg-soft:   #0C1626;
  --panel:     #0F1B33;
  --panel-2:   #0C1526;
  --line:      rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --text:      #E8EEF6;
  --muted:     #8B97B4;
  --muted-2:   #5C6A88;

  /* nombres heredados, repuntados a la nueva paleta:
     --coral = cobre (acento cálido) · --amber = cobre claro · --teal = celeste señal */
  --coral: #C2703D;   /* cobre */
  --amber: #D98A4E;   /* cobre claro */
  --teal:  #38BDF8;   /* celeste señal */
  --ice:   #7DD3FC;   /* azul hielo (primario) */

  /* sin degradados: color sólido primario */
  --grad: #7DD3FC;
  --grad-soft: rgba(125, 211, 252, 0.10);

  --font: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  --maxw: 1200px;
  --radius: 0;
  --radius-sm: 0;

  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: rgba(194, 112, 61, 0.3); color: #fff; }

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

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================================
   Fondo ambiental — estratos / cordillera
   ============================================================ */
.strata {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, #10203A 0%, var(--bg) 55%),
    var(--bg);
}
.strata__aurora {
  position: absolute;
  top: -20%; left: 50%;
  width: 90vw; height: 60vh;
  transform: translateX(-50%);
  display: none;
}
@keyframes auroraDrift {
  0%   { transform: translateX(-50%) translateY(0) scale(1); }
  100% { transform: translateX(-46%) translateY(18px) scale(1.06); }
}
.strata__lines {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 100%;
  will-change: transform;
}
.strata__lines--back { opacity: 0.6; }
.strata__grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 10px 0;
  background: rgba(10, 18, 32, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -0.02em; }
.brand__mark {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 6px;
  gap: 2px;
  width: 20px;
  transform: rotate(0deg);
}
.brand__mark span {
  display: block; height: 6px; border-radius: 0;
  background: var(--grad);
}
.brand__mark span:nth-child(1) { grid-column: 1 / 3; opacity: 1; }
.brand__mark span:nth-child(2) { opacity: 0.7; }
.brand__mark span:nth-child(3) { opacity: 0.4; }
.brand__text { font-size: 1.15rem; }
.brand__tld { color: var(--coral); }

.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a {
  font-size: 0.95rem; font-weight: 600; color: var(--muted);
  position: relative; transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; border-radius: 0; background: var(--grad);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 18px; }
.link-quiet { font-size: 0.95rem; font-weight: 600; color: var(--muted); transition: color 0.25s var(--ease); }
.link-quiet:hover { color: var(--text); }

.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 0; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-0px) rotate(-45deg); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em;
  padding: 12px 22px; border-radius: 0;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 15px 30px; font-size: 1.02rem; }
.btn--block { display: flex; width: 100%; }
.btn--solid {
  color: #10131c; background: var(--grad);
  background-size: 160% 160%; background-position: 0% 50%;
  box-shadow: 0 12px 30px -12px rgba(194, 112, 61, 0.6);
}
.btn--solid:hover { transform: translateY(-3px); background-position: 100% 50%; box-shadow: 0 18px 40px -14px rgba(214, 138, 90, 0.7); }
.btn--ghost {
  color: var(--text); border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: rgba(56, 189, 248, 0.5); background: rgba(56, 189, 248, 0.06); }
.btn .play { font-size: 0.7rem; color: var(--teal); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 170px 0 70px; overflow: hidden; }
.hero__grid {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px; align-items: center;
}

/* ---------- Escena: cordillera nevada + cóndores ---------- */
.hero__scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__peaks {
  position: absolute;
  top: -8%; left: 0;
  width: 100%; height: 116%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0.62;
  will-change: transform;
  transform: translate3d(0,0,0);
}
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 18, 32,0.92) 0%, rgba(10, 18, 32,0.55) 42%, rgba(10, 18, 32,0.28) 72%, rgba(10, 18, 32,0.5) 100%),
    linear-gradient(180deg, rgba(10, 18, 32,0.55) 0%, rgba(10, 18, 32,0.22) 30%, rgba(10, 18, 32,0.72) 78%, var(--bg) 100%);
}

/* Cóndores en parallax (contenedor = parallax JS · silueta = flotación CSS) */
.condor {
  position: absolute; z-index: 2;
  color: #0B1220;
  will-change: transform;
  opacity: 0.92;
}
.condor__bird {
  display: block; width: 100%; height: auto;
  fill: currentColor;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.35));
  transform-origin: center;
}
.condor--1 { top: 20%; left: 30%; width: 150px; }
.condor--2 { top: 30%; left: 54%; width: 104px; opacity: 0.8; }
.condor--3 { top: 15%; left: 68%; width: 74px; opacity: 0.72; }
.condor--4 { top: 40%; left: 20%; width: 52px; opacity: 0.6; color: #16203A; }
.condor--5 { top: 25%; left: 82%; width: 38px; opacity: 0.5; color: #1B263F; }
@keyframes soar {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-14px) rotate(-1.2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
.condor--1 .condor__bird { animation: soar 9s var(--ease) infinite; }
.condor--2 .condor__bird { animation: soar 11s var(--ease) infinite 0.6s; }
.condor--3 .condor__bird { animation: soar 8s  var(--ease) infinite 1.2s; }
.condor--4 .condor__bird { animation: soar 12s var(--ease) infinite 0.3s; }
.condor--5 .condor__bird { animation: soar 10s var(--ease) infinite 1.8s; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted);
  padding: 7px 14px; border-radius: 0;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 0; background: var(--teal); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.6); animation: pulseDot 2.4s var(--ease) infinite; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.5); } 70% { box-shadow: 0 0 0 9px rgba(56, 189, 248, 0); } 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); } }

.hero__title {
  font-size: clamp(2.5rem, 5.6vw, 4.15rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 22px 0 20px;
}
.hero__lead {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--muted);
  max-width: 33ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }

.hero__trust { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero__trust dt { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.hero__trust dd { font-size: 0.82rem; color: var(--muted); }
.hero__trust-sep { width: 1px; height: 30px; background: var(--line); }

/* ---------- Consola viva (firma) ---------- */
.hero__console { position: relative; }
.console {
  position: relative; z-index: 2;
  border-radius: 0;
  border: 1px solid var(--line);
  background: rgba(15, 21, 38, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease);
}
.console__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
}
.console__dots { display: inline-flex; gap: 7px; }
.console__dots i { width: 11px; height: 11px; border-radius: 0; background: #2A3350; }
.console__dots i:nth-child(1) { background: #FF6B5A; }
.console__dots i:nth-child(2) { background: #FFC24D; }
.console__dots i:nth-child(3) { background: #5EEA9A; }
.console__title { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.console__status { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 0.76rem; color: var(--teal); font-weight: 600; }
.pulse { width: 7px; height: 7px; border-radius: 0; background: var(--teal); animation: pulseDot 2s infinite; }

.console__body { padding: 20px 20px 22px; min-height: 320px; }
.console__code {
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.85;
  color: #C7D0E6;
  white-space: pre-wrap;
  word-break: break-word;
}
.console__code .k { color: var(--coral); font-weight: 600; }   /* keyword */
.console__code .f { color: var(--teal); }                       /* función / tabla */
.console__code .s { color: var(--amber); }                      /* string */
.console__code .c { color: var(--muted-2); }                    /* comentario */
.caret { display: inline-block; color: var(--teal); animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }

.console__result {
  margin-top: 18px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.console__result.is-visible { opacity: 1; transform: translateY(0); }
.qtable { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.8rem; }
.qtable th {
  text-align: left; padding: 7px 10px; color: var(--muted);
  font-weight: 600; border-bottom: 1px solid var(--line);
  text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.06em;
}
.qtable td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); color: #D4DBEC; }
.qtable .num { color: var(--teal); font-weight: 600; }
.qtable tr:last-child td { border-bottom: none; }
.console__meta { margin-top: 14px; font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }
.console__meta .ok { color: #5EEA9A; }

.console__glow {
  position: absolute; inset: -20% -10% -30%;
  z-index: 1;
  background: none;
  display: none;
}

/* ---------- Barra de confianza ---------- */
.trustbar {
  margin-top: 80px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center;
}
.trustbar__label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.trustbar__logos {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 42px;
  font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--muted);
  opacity: 0.65;
}
.trustbar__logos li { transition: color 0.25s var(--ease), opacity 0.25s var(--ease); }
.trustbar__logos li:hover { color: var(--text); opacity: 1; }

/* ============================================================
   SECCIONES genéricas
   ============================================================ */
.section { position: relative; padding: 110px 0; }
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__eyebrow {
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--coral); margin-bottom: 14px;
}
.section__title {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1.08;
}
.section__sub { margin-top: 16px; font-size: 1.1rem; color: var(--muted); max-width: 52ch; }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  position: relative;
  padding: 30px 28px 32px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: rgba(16, 23, 42, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.feature::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-soft); opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.feature:hover { transform: translateY(-6px); border-color: rgba(56, 189, 248, 0.32); }
.feature:hover::before { opacity: 1; }
.feature > * { position: relative; z-index: 1; }
.feature h3 { font-size: 1.22rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 0.98rem; }

.feature__icon {
  width: 48px; height: 48px; border-radius: 0; margin-bottom: 18px;
  display: grid; place-items: center;
  border: 1px solid rgba(125, 211, 252, 0.22);
  background: rgba(56, 189, 248, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.feature__icon svg { width: 26px; height: 26px; display: block; }
.feature__icon .duo-a { fill: var(--ice); }
.feature__icon .duo-b { fill: var(--coral); }
.feature:hover .feature__icon { border-color: rgba(125, 211, 252, 0.42); transform: translateY(-2px); }

.feature__tag {
  position: absolute; top: 22px; right: 22px; z-index: 2;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 4px 9px; border: 1px solid var(--line); color: var(--muted);
}
.feature__tag--legal { color: var(--ice); border-color: rgba(125, 211, 252, 0.45); }
.feature__tag--tec   { color: var(--coral); border-color: rgba(194, 112, 61, 0.5); }

/* ---------- Proceso ---------- */
.section--proceso { border-top: 1px solid var(--line-soft); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step { position: relative; padding: 8px 0; }
.step__num {
  font-family: var(--mono);
  font-size: 2.6rem; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  display: block; margin-bottom: 14px; letter-spacing: -0.04em;
}
.step__body h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.step__body p { color: var(--muted); max-width: 34ch; }
.step__rule {
  position: absolute; top: 26px; right: -10px; width: 20px; height: 2px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* ---------- Métricas ---------- */
.section--metrics { border-top: 1px solid var(--line-soft); }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.metric {
  padding: 34px 26px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: rgba(16, 23, 42, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: left;
}
.metric__value {
  display: block;
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  font-weight: 900; letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.metric__label { display: block; margin-top: 12px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Planes ---------- */
.section--planes { border-top: 1px solid var(--line-soft); }
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 34px 30px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: rgba(16, 23, 42, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.plan:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.16); }
.plan--featured {
  border-color: transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 30px 70px -30px rgba(194, 112, 61, 0.4);
}
.plan--featured:hover { transform: translateY(-10px); }
.plan__badge {
  position: absolute; top: -12px; left: 30px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 0; color: #10131c;
  background: var(--grad);
}
.plan__name { font-size: 1.1rem; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; }
.plan__price { margin: 14px 0 6px; display: flex; align-items: baseline; gap: 6px; }
.plan__amount { font-size: 2.3rem; font-weight: 900; letter-spacing: -0.03em; }
.plan__per { color: var(--muted); font-weight: 600; }
.plan__desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 22px; }
.plan__list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.plan__list li { position: relative; padding-left: 26px; font-size: 0.96rem; color: #C7CEDF; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px; border-radius: 0;
  background: var(--grad-soft);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.35);
}
.plan__list li::after {
  content: ""; position: absolute; left: 5px; top: 9px;
  width: 6px; height: 3px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

/* ---------- Contacto ---------- */
.section--contacto { border-top: 1px solid var(--line-soft); }
.contacto__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start;
}
.contacto__intro .section__title { margin-bottom: 16px; }
.contacto__points { margin-top: 28px; display: flex; flex-direction: column; gap: 13px; }
.contacto__points li { position: relative; padding-left: 28px; color: #C7CEDF; font-size: 0.98rem; }
.contacto__points li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px;
  border: 1px solid rgba(125, 211, 252, 0.5);
}
.contacto__points li::after {
  content: ""; position: absolute; left: 4px; top: 8px; width: 7px; height: 3px;
  border-left: 2px solid var(--ice); border-bottom: 2px solid var(--ice); transform: rotate(-45deg);
}

.contact-form {
  padding: 30px 30px 26px;
  border: 1px solid var(--line);
  background: rgba(16, 23, 42, 0.86);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.field { margin-bottom: 16px; }
.field--split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.field .opt { color: var(--muted-2); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 0.95rem; color: var(--text);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 0;
  background: rgba(10, 18, 32, 0.6);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: rgba(125, 211, 252, 0.6); background: rgba(10, 18, 32, 0.85);
}
.field textarea { resize: vertical; min-height: 84px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%237DD3FC' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field select option { background: #0C1526; color: var(--text); }
.contact-form .btn { margin-top: 6px; }
.contact-form__note { margin-top: 14px; font-size: 0.78rem; color: var(--muted-2); line-height: 1.5; }
.contact-form__ok { margin-top: 14px; font-size: 0.94rem; font-weight: 700; color: #5EEA9A; }

/* ---------- CTA final ---------- */
.cta-final { padding: 40px 0 120px; }
.cta-final__inner {
  position: relative;
  text-align: center;
  padding: 68px 40px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: rgba(15, 21, 38, 0.92);
  overflow: hidden;
}
.cta-final__inner::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='400' viewBox='0 0 1200 400'%3E%3Cg fill='none' stroke='%23C2703D' stroke-opacity='0.10'%3E%3Cpath d='M0 260 C300 180 500 320 800 240 C1000 190 1100 280 1200 230'/%3E%3Cpath d='M0 300 C320 220 520 360 820 280 C1040 220 1120 320 1200 270'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover; background-position: center bottom;
  opacity: 0.8;
}
.cta-final__inner > * { position: relative; z-index: 1; }
.cta-final h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
.cta-final p { margin: 16px auto 30px; color: var(--muted); font-size: 1.12rem; max-width: 46ch; }

/* ============================================================
   LEY 21.719 — cuenta regresiva + obligaciones
   ============================================================ */
.section--ley { border-top: 1px solid var(--line-soft); }
.ley__grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 26px;
  align-items: start;
}
.countdown {
  position: sticky; top: 96px;
  padding: 32px 30px;
  border-radius: 0;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(16, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.countdown__label {
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.countdown__units {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin: 18px 0 16px;
}
.countdown__units > div {
  text-align: center; padding: 16px 6px; border-radius: 0;
  background: rgba(10, 18, 32, 0.55);
  border: 1px solid var(--line-soft);
}
.countdown__num {
  display: block;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.countdown__u {
  display: block; margin-top: 6px;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--muted-2); font-weight: 700;
}
.countdown__foot { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }

.ley__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ley__fact {
  padding: 24px 24px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: rgba(16, 23, 42, 0.64);
}
.ley__k {
  display: block; font-weight: 800; font-size: 1.06rem;
  letter-spacing: -0.01em; margin-bottom: 8px;
  padding-left: 14px; position: relative;
}
.ley__k::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 2px;
  width: 3px; border-radius: 0; background: var(--grad);
}
.ley__fact p { color: var(--muted); font-size: 0.95rem; }
.ley__note { margin-top: 26px; font-size: 0.85rem; color: var(--muted-2); max-width: 72ch; }

/* ============================================================
   BANNER PARALLAX — Santiago
   ============================================================ */
.band {
  position: relative;
  overflow: hidden;
  padding: 130px 0;
  border-block: 1px solid var(--line-soft);
}
.band__bg {
  position: absolute;
  top: -18%; left: 0;
  width: 100%; height: 136%;
  background-size: cover;
  background-position: center 40%;
  will-change: transform;
  z-index: 0;
}
.band__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 18, 32,0.92) 0%, rgba(10, 18, 32,0.6) 50%, rgba(10, 18, 32,0.35) 100%),
    linear-gradient(180deg, var(--bg) 0%, rgba(10, 18, 32,0.35) 30%, rgba(10, 18, 32,0.5) 70%, var(--bg) 100%);
}
.band__content { position: relative; z-index: 2; max-width: 620px; }
.band__content h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1.08;
  margin: 12px 0 16px;
}
.band__content > p { color: #C7CEDF; font-size: 1.12rem; max-width: 48ch; }
.band__pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.band__pills li {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.9rem; font-weight: 600;
  padding: 9px 16px 9px 12px; border-radius: 0;
  border: 1px solid var(--line);
  background: rgba(10, 18, 32, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.pill-ico { width: 17px; height: 17px; flex: 0 0 auto; }
.pill-ico .duo-a { fill: var(--ice); }
.pill-ico .duo-b { fill: var(--coral); }
.footer__flag {
  display: inline-block; width: 23px; height: auto;
  vertical-align: -4px; margin-left: 6px;
  border-radius: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 46px;
}
.footer__tag { margin-top: 16px; color: var(--muted); max-width: 30ch; font-size: 0.95rem; }
.footer__col h4 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer__col a { display: block; color: var(--muted); font-size: 0.96rem; margin-bottom: 11px; transition: color 0.25s var(--ease); }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 28px; border-top: 1px solid var(--line-soft);
  color: var(--muted-2); font-size: 0.88rem;
}
.footer__made { font-weight: 600; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__lead { max-width: 46ch; }
  .features, .steps, .metrics, .plans { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .step__rule { display: none; }
  .ley__grid { grid-template-columns: 1fr; }
  .countdown { position: static; }
  .contacto__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .nav__links, .nav__actions .link-quiet { display: none; }
  .nav__burger { display: flex; }
  .nav__links.is-open {
    display: flex; flex-direction: column; gap: 20px;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 24px; margin-top: 10px;
    background: rgba(10, 18, 32, 0.96); backdrop-filter: blur(18px);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  }
  .hero { padding-top: 130px; }
  .features, .metrics, .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .plan--featured { order: -1; }
  .band { padding: 90px 0; }
  .ley__facts { grid-template-columns: 1fr; }
  .countdown__units { gap: 8px; }
  .field--split { grid-template-columns: 1fr; }
  .condor--4, .condor--5 { display: none; }
  .condor--1 { width: 96px; left: 8%; }
  .condor--2 { width: 68px; left: 60%; }
  .condor--3 { width: 52px; left: 78%; }
  .hero__peaks { opacity: 0.5; }
}

/* ============================================================
   Accesibilidad — foco visible + reduced motion
   ============================================================ */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .strata__aurora { animation: none; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}
