/* ============================================================
   BROKER DE COCHES — Recursos del alumno
   Sistema de diseño compartido (todas las páginas usan esto)
   Marca heredada de landing-broker-de-coches.html
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Miriam+Libre:wght@400;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* Paleta */
  --bg:        #050709;
  --bg-2:      #0a0e13;
  --ink:       #F5F2EC;
  --ink-dim:   rgba(245, 242, 236, 0.82);
  --ink-soft:  rgba(245, 242, 236, 0.62);
  --ink-faint: rgba(245, 242, 236, 0.40);
  --line:      rgba(245, 242, 236, 0.10);
  --line-2:    rgba(245, 242, 236, 0.16);

  --accent:    #E63946;          /* rojo de marca */
  --accent-dk: #b51f2c;
  --gold:      #C9A24B;          /* dorado de valor (badges de precio) */
  --gold-dk:   #A8842F;
  --green:     #46c47d;
  --green-dk:  #2f9d5e;

  /* Superficies */
  --surface:   rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.09);

  /* Tipografía */
  --display: "Manrope", "Tactic Sans Ext Bold", system-ui, sans-serif;
  --body:    "Miriam Libre", system-ui, sans-serif;

  --radius:   18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --maxw:     1080px;
  --shadow:   0 30px 80px -40px rgba(0, 0, 0, 0.9);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  /* Fondo diferenciador: halo rojo de marca + vignette + base con tinte */
  background-image:
    radial-gradient(115% 72% at 50% -8%, rgba(230, 57, 70, 0.16) 0%, transparent 52%),
    radial-gradient(100% 100% at 50% 46%, transparent 40%, rgba(0, 0, 0, 0.52) 100%),
    linear-gradient(180deg, #070a0e 0%, var(--bg) 56%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Rejilla de puntos con máscara radial (se desvanece hacia los bordes) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(rgba(245, 242, 236, 0.05) 1px, transparent 1.6px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 92% 56% at 50% -2%, #000 6%, transparent 72%);
          mask-image: radial-gradient(ellipse 92% 56% at 50% -2%, #000 6%, transparent 72%);
}
/* Grano de película */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.95 0 0 0 0 0.92 0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: rgba(230, 57, 70, 0.32); color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(40px, 7vw, 84px) 0; }

/* ---------- Topbar / nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(5, 7, 9, 0.86), rgba(5, 7, 9, 0.45));
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  font-family: var(--display); font-weight: 800; font-size: 19px;
  color: #fff;
  background: linear-gradient(150deg, var(--accent), var(--accent-dk));
  box-shadow: 0 8px 24px -10px rgba(230, 57, 70, 0.7), inset 0 1px 0 rgba(255,255,255,0.25);
}
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name b { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: -0.2px; }
.brand-name small { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; }
.topbar-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: 13.5px;
  color: var(--ink-soft);
  padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line-2);
  transition: 0.18s ease;
}
.topbar-back:hover { color: var(--ink); border-color: var(--ink-faint); background: var(--surface); }

/* ---------- Hero / page header ---------- */
.hero { padding-top: clamp(36px, 6vw, 64px); padding-bottom: clamp(20px, 4vw, 36px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 700;
  font-size: 12px; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); display: inline-block; }
h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(34px, 6vw, 58px); line-height: 1.04; letter-spacing: -1.4px;
  margin: 18px 0 0;
}
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.6px; margin: 0 0 6px; }
h3 { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.2px; margin: 0; }
.lead { font-size: clamp(17px, 2.1vw, 20px); line-height: 1.55; color: var(--ink-dim); max-width: 62ch; margin: 18px 0 0; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card-grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .card-grid.cols-2 { grid-template-columns: 1fr 1fr; } }

