/*
Theme Name: Cursopass
Theme URI: https://cursopass.com
Author: Cursopass
Description: Tema a medida para Cursopass — resenas de cursos de finanzas, inversion y negocios. Diseno moderno con degradados, efectos y modo oscuro.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: cursopass
*/

/* ============================================================
   CourseStackAI — modern & vivid design system
   ============================================================ */

:root {
  --paper: #F6F5FC;
  --surface: #FFFFFF;
  --surface-2: #F0EEFA;
  --ink: #16121F;
  --muted: #58516B;
  --faint: #8E86A3;
  --brand: #6D28D9;
  --brand-ink: #5B21B6;
  --brand-soft: #EDE7FE;
  --violet: #7C3AED;
  --fuchsia: #DB2777;
  --cyan: #0891B2;
  --amber: #B45309;
  --amber-soft: #FBEBD3;
  --good: #157347;
  --line: #E6E1F3;
  --line-strong: #D4CCE9;
  --radius: 14px;
  --grad: linear-gradient(115deg, #6D28D9 0%, #9333EA 40%, #DB2777 78%, #F97316 100%);
  --grad-soft: linear-gradient(115deg, #8B5CF6, #EC4899);
  --shadow-sm: 0 1px 2px rgba(22,18,31,.06);
  --shadow: 0 4px 10px rgba(22,18,31,.06), 0 18px 44px rgba(76,29,149,.10);
  --glow: 0 10px 40px rgba(124,58,237,.35);
  --maxw: 1160px;
  --readw: 720px;
  --font-head: "Sora", system-ui, -apple-system, sans-serif;
  --font-body: "Newsreader", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0C0A16; --surface: #151223; --surface-2: #1D1830; --ink: #F1EEF9; --muted: #ABA2C4; --faint: #7C7396;
    --brand: #A78BFA; --brand-ink: #C4B5FD; --brand-soft: #241C3D; --violet: #A78BFA; --fuchsia: #F472B6; --cyan: #22D3EE;
    --amber: #E0A64E; --amber-soft: #2E2413; --good: #4FB980;
    --line: #272040; --line-strong: #362C55;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 4px 10px rgba(0,0,0,.35), 0 20px 50px rgba(0,0,0,.45);
    --glow: 0 10px 44px rgba(167,139,250,.45);
  }
}
:root[data-theme="dark"] {
  --paper: #0C0A16; --surface: #151223; --surface-2: #1D1830; --ink: #F1EEF9; --muted: #ABA2C4; --faint: #7C7396;
  --brand: #A78BFA; --brand-ink: #C4B5FD; --brand-soft: #241C3D; --violet: #A78BFA; --fuchsia: #F472B6; --cyan: #22D3EE;
  --amber: #E0A64E; --amber-soft: #2E2413; --good: #4FB980;
  --line: #272040; --line-strong: #362C55;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 4px 10px rgba(0,0,0,.35), 0 20px 50px rgba(0,0,0,.45);
  --glow: 0 10px 44px rgba(167,139,250,.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 18px; line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand-ink); text-underline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand .mark { width: 32px; height: 32px; border-radius: 9px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 700; box-shadow: var(--glow); }
.brand .mark-img { height: 42px; width: auto; display: block; filter: drop-shadow(0 4px 14px rgba(124,58,237,.45)); }
.site-footer .brand .mark-img { height: 38px; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { font-family: var(--font-head); font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 9px; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.has-drop { position: relative; }
.drop-toggle { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-head); font-size: 14px; font-weight: 500; color: var(--muted); padding: 8px 12px; border-radius: 9px; cursor: pointer; user-select: none; }
.drop-toggle:hover, .has-drop:focus-within .drop-toggle { color: var(--ink); background: var(--surface-2); }
.drop-toggle .caret { font-size: 10px; transition: transform .15s; }
.has-drop:hover .drop-toggle .caret, .has-drop:focus-within .drop-toggle .caret { transform: rotate(180deg); }
.drop-menu { position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: none; flex-direction: column; z-index: 60; }
.has-drop:hover .drop-menu, .has-drop:focus-within .drop-menu { display: flex; }
.drop-menu a { padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; display: flex; align-items: center; gap: 9px; }
.drop-menu a:hover { background: var(--surface-2); color: var(--ink); }
.drop-menu a .di { color: var(--brand-ink); font-size: 15px; width: 18px; text-align: center; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.theme-toggle { width: 40px; height: 40px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); border-radius: 11px; cursor: pointer; display: grid; place-items: center; font-size: 16px; transition: color .15s, border-color .15s; }
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 11px; cursor: pointer; font-size: 18px; }

.btn { font-family: var(--font-head); font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 11px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; transition: transform .1s ease, background .15s, border-color .15s, box-shadow .2s; }
.btn:hover { background: var(--surface-2); transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn-glow { background: var(--grad); background-size: 160% 160%; border: none; color: #fff; box-shadow: var(--glow); animation: gradShift 6s ease infinite; }
.btn-glow:hover { background: var(--grad); background-size: 160% 160%; color: #fff; transform: translateY(-2px); box-shadow: 0 14px 50px rgba(219,39,119,.45); }
.btn-lg { font-size: 15px; padding: 14px 24px; }
.btn-ghost-light { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); color: #fff; }

@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes floaty { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(0,-26px) scale(1.05); } }
@keyframes floaty2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(18px,20px) scale(1.08); } }
@keyframes tiltFloat { 0%,100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-14px); } }

