/* Kipu — estilos de la plataforma (portada, acceso, panel y admin) */
:root {
  --ink: #1E2559;
  --ink-2: #3A4170;
  --muted: #5F6488;
  --carmine: #B0124A;
  --carmine-dark: #8E0D3B;
  --maize: #F2B705;
  --paper: #FFFFFF;
  --wool: #ECEBF3;
  --wool-2: #F5F4F9;
  --line: #D9D8E6;
  --ok: #1D7A4A;
  --warn: #8A5A00;
  --danger: #B3261E;
  --series-views: #3D4BB8;
  --series-clicks: #B0124A;
  --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}
a { color: var(--carmine); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--maize); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.brand svg { width: 34px; height: 34px; flex: none; }

/* ---------- Botones y campos ---------- */
.btn {
  appearance: none; border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 15px; line-height: 1;
  padding: 12px 20px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--carmine); color: #fff; }
.btn-primary:hover { background: var(--carmine-dark); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #121838; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink); padding: 10px 12px; }
.btn-quiet:hover { background: var(--wool); }
.btn-danger { background: transparent; color: var(--danger); border-color: #E8C4C1; }
.btn-danger:hover { background: #FBEDEC; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

label.field { display: block; margin-bottom: 16px; }
.field > span:not(.input-prefix) { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field small, .hint { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
[hidden] { display: none !important; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], input[type=number], input[type=datetime-local], input[type=tel], input[type=date], textarea, select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 12px; transition: border-color .15s;
}
textarea { resize: vertical; min-height: 84px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); }
.input-prefix { display: flex; align-items: stretch; border: 2px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--paper); }
.input-prefix:focus-within { border-color: var(--ink); }
.input-prefix span { padding: 11px 0 11px 12px; color: var(--muted); white-space: nowrap; font-size: 15px; display: flex; align-items: center; }
.input-prefix input { border: 0; padding-left: 2px; min-width: 0; }

.alert { padding: 12px 14px; border-radius: var(--r-sm); margin-bottom: 16px; font-size: 15px; }
.alert-error { background: #FBEDEC; color: #7A1A14; }
.alert-ok { background: #E7F4EC; color: #145234; }
.alert-info { background: var(--wool); color: var(--ink); }

/* ---------- Portada ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; max-width: 1180px; margin: 0 auto; gap: 12px; }
.site-header nav { display: flex; gap: 8px; align-items: center; }

.hero { max-width: 1180px; margin: 0 auto; padding: 32px 24px 24px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; letter-spacing: -0.045em; line-height: .98; margin-bottom: 20px; max-width: 11ch; }
.hero .lede { font-size: 19px; color: var(--ink-2); max-width: 40ch; margin-bottom: 28px; }
.claim { display: flex; gap: 8px; max-width: 520px; flex-wrap: wrap; }
.claim .input-prefix { flex: 1 1 280px; border-radius: 999px; padding-left: 8px; }
.claim .input-prefix input { padding-right: 16px; }
.claim .btn { flex: 0 0 auto; }
.claim-note { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* El quipu: una cuerda principal de la que cuelgan los enlaces */
.quipu { position: relative; height: 470px; }
.quipu .main-cord { position: absolute; left: -4%; right: -4%; top: 18px; width: 108%; height: 60px; overflow: visible; }
.quipu .main-cord path { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.strand { position: absolute; top: 40px; display: flex; flex-direction: column; align-items: center; transform-origin: top center; }
.strand .cord { width: 3px; background: var(--ink); border-radius: 2px; position: relative; }
.strand .knot { position: absolute; left: 50%; width: 15px; height: 15px; border-radius: 50%; transform: translateX(-50%); }
.strand .knot.k-c { background: var(--carmine); }
.strand .knot.k-m { background: var(--maize); }
.strand .tag {
  margin-top: -2px; display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px;
  padding: 10px 16px; font-weight: 700; font-size: 15px; white-space: nowrap; color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.strand .tag svg { width: 18px; height: 18px; }
.strand.s1 { left: 2%; } .strand.s1 .cord { height: 120px; }
.strand.s2 { left: 26%; } .strand.s2 .cord { height: 250px; }
.strand.s3 { left: 52%; } .strand.s3 .cord { height: 160px; }
.strand.s4 { left: 74%; } .strand.s4 .cord { height: 300px; }
.strand.s2 .tag { background: var(--carmine); color: #fff; border-color: var(--carmine); box-shadow: 3px 3px 0 var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .quipu .main-cord path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1s ease-out .1s forwards; }
  .strand { animation: drop .9s cubic-bezier(.3, 1.5, .5, 1) both; }
  .strand.s1 { animation-delay: .7s; } .strand.s2 { animation-delay: .85s; }
  .strand.s3 { animation-delay: 1s; } .strand.s4 { animation-delay: 1.15s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes drop { from { transform: scaleY(0); opacity: 0; } 60% { opacity: 1; } to { transform: scaleY(1); opacity: 1; } }
}

.section { max-width: 1180px; margin: 0 auto; padding: 72px 24px; }
.section h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; max-width: 22ch; }
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--maize); font-weight: 800; margin-bottom: 14px; }
.steps h3 { font-size: 21px; }
.steps p { color: var(--ink-2); }

.band { background: var(--ink); color: #fff; }
.band .section { padding-top: 64px; padding-bottom: 64px; }
.band h2 { color: #fff; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 40px; margin-top: 32px; }
.features h3 { font-size: 19px; display: flex; gap: 10px; align-items: center; }
.features h3 i { width: 12px; height: 12px; border-radius: 50%; background: var(--maize); flex: none; }
.features p { color: #C9CCE4; margin: 0; }

.cta-end { text-align: center; }
.cta-end h2 { margin: 0 auto .4em; }
.cta-end p { color: var(--ink-2); margin-bottom: 24px; }
.site-footer { max-width: 1180px; margin: 0 auto; padding: 28px 24px 40px; color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 8px; padding-top: 16px; }
  .quipu { height: 360px; order: -1; margin: 0 -8px; }
  .strand.s1 .cord { height: 70px; } .strand.s2 .cord { height: 180px; }
  .strand.s3 .cord { height: 110px; } .strand.s4 .cord { height: 230px; }
  .strand.s4 { left: 64%; }
  .strand .tag { font-size: 13px; padding: 8px 12px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 56px 20px; }
}
@media (max-width: 420px) {
  .site-header { padding: 16px; }
  .site-header .btn-quiet { display: none; }
  .hero, .section { padding-left: 16px; padding-right: 16px; }
  .strand.s3 { display: none; }
  .strand.s4 { left: 56%; }
}

/* ---------- Acceso ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--ink); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side .brand { color: #fff; }
.auth-side .brand svg .cord-main, .auth-side .brand svg .cord { stroke: #fff; }
.auth-side blockquote { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin: 0; max-width: 16ch; }
.auth-side p { color: #C9CCE4; max-width: 36ch; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 32px; font-weight: 800; }
.auth-card .sub { color: var(--muted); margin-bottom: 24px; }
.auth-alt { margin-top: 20px; font-size: 15px; color: var(--muted); }
.auth-mobile-brand { display: none; margin-bottom: 28px; }
@media (max-width: 800px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-mobile-brand { display: inline-flex; }
  .auth-main { align-items: flex-start; padding-top: 32px; }
}

/* ---------- Error ---------- */
.error-page { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.error-page h1 { font-size: 34px; font-weight: 800; }
.error-page p { color: var(--muted); }

/* ---------- Administración ---------- */
.admin { max-width: 1240px; margin: 0 auto; padding: 24px 24px 80px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.admin h1 { font-size: 30px; font-weight: 800; margin: 0; }
.admin h2 { font-size: 19px; font-weight: 700; }
.admin-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 24px; }
.admin-kpis div { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.admin-kpis b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.admin-kpis span { color: var(--muted); font-size: 14px; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.admin-card { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.admin-card form.inline { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; align-items: end; }
.admin-card form.inline label { margin: 0; }
.admin-card form.inline .pair { display: flex; gap: 10px; align-items: end; }
.admin-card form.inline .pair label { flex: 0 0 90px; }
.temp-pass { font-family: ui-monospace, Menlo, monospace; font-size: 18px; font-weight: 700; background: var(--maize); color: var(--ink); padding: 4px 10px; border-radius: 6px; margin-left: 6px; user-select: all; }
.utable-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.utable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 900px; }
.utable th { white-space: nowrap; text-align: left; font-weight: 600; color: var(--muted); padding: 12px 14px; background: var(--wool-2); border-bottom: 1px solid var(--line); }
.utable td { padding: 12px 14px; border-bottom: 1px solid var(--wool); vertical-align: top; }
.utable tr:last-child td { border-bottom: 0; }
.utable .num { text-align: right; font-variant-numeric: tabular-nums; }
.utable .acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.utable .acts form { margin: 0; display: inline-flex; gap: 4px; align-items: center; }
.utable .acts input[type=number] { width: 64px; padding: 6px 8px; font-size: 14px; }
.utable .acts input[type=text] { width: 170px; padding: 6px 8px; font-size: 13px; }
.utable details summary { cursor: pointer; color: var(--danger); font-weight: 600; font-size: 13px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--wool); }
.badge-admin { background: var(--ink); color: #fff; }
.badge-off { background: #FBEDEC; color: var(--danger); }
.slugs a { margin-right: 8px; font-weight: 600; }
@media (max-width: 900px) { .admin-kpis { grid-template-columns: repeat(2, 1fr); } .admin-cols { grid-template-columns: 1fr; } }

/* ======================= v2 ======================= */
.lede-sm { font-size: 18px; color: var(--ink-2); max-width: 52ch; margin-bottom: 24px; }
.page-h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -0.04em; max-width: 18ch; }
.spark { width: 16px; height: 16px; fill: currentColor; flex: none; vertical-align: -2px; margin-right: 6px; }
@media (max-width: 640px) { .nav-hide { display: none; } }

/* Acceso */
.btn-google { background: #fff; color: #1f1f1f; border: 2px solid var(--line); gap: 10px; }
.btn-google:hover { border-color: var(--ink); }
.auth-alts { display: flex; flex-direction: column; gap: 10px; }
.magic-box summary { list-style: none; cursor: pointer; }
.magic-box summary::-webkit-details-marker { display: none; }
.magic-box[open] summary { border-color: var(--ink); }
.magic-form { margin-top: 14px; padding: 16px; border-radius: var(--r); background: var(--wool-2); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin: 22px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.code-input { font-size: 28px !important; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.ai-field > span { display: flex; align-items: center; }
.ai-field textarea { border-color: #E9C9D6; background: linear-gradient(var(--paper), var(--paper)) padding-box, linear-gradient(120deg, var(--carmine), var(--maize)) border-box; border: 2px solid transparent; }

/* Muestrario de temas */
.showcase { overflow: hidden; padding: 12px 0 40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.showcase-track { display: flex; gap: 22px; width: max-content; padding: 0 22px; }
@media (prefers-reduced-motion: no-preference) {
  .showcase-track { animation: marquee 60s linear infinite; }
  .showcase:hover .showcase-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) { .showcase { overflow-x: auto; } }
.mini { position: relative; margin: 0; width: 200px; height: 360px; border-radius: 30px; overflow: hidden; flex: none; color: var(--text); background: var(--bg-solid); background: var(--bg); font-family: var(--font); border: 6px solid var(--ink); isolation: isolate; }
.mini .fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; display: none; }
.mini .fx i { position: absolute; display: block; }
.mini.fx-aurora .fx, .mini.fx-grain .fx, .mini.fx-textil .fx, .mini.fx-dots .fx { display: block; }
.mini.fx-aurora .fx i { width: 220px; height: 220px; border-radius: 50%; filter: blur(40px); opacity: .6; }
.mini.fx-aurora .fx i:nth-child(1) { background: var(--glow1); top: -80px; left: -60px; }
.mini.fx-aurora .fx i:nth-child(2) { background: var(--glow2); bottom: -90px; right: -70px; }
.mini.fx-aurora .fx i:nth-child(3) { background: #F2B705; top: 120px; left: 80px; width: 120px; height: 120px; opacity: .25; }
.mini.fx-textil .fx { opacity: .16; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpath d='M0 28h8v-8h8v-8h8V4h8v8h8v8h8v8h8M0 56h8v-8h8v-8h8v-8h8v8h8v8h8v8h8'/%3E%3C/g%3E%3Crect x='25' y='25' width='6' height='6' fill='%23fff'/%3E%3C/svg%3E"); background-size: 40px 40px; }
.mini.fx-dots .fx { opacity: .25; background-image: radial-gradient(var(--text) 1px, transparent 1.2px); background-size: 14px 14px; }
.mini.fx-grain .fx { opacity: .25; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.mini-in { padding: 34px 16px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.mini-av { width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: var(--bg-solid); display: grid; place-items: center; font-weight: 800; font-size: 18px; margin-bottom: 4px; }
.mini.av-rounded .mini-av { border-radius: 16px; } .mini.av-square .mini-av { border-radius: 6px; }
.mini b { font-size: 16px; line-height: 1.1; }
.mini small { font-size: 11.5px; color: var(--muted); margin-bottom: 8px; line-height: 1.3; }
.mini-btn { width: 100%; font-size: 12px; font-weight: 700; padding: 10px 8px; background: var(--btn-bg); color: var(--btn-color); border: var(--btn-border); box-shadow: var(--btn-shadow); border-radius: var(--radius); }
.mini.btn-shadow .mini-btn { box-shadow: 3px 3px 0 var(--text); }
.mini.btn-glass .mini-btn { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.mini-btn.is-featured { padding: 14px 8px; }
.mini figcaption { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-family: var(--font); font-size: 11px; color: var(--muted); }

/* Secciones divididas */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-rev > :first-child { order: 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { padding-left: 28px; position: relative; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--maize); box-shadow: 0 0 0 4px #FDF1C7; }
.ticks b { color: var(--ink); }

.ai-demo { background: var(--ink); border-radius: var(--r-lg); padding: 28px; color: #fff; box-shadow: 0 30px 60px -30px rgba(30, 37, 89, .6); }
.ai-prompt { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.08); border-radius: 14px; padding: 14px 16px; font-size: 15px; border: 1px solid rgba(255,255,255,.14); }
.ai-prompt .spark { fill: var(--maize); width: 18px; height: 18px; }
.typed { overflow: hidden; white-space: nowrap; border-right: 2px solid var(--maize); }
@media (prefers-reduced-motion: no-preference) {
  .typed { width: 0; animation: type 3.2s steps(52) .4s forwards, caret 1s step-end infinite; }
  @keyframes type { to { width: 100%; } }
  @keyframes caret { 50% { border-color: transparent; } }
  .ai-result > * { opacity: 0; animation: pop .5s ease forwards; }
  .ai-result > :nth-child(1) { animation-delay: 3.8s; } .ai-result > :nth-child(2) { animation-delay: 4.1s; }
  .ai-result > :nth-child(3) { animation-delay: 4.3s; } .ai-result > :nth-child(4) { animation-delay: 4.5s; } .ai-result > :nth-child(5) { animation-delay: 4.8s; }
  @keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
.ai-result { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.ai-bio { margin: 0; color: #DDE0F5; font-size: 15px; }
.ai-chip { background: #FDE2EC; color: #4A3B5C; border-radius: 999px; padding: 11px 16px; font-weight: 700; font-size: 14px; text-align: center; }
.ai-swatches { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; color: #C9CCE4; }
.ai-swatches i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); }
.ai-swatches span { margin-left: 6px; }

.stats-demo { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: var(--paper); box-shadow: 0 30px 60px -36px rgba(30, 37, 89, .45); }
.sd-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.sd-kpis div { background: var(--wool-2); border-radius: 12px; padding: 12px; }
.sd-kpis b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.sd-kpis span { font-size: 13px; color: var(--muted); display: block; }
.sd-kpis em { font-style: normal; font-size: 12px; font-weight: 700; }
.up { color: var(--ok); } .down { color: var(--danger); }
.sd-heat { display: grid; gap: 3px; }
.sd-row { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; }
.sd-row i { aspect-ratio: 1; border-radius: 3px; background: var(--series-views); }
.sd-cap { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* Precios */
.pricing-controls { position: relative; }
.pricing-controls > input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.seg-pill { display: inline-flex; background: var(--wool); border-radius: 999px; padding: 4px; gap: 2px; }
.seg-pill label { padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer; color: var(--ink-2); }
.seg-pill em { font-style: normal; font-size: 12px; color: var(--ok); margin-left: 4px; }
#bill-m:checked ~ .seg-pill label[for=bill-m], #bill-y:checked ~ .seg-pill label[for=bill-y] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 4px rgba(30,37,89,.16); }
#bill-m:focus-visible ~ .seg-pill label[for=bill-m], #bill-y:focus-visible ~ .seg-pill label[for=bill-y] { outline: 3px solid var(--maize); }
.currency-switch { margin-left: 14px; font-weight: 600; font-size: 15px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; align-items: start; }
.plan { position: relative; border: 2px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; background: var(--paper); }
.plan.is-pick { border-color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.plan-flag { position: absolute; top: -13px; left: 22px; background: var(--maize); color: var(--ink); font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 24px; margin-bottom: 2px; }
.plan-tag { color: var(--muted); margin: 0 0 16px; }
.price { margin: 0 0 18px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price strong { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-size: 14px; }
.price-year { display: none; }
#bill-y:checked ~ .pricing-grid .price-year { display: flex; }
#bill-y:checked ~ .pricing-grid .price-month { display: none; }
.plan-feats { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 9px; font-size: 15px; }
.plan-feats li { padding-left: 24px; position: relative; }
.plan-feats li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.pricing-note { color: var(--muted); font-size: 14px; margin-top: 18px; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--wool); text-align: center; }
.compare thead th { background: var(--wool-2); font-size: 16px; }
.compare tbody th { text-align: left; font-weight: 500; color: var(--ink-2); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--ok); font-weight: 800; } .compare .no { color: var(--line); }

/* Preguntas */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 760px; }
.faq summary { font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--carmine); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--ink-2); margin: 10px 0 0; max-width: 64ch; }

@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-rev .stats-demo { order: 2; }
}
@media (max-width: 420px) {
  .currency-switch { display: block; margin: 12px 0 0; }
  .mini { width: 170px; height: 320px; }
}
.proposals { display: grid; gap: 10px; }
.proposal { display: block; border: 2px solid var(--line); border-radius: var(--r); padding: 12px 14px 12px 40px; position: relative; cursor: pointer; }
.proposal.is-on, .proposal:has(input:checked) { border-color: var(--ink); background: var(--wool-2); }
.proposal input[type=radio] { position: absolute; left: 14px; top: 15px; accent-color: var(--ink); }
.proposal b { display: block; }
.proposal span { display: block; font-size: 14px; color: var(--ink-2); }
.proposal small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.custom-prices { display: grid; gap: 8px; margin-top: 8px; }
.custom-prices > div { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; }
.custom-prices strong { width: 100%; font-size: 14px; }
.custom-prices input { width: 72px; padding: 5px 8px; font-size: 14px; }
.services { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.services li { display: flex; flex-direction: column; padding: 10px 12px 10px 30px; border-radius: 10px; background: var(--wool-2); position: relative; font-size: 14px; }
.services li::before { content: ''; position: absolute; left: 12px; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.services li.on::before { background: var(--ok); }
.services span { color: var(--muted); font-size: 13px; }
.badge-plan { background: var(--maize); color: var(--ink); }
.plan-form select { width: auto; padding: 6px 8px; font-size: 13px; }