/* Tarjeta-enlace del hub */
.extra-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px 24px;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(.2,.7,.3,1), border-color 0.22s, box-shadow 0.22s;
}
.extra-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120% 80% at 80% -20%, rgba(230,57,70,0.16), transparent 55%);
  opacity: 0; transition: opacity 0.25s;
}
.extra-card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 40px 90px -45px rgba(0,0,0,0.95); }
.extra-card:hover::after { opacity: 1; }
.extra-num { font-family: var(--display); font-weight: 800; font-size: 13px; color: var(--ink-faint); letter-spacing: 1px; }
.extra-card h3 { font-size: 23px; margin-top: 10px; }
.extra-desc { color: var(--ink-soft); font-size: 15px; margin: 8px 0 18px; }
.extra-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.extra-open { font-family: var(--display); font-weight: 700; font-size: 13.5px; color: var(--accent); display: inline-flex; gap: 7px; align-items: center; }
.extra-card:hover .extra-open { gap: 11px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--display); font-weight: 700; font-size: 13px;
  padding: 6px 12px; border-radius: 999px;
  color: var(--gold);
  background: rgba(201, 162, 75, 0.10);
  border: 1px solid rgba(201, 162, 75, 0.34);
  white-space: nowrap;
}
.badge.included { color: var(--ink-dim); background: var(--surface-2); border-color: var(--line-2); }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--display); font-weight: 600; font-size: 11.5px; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 5px 10px; border-radius: 7px;
  color: var(--ink-soft); background: var(--surface-2); border: 1px solid var(--line);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 700; font-size: 15px;
  padding: 14px 24px; border-radius: 13px;
  transition: 0.18s ease; white-space: nowrap;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(150deg, var(--accent), var(--accent-dk));
  box-shadow: 0 16px 38px -16px rgba(230, 57, 70, 0.75), inset 0 1px 0 rgba(255,255,255,0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -16px rgba(230, 57, 70, 0.85); }
.btn-ghost { color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--surface-3); border-color: var(--ink-faint); }
.btn-sm { padding: 10px 16px; font-size: 13.5px; border-radius: 10px; }

/* ---------- Forms / fields ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-family: var(--display); font-weight: 600; font-size: 13.5px; color: var(--ink-dim); }
.hint { font-size: 12.5px; color: var(--ink-faint); }
.input, select.input {
  width: 100%;
  font-family: var(--body); font-size: 16px; color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 13px 15px;
  transition: 0.16s ease;
  appearance: none;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.18); }
.input-group { position: relative; }
.input-group .unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); font-size: 14px; pointer-events: none; }
.input-group .input { padding-right: 42px; }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; gap: 5px; padding: 5px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); }
.tab {
  font-family: var(--display); font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 9px; color: var(--ink-soft); transition: 0.16s;
}
.tab[aria-selected="true"] { color: #fff; background: linear-gradient(150deg, var(--accent), var(--accent-dk)); box-shadow: 0 10px 24px -12px rgba(230,57,70,0.7); }

/* ---------- Result / number display ---------- */
.result { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px; }
.result-big { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 6vw, 50px); letter-spacing: -1.5px; line-height: 1; }
.result-label { font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-faint); font-family: var(--display); font-weight: 600; }

/* Semáforo */
.semaforo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 16px; padding: 12px 18px; border-radius: 12px; }
.semaforo.go { color: #d7ffe7; background: rgba(70,196,125,0.14); border: 1px solid rgba(70,196,125,0.4); }
.semaforo.no { color: #ffd9dd; background: rgba(230,57,70,0.14); border: 1px solid rgba(230,57,70,0.42); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.go { background: var(--green); box-shadow: 0 0 14px var(--green); }
.dot.no { background: var(--accent); box-shadow: 0 0 14px var(--accent); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 720px; }
table.data thead th { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink-faint); text-align: left; padding: 14px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
table.data td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--surface); }

/* ---------- Chips (iniciales plataformas) ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  font-family: var(--display); font-weight: 800; font-size: 18px;
  color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-2);
}

/* ---------- Script block ---------- */
.script-block { background: var(--bg-2); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 22px 24px; }
.script-line { font-size: 16.5px; line-height: 1.7; color: var(--ink-dim); margin: 0 0 14px; }
.script-line:last-child { margin-bottom: 0; }
.key-line { color: var(--ink); background: rgba(201,162,75,0.12); border-radius: 6px; padding: 1px 5px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- Callout ---------- */
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.callout .ico { flex: none; width: 26px; height: 26px; color: var(--accent); }

/* ---------- Divider / footer ---------- */
.divider { height: 1px; background: var(--line); border: none; margin: 0; }
.footer { padding: 40px 0 56px; color: var(--ink-faint); font-size: 13.5px; }
.footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }

