/* Welectronic Blog — estilos compartidos (portada y publicaciones) */
:root {
  --navy: #0b1f33;
  --navy-2: #2a4560;
  --ink: #0b1f33;
  --muted: #4a5d70;
  --line: #cfdae6;
  --line-soft: #e1e8ef;
  --bg: #eef2f6;
  --card: #ffffff;
  --accent: #e0731a;
  --accent-ink: #a84f08;
  --sky: #7ec8ff;
  --ok: #155724;
  --ok-bg: #d4edda;
  --bad: #721c24;
  --bad-bg: #f8d7da;
  --font-display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --grid-line: rgba(130, 175, 220, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.5; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--navy); padding: 10px 16px; border-radius: 4px; font-weight: 600; z-index: 100; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.blueprint { background-color: var(--navy); background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 32px 32px; }
.blueprint-sm { background-size: 24px 24px; }

.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 10px; }
.blueprint .eyebrow, .on-dark .eyebrow { color: var(--accent); }
.section { max-width: 1200px; margin: 0 auto; padding: 72px 24px 0; }
.section-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 48px; line-height: 1; color: var(--navy); }
.lead { margin: 12px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 640px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; padding: 13px 20px; min-height: 44px; border-radius: 4px; border: 1px solid transparent; background: transparent; cursor: pointer; text-align: center; }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: #f08a33; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #17344f; }
.btn-ghost { color: #fff; border-color: rgba(201, 216, 232, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-outline { color: var(--navy); border-color: #7f97ae; background: #fff; }
.btn-outline:hover { background: #f4f7fa; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-lg { font-size: 16px; padding: 15px 26px; }

/* Cabecera */
.site-header { border-bottom: 1px solid rgba(130, 175, 220, .22); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: .02em; line-height: 1; }
.brand-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--accent); border: 1px solid var(--accent); padding: 3px 6px; border-radius: 3px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.nav a:not(.btn) { color: #c9d8e8; font-size: 15px; font-weight: 500; padding: 10px 0; }
.nav a:not(.btn):hover { color: #fff; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 64px 0 80px; }
.hero-text { flex: 1 1 440px; min-width: 0; }
.hero h1 { margin: 0 0 22px; font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 6.2vw, 76px); line-height: .98; color: #fff; }
.hero p { margin: 0 0 32px; font-size: 18px; line-height: 1.6; color: #b7c9dc; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.fig { flex: 1 1 360px; max-width: 520px; min-width: 0; border: 1px solid rgba(130, 175, 220, .30); background: rgba(255, 255, 255, .04); border-radius: 6px; padding: 22px; }
.fig-head { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: #9fb4c9; margin-bottom: 14px; }
.fig svg { display: block; width: 100%; height: auto; }
.fig-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-family: var(--font-mono); font-size: 12px; color: #c9d8e8; }

/* Última publicación */
.latest { display: flex; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.latest-main { flex: 1 1 480px; min-width: 0; padding: 36px; }
.latest-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.latest h2 { margin: 0 0 16px; font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1.02; }
.latest p { margin: 0 0 26px; font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 560px; }
.latest-side { flex: 1 1 320px; min-width: 0; padding: 36px; }
.latest-side h3 { margin: 0 0 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; color: #e6edf5; font-size: 16px; line-height: 1.45; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 2px; }
.checks.light { color: var(--navy-2); font-size: 17px; gap: 14px; }

/* Publicaciones */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 500; color: var(--navy); background: #fff; border: 1px solid #b4c4d4; border-radius: 4px; padding: 11px 16px; min-height: 44px; }
.chip[aria-pressed="true"] { font-weight: 600; color: #fff; background: var(--navy); border-color: var(--navy); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.card[hidden] { display: none; }
.card-top { position: relative; height: 128px; padding: 16px 20px; }
.card-top .tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: #9fb4c9; }
.card-top .big { position: absolute; right: 20px; bottom: 6px; font-family: var(--font-display); font-weight: 700; font-size: 88px; line-height: 1; color: var(--accent); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.card-cat { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }
.card h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.08; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.badge { font-family: var(--font-mono); font-size: 12px; color: var(--navy-2); border: 1px solid #b4c4d4; border-radius: 3px; padding: 4px 8px; }
.card-link { margin-top: auto; font-size: 15px; font-weight: 600; padding: 4px 0; }
.card-link:hover { text-decoration: underline; }
.card-next { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; min-height: 320px; border: 2px dashed #9fb4c9; border-radius: 6px; padding: 24px; color: var(--muted); }
.card-next strong { font-family: var(--font-display); font-weight: 600; font-size: 28px; color: var(--navy); }

/* Próximos temas */
.topics { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; border-top: 1px solid #b4c4d4; padding-top: 28px; }
.topics .eyebrow { margin: 0; }
.topic { font-size: 15px; color: var(--navy-2); border: 1px dashed #7f97ae; border-radius: 3px; padding: 7px 12px; }

/* Cursos */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 28px 0; }
.offer { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 22px; }
.offer.best { border: 0; color: #fff; }
.offer-label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.offer.best .offer-label { color: #9fb4c9; }
.offer-flag { font-size: 11px; letter-spacing: .08em; color: var(--navy); background: var(--accent); padding: 3px 7px; border-radius: 3px; }
.offer-price { font-family: var(--font-display); font-weight: 700; font-size: 48px; line-height: 1; }
.offer-sub { font-size: 15px; color: var(--muted); margin-top: 6px; }
.offer.best .offer-sub { color: #b7c9dc; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 36px; padding: 0; list-style: none; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 22px; }
.step-n { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--accent-ink); margin-bottom: 10px; }
.step h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.step p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

.shop { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.catalog { flex: 1 1 560px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.catalog-tools { padding: 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.search-label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy-2); }
.search-label input { width: 100%; font-family: inherit; font-size: 16px; color: var(--navy); background: #fff; border: 1px solid #7f97ae; border-radius: 4px; padding: 11px 14px; min-height: 46px; }
.catalog-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 20px; background: #f4f7fa; border-bottom: 1px solid var(--line-soft); font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.course-list { max-height: 640px; overflow-y: auto; }
.course-group[hidden], .course-row[hidden] { display: none; }
.course-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; min-height: 54px; border-bottom: 1px solid var(--line-soft); cursor: pointer; font-size: 15px; }
.course-row:hover { background: #f8fafc; }
.course-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.course-row .box { flex: none; width: 22px; height: 22px; border: 2px solid #7f97ae; border-radius: 4px; background: #fff; display: flex; align-items: center; justify-content: center; }
.course-row .box svg { display: none; }
.course-row input:checked ~ .box { background: var(--navy); border-color: var(--navy); }
.course-row input:checked ~ .box svg { display: block; }
.course-row:has(input:checked) { background: #fdf1e3; font-weight: 600; }
.course-row input:focus-visible ~ .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.course-row .num { flex: none; width: 38px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--muted); }
.course-row .name { min-width: 0; line-height: 1.35; flex: 1; }
.course-row .temario { flex: none; font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.empty { padding: 32px 20px; text-align: center; color: var(--muted); font-size: 15px; }

.order { flex: 1 1 320px; max-width: 400px; min-width: 0; position: sticky; top: 16px; border-radius: 6px; padding: 26px; color: #fff; }
.order h3 { margin: 0 0 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.order-count { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; margin-bottom: 16px; }
.order p { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: #b7c9dc; }
.order-lines { display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid rgba(130, 175, 220, .30); margin-bottom: 14px; }
.order-line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: #e6edf5; }
.order-line span:last-child { font-family: var(--font-mono); font-size: 14px; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.order-total span:first-child { font-size: 14px; color: #b7c9dc; }
.order-total .amount { font-family: var(--font-display); font-weight: 700; font-size: 38px; line-height: 1; }
.order-total.usd .amount { font-weight: 600; font-size: 26px; color: #e6edf5; }
.order .order-save { font-size: 14px; line-height: 1.5; color: var(--accent); margin: 8px 0 18px; }
.order-actions { display: flex; flex-direction: column; gap: 10px; }
.order .btn-link { background: transparent; border: 0; color: #b7c9dc; font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer; padding: 10px 0; min-height: 44px; }
.order .btn-link:hover { color: #fff; }
.order .order-after { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(130, 175, 220, .30); font-size: 13px; line-height: 1.55; color: #9fb4c9; }
.order .order-after strong { color: #e6edf5; font-weight: 600; }
.order [hidden] { display: none !important; }
.toast { font-size: 14px; color: var(--accent); min-height: 20px; }

/* Cafe */
.coffee { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; border-radius: 8px; padding: 48px; color: #fff; }
.coffee-text { flex: 1 1 340px; min-width: 0; }
.coffee-text svg { margin-bottom: 18px; }
.coffee h2 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 700; font-size: 46px; line-height: 1; }
.coffee p { margin: 0; font-size: 17px; line-height: 1.65; color: #b7c9dc; max-width: 460px; }
.coffee-opts { flex: 1 1 420px; min-width: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.coffee-opt { flex: 1 1 190px; display: flex; flex-direction: column; gap: 12px; background: #fff; color: var(--navy); border-radius: 6px; padding: 22px; }
.coffee-opt .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.coffee-opt .t { font-family: var(--font-display); font-weight: 600; font-size: 28px; }
.coffee-opt .btn { margin-top: auto; }
.coffee-opt .note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.coffee-opt img { width: 100%; max-width: 180px; align-self: center; border-radius: 4px; }

.soon { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.soon-text { flex: 1 1 380px; min-width: 0; }
.soon-flag { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); background: var(--accent); padding: 3px 7px; border-radius: 3px; margin-left: 10px; vertical-align: middle; }

/* Pie */
.site-footer { margin-top: 80px; background: var(--navy); }
.footer-row { max-width: 1200px; margin: 0 auto; padding: 36px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.footer-brand strong { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: #fff; }
.footer-brand span { font-size: 14px; color: #9fb4c9; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: #c9d8e8; }
.footer-links a { padding: 8px 0; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* Dialogo de pago */
dialog.pay { border: 0; border-radius: 8px; padding: 0; max-width: 440px; width: calc(100% - 32px); color: var(--navy); }
dialog.pay::backdrop { background: rgba(11, 31, 51, .6); }
.pay-inner { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.pay-inner h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1.05; }
.pay-inner p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.pay-amount { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; }
.pay-inner img { width: 100%; max-width: 240px; align-self: center; border: 1px solid var(--line); border-radius: 6px; }

/* ===== Publicacion ===== */
.article-hero .crumbs { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: #9fb4c9; padding-top: 28px; }
.article-hero .crumbs a:hover { color: #fff; text-decoration: underline; }
.article-hero h1 { margin: 18px 0 16px; font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 5.4vw, 64px); line-height: 1; color: #fff; max-width: 900px; }
.article-hero .meta { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 44px; }
.article-hero .meta .badge { color: #c9d8e8; border-color: rgba(201, 216, 232, .4); }
.article-num { font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-top: 24px; }
.article-wrap { max-width: 800px; margin: 0 auto; padding: 40px 24px 0; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 18px 22px; margin-bottom: 32px; }
.toc h2 { margin: 0 0 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 4px 0; font-size: 15px; }
.toc a { color: var(--accent-ink); font-weight: 500; }
.toc a:hover { text-decoration: underline; }

.prose { font-size: 17px; line-height: 1.75; color: #1d3247; }
.prose p { margin: 0 0 18px; }
.prose h2 { margin: 44px 0 14px; font-family: var(--font-display); font-weight: 700; font-size: 36px; line-height: 1.05; color: var(--navy); scroll-margin-top: 16px; }
.prose h3 { margin: 30px 0 12px; font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.1; color: var(--navy-2); }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.prose blockquote { margin: 24px 0; padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 0 6px 6px 0; font-style: italic; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose figure { margin: 28px 0; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 14px; text-align: center; }
.prose figure img { display: block; margin: 0 auto; border-radius: 3px; }
.prose figcaption { font-size: 14px; line-height: 1.55; color: var(--muted); margin-top: 12px; font-style: italic; }
.missing-img { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 16 / 9; border: 2px dashed #9fb4c9; border-radius: 3px; color: var(--muted); font-family: var(--font-mono); font-size: 13px; text-align: center; padding: 16px; }
.formula-box { background: #e3eaf1; border-left: 4px solid var(--navy); padding: 16px; margin: 22px 0; font-family: var(--font-mono); font-size: 1.1em; text-align: center; font-weight: 600; overflow-x: auto; }
.problem-box { background: var(--card); border: 1px solid var(--line); border-left: 4px solid #28a745; padding: 16px 18px; margin-bottom: 16px; border-radius: 4px; font-size: 16px; line-height: 1.7; }
.problem-box.proposed { border-left-color: #e0a800; }
.problem-box hr { margin: 10px 0; }
.btn-solution { margin-top: 10px; background: var(--navy-2); color: #fff; border: 0; padding: 10px 16px; min-height: 44px; border-radius: 4px; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 600; }
.btn-solution:hover { background: var(--navy); }
.solution-content { display: none; margin-top: 12px; padding: 12px 14px; background: #f4f7fa; border: 1px dashed #9fb4c9; border-radius: 4px; }
.solution-content.open { display: block; }

/* Quiz */
.quiz { background: var(--card); border: 2px solid var(--line); border-radius: 8px; padding: 26px; margin-top: 44px; }
.quiz h2 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1.05; }
.quiz > p { margin: 0 0 18px; color: var(--muted); font-size: 16px; }
.quiz-q { margin: 0 0 20px; padding: 16px; background: #f8fafc; border: 1px solid var(--line-soft); border-radius: 6px; }
.quiz-q legend { float: left; width: 100%; }
.quiz-q legend + * { clear: both; }
.quiz-q legend, .quiz-q .q-text { font-weight: 600; margin-bottom: 12px; color: var(--navy); font-size: 16px; line-height: 1.5; padding: 0; }
.quiz-opts { display: flex; flex-direction: column; gap: 8px; }
.quiz-opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left; font-family: inherit; font-size: 15px; color: var(--navy); background: #fff; border: 1px solid #b4c4d4; border-radius: 4px; padding: 11px 14px; min-height: 46px; cursor: pointer; line-height: 1.4; }
.quiz-opt:hover:not(:disabled) { background: #eef2f6; border-color: #8aa0b6; }
.quiz-opt:disabled { cursor: default; }
.quiz-opt.correct { background: var(--ok-bg); border-color: #c3e6cb; color: var(--ok); font-weight: 600; }
.quiz-opt.incorrect { background: var(--bad-bg); border-color: #f5c6cb; color: var(--bad); }
.quiz-opt .mark { flex: none; font-size: 18px; }
.quiz-msg { min-height: 22px; margin: 10px 0 0; font-size: 15px; color: var(--bad); }
.quiz-result { background: #e3eaf1; border-left: 6px solid var(--navy-2); border-radius: 4px; padding: 22px; text-align: center; }
.quiz-result h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 30px; }
.quiz-grade { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1.1; color: var(--navy); margin: 8px 0; }
.quiz-feedback { margin: 0 0 16px; font-size: 16px; font-weight: 600; }
.quiz-feedback.good { color: var(--ok); }
.quiz-feedback.mid { color: #7a5a00; }
.quiz-feedback.low { color: var(--bad); }

/* Cafe en articulo + navegacion */
.coffee-inline { margin-top: 44px; border-radius: 8px; padding: 28px; color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.coffee-inline .txt { flex: 1 1 320px; }
.coffee-inline h2 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.05; }
.coffee-inline p { margin: 0; font-size: 15px; line-height: 1.6; color: #b7c9dc; }
.post-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 32px; }
.post-nav a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; }
.post-nav a:hover { border-color: var(--navy-2); }
.post-nav small { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.post-nav strong { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.1; }
.post-nav .next { text-align: right; }

@media (max-width: 640px) {
  .section { padding-top: 56px; }
  .section-title { font-size: 40px; }
  .latest-main, .latest-side, .coffee { padding: 28px 22px; }
  .latest h2 { font-size: 36px; }
  .coffee h2 { font-size: 38px; }
  .order { position: static; max-width: none; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 32px; }
  .quiz { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Cuenta ---------- */
.auth-card { flex: 1 1 340px; min-width: 0; max-width: 460px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.auth-lead { margin: 0 0 16px; color: var(--muted); line-height: 1.5; }
.auth-lead strong { color: var(--navy); }
.auth-btns { display: flex; flex-direction: column; gap: 10px; }
.auth-btns .btn { justify-content: center; }

/* ---------- Ajustes de páginas ---------- */
.offer.best { background-color: var(--navy); background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 24px 24px; }
.page-hero { padding-bottom: 40px; }
.page-lead { margin: 0; max-width: 640px; color: #c9d8e8; font-size: 18px; line-height: 1.5; }
.latest-more { margin-left: 18px; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Portada ---------- */
.why-list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; max-width: 760px; }
.why-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; color: var(--muted); }
.why-list li svg { flex: none; margin-top: 3px; }
.why-list strong { color: var(--navy); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