/* ---------- HERO BANNER (dark, vivid) ---------- */
.hero-banner { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 15% 0%, #241056 0%, #140A2E 45%, #0B0620 100%); color: #fff; padding: 84px 0 90px; isolation: isolate; }
.hero-banner .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .8; z-index: -1; pointer-events: none; }
.blob.b1 { width: 460px; height: 460px; background: radial-gradient(circle, #7C3AED, transparent 70%); top: -120px; left: -60px; animation: floaty 11s ease-in-out infinite; }
.blob.b2 { width: 420px; height: 420px; background: radial-gradient(circle, #DB2777, transparent 70%); top: 40px; right: -80px; animation: floaty2 13s ease-in-out infinite; }
.blob.b3 { width: 360px; height: 360px; background: radial-gradient(circle, #06B6D4, transparent 70%); bottom: -140px; left: 38%; animation: floaty 15s ease-in-out infinite; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-copy .pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 12.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: #EDE9FE; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: 7px 14px; border-radius: 999px; backdrop-filter: blur(6px); }
.hero-copy h1 { font-size: clamp(36px, 5.4vw, 60px); margin: 20px 0 0; color: #fff; line-height: 1.04; }
.hero-copy h1 .grad-text { background: linear-gradient(100deg, #C4B5FD, #F0ABFC, #FDBA74); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy .lede { font-family: var(--font-body); font-size: 20px; color: #D4CBEC; max-width: 52ch; margin: 20px 0 0; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.hero-trust { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust .ht { font-family: var(--font-head); }
.hero-trust .ht b { display: block; font-size: 22px; color: #fff; }
.hero-trust .ht span { font-size: 12.5px; color: #B9AEDA; letter-spacing: .02em; }

.hero-visual { position: relative; }
.hero-visual .frame { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 80px rgba(0,0,0,.5); background: #0B0620; animation: tiltFloat 9s ease-in-out infinite; }
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(124,58,237,.35)); }
.hero-visual .chip { position: absolute; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-size: 13px; font-weight: 500; color: #fff; background: rgba(30,20,55,.72); border: 1px solid rgba(255,255,255,.18); padding: 9px 13px; border-radius: 12px; backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.hero-visual .chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.hero-visual .chip.c1 { top: 18px; left: -26px; animation: floaty 7s ease-in-out infinite; }
.hero-visual .chip.c2 { bottom: 40px; right: -22px; animation: floaty2 8s ease-in-out infinite; }
.hero-visual .chip.c3 { bottom: -16px; left: 30px; animation: floaty 9s ease-in-out infinite; }
.wave-sep { display: block; width: 100%; height: 40px; margin-top: -1px; }

/* ---------- Section ---------- */
.section { padding: 56px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.section-head .kicker { font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 3.8vw, 38px); margin: 10px 0 0; }
.section-head p { margin: 10px 0 0; color: var(--muted); font-size: 17px; }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; }
.cat { position: relative; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 22px; text-decoration: none; color: var(--ink); overflow: hidden; transition: border-color .18s, transform .18s, box-shadow .18s; }
.cat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); opacity: .0; transition: opacity .18s; }
.cat:hover { border-color: transparent; transform: translateY(-4px); box-shadow: var(--shadow); }
.cat:hover::before { opacity: 1; }
.cat .ci { width: 52px; height: 52px; border-radius: 14px; background: var(--grad); background-size: 150% 150%; color: #fff; display: grid; place-items: center; font-size: 23px; margin-bottom: 16px; box-shadow: var(--glow); }
.cat h3 { font-size: 18px; margin: 0 0 7px; }
.cat p { font-family: var(--font-body); font-size: 15px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- Article list ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.post-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .18s, transform .18s, box-shadow .18s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.post-card .thumb { position: relative; aspect-ratio: 16 / 8; display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 16px; text-align: center; padding: 18px; overflow: hidden; }
.post-card .thumb::before { content: ""; position: absolute; inset: 0; background: var(--grad); background-size: 180% 180%; animation: gradShift 8s ease infinite; z-index: 0; }
.post-card .thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 120% at 80% 10%, rgba(255,255,255,.28), transparent 55%); z-index: 1; }
.post-card .thumb span { position: relative; z-index: 2; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.post-card.soon .thumb::before { background: linear-gradient(120deg, #7C7396, #58516B); }
.post-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.tag { align-self: flex-start; font-family: var(--font-head); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--grad); padding: 5px 11px; border-radius: 999px; }
.tag.amber { color: #fff; background: linear-gradient(120deg, #F59E0B, #EF4444); }
.tag.plain { color: var(--brand-ink); background: var(--brand-soft); }
.post-card h3 { font-size: 20px; margin: 2px 0 0; line-height: 1.22; }
.post-card p { font-size: 15px; color: var(--muted); margin: 0; flex: 1; }
.post-card .meta { font-family: var(--font-head); font-size: 12.5px; color: var(--faint); margin-top: 4px; }

/* ---------- Photo band ---------- */
.photo-band { position: relative; overflow: hidden; border-radius: 22px; margin: 0 auto; min-height: 300px; display: flex; align-items: center; }
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,10,46,.92) 0%, rgba(76,29,149,.72) 45%, rgba(219,39,119,.42) 100%); z-index: 1; }
.photo-band .pb-inner { position: relative; z-index: 2; color: #fff; padding: 44px 40px; max-width: 620px; }
.photo-band .pb-inner h2 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); margin: 0; }
.photo-band .pb-inner p { color: #E7DEFB; font-size: 17px; margin: 14px 0 0; }
.photo-band .pb-inner .btn { margin-top: 22px; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.stat { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 18px; }
.stat b { display: block; font-family: var(--font-head); font-size: 38px; font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 8px; font-family: var(--font-head); font-size: 13.5px; color: var(--muted); }

/* ---------- Cursos por categoría ---------- */
.courses-cat { margin-bottom: 34px; scroll-margin-top: 90px; }
.courses-cat .cch { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.courses-cat .cci { width: 38px; height: 38px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 18px; box-shadow: var(--glow); flex-shrink: 0; }
.courses-cat .cch h3 { font-size: 20px; margin: 0; }
.courses-cat .cch a { margin-left: auto; font-family: var(--font-head); font-size: 13px; font-weight: 500; white-space: nowrap; }
.course-list { display: grid; gap: 10px; }
.course-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; transition: border-color .15s, transform .1s; }
.course-row:hover { border-color: var(--brand); transform: translateX(2px); }
.course-row .ci-info h4 { font-family: var(--font-head); font-size: 15px; margin: 0 0 3px; font-weight: 600; }
.course-row .ci-info span { font-size: 13px; color: var(--faint); }
.course-row .ci-info span .plat { color: var(--brand-ink); font-weight: 500; }
.course-row .btn { flex-shrink: 0; font-size: 13px; padding: 9px 15px; }

/* ---------- Email capture ---------- */
.capture { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 0% 0%, #2B1466, #140A2E 60%); color: #fff; border-radius: 22px; padding: 52px 34px; text-align: center; }
.capture .cap-blob { position: absolute; width: 300px; height: 300px; border-radius: 50%; filter: blur(70px); z-index: 0; }
.capture .cap-blob.x1 { background: rgba(219,39,119,.55); top: -80px; right: -40px; }
.capture .cap-blob.x2 { background: rgba(6,182,212,.45); bottom: -100px; left: -30px; }
.capture > * { position: relative; z-index: 1; }
.capture h2 { color: #fff; font-size: clamp(25px, 3.6vw, 32px); margin: 0 auto; max-width: 20ch; }
.capture p { margin: 12px auto 0; max-width: 52ch; color: #DDD3F3; font-size: 16px; }
.capture-form { display: flex; gap: 10px; max-width: 470px; margin: 26px auto 0; flex-wrap: wrap; }
.capture-form input { flex: 1; min-width: 200px; font-family: var(--font-head); font-size: 15px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.96); color: #14141C; }
.capture-form input:focus { outline: 3px solid var(--fuchsia); outline-offset: 1px; }
.capture .small { font-family: var(--font-head); font-size: 12.5px; margin-top: 14px; color: #B9AEDA; }
.capture .form-msg { font-family: var(--font-head); font-size: 14px; margin-top: 14px; min-height: 20px; color: #fff; }

/* ---------- Disclosure strip ---------- */
.disclosure-strip { background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent); border-radius: var(--radius); padding: 14px 18px; font-family: var(--font-head); font-size: 13.5px; color: var(--amber); line-height: 1.5; }
.disclosure-strip b { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 20px; padding: 48px 0 34px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { font-family: var(--font-head); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; font-weight: 600; }
.footer-grid a { display: block; color: var(--muted); text-decoration: none; font-size: 15px; padding: 4px 0; }
.footer-grid a:hover { color: var(--brand-ink); }
.footer-about { font-size: 15px; color: var(--muted); max-width: 42ch; margin: 12px 0 0; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 20px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-family: var(--font-head); font-size: 13px; color: var(--faint); }

/* ---------- Article ---------- */
.article { padding: 44px 0 20px; }
.article-head { max-width: var(--readw); margin: 0 auto; }
.breadcrumb { font-family: var(--font-head); font-size: 13px; color: var(--faint); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.article-head h1 { font-size: clamp(30px, 4.6vw, 46px); margin: 12px 0 0; }
.article-meta { font-family: var(--font-head); font-size: 13.5px; color: var(--faint); margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: 14px; color: var(--amber); font-weight: 600; }
.prose { max-width: var(--readw); margin: 0 auto; }
.prose p, .prose ul, .prose ol { font-size: 18.5px; line-height: 1.75; color: var(--ink); }
.prose h2 { font-size: 28px; margin: 44px 0 12px; }
.prose h3 { font-size: 21px; margin: 30px 0 10px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { font-weight: 600; }
.lead-p { font-size: 21px !important; color: var(--muted) !important; line-height: 1.6 !important; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; max-width: var(--readw); margin: 26px auto; }
.toc h4 { font-family: var(--font-head); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { font-family: var(--font-head); font-size: 15px; margin-bottom: 6px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--brand-ink); }
.table-wrap { max-width: 900px; margin: 26px auto; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.cmp { width: 100%; border-collapse: collapse; font-family: var(--font-head); font-size: 15px; min-width: 620px; }
table.cmp th, table.cmp td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
table.cmp thead th { background: var(--surface-2); font-weight: 600; font-size: 13px; }
table.cmp tbody tr:last-child td { border-bottom: none; }
table.cmp td:first-child { color: var(--muted); font-weight: 500; }
table.cmp .yes { color: var(--good); font-weight: 600; }
table.cmp .no { color: var(--faint); }
.pick { max-width: var(--readw); margin: 30px auto; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 22px 24px; }
.pick .pk-tag { font-family: var(--font-head); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); font-weight: 600; }
.pick h3 { font-size: 20px; margin: 6px 0 8px; }
.pick p { font-size: 16.5px; color: var(--muted); margin: 0 0 16px; font-family: var(--font-body); }
.affiliate-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.callout { max-width: var(--readw); margin: 26px auto; background: var(--brand-soft); border-radius: var(--radius); padding: 18px 22px; }
.callout p { margin: 0; font-size: 16.5px; color: var(--brand-ink); }
.author-box { max-width: var(--readw); margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; gap: 16px; align-items: flex-start; }
.author-box .ava { width: 48px; height: 48px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; flex-shrink: 0; }
.author-box p { margin: 0; font-size: 15px; color: var(--muted); }
.author-box b { font-family: var(--font-head); color: var(--ink); font-size: 15px; }
.page { padding: 46px 0; }
.page .prose h1 { font-size: clamp(30px, 4.6vw, 42px); margin: 0 0 10px; }
.page .updated { font-family: var(--font-head); font-size: 13px; color: var(--faint); margin-bottom: 26px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 440px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 2px; display: none; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 16px; }
  .has-drop { width: 100%; }
  .drop-toggle { padding: 12px; font-size: 16px; width: 100%; }
  .drop-toggle .caret { display: none; }
  .drop-menu { position: static; display: flex; border: none; box-shadow: none; padding: 0 0 6px 16px; min-width: 0; background: transparent; }
  .drop-menu a { font-size: 15px; }
  .menu-btn { display: grid; place-items: center; }
  .hero-banner { padding: 60px 0 66px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .prose p, .prose ul, .prose ol { font-size: 17.5px; }
  .photo-band .pb-inner { padding: 32px 26px; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 2px 20px; transition: border-color .15s; }
.faq details[open] { border-color: var(--brand); }
.faq summary { font-family: var(--font-head); font-weight: 600; font-size: 16px; padding: 16px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-head); font-size: 22px; line-height: 1; color: var(--brand-ink); flex-shrink: 0; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 16px; font-size: 16px; color: var(--muted); line-height: 1.6; }

/* ---------- Single post: layout con barra lateral ---------- */
.post-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 44px; max-width: 1140px; margin: 0 auto; padding: 0 22px; align-items: start; }
.post-main { min-width: 0; }
.post-main .article-head, .post-main .prose, .post-main .toc, .post-main .pick, .post-main .callout, .post-main .table-wrap, .post-main .author-box, .post-main .disclosure-strip { max-width: 100%; margin-left: 0; margin-right: 0; }
.post-main .disclosure-strip { margin: 22px 0; }
.post-main .author-box { margin: 40px 0 0; }
.post-hero { margin: 22px 0 6px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.post-hero img { width: 100%; height: auto; display: block; }
.sidebar { display: grid; gap: 20px; position: sticky; top: 88px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.side-card h4 { font-family: var(--font-head); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; font-weight: 600; }
.side-card ul { list-style: none; margin: 0; padding: 0; }
.side-card li { margin: 0 0 9px; line-height: 1.4; }
.side-card li:last-child { margin-bottom: 0; }
.side-card a { color: var(--ink); text-decoration: none; font-family: var(--font-head); font-size: 14px; }
.side-card a:hover { color: var(--brand-ink); }
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; gap: 30px; padding: 0 22px; }
  .sidebar { position: static; }
}

/* Fix: imagen destacada visible sobre el degradado en las tarjetas */
.post-card .thumb img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; display: block; }
/* Aviso de afiliado discreto en las reseñas */
.post-disclosure { font-family: var(--font-head); font-size: 12.5px; color: var(--faint); margin: 16px 0 4px; }
.post-disclosure a { color: var(--brand-ink); text-decoration: underline; }