/* ---------- Utilidades ---------- */
.stack-6 > * + * { margin-top: 6px; }
.stack-12 > * + * { margin-top: 12px; }
.stack-20 > * + * { margin-top: 20px; }
.stack-32 > * + * { margin-top: 32px; }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.center { text-align: center; }
.hide { display: none !important; }

/* ---------- Entrada (animación sutil) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); animation: rise 0.7s cubic-bezier(.2,.7,.3,1) forwards; }
  .reveal[data-d="1"] { animation-delay: 0.06s; }
  .reveal[data-d="2"] { animation-delay: 0.12s; }
  .reveal[data-d="3"] { animation-delay: 0.18s; }
  .reveal[data-d="4"] { animation-delay: 0.24s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

@media (max-width: 560px) {
  .topbar { padding: 12px 18px; }
  .container { padding: 0 18px; }
  .card { padding: 20px; }
  .brand-name small { display: none; }
  .brk-desktop { display: none; }
}

/* ============================================================
   COMPONENTES "NIVEL 3" (accionables)
   panel de stats · barras · objeciones · checklist · avisos
   ============================================================ */

/* Panel de métricas (dashboard) */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .stat-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.stat-num { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 4vw, 32px); line-height: 1; letter-spacing: -1px; }
.stat-label { font-family: var(--display); font-weight: 600; font-size: 11.5px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink-faint); margin-top: 7px; }
.stat.is-gold .stat-num { color: var(--gold); }
.stat.is-red .stat-num { color: var(--accent); }
.stat.is-green .stat-num { color: var(--green); }

/* Número con brillo (cifra protagonista) */
.glow-num { color: var(--accent); text-shadow: 0 0 26px rgba(230, 57, 70, 0.45); }
.glow-gold { color: var(--gold); text-shadow: 0 0 26px rgba(201, 162, 75, 0.4); }

/* Barra de proporciones (ej. bruto → gastos → neto) */
.bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.bar-seg { height: 100%; transition: width 0.5s cubic-bezier(.2,.7,.3,1); }
.bar-seg.neto { background: linear-gradient(90deg, var(--green), var(--green-dk)); }
.bar-seg.gastos { background: rgba(245, 242, 236, 0.18); }
.bar-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); margin-top: 12px; }
.bar-legend .key { display: inline-flex; align-items: center; gap: 7px; }
.bar-legend .swatch { width: 11px; height: 11px; border-radius: 3px; }
.swatch.neto { background: var(--green); }
.swatch.gastos { background: rgba(245, 242, 236, 0.3); }

/* Bloque de objeción: "si te dicen X, respondes Y" */
.objection { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.objection + .objection { margin-top: 10px; }
.obj-q { display: flex; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 14.5px; color: var(--ink); }
.obj-q::before { content: "“"; color: var(--accent); font-size: 22px; line-height: 0.8; }
.obj-a { font-size: 15px; color: var(--ink-dim); margin: 8px 0 0; padding-left: 17px; border-left: 2px solid rgba(201,162,75,0.4); }

/* Checklist accionable (plan de captación) */
.checklist { display: grid; gap: 12px; }
.check-item { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px 17px; }
.check-num { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font-family: var(--display); font-weight: 800; font-size: 13px; color: #fff; background: linear-gradient(150deg, var(--accent), var(--accent-dk)); }
.check-body { flex: 1; }
.check-body b { font-family: var(--display); font-weight: 700; }
.check-body p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-soft); }

/* Pill de prioridad / orden ("Empieza aquí") */
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; color: var(--green); background: rgba(70,196,125,0.12); border: 1px solid rgba(70,196,125,0.35); }

/* Enlace externo discreto */
.linkout { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; font-family: var(--display); font-size: 13.5px; }
.linkout svg { width: 13px; height: 13px; }

