/* =============================================================
   JP Redacciones — Plantilla de entrada de blog
   Mismo sistema visual que la portada (white · periwinkle · navy)
   ============================================================= */

/* 1. Tokens (idénticos a la portada) --------------------------- */
:root {
  --bg:      #ffffff;
  --bg-2:    #f5f6fa;
  --bg-3:    #eef0f6;
  --ink:     #0d0f1a;
  --ink-2:   #3b4056;
  --mute:    #7a8099;
  --faint:   #b4b9cb;
  --line:    #e6e8f0;
  --peri:    #8ea6ee;
  --peri-2:  #c3cff6;
  --lav:     #e4e9fc;
  --blue:    #3f5fd6;
  --navy:    #0b1030;
  --navy-2:  #1a2152;
  --ok:      #1f8a5b;
  --ok-bg:   #e8f7ef;

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r: 22px;
  --shadow: 0 1px 2px rgba(13,15,26,.04), 0 12px 32px -14px rgba(13,15,26,.14);
}

/* 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; font-weight: 500; letter-spacing: -.035em; line-height: 1.08; }
::selection { background: var(--peri-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 999; padding: .6rem 1rem; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3. Piezas compartidas con la portada ------------------------- */
.tag {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .75rem; border-radius: 99px;
  background: var(--bg-2); border: 1px solid var(--line);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px var(--lav); }
.pill-mono { display: inline-block; padding: .3rem .6rem; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.glow { position: absolute; pointer-events: none; z-index: -1; filter: blur(60px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  height: 44px; padding: 0 1.25rem; border-radius: 99px; font-weight: 500; font-size: .9rem; white-space: nowrap;
  transition: transform .4s var(--ease), background .3s, box-shadow .4s var(--ease), color .3s;
}
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -10px rgba(13,15,26,.6), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-dark:hover { background: var(--navy-2); }
.btn-soft { background: var(--bg-2); border: 1px solid var(--line); }
.btn-soft:hover { background: var(--bg-3); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--lav); }
.btn-line { color: #fff; border: 1px solid rgba(195,207,246,.35); }
.btn-line:hover { background: rgba(255,255,255,.08); }
.btn-sm { height: 36px; padding: 0 1rem; font-size: .82rem; }
.btn-block { width: 100%; }

.jp, .cta-mark, .side-mark {
  font-weight: 700; letter-spacing: -.08em; line-height: 1;
  background: linear-gradient(135deg, #8ea6ee 0%, #c9b8f5 30%, #9be3f0 55%, #3f5fd6 80%, #8ea6ee 100%);
  background-size: 220% 220%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: holo 7s ease-in-out infinite alternate;
}

/* 4. Nav (idéntica a la portada) ------------------------------- */
.nav { position: fixed; inset: 14px 0 auto 0; z-index: 100; display: flex; justify-content: center; padding-inline: 1rem; pointer-events: none; }
.nav-pill {
  pointer-events: auto; display: flex; align-items: center; gap: 1.6rem;
  padding: .4rem .4rem .4rem 1rem; border-radius: 99px;
  background: rgba(255,255,255,.72); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(230,232,240,.9); box-shadow: 0 6px 24px -14px rgba(13,15,26,.25);
  transition: box-shadow .4s, background .4s;
}
.nav.is-scrolled .nav-pill { background: rgba(255,255,255,.9); box-shadow: 0 10px 34px -14px rgba(13,15,26,.3); }
.jp { font-size: 1.25rem; }
.nav-links { display: none; gap: 1.4rem; }
.nav-links a { font-size: .85rem; color: var(--ink-2); transition: color .3s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--blue); }

/* barra de progreso de lectura */
.admin-bar .nav { top: calc(var(--wp-admin--admin-bar--height, 32px) + 14px); }
.admin-bar .progress { top: var(--wp-admin--admin-bar--height, 32px); }
.progress { position: fixed; inset: 0 0 auto 0; z-index: 101; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--peri), #c9b8f5 50%, var(--blue)); }

/* 5. Cabecera del post ----------------------------------------- */
.post-hero { position: relative; isolation: isolate; width: min(1180px, 100% - 2.5rem); margin-inline: auto; padding-top: 7.4rem; }
.glow-post { top: -6%; left: 50%; width: min(1100px, 140vw); height: 460px; translate: -50% 0; background: radial-gradient(closest-side at 25% 45%, rgba(195,207,246,.85), transparent), radial-gradient(closest-side at 78% 40%, rgba(214,201,248,.7), transparent); opacity: .8; }
.crumbs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .78rem; color: var(--mute); }
.crumbs a:hover { color: var(--blue); }
.crumbs li + li::before { content: "/"; margin-right: .45rem; color: var(--faint); }
.crumbs ol { display: contents; list-style: none; }
.post-head { max-width: 860px; margin-top: 1.6rem; }
.post-title { margin-top: 1.1rem; font-size: clamp(2.1rem, 5vw, 3.9rem); line-height: 1.02; letter-spacing: -.045em; }
.post-title .soft { background: linear-gradient(90deg, #6f86d9, #9aaef0 50%, #b9a8ef); -webkit-background-clip: text; background-clip: text; color: transparent; }
.post-sub { max-width: 60ch; margin-top: 1.1rem; font-size: 1.05rem; color: var(--mute); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: 1.6rem; font-size: .82rem; color: var(--ink-2); }
.author-mini { display: inline-flex; align-items: center; gap: .6rem; }
.author-mini b { font-weight: 500; }
.av { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--peri-2); font-size: .72rem; font-weight: 600; letter-spacing: .02em; }
.meta-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }
.post-cover { position: relative; margin-top: 2.4rem; border-radius: 26px; overflow: hidden; aspect-ratio: 21 / 9; background: var(--bg-2); box-shadow: 0 40px 80px -50px rgba(26,33,82,.55); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78); transform: scale(1.06); transition: transform 1.8s var(--ease); }
.is-ready .post-cover img { transform: scale(1); }
.post-cover figcaption { position: absolute; left: 14px; bottom: 14px; padding: .35rem .7rem; border-radius: 99px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); font-family: var(--mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }

/* 6. Layout artículo + panel lateral --------------------------- */
.post-wrap { display: grid; gap: 3rem; width: min(1180px, 100% - 2.5rem); margin: clamp(2.5rem, 5vw, 4rem) auto 0; }
.side { display: none; }

/* 7. Cuerpo del artículo --------------------------------------- */
.prose { min-width: 0; max-width: 720px; font-size: 1.06rem; line-height: 1.78; color: var(--ink-2); }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { margin-top: 3.2rem; font-size: clamp(1.6rem, 3vw, 2.15rem); color: var(--ink); scroll-margin-top: 96px; }
.prose h3 { margin-top: 2.2rem; font-size: clamp(1.2rem, 2vw, 1.4rem); color: var(--ink); letter-spacing: -.025em; }
.prose h2 + p, .prose h3 + p { margin-top: .9rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a:not(.btn) { color: var(--blue); text-decoration: underline; text-decoration-color: var(--peri-2); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: text-decoration-color .3s, color .3s; }
.prose a:not(.btn):hover { color: var(--navy-2); text-decoration-color: var(--blue); }
.prose > ul, .prose ul.list { list-style: none; display: grid; gap: .55rem; padding-left: 0; }
.prose > ol { display: grid; gap: .55rem; padding-left: 1.3rem; }
.prose > ol li::marker { color: var(--blue); font-weight: 600; }
.prose > ul li, .prose ul.list li { position: relative; padding-left: 1.4rem; }
.prose > ul li::before, .prose ul.list li::before { content: ""; position: absolute; left: .2rem; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--peri); box-shadow: 0 0 0 3px var(--lav); }
.lede { font-size: 1.14rem; color: var(--ink); }

/* figura dentro del texto */
.fig { margin-block: 2.2rem; }
.fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; filter: saturate(.78); }
.fig figcaption { margin-top: .6rem; font-size: .8rem; color: var(--mute); }

/* caja de dato destacado con contador */
.stat { display: grid; gap: 1rem; align-items: center; margin-block: 2rem; padding: 1.4rem 1.5rem; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.stat-n { font-size: clamp(2.8rem, 7vw, 3.8rem); font-weight: 500; letter-spacing: -.06em; line-height: 1; color: var(--ink); }
.stat-n small { font-size: .45em; letter-spacing: -.02em; color: var(--blue); }
.stat p { font-size: .92rem; line-height: 1.6; color: var(--ink-2); }
.stat p a { font-size: .85rem; }

/* cita / idea clave */
.key { position: relative; margin-block: 2rem; padding: 1.4rem 1.5rem 1.4rem 1.7rem; border-radius: 18px; background: linear-gradient(135deg, #fff, var(--lav)); border: 1px solid var(--peri-2); color: var(--ink); font-size: 1.08rem; line-height: 1.6; letter-spacing: -.01em; }
.key::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 3px; background: var(--blue); }
.key span { display: block; margin-bottom: .35rem; font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }

/* tabla comparativa */
.cmp { margin-block: 2rem; }
.cmp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin-bottom: .8rem; padding: .3rem; width: max-content; max-width: 100%; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); }
.cmp-tools span { padding: 0 .5rem; font-size: .74rem; color: var(--mute); }
.cmp-tools button { height: 32px; padding: 0 .9rem; border-radius: 99px; font-size: .8rem; font-weight: 500; color: var(--ink-2); transition: background .3s, color .3s; }
.cmp-tools button:hover { background: #fff; }
.cmp-tools button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cmp-scroll { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.cmp table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9rem; line-height: 1.45; }
.cmp caption { text-align: left; padding: 1rem 1.1rem .2rem; font-size: .8rem; color: var(--mute); }
.cmp th, .cmp td { padding: .85rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); transition: background .35s, color .35s, opacity .35s; }
.cmp thead th { font-family: var(--mono); font-size: .66rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); background: var(--bg-2); }
.cmp tbody th { font-weight: 500; color: var(--ink); width: 26%; }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp tbody tr:hover > * { background: var(--bg-2); }
.cmp td.win { color: var(--ink); }
.cmp td.win::after { content: "Ventaja"; display: inline-block; margin-left: .45rem; padding: .1rem .45rem; border-radius: 99px; background: var(--ok-bg); color: var(--ok); font-size: .62rem; font-weight: 600; vertical-align: 1px; }
.cmp .dim { opacity: .38; }
.cmp .hl { background: rgba(228,233,252,.55); }