/* Estados de fila en tabla viva */
table.data tr.cold td { box-shadow: inset 3px 0 0 var(--accent); }
.flag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; font-family: var(--display); color: var(--accent); }
.flag .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(230,57,70,0.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(230,57,70,0.5);} 70% { box-shadow: 0 0 0 7px rgba(230,57,70,0);} 100% { box-shadow: 0 0 0 0 rgba(230,57,70,0);} }

/* Select de estado coloreado (plantilla) */
select.estado { font-family: var(--display); font-weight: 600; border-radius: 8px; padding: 7px 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink); }
select.estado.s-captado { color: var(--ink-dim); }
select.estado.s-venta { color: var(--gold); border-color: rgba(201,162,75,0.4); }
select.estado.s-reservado { color: var(--accent); border-color: rgba(230,57,70,0.4); }
select.estado.s-cerrado { color: var(--green); border-color: rgba(70,196,125,0.4); }

/* ============================================================
   CAPA PREMIUM v2 — los detallitos que marcan la diferencia
   logo · botón CTA animado · brush · recuadro a mano · glass ·
   reveal al scroll · scrollbar · selects · foco
   ============================================================ */

@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* ---------- Logo (monograma vectorial) ---------- */
.brand-mark svg { width: 22px; height: 22px; color: #F5F2EC; }
.brand:hover .brand-mark { box-shadow: 0 10px 28px -8px rgba(230,57,70,0.85), inset 0 1px 0 rgba(255,255,255,0.3); }
.brand-mark { transition: box-shadow 0.25s ease; }
.logo-lockup { display: inline-flex; align-items: center; gap: 14px; }
.logo-lockup .mk { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; color: #F5F2EC; background: linear-gradient(150deg, var(--accent), var(--accent-dk)); box-shadow: 0 16px 40px -16px rgba(230,57,70,0.8), inset 0 1px 0 rgba(255,255,255,0.25); }
.logo-lockup .mk svg { width: 30px; height: 30px; }

/* ---------- Botón CTA: borde en gradiente animado ---------- */
.btn-cta { position: relative; display: inline-flex; border-radius: 999px; isolation: isolate; transition: transform 0.35s cubic-bezier(.2,.8,.2,1); }
.btn-cta__face { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 0.6em; padding: 1.05em 2.1em; border-radius: 999px; border: 1.8px solid transparent; --a: 0deg; color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.02rem; white-space: nowrap;
  background: linear-gradient(180deg, #2a0c10, #160709) padding-box,
              conic-gradient(from var(--a), var(--accent) 0%, #ff5f6a 40%, #fff 50%, #ff5f6a 60%, var(--accent) 100%) border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), inset 0 -1px 0 rgba(0,0,0,0.45); animation: spin 4.5s linear infinite; }
.btn-cta__glow { position: absolute; inset: -9px; z-index: 0; border-radius: 999px; --a: 0deg; filter: blur(18px); opacity: 0.42; transition: opacity 0.35s; background: conic-gradient(from var(--a), var(--accent), #ff5f6a, #fff, var(--accent)); animation: spin 4.5s linear infinite; }
@keyframes spin { to { --a: 360deg; } }
.btn-cta:hover { transform: translateY(-2px); }
.btn-cta:hover .btn-cta__glow { opacity: 0.7; }
.btn-cta:hover .btn-cta__face, .btn-cta:hover .btn-cta__glow { animation-duration: 2.6s; }
@media (prefers-reduced-motion: reduce) { .btn-cta__face, .btn-cta__glow { animation: none; } }

/* ---------- Brush highlight (se pinta solo al entrar) ---------- */
.mark { position: relative; display: inline-block; isolation: isolate; }
.mark .t { position: relative; z-index: 2; }
.mark .brush { position: absolute; left: -0.16em; width: calc(100% + 0.32em); bottom: 0.02em; height: 0.86em; z-index: 1; transform: rotate(-1.4deg); pointer-events: none; overflow: visible; }
.mark .brush path { fill: var(--accent); fill-opacity: 0.55; }
.mark .brush .ink2 { fill-opacity: 0.28; }
.js .mark .brush { clip-path: inset(0 102% 0 0); transition: clip-path 0.85s cubic-bezier(.62,.02,.16,1); }
.js .mark.in .brush { clip-path: inset(0 -3% 0 0); }
@media (prefers-reduced-motion: reduce) { .js .mark .brush { clip-path: inset(0 0 0 0); transition: none; } }

/* ---------- Recuadro dibujado a mano ---------- */
.callout-draw { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 20px 32px; text-align: center; font-family: var(--display); font-weight: 700; color: var(--ink); font-size: clamp(19px, 3vw, 25px); line-height: 1.25; transform: rotate(-0.7deg); }
.callout-draw .t { position: relative; z-index: 2; }
.callout-draw .box { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.callout-draw .box path { stroke: var(--accent); }

/* ---------- Glass + refinamiento de tarjetas ---------- */
.glass { background: rgba(255,255,255,0.026); border: 1px solid rgba(245,242,236,0.085); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card.hoverable, .glass.hoverable { transition: transform 0.25s cubic-bezier(.2,.7,.3,1), border-color 0.25s, box-shadow 0.25s; }
.card.hoverable:hover, .glass.hoverable:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 40px 90px -50px rgba(0,0,0,0.95); }

/* ---------- Reveal al scroll (lo dispara shared.js) ---------- */
.r { opacity: 1; }
.js .r { opacity: 0; transform: translateY(18px); will-change: opacity, transform; }
.js .r.in { opacity: 1; transform: none; transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1); }
.r[data-d="1"].in { transition-delay: 0.06s; }
.r[data-d="2"].in { transition-delay: 0.12s; }
.r[data-d="3"].in { transition-delay: 0.18s; }
.r[data-d="4"].in { transition-delay: 0.24s; }
.r[data-d="5"].in { transition-delay: 0.30s; }
@media (prefers-reduced-motion: reduce) { .r { opacity: 1; transform: none; } }

/* ---------- Cifras (tabular) ---------- */
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Roadmap (camino de la primera operación) ---------- */
.roadmap { position: relative; display: grid; gap: 4px; }
.roadmap::before { content: ""; position: absolute; left: 23px; top: 44px; bottom: 44px; width: 2px; background: linear-gradient(180deg, var(--accent), rgba(245,242,236,0.12) 22%, rgba(245,242,236,0.12)); border-radius: 2px; }
.road-step { position: relative; display: flex; gap: 22px; align-items: flex-start; padding: 20px 18px 20px 0; border-radius: var(--radius-sm); transition: background 0.2s ease; }
.road-step:hover { background: var(--surface); }
.road-num { flex: none; position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font-family: var(--display); font-weight: 800; font-size: 19px; color: #fff; background: linear-gradient(150deg, var(--accent), var(--accent-dk)); box-shadow: 0 12px 30px -12px rgba(230,57,70,0.85), inset 0 1px 0 rgba(255,255,255,0.25); transition: transform 0.22s cubic-bezier(.2,.7,.3,1); }
.road-step:hover .road-num { transform: scale(1.08); }
.road-body { padding-top: 4px; }
.road-body h3 { font-size: 20px; transition: color 0.2s; }
.road-step:hover .road-body h3 { color: #fff; }
.road-body p { margin: 7px 0 0; color: var(--ink-soft); font-size: 15.5px; max-width: 62ch; }
.road-tool { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--display); font-weight: 700; font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); }
.road-tool::before { content: ""; width: 14px; height: 1.5px; background: var(--accent); }
.road-step:hover .road-tool { gap: 12px; }

/* ---------- Selects nativos con flecha propia ---------- */
select.input, select.estado {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23F5F2EC' stroke-opacity='0.55' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px;
}

/* ---------- Foco visible accesible ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.input:focus-visible { outline: none; }

/* ---------- Scrollbar de marca ---------- */
* { scrollbar-width: thin; scrollbar-color: rgba(245,242,236,0.18) transparent; }
*::-webkit-scrollbar { width: 11px; height: 11px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(245,242,236,0.16); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(245,242,236,0.28); background-clip: padding-box; }

/* ---------- Toast (feedback de copiar, etc.) ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 300; display: flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 14px; box-shadow: 0 20px 50px -20px rgba(0,0,0,0.9); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .dot.go { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