/* calculadora de precios */
.calc { position: relative; overflow: hidden; isolation: isolate; margin-block: 2rem; padding: 1.5rem; border-radius: var(--r); background: var(--navy); color: #fff; }
.calc::before { content: ""; position: absolute; inset: -40% -20% auto 40%; height: 120%; z-index: -1; background: radial-gradient(closest-side, rgba(142,166,238,.4), transparent); animation: drift 10s ease-in-out infinite alternate; }
.prose .calc-title { margin: 0; font-size: 1.25rem; font-weight: 500; letter-spacing: -.03em; color: #fff; }
.calc-grid { display: grid; gap: .9rem; margin-top: 1.1rem; }
.calc label { display: grid; gap: .4rem; }
.calc label span { font-size: .76rem; font-weight: 500; color: rgba(228,233,252,.8); }
.calc label span b { color: #fff; font-weight: 600; }
.calc select { width: 100%; height: 44px; padding: 0 2.2rem 0 .9rem; border-radius: 12px; border: 1px solid rgba(195,207,246,.25); background: rgba(255,255,255,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c3cff6' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right .9rem center; color: #fff; font: inherit; font-size: .9rem; -webkit-appearance: none; appearance: none; cursor: pointer; }
.calc select option { color: var(--ink); }
.calc select:focus { outline: none; border-color: var(--peri); box-shadow: 0 0 0 3px rgba(142,166,238,.35); }
.calc input[type=range] { --fill: 28%; width: 100%; height: 6px; margin: .5rem 0; border-radius: 6px; -webkit-appearance: none; appearance: none; background: linear-gradient(90deg, var(--peri) var(--fill), rgba(255,255,255,.18) var(--fill)); cursor: pointer; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(142,166,238,.4); }
.calc input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(142,166,238,.4); }
.calc-out { margin-top: 1.2rem; padding: 1.1rem 1.2rem; border-radius: 16px; background: #fff; color: var(--ink); }
.prose .calc-label { margin: 0; font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.prose .calc-num { margin: .3rem 0 0; font-size: clamp(1.5rem, 4.5vw, 2.2rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.prose .calc-note { margin: .5rem 0 0; font-size: .78rem; line-height: 1.5; color: var(--mute); }
@media (min-width: 640px) { .calc-grid { grid-template-columns: 1fr 1fr; } .calc-range { grid-column: 1 / -1; } }

/* checklist interactiva */
.checklist { margin-block: 2rem; padding: 1.4rem 1.5rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .5s, box-shadow .5s; }
.checklist.done { border-color: #cdeedc; box-shadow: 0 20px 50px -30px rgba(31,138,91,.45); }
.cl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.prose .cl-title { margin: 0; font-size: 1.1rem; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.prose .cl-count { margin: 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--mute); white-space: nowrap; }
.cl-count b { font-weight: 500; color: var(--blue); font-size: 1rem; }
.cl-bar { height: 6px; margin-top: .9rem; border-radius: 6px; background: var(--bg-3); overflow: hidden; }
.cl-bar span { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--peri), var(--blue)); transition: transform .6s var(--ease), background .4s; }
.checklist.done .cl-bar span { background: linear-gradient(90deg, #6fd3a2, var(--ok)); }
.cl-items { display: grid; gap: .35rem; margin-top: 1rem; }
.cl-items label { display: flex; align-items: flex-start; gap: .7rem; padding: .6rem .7rem; border-radius: 12px; font-size: .95rem; line-height: 1.45; color: var(--ink-2); cursor: pointer; transition: background .3s, color .3s; }
.cl-items label:hover { background: var(--bg-2); }
.cl-items input { flex: none; width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--blue); cursor: pointer; }
.cl-items label:has(input:checked) { color: var(--ink); background: var(--lav); }
.prose .cl-out { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 12px; background: var(--bg-2); font-size: .9rem; color: var(--ink); }
.cl-out.flash { animation: pop .6s var(--ease); }

/* selector interactivo: ¿qué te conviene? */
.quiz { margin-block: 2.2rem; padding: 1.5rem; border-radius: var(--r); background: var(--navy); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.quiz::before { content: ""; position: absolute; inset: auto -20% -60% 30%; height: 120%; z-index: -1; background: radial-gradient(closest-side, rgba(142,166,238,.4), transparent); }
.quiz h3 { margin: 0; color: #fff; font-size: 1.3rem; }
.quiz > p { margin-top: .4rem; font-size: .9rem; color: rgba(228,233,252,.75); }
.q-list { display: grid; gap: .6rem; margin-top: 1.2rem; }
.q { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: .8rem .9rem; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(195,207,246,.16); }
.q span { font-size: .92rem; line-height: 1.4; color: #fff; }
.q-opts { display: inline-flex; gap: .25rem; padding: .2rem; border-radius: 99px; background: rgba(255,255,255,.08); }
.q-opts button { height: 30px; min-width: 48px; padding: 0 .8rem; border-radius: 99px; font-size: .8rem; font-weight: 500; color: rgba(228,233,252,.8); transition: background .3s, color .3s; }
.q-opts button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.q-out { margin-top: 1.1rem; padding: 1rem 1.1rem; border-radius: 14px; background: #fff; color: var(--ink); font-size: .95rem; line-height: 1.55; }
.q-out b { display: block; margin-bottom: .2rem; font-weight: 600; }
.q-out.flash { animation: pop .6s var(--ease); }
.q-out .btn { margin-top: .8rem; }

/* FAQ (mismo estilo que la portada) */
.faq { margin-top: 1rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-size: 1rem; font-weight: 500; letter-spacing: -.015em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-2); font-weight: 400; transition: transform .4s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--lav); }
.faq details p { padding: 0 2.5rem 1.2rem 0; font-size: .95rem; color: var(--mute); }
.faq details[open] p { animation: drop .5s var(--ease); }

/* caja de autora */
.author-box { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; margin-top: 3rem; padding: 1.4rem; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.author-box .av { width: 54px; height: 54px; font-size: .9rem; }
.author-box b { display: block; color: var(--ink); font-weight: 500; font-size: 1rem; }
.author-box small { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.author-box p { margin-top: .5rem; font-size: .9rem; line-height: 1.6; color: var(--ink-2); }
.tags-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2rem; }
.tags-row a { padding: .4rem .8rem; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: .76rem; color: var(--ink-2); transition: border-color .3s, color .3s; }
.tags-row a:hover { border-color: var(--peri); color: var(--blue); }

/* 8. Panel lateral fijo ---------------------------------------- */
.side-in { position: sticky; top: 96px; display: grid; gap: 1rem; }
.toc { padding: 1.2rem 1.2rem 1rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.toc p { font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.toc ol { list-style: none; padding: 0; margin-top: .7rem; display: grid; gap: .1rem; counter-reset: toc; }
.toc a { position: relative; display: block; padding: .38rem .6rem .38rem 1rem; border-radius: 10px; font-size: .82rem; line-height: 1.35; color: var(--mute); transition: color .3s, background .3s; }
.toc a::before { content: ""; position: absolute; left: .2rem; top: 50%; width: 4px; height: 4px; translate: 0 -50%; border-radius: 50%; background: var(--faint); transition: background .3s, height .4s var(--ease); }
.toc a:hover { color: var(--ink); background: var(--bg-2); }
.toc a.on { color: var(--ink); background: var(--bg-2); }
.toc a.on::before { background: var(--blue); height: 14px; border-radius: 3px; }

.side-cta { position: relative; overflow: hidden; isolation: isolate; padding: 1.5rem; border-radius: var(--r); background: linear-gradient(150deg, #262d68, var(--navy) 55%, #050821); color: #fff; box-shadow: 0 30px 60px -30px rgba(11,16,48,.7); }
.side-cta::before { content: ""; position: absolute; right: -30%; top: -40%; width: 90%; height: 90%; z-index: -1; background: radial-gradient(closest-side, rgba(142,166,238,.45), transparent); animation: drift 9s ease-in-out infinite alternate; }
.side-mark { font-size: 2.6rem; }
.side-cta h3 { margin-top: .9rem; font-size: 1.3rem; line-height: 1.15; color: #fff; }
.side-cta > p { margin-top: .5rem; font-size: .86rem; line-height: 1.55; color: rgba(228,233,252,.78); }
.side-list { display: grid; gap: .45rem; margin: 1rem 0 1.2rem; }
.side-list li { position: relative; padding-left: 1.1rem; font-size: .82rem; color: rgba(255,255,255,.9); }
.side-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--peri); }
.side-price { display: flex; align-items: baseline; gap: .4rem; margin-bottom: 1rem; }
.side-price b { font-size: 1.9rem; font-weight: 500; letter-spacing: -.05em; }
.side-price small { font-size: .76rem; color: rgba(228,233,252,.7); }
.side-btns { display: grid; gap: .5rem; }
.side-note { margin-top: .8rem; display: flex; align-items: center; gap: .45rem; font-size: .72rem; color: rgba(228,233,252,.7); }
.live { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: ping 2s infinite; }

/* barra CTA móvil (sustituye al panel en pantallas pequeñas) */
.m-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; display: flex; align-items: center; gap: .8rem; padding: .6rem .6rem .6rem 1rem; border-radius: 18px; background: rgba(11,16,48,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; box-shadow: 0 20px 40px -18px rgba(11,16,48,.7); transform: translateY(140%); transition: transform .7s var(--ease); }
.m-cta.show { transform: none; }
.m-cta p { flex: 1; font-size: .8rem; line-height: 1.3; }
.m-cta p b { display: block; font-weight: 500; font-size: .86rem; }
.m-cta .x { flex: none; width: 30px; height: 30px; border-radius: 50%; color: rgba(255,255,255,.7); font-size: 1rem; line-height: 1; }
.m-cta .x:hover { background: rgba(255,255,255,.1); }

/* 9. Comentarios ---------------------------------------------- */
.block { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.comments { max-width: 720px; margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.sec-h { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: .9rem; }
.c-empty { margin-top: 1rem; font-size: .92rem; color: var(--mute); }
.c-list { display: grid; gap: 1rem; margin-top: 1.4rem; }
.c-item { display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding: 1.1rem; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); animation: drop .6s var(--ease); }
.c-item header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; }
.c-item b { font-weight: 500; font-size: .92rem; }
.c-item time { font-size: .74rem; color: var(--mute); }
.c-item p { margin-top: .35rem; font-size: .92rem; color: var(--ink-2); }
.c-item .pill-mono { margin-top: .5rem; }
.form { display: grid; gap: .9rem; margin-top: 1.6rem; padding: 1.5rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px -40px rgba(26,33,82,.35); }
.form h3 { font-size: 1.15rem; }
.form > p { font-size: .8rem; color: var(--mute); margin-top: -.4rem; }
.form-row { display: grid; gap: .9rem; }
.form label { display: grid; gap: .35rem; }
.form label span { font-size: .74rem; font-weight: 500; color: var(--ink-2); }
.form input, .form textarea { width: 100%; padding: .75rem .9rem; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); font: inherit; font-size: .92rem; color: var(--ink); resize: vertical; transition: border-color .3s, box-shadow .3s, background .3s; }
.form input:focus, .form textarea:focus { outline: none; background: #fff; border-color: var(--peri); box-shadow: 0 0 0 4px var(--lav); }
.form .bad input, .form .bad textarea { border-color: #e05a7a; box-shadow: 0 0 0 4px #fde8ee; }
.form .check { display: flex; align-items: flex-start; gap: .6rem; font-size: .8rem; color: var(--mute); }
.form .check input { width: 16px; height: 16px; margin-top: .15rem; accent-color: var(--blue); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; }
.form-note { font-size: .78rem; color: var(--mute); }
.form-note.ok { color: var(--ok); font-weight: 500; }

/* contenido de WordPress (editor clásico) */
.prose img { border-radius: 18px; }
.prose .wp-caption, .prose figure.wp-caption { width: auto !important; max-width: 100%; margin-block: 2.2rem; }
.prose .wp-caption-text, .prose figcaption { margin-top: .6rem; font-size: .8rem; color: var(--mute); }
.prose .aligncenter { margin-inline: auto; }
.prose blockquote:not(.key) { padding: 1.2rem 1.4rem; border-radius: 18px; background: var(--bg-2); border-left: 3px solid var(--blue); color: var(--ink); }
.prose > table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.prose > table th, .prose > table td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose p:empty { display: none; }

/* comentarios nativos de WordPress */
.c-list, .c-list .children { list-style: none; padding: 0; }
.c-list .children { grid-column: 1 / -1; display: grid; gap: .8rem; margin-top: .4rem; padding-left: clamp(.6rem, 4vw, 2.4rem); }
.c-item .c-text p { margin-top: .35rem; }
.c-item .comment-reply-link { display: inline-block; margin-top: .5rem; font-size: .78rem; color: var(--blue); }
.c-item .comment-reply-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.comment-respond { margin-top: 1.6rem; padding: 1.5rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px -40px rgba(26,33,82,.35); }
.comment-respond .comment-reply-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; font-size: 1.15rem; font-weight: 500; letter-spacing: -.02em; }
.comment-respond .comment-reply-title small a { font-size: .78rem; font-weight: 400; color: var(--blue); }
.comment-respond .form { margin-top: .8rem; padding: 0; border: 0; box-shadow: none; border-radius: 0; }
.comment-respond .form > p:first-child, .comment-respond .logged-in-as { font-size: .8rem; color: var(--mute); }
.comment-respond .logged-in-as a { color: var(--blue); }
.comments-nav { display: flex; justify-content: space-between; margin-top: 1rem; font-size: .82rem; color: var(--blue); }

/* 10. Posts relacionados --------------------------------------- */
.related { margin-top: clamp(4rem, 8vw, 6rem); }
.related-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.rel-grid { display: grid; gap: 1rem; margin-top: 2rem; }
.rel { display: flex; flex-direction: column; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.rel:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.rel-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
.rel-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78); transition: transform 1s var(--ease), filter .6s; }
.rel:hover .rel-img img { transform: scale(1.06); filter: saturate(1); }
.rel-body { display: grid; gap: .5rem; padding: 1.2rem 1.2rem 1.4rem; }
.rel-body .pill-mono { justify-self: start; }
.rel h3 { font-size: 1.08rem; line-height: 1.25; letter-spacing: -.02em; }
.rel p { font-size: .84rem; color: var(--mute); }
.rel-more { margin-top: .3rem; font-size: .8rem; color: var(--blue); }

/* 10b. Listado del blog (/blog/) -------------------------------- */
.blog-hero { padding-bottom: .5rem; }
.blog-hero .post-head { max-width: 760px; }
.blog-list { margin-top: clamp(2.2rem, 5vw, 3.5rem); }
.feat-post { display: grid; overflow: hidden; border-radius: 26px; background: var(--bg-2); border: 1px solid var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.feat-post:hover { transform: translateY(-5px); box-shadow: 0 40px 80px -50px rgba(26,33,82,.55); }
.feat-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
.feat-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78); transition: transform 1.2s var(--ease), filter .6s; }
.feat-post:hover .feat-img img { transform: scale(1.05); filter: saturate(1); }
.feat-body { display: grid; align-content: center; justify-items: start; gap: .8rem; padding: clamp(1.4rem, 3.5vw, 2.6rem); }
.feat-body h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.08; }
.feat-body p { color: var(--mute); font-size: .95rem; max-width: 52ch; }
.feat-meta { font-size: .78rem; color: var(--ink-2); }
.feat-body .btn { margin-top: .4rem; }
.blog-grid { margin-top: 1rem; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 2.6rem; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .9rem; border-radius: 99px; border: 1px solid var(--line); font-size: .86rem; color: var(--ink-2); transition: background .3s, color .3s; }
.pager a:hover { background: var(--bg-2); }
.pager .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .dots { border: 0; }
@media (min-width: 860px) {
  .feat-post { grid-template-columns: 1.15fr 1fr; }
  .feat-img { aspect-ratio: auto; min-height: 380px; }
}

/* 11. CTA final + footer --------------------------------------- */
.end-cta { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: clamp(4rem, 8vw, 6rem); padding: clamp(3rem, 7vw, 5rem) 1.5rem; border-radius: 30px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.glow-end { left: 50%; bottom: -30%; width: 90%; height: 300px; translate: -50% 0; background: radial-gradient(closest-side at 30% 60%, rgba(195,207,246,.9), transparent), radial-gradient(closest-side at 72% 50%, rgba(214,201,248,.75), transparent); }
.cta-mark { font-size: 3rem; }
.end-cta h2 { margin-top: 1.2rem; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.end-cta h2 .soft { color: var(--faint); }
.end-cta p { max-width: 46ch; margin-top: .8rem; color: var(--mute); }
.end-cta .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.6rem; }

.footer { position: relative; overflow: hidden; isolation: isolate; padding: 4rem 1.25rem 1.5rem; margin-top: 2rem; }
.footer-wm { position: absolute; left: 50%; bottom: -2%; translate: -50% 0; z-index: -1; white-space: nowrap; font-size: clamp(2.6rem, 12.4vw, 12rem); font-weight: 600; letter-spacing: -.06em; line-height: .8; background: linear-gradient(180deg, #e9ecf5, rgba(233,236,245,.15)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-in { width: min(1180px, 100%); margin-inline: auto; display: grid; gap: 2.5rem; }
.footer-brand { display: grid; gap: 1rem; justify-items: start; }
.footer-h { font-size: 1.5rem; font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.footer-cols { display: grid; grid-template-columns: repeat(3, auto); gap: 2rem; justify-content: start; }
.footer-cols div { display: grid; gap: .45rem; align-content: start; }
.footer-cols p { font-size: .82rem; font-weight: 500; margin-bottom: .2rem; }
.footer-cols a { font-size: .8rem; color: var(--mute); transition: color .3s; }
.footer-cols a:hover { color: var(--ink); }
.footer-copy { width: min(1180px, 100%); margin: clamp(6rem, 14vw, 11rem) auto 0; font-size: .72rem; color: var(--mute); }

/* 12. Animaciones ---------------------------------------------- */
.js .reveal { opacity: 0; translate: 0 22px; filter: blur(6px); transition: opacity .9s var(--ease) var(--d, 0s), translate 1s var(--ease) var(--d, 0s), filter .9s var(--ease) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; translate: none; filter: none; }
.js .cmp tbody tr { opacity: 0; translate: -14px 0; transition: opacity .6s var(--ease), translate .7s var(--ease); }
.js .cmp.is-in tbody tr { opacity: 1; translate: none; }
.js .cmp.is-in tbody tr:nth-child(2) { transition-delay: .06s; }
.js .cmp.is-in tbody tr:nth-child(3) { transition-delay: .12s; }
.js .cmp.is-in tbody tr:nth-child(4) { transition-delay: .18s; }
.js .cmp.is-in tbody tr:nth-child(5) { transition-delay: .24s; }
.js .cmp.is-in tbody tr:nth-child(6) { transition-delay: .3s; }
.js .cmp.is-in tbody tr:nth-child(7) { transition-delay: .36s; }
.js .cmp.is-in tbody tr:nth-child(8) { transition-delay: .42s; }

@keyframes holo { to { background-position: 100% 100%; } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
@keyframes pop { 0% { transform: scale(.97); opacity: .4; } 100% { transform: none; opacity: 1; } }
@keyframes drift { to { translate: -30% 40%; } }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }

/* 13. Responsive ----------------------------------------------- */
@media (min-width: 640px) {
  .stat { grid-template-columns: auto 1fr; gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .rel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .footer-in { grid-template-columns: 1fr auto; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .post-wrap { grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(3rem, 5vw, 5rem); align-items: start; }
  .side { display: block; height: 100%; }
  .m-cta { display: none; }
  .rel-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) and (max-height: 940px) {
  .side-in { top: 84px; gap: .7rem; }
  .toc { padding: .9rem 1rem .7rem; }
  .toc a { padding-block: .26rem; font-size: .78rem; }
  .side-cta { padding: 1.2rem; }
  .side-mark { font-size: 2rem; }
  .side-cta h3 { margin-top: .6rem; font-size: 1.15rem; }
  .side-list { display: none; }
  .side-price { margin: .8rem 0; }
}
@media (min-width: 960px) and (max-height: 720px) {
  .toc { display: none; }
}
@media (max-width: 959px) {
  .footer { padding-bottom: 6rem; }
}
@media (max-width: 520px) {
  .post-cover { aspect-ratio: 4 / 3; border-radius: 20px; }
  .prose { font-size: 1.02rem; }
  .q { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .cmp table { min-width: 0; font-size: .8rem; }
  .cmp th, .cmp td { padding: .7rem .55rem; }
  .cmp thead th { font-size: .58rem; letter-spacing: .04em; }
  .cmp tbody th { width: 28%; }
  .cmp td.win::after { display: table; margin: .35rem 0 0; }
  .cmp caption { padding: .8rem .6rem .1rem; }
  .cmp-tools { border-radius: 18px; }
  .cmp-wide table { min-width: 600px; }
  .cmp-wide .cmp-scroll { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .side-cta::before, .live, .jp, .cta-mark, .side-mark { animation: none; }
}
