:root {
  --bg: #0E0B1F; --panel: #1A1533; --panel-2: #151030; --line: #2A2350; --line-2: #3A2F6B;
  --text: #F4EFFA; --soft: #D9D2EE; --muted: #B9B0D6; --pink: #FF4FA3; --pink-soft: #FF7DBB; --teal: #3FE0D0;
  --display: Anton, Impact, "Arial Narrow Bold", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 Inter, system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: #8FF2E8; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--pink); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-weight: 700; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; justify-content: center; }

/* Cabecera */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 5%; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--pink); }
.brand-name { font-family: var(--display); font-size: 28px; letter-spacing: 1px; line-height: 1; text-transform: uppercase; }
.small-brand { font-size: 22px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--text); font-weight: 600; text-decoration: none; }
.nav a:hover, .nav a[aria-current] { background: var(--line); color: var(--text); }

/* Estructura */
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 5%; padding-right: 5%; }
.block { padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.block.first { padding-top: 48px; }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.block-head a { font-weight: 600; }
.display { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 7vw, 84px); line-height: 1.04; letter-spacing: 1px; text-transform: uppercase; text-wrap: balance; }
.display-2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.5vw, 42px); line-height: 1.1; letter-spacing: 1px; text-transform: uppercase; text-wrap: balance; }
.kicker { color: var(--teal); font-weight: 700; letter-spacing: 3px; font-size: 13px; }
.lead { font-size: 18px; color: var(--soft); max-width: 60ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.empty { color: var(--muted); padding: 28px; border: 1px dashed var(--line-2); border-radius: 14px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-main { background: var(--pink); color: var(--bg); }
.btn-main:hover { background: #FF74B7; color: var(--bg); }
.btn-ghost { background: transparent; color: var(--text); border-color: #5A4E94; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-full { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
.link-danger { background: none; border: 0; padding: 12px 4px; min-height: 44px; font: inherit; color: #FF9A9A; text-decoration: underline; cursor: pointer; }

/* Portada */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 56px; padding-bottom: 72px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-art { flex: 1 1 380px; min-width: 0; }
.hero-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; border: 1px solid var(--line-2); }
.sunset { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2); background: linear-gradient(180deg, #1B1145 0%, #5B1E6B 42%, #E8507A 72%, #FFB347 100%); }
.sun { position: absolute; left: 50%; top: 22%; width: 46%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: linear-gradient(180deg, #FFE27A 0%, #FF8A5B 55%, #FF4FA3 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0 52%, transparent 52% 56%, #000 56% 63%, transparent 63% 68%, #000 68% 74%, transparent 74% 80%, #000 80% 85%, transparent 85% 92%, #000 92% 100%);
  mask-image: linear-gradient(180deg, #000 0 52%, transparent 52% 56%, #000 56% 63%, transparent 63% 68%, #000 68% 74%, transparent 74% 80%, #000 80% 85%, transparent 85% 92%, #000 92% 100%); }
.sea { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(180deg, #2A1650, #0E0B1F); }

/* Contador */
.countdown { display: flex; flex-direction: column; gap: 18px; max-width: 540px; }
.cd-live { display: flex; flex-direction: column; gap: 18px; }
.cd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cd-box { background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 16px 6px; text-align: center; box-shadow: 0 0 28px rgba(255, 79, 163, .14); }
.cd-num { font-family: var(--display); font-size: clamp(34px, 6vw, 62px); line-height: 1; color: var(--pink); font-variant-numeric: tabular-nums; }
.cd-sec { color: var(--teal); }
.cd-num.tick { animation: tick .35s ease-out; }
@keyframes tick { from { transform: translateY(-18%); opacity: .3; } to { transform: none; opacity: 1; } }
.cd-label { margin-top: 8px; font-size: 12px; letter-spacing: 2px; color: var(--muted); }
.wait { display: flex; flex-direction: column; gap: 8px; }
.wait-row { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 14px; letter-spacing: .5px; }
.wait-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.wait-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--pink), var(--teal)); transition: width 1.2s ease-out; }
.cd-done { font-family: var(--display); font-size: clamp(40px, 7vw, 72px); color: var(--pink); line-height: 1.05; }
@media (prefers-reduced-motion: reduce) { .cd-num.tick { animation: none; } .wait-fill { transition: none; } }

/* Tarjetas */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--text); transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--pink); color: var(--text); }
.card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-img-empty.tone-0 { background: #3B1747; } .card-img-empty.tone-1 { background: #123A4A; }
.card-img-empty.tone-2 { background: #2A1F55; } .card-img-empty.tone-3 { background: #4A2A1A; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.tag { color: var(--pink-soft); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.card-title { font-size: 18px; line-height: 1.25; font-weight: 700; text-wrap: pretty; }
.soon { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.soon-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.soon-card h3 { font-size: 22px; } .soon-card p { color: var(--soft); }
.pill { align-self: flex-start; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--teal); color: var(--teal); font-size: 13px; font-weight: 600; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }

/* Artículo */
.article { max-width: 780px; padding-top: 40px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 18px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); }
.article-title { font-size: clamp(30px, 5vw, 46px); line-height: 1.12; font-weight: 700; text-wrap: balance; }
.article-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; }
.prose { font-size: 18px; line-height: 1.7; color: var(--soft); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 28px; line-height: 1.2; color: var(--text); margin-top: 1.6em; }
.prose h3 { font-size: 22px; color: var(--text); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li + li { margin-top: .4em; }
.prose strong { color: var(--text); }
.prose blockquote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line-2); color: var(--muted); }
.prose code { background: var(--panel); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose pre { background: var(--panel); padding: 14px; border-radius: 10px; overflow-x: auto; }
.source { color: var(--muted); font-size: 15px; }
.share-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

/* Página para compartir */
.share-page { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 48px; }
.share-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.story-frame { flex: 0 1 340px; margin: 0 auto; }
.story-frame canvas { width: 100%; height: auto; display: block; border-radius: 24px; border: 1px solid var(--line-2); box-shadow: 0 0 60px rgba(255, 79, 163, .25); }

/* Pie */
.foot { border-top: 1px solid var(--line); padding: 28px 5% 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }

/* Formularios */
.form { display: flex; flex-direction: column; gap: 20px; }
.form.wide { max-width: 820px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-row { display: flex; flex-wrap: wrap; gap: 20px; }
.field-row .field { flex: 1 1 200px; } .field-row .grow { flex: 2 1 320px; }
label { font-weight: 600; }
input[type=text], input[type=url], input[type=password], select, textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font: inherit; }
textarea { resize: vertical; line-height: 1.6; }
input[type=file] { color: var(--soft); font: inherit; min-height: 44px; padding: 14px; border: 1px dashed #5A4E94; border-radius: 10px; background: var(--panel-2); max-width: 100%; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; }
.check input { width: 20px; height: 20px; }
.thumb { width: 320px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-2); }
.alert { background: #3A1420; border: 1px solid #A8324E; color: #FFD3DC; padding: 14px 16px; border-radius: 12px; }
.note { background: #17263A; border: 1px solid #2C5E73; border-radius: 12px; padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; color: var(--soft); }
.login { max-width: 420px; margin: 0 auto; padding: 12vh 5% 48px; display: flex; flex-direction: column; gap: 24px; }

/* Panel */
.panel { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 220px; background: var(--panel-2); border-right: 1px solid var(--line); padding: 24px 16px; display: flex; flex-direction: column; gap: 24px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--soft); text-decoration: none; font-weight: 500; }
.side-nav a:hover { background: var(--line); color: var(--text); }
.side-nav a[aria-current] { background: var(--line); color: var(--text); font-weight: 700; }
.panel-main { flex: 999 1 560px; min-width: 0; padding: 32px 5% 64px; display: flex; flex-direction: column; gap: 22px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.table { width: 100%; border-collapse: collapse; min-width: 620px; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.row-actions { display: flex; align-items: center; gap: 14px; justify-content: flex-end; }
.state { padding: 4px 10px; border-radius: 999px; border: 1px solid #5A4E94; font-size: 13px; color: var(--soft); white-space: nowrap; }
.state-on { border-color: var(--teal); color: var(--teal); }
.news-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.news-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.news-info { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.news-title { font-weight: 700; font-size: 17px; color: var(--text); }
.news-actions { display: flex; align-items: center; gap: 12px; }
.image-form { padding-bottom: 28px; border-bottom: 1px solid var(--line); }

/* Servidores */
.promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 20px; padding: 32px; }
.promo-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }

/* Idiomas */
.nav .lang { border: 1px solid #5A4E94; margin-left: 6px; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* =========================================================
   Rediseño v3: ancho completo y estilo de revista
   ========================================================= */
.wrap { max-width: 1440px; padding-left: clamp(16px, 3.5vw, 48px); padding-right: clamp(16px, 3.5vw, 48px); }
.block { padding-bottom: 64px; }
.line-title { display: flex; align-items: center; gap: 16px; }
.line-title::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--line-2), transparent); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }

/* Barra de última hora */
.ticker { background: #170F33; border-bottom: 1px solid var(--line); font-size: 14px; }
.ticker-in { display: flex; align-items: center; gap: 16px; height: 40px; overflow: hidden; }
.ticker-label { flex: none; background: var(--pink); color: var(--bg); font-weight: 800; letter-spacing: 1.5px; font-size: 12px; padding: 4px 10px; border-radius: 6px; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: flex; gap: 48px; width: max-content; animation: ticker 60s linear infinite; }
.ticker-move a { color: var(--soft); text-decoration: none; white-space: nowrap; font-weight: 500; }
.ticker-move a::before { content: "●"; color: var(--teal); margin-right: 10px; font-size: 9px; vertical-align: middle; }
.ticker-move a:hover { color: var(--text); }
.ticker:hover .ticker-move { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-move { animation: none; } }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 20; padding: 0; background: rgba(14, 11, 31, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: block; }
.top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; min-height: 68px; }
.top .nav { flex: 1; justify-content: center; }
.top-tools { display: flex; align-items: center; gap: 10px; }
.pill-count { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: linear-gradient(90deg, rgba(255, 79, 163, .18), rgba(63, 224, 208, .18)); border: 1px solid var(--line-2); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.pill-count strong { color: var(--pink); font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: .5px; }
.pill-count:hover { border-color: var(--pink); color: var(--text); }
.top .lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; border: 1px solid #5A4E94; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px; }
.top .lang:hover { border-color: var(--teal); color: var(--teal); }
@media (max-width: 860px) { .top .nav { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; } .top-in { padding-top: 8px; } .top-tools { margin-left: auto; } }

/* Tarjetas */
.cards-4 { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 24px; }
.card { position: relative; }
.card-media { overflow: hidden; }
.card-img { transition: transform .4s ease; }
.card:hover .card-img { transform: scale(1.04); }
.card-excerpt { color: var(--soft); font-size: 16px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-date { color: var(--muted); font-size: 13px; }

/* Tarjeta grande con el texto sobre la imagen */
.card-hero { height: 100%; min-height: 520px; border: 0; border-radius: 22px; }
.card-hero .card-media, .card-hero .card-img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.card-hero .card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 11, 31, 0) 25%, rgba(14, 11, 31, .55) 55%, rgba(14, 11, 31, .96) 100%); }
.card-hero .card-body { position: relative; z-index: 1; margin-top: auto; padding: clamp(22px, 3vw, 40px); gap: 12px; }
.card-hero .card-title { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.08; font-weight: 800; letter-spacing: -.5px; }
.card-hero .tag { align-self: flex-start; background: var(--pink); color: var(--bg); padding: 5px 12px; border-radius: 6px; }
.card-hero .card-date, .card-hero .card-excerpt { color: #E6E0F5; }
.card-hero:hover { transform: none; }

/* Tarjeta horizontal pequeña */
.card-row { flex-direction: row; align-items: stretch; }
.card-row .card-media { flex: 0 0 42%; }
.card-row .card-img { height: 100%; aspect-ratio: auto; min-height: 120px; }
.card-row .card-title { font-size: 16px; }
.card-row .card-body { padding: 14px 16px; justify-content: center; }

/* Tarjeta ancha (primer post de cada sección) */
.list-lead { margin-bottom: 8px; }
.card-wide { flex-direction: row; flex-wrap: wrap; }
.card-wide .card-media { flex: 1 1 520px; }
.card-wide .card-img { height: 100%; min-height: 300px; aspect-ratio: auto; }
.card-wide .card-body { flex: 1 1 360px; padding: clamp(22px, 3vw, 44px); justify-content: center; gap: 14px; }
.card-wide .card-title { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.12; }

/* Portada */
.home-top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 64px; }
.home-lead { min-width: 0; }
.home-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.count-card { background: radial-gradient(120% 120% at 100% 0%, rgba(255, 79, 163, .22), transparent 55%), radial-gradient(120% 120% at 0% 100%, rgba(63, 224, 208, .16), transparent 55%), var(--panel); border: 1px solid var(--line-2); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.count-card .countdown { max-width: none; }
.count-card .cd-num { font-size: clamp(30px, 3vw, 46px); }
.hero-art-full img, .hero-art-full .sunset { width: 100%; height: 100%; min-height: 520px; object-fit: cover; border-radius: 22px; }
@media (max-width: 980px) { .home-top { grid-template-columns: 1fr; } .card-hero { min-height: 420px; } }

.soon { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.soon-card { position: relative; overflow: hidden; }
.soon-num { font-family: var(--display); font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); position: absolute; right: 20px; top: 14px; }

.band { background: radial-gradient(60% 140% at 85% 50%, rgba(255, 79, 163, .25), transparent 60%), radial-gradient(50% 140% at 10% 50%, rgba(63, 224, 208, .14), transparent 60%), #140D2E; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 0; }
.band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.band-text { display: flex; flex-direction: column; gap: 10px; flex: 1 1 420px; }

/* Página del post */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; pointer-events: none; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--teal)); }
.post-hero { position: relative; min-height: clamp(380px, 58vh, 620px); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.post-hero.no-img { min-height: 340px; background: radial-gradient(80% 120% at 85% 0%, rgba(255, 79, 163, .3), transparent 60%), radial-gradient(70% 120% at 0% 100%, rgba(63, 224, 208, .18), transparent 60%), #140D2E; }
.post-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 11, 31, .25) 0%, rgba(14, 11, 31, .55) 45%, rgba(14, 11, 31, .97) 100%); }
.post-hero-in { position: relative; z-index: 1; width: 100%; padding-top: 40px; padding-bottom: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 14px; }
.post-hero .crumbs a { color: #E6E0F5; }
.tag-solid { align-self: flex-start; background: var(--pink); color: var(--bg); padding: 5px 12px; border-radius: 6px; }
.post-title { margin: 0; max-width: 22ch; font-size: clamp(34px, 5vw, 66px); line-height: 1.05; font-weight: 800; letter-spacing: -1px; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .45); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: #E6E0F5; font-size: 15px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--pink), var(--teal)); color: var(--bg); font-weight: 800; }

.post-layout { display: grid; grid-template-columns: 64px minmax(0, 1fr) 340px; gap: clamp(24px, 3vw, 48px); padding-top: 44px; padding-bottom: 64px; align-items: start; }
.post-main { min-width: 0; max-width: 820px; width: 100%; justify-self: center; display: flex; flex-direction: column; gap: 28px; }
.share-rail { position: sticky; top: 96px; }
.share-rail .share-links { flex-direction: column; }
.share-rail .sh { width: 48px; height: 48px; padding: 0; justify-content: center; }
.share-rail .sh span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.post-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 1200px) { .post-layout { grid-template-columns: minmax(0, 1fr) 320px; } .share-rail { display: none; } }
@media (max-width: 900px) { .post-layout { grid-template-columns: 1fr; } .post-side { position: static; } }

.toc { background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 20px 24px; }
.toc-title { font-weight: 800; letter-spacing: 1.5px; font-size: 13px; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.toc a { color: var(--text); text-decoration: none; font-weight: 500; }
.toc a:hover { color: var(--pink-soft); }
.prose { font-size: 19px; line-height: 1.75; }
.prose h2 { scroll-margin-top: 100px; font-size: clamp(26px, 2.4vw, 32px); padding-top: 8px; }
.prose figure { margin: 1.8em 0; }
.prose figure img { width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.prose .video { position: relative; aspect-ratio: 16 / 9; margin: 1.8em 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.prose .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose blockquote { border-left: 0; padding: 18px 22px; background: var(--panel); border-radius: 14px; color: var(--soft); font-size: 18px; position: relative; }
.prose a { color: var(--teal); }

.share-box { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.share-title { font-weight: 700; }
.share-links { display: flex; flex-wrap: wrap; gap: 10px; }
.sh { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font: inherit; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; }
.sh svg { width: 18px; height: 18px; flex: none; }
.sh:hover { border-color: var(--teal); color: var(--teal); }
.sh-wa:hover { border-color: #3FD97A; color: #3FD97A; }

.side-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.side-count { background: radial-gradient(120% 120% at 100% 0%, rgba(255, 79, 163, .2), transparent 55%), var(--panel); border-color: var(--line-2); }
.side-count .countdown { gap: 12px; }
.side-count .cd-grid { gap: 6px; }
.side-count .cd-box { padding: 10px 2px; border-radius: 10px; }
.side-count .cd-num { font-size: 30px; }
.side-count .cd-label { font-size: 10px; letter-spacing: 1px; }
.side-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: 1px; text-transform: uppercase; }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.side-list li + li { border-top: 1px solid var(--line); }
.side-list a { display: flex; gap: 14px; padding: 12px 0; text-decoration: none; color: var(--text); }
.side-list a > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.side-num { font-family: var(--display); font-size: 26px; line-height: 1; color: var(--pink); flex: none; width: 34px; }
.side-link { font-weight: 600; line-height: 1.35; }
.side-list a:hover .side-link { color: var(--pink-soft); }
.related { background: #120C29; border-top: 1px solid var(--line); padding-top: 56px; }

/* Pie */
.foot { display: block; padding: 0; margin-top: 0; background: #0A0817; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(160px, 1fr)); gap: 32px; padding-top: 52px; padding-bottom: 36px; }
.foot-brand { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.foot-brand p { color: var(--muted); }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h2 { margin: 0 0 4px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); }
.foot-col a { color: var(--soft); text-decoration: none; }
.foot-col a:hover { color: var(--text); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Editor del panel */
.editor-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; background: var(--panel-2); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 10px 10px 0 0; }
.editor-bar button { min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.editor-bar button:hover { border-color: var(--teal); color: var(--teal); }
.editor-bar + textarea { border-radius: 0 0 10px 10px; }
.editor-status { min-height: 20px; }

/* =========================================================
   v3.1: cabecera con arte y post estilo periódico
   ========================================================= */
body { background: #0B0A1C; background-image: radial-gradient(rgba(122, 108, 200, .07) 1px, transparent 1px); background-size: 22px 22px; }
.masthead { position: relative; overflow: hidden; background: linear-gradient(100deg, #2B1660 0%, #6A2A82 40%, #D94E86 75%, #FF9E5E 100%); border-bottom: 1px solid var(--line); }
.masthead-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.masthead-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 11, 31, .35), rgba(14, 11, 31, .55)); }
.masthead:not(.has-art) .masthead-shade { background: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 16px 16px; }
.masthead-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 112px; }
.masthead-in .pill-count { justify-self: start; background: rgba(14, 11, 31, .55); }
.masthead-in .lang { justify-self: end; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .5); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; background: rgba(14, 11, 31, .35); }
.masthead-in .lang:hover { border-color: #fff; color: #fff; background: rgba(14, 11, 31, .6); }
.masthead-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.masthead-logo .dot { width: 18px; height: 18px; box-shadow: 0 0 18px var(--pink); }
.masthead-logo .brand-name { font-size: clamp(34px, 4.4vw, 56px); text-shadow: 0 0 24px rgba(255, 79, 163, .7), 0 3px 0 rgba(14, 11, 31, .6); }
@media (max-width: 640px) { .masthead-in { grid-template-columns: 1fr auto; min-height: 92px; } .masthead-logo { grid-column: 1 / -1; grid-row: 1; justify-self: center; padding-top: 12px; } .masthead-in .pill-count { grid-row: 2; } .masthead-in .lang { grid-row: 2; } .masthead-in { padding-bottom: 12px; } }

.top { background: rgba(16, 13, 36, .94); border-bottom: 1px solid var(--line); }
.top-in { min-height: 58px; justify-content: center; }
.top .nav { flex: 0 1 auto; gap: 2px; }
.top .nav a { font-size: 15px; min-height: 58px; border-radius: 0; padding: 0 16px; position: relative; }
.top .nav a:hover, .top .nav a[aria-current] { background: transparent; color: var(--pink-soft); }
.top .nav a[aria-current]::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; background: var(--pink); border-radius: 3px 3px 0 0; }
.brand-mini { position: absolute; left: clamp(16px, 3.5vw, 48px); opacity: 0; pointer-events: none; transition: opacity .2s; }
.brand-mini .brand-name { font-size: 22px; }
.top.scrolled .brand-mini { opacity: 1; pointer-events: auto; }
@media (max-width: 860px) { .top .nav { flex-basis: auto; order: 0; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0; } .top-in { padding-top: 0; justify-content: flex-start; } .brand-mini { display: none; } }

/* Post */
.post-layout { grid-template-columns: 72px minmax(0, 1fr) 360px; padding-top: 36px; }
.post-main { max-width: none; justify-self: stretch; gap: 22px; padding-right: clamp(0px, 2vw, 32px); border-right: 1px solid var(--line); }
.post-main .crumbs a { color: var(--muted); text-decoration: none; }
.post-main .crumbs a:hover { color: var(--text); }
.post-title { max-width: 26ch; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.1; letter-spacing: -.5px; text-shadow: none; }
.post-meta { color: var(--muted); font-size: 15px; }
.post-meta strong { color: var(--text); }
.post-meta .tag-solid { text-decoration: none; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.meta-sep { color: var(--line-2); }
.post-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }
.post-main .prose, .post-main .toc, .post-main .source, .post-main .share-box { max-width: 780px; }
.share-rail { padding-top: 360px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rail-label { font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.share-rail .sh { border-radius: 50%; }
.post-side { top: 76px; }
.side-block { display: flex; flex-direction: column; gap: 16px; }
.side-title { border-left: 4px solid var(--pink); padding-left: 12px; font-family: Inter, system-ui, sans-serif; font-weight: 800; font-size: 18px; letter-spacing: 1px; }
.side-feature { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text); }
.side-feature img, .side-feature .card-img-empty { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; display: block; }
.side-feature-title { font-size: 21px; font-weight: 800; line-height: 1.25; }
.side-feature-text { color: var(--soft); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.side-feature:hover .side-feature-title { color: var(--pink-soft); }
.side-thumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.side-thumbs a { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: start; text-decoration: none; color: var(--text); }
.side-thumbs img, .side-thumbs .card-img-empty { width: 110px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; display: block; }
.side-thumbs a > span { display: flex; flex-direction: column; gap: 6px; }
.side-thumbs .side-link { font-size: 15px; font-weight: 700; line-height: 1.3; }
.side-thumbs a:hover .side-link { color: var(--pink-soft); }
@media (max-width: 1200px) { .post-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 900px) { .post-main { border-right: 0; padding-right: 0; } }
.pill-count .cd-live, .pill-count .cd-done { display: inline; gap: 0; }
.pill-count .cd-done[hidden] { display: none; }
.pill-count strong { margin: 0 2px; }
@media (max-width: 1200px) { .share-rail { display: none; } }

/* =========================================================
   v3.2: arreglos para celular
   ========================================================= */
@media (max-width: 900px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); padding-top: 24px; gap: 32px; }
  .post-main { border-right: 0; padding-right: 0; }
  .post-side { position: static; }
  .post-title { font-size: clamp(28px, 7.4vw, 40px); }
  .prose { font-size: 17px; line-height: 1.7; }
  .prose h2 { font-size: 24px; }
  .toc { padding: 16px 18px; }
  .share-box .share-links { gap: 8px; }
  .share-box .sh { flex: 1 1 calc(50% - 8px); justify-content: center; }
  .top .nav { flex-wrap: wrap; justify-content: center; overflow: visible; gap: 0; }
  .top .nav a { min-height: 44px; padding: 0 10px; font-size: 14px; }
  .top .nav a[aria-current]::after { left: 10px; right: 10px; }
  .top-in { justify-content: center; padding: 4px 0; }
  .card-hero { min-height: 380px; }
  .card-row .card-media { flex-basis: 38%; }
  .block-head { align-items: flex-end; }
  .line-title::after { display: none; }
  .display { font-size: clamp(36px, 10vw, 56px); }
  .count-card { padding: 20px; }
  .band-in { padding-top: 40px; padding-bottom: 40px; }
  .side-thumbs a { grid-template-columns: 96px minmax(0, 1fr); }
  .side-thumbs img, .side-thumbs .card-img-empty { width: 96px; }
}
@media (max-width: 420px) {
  .masthead-logo .brand-name { font-size: 32px; }
  .pill-count { font-size: 13px; padding: 0 12px; }
  .cd-label { letter-spacing: 1px; }
  .card-row { flex-direction: column; }
  .card-row .card-media { flex-basis: auto; }
  .card-row .card-img { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
}

/* =========================================================
   v3.3: menú de hamburguesa en el teléfono
   ========================================================= */
.menu-btn { display: none; }
@media (max-width: 860px) {
  .top-in { justify-content: space-between; min-height: 56px; padding: 0; }
  .brand-mini { position: static; opacity: 1; pointer-events: auto; display: flex; }
  .brand-mini .brand-name { font-size: 22px; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
  .menu-btn svg { width: 22px; height: 22px; }
  .menu-ico-close, .top.open .menu-ico-open { display: none; }
  .top.open .menu-ico-close { display: block; }
  .top .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; padding: 8px clamp(16px, 3.5vw, 48px) 16px; background: #120E2B; border-bottom: 1px solid var(--line-2); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
  .top.open .nav { display: flex; }
  .top .nav a { min-height: 54px; padding: 0 8px; font-size: 18px; justify-content: flex-start; border-bottom: 1px solid var(--line); }
  .top .nav a:last-child { border-bottom: 0; }
  .top .nav a[aria-current] { color: var(--pink-soft); }
  .top .nav a[aria-current]::after { left: -12px; right: auto; top: 14px; bottom: 14px; width: 4px; height: auto; border-radius: 0 3px 3px 0; }
  html:not(.js) .top .nav { display: flex; position: static; box-shadow: none; }
  .masthead-in .lang { font-size: 13px; }
}
@media (max-width: 900px) {
  .meta-sep { display: none; }
  .post-meta { gap: 6px 14px; font-size: 14px; }
  .post-meta .avatar { width: 30px; height: 30px; }
}
@media (max-width: 860px) {
  .top-in { padding-top: 0; padding-bottom: 0; padding-left: clamp(16px, 3.5vw, 48px); padding-right: clamp(16px, 3.5vw, 48px); }
  .brand-mini { opacity: 0; pointer-events: none; transition: opacity .2s; }
  .top.scrolled .brand-mini { opacity: 1; pointer-events: auto; }
}

/* =========================================================
   v4: menú lateral (opción 2) y buscador
   ========================================================= */
html.locked, html.locked body { overflow: hidden; }
.icon-btn { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: transparent; color: var(--text); cursor: pointer; text-decoration: none; }
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn:hover { color: var(--pink-soft); background: rgba(255, 255, 255, .06); }
.icon-btn-line { border: 1px solid var(--line-2); }

/* Cabecera: quitar el menú desplegable anterior */
.menu-btn { display: none !important; }
.mh-tools { display: none; }
.top-burger { display: none; }
.top-search { position: absolute; right: clamp(16px, 3.5vw, 48px); }
.top-in { position: relative; }

@media (max-width: 860px) {
  /* Banner con los iconos encima */
  .mh-tools { display: flex; justify-content: space-between; position: absolute; top: 8px; left: 8px; right: 8px; z-index: 2; }
  .mh-tools .icon-btn { color: #FFFFFF; background: rgba(14, 11, 31, .35); border-radius: 50%; }
  .masthead-in { grid-template-columns: 1fr; justify-items: center; gap: 10px; min-height: 0; padding-top: 58px; padding-bottom: 16px; }
  .masthead-logo { grid-column: auto; grid-row: auto; padding-top: 0; order: 1; }
  .masthead-in .pill-count { grid-row: auto; justify-self: center; order: 2; }
  .masthead-in .lang { display: none; }
  /* Barra fija que aparece al bajar */
  .top { position: fixed; top: 0; left: 0; right: 0; transform: translateY(-100%); transition: transform .25s ease; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
  .top.scrolled { transform: none; }
  .top-in { min-height: 56px; justify-content: space-between; }
  .top .nav { display: none !important; }
  .top-burger { display: inline-flex; }
  .top-search { position: static; }
  .brand-mini { position: static; opacity: 1; pointer-events: auto; }
  .progress { top: 0; }
}

/* Panel lateral */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(5, 4, 15, .72); opacity: 0; transition: opacity .25s ease; }
.drawer-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(86vw, 340px); background: #120E2B; border-radius: 0 22px 22px 0; padding: 16px 14px 18px; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; box-shadow: 20px 0 40px rgba(0, 0, 0, .5); transform: translateX(-104%); transition: transform .26s ease; overflow-y: auto; outline: none; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 14px; }
.drawer-head .brand-name { font-size: 26px; }
.drawer-nav { display: flex; flex-direction: column; gap: 2px; }
.drawer-nav a { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-size: 17px; font-weight: 700; }
.drawer-nav a svg { width: 22px; height: 22px; flex: none; }
.drawer-nav a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.drawer-nav a[aria-current] { background: rgba(255, 79, 163, .16); color: var(--pink-soft); }
.drawer-lang { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 8px 4px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.lang-switch > * { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; font-weight: 800; font-size: 14px; text-decoration: none; color: var(--text); }
.lang-switch .on { background: var(--pink); color: var(--bg); }
@media (prefers-reduced-motion: reduce) { .drawer-panel, .drawer-backdrop, .top { transition: none; } }

/* Buscador */
.search-layer { position: fixed; inset: 0; z-index: 70; background: #0B0A1C; display: flex; flex-direction: column; overflow-y: auto; }
.search-layer[hidden] { display: none; }
.search-bar { display: flex; align-items: center; gap: 8px; }
.search-layer .search-bar { position: sticky; top: 0; padding: 10px clamp(12px, 3.5vw, 48px); background: #120E2B; border-bottom: 1px solid var(--line-2); }
.search-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--pink); background: var(--panel); color: var(--muted); }
.search-field svg { width: 20px; height: 20px; flex: none; }
.search-field input { flex: 1; min-width: 0; min-height: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 17px; }
.search-field input::-webkit-search-cancel-button { filter: invert(1); }
.search-cancel { min-height: 44px; padding: 0 10px; border: 0; background: transparent; color: var(--teal); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.search-body { width: 100%; max-width: 760px; margin: 0 auto; padding: 18px clamp(16px, 3.5vw, 48px) 40px; box-sizing: border-box; display: flex; flex-direction: column; gap: 22px; }
.search-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.search-results:empty { display: none; }
.sr-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; color: var(--text); text-decoration: none; }
.sr-item img, .sr-item .card-img-empty { width: 112px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; display: block; }
.sr-text { display: flex; flex-direction: column; gap: 5px; }
.sr-title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.sr-excerpt { color: var(--soft); font-size: 14px; line-height: 1.5; }
.sr-item:hover .sr-title { color: var(--pink-soft); }
.sr-all { display: inline-flex; align-items: center; min-height: 44px; color: var(--teal); font-weight: 700; }
mark { background: rgba(255, 79, 163, .3); color: #FFFFFF; border-radius: 3px; padding: 0 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); text-decoration: none; font-size: 14px; }
.chip:hover { border-color: var(--pink); color: var(--pink-soft); }
.search-popular .kicker { margin-bottom: 10px; }
.search-page { max-width: 860px; }
.search-bar-page .search-field { border-width: 1px; border-color: var(--line-2); }
.search-results-page { gap: 20px; }
.search-results-page .sr-item { grid-template-columns: 180px minmax(0, 1fr); }
.search-results-page .sr-item img, .search-results-page .sr-item .card-img-empty { width: 180px; }
@media (max-width: 600px) { .search-results-page .sr-item { grid-template-columns: 112px minmax(0, 1fr); } .search-results-page .sr-item img, .search-results-page .sr-item .card-img-empty { width: 112px; } .search-bar-page .btn { padding: 0 16px; } }

/* =========================================================
   v4.1: vista previa en vivo en el editor
   ========================================================= */
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.editor-form { max-width: 820px; width: 100%; }
@media (min-width: 1280px) {
  .panel-main:has(.editor-grid) { padding-right: 24px; }
  .editor-grid { grid-template-columns: minmax(460px, 1fr) minmax(420px, 1.05fr); }
  .preview { position: sticky; top: 16px; max-height: calc(100vh - 32px); }
}
.preview { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 18px; background: #0B0A1C; overflow: hidden; min-height: 420px; }
.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: #120E2B; border-bottom: 1px solid var(--line-2); }
.preview-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3FD97A; box-shadow: 0 0 8px #3FD97A; }
.preview-modes { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.preview-modes button { min-height: 36px; padding: 0 14px; border: 0; background: transparent; color: var(--soft); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.preview-modes button[aria-pressed="true"] { background: var(--pink); color: var(--bg); }
.preview-scroll { flex: 1; overflow-y: auto; padding: 24px; background-image: radial-gradient(rgba(122, 108, 200, .07) 1px, transparent 1px); background-size: 22px 22px; }
.preview-frame { container-type: inline-size; margin: 0 auto; max-width: 860px; transition: max-width .2s ease; }
.preview-frame.is-phone { max-width: 390px; border: 1px solid var(--line-2); border-radius: 28px; padding: 18px 16px; background: #0B0A1C; box-shadow: 0 0 0 8px #1A1533; }
.pv-post { border-right: 0 !important; padding-right: 0 !important; gap: 18px; }
.pv-post .crumbs { color: var(--muted); font-size: 14px; display: flex; gap: 8px; }
.pv-cover-empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; background: repeating-linear-gradient(135deg, #151030 0 12px, #1A1533 12px 24px); }
.pv-cover-empty[hidden] { display: none; }
.pv-post .toc li { color: var(--text); }
@container (max-width: 520px) {
  .pv-post .post-title { font-size: 28px; }
  .pv-post .prose { font-size: 17px; line-height: 1.7; }
  .pv-post .prose h2 { font-size: 23px; }
  .pv-post .post-meta { font-size: 13px; gap: 6px 12px; }
}

/* Página de contacto */
.contact-page { max-width: 1100px; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 26px; border-radius: 20px; border: 1px solid var(--line-2); background: radial-gradient(120% 140% at 100% 0%, rgba(255, 79, 163, .2), transparent 55%), var(--panel); }
.contact-card .muted { flex-basis: 100%; }
.contact-mail { font-size: clamp(22px, 3.4vw, 34px); font-weight: 800; color: var(--text); text-decoration: none; word-break: break-all; margin-right: auto; }
.contact-mail:hover { color: var(--pink-soft); }
.contact-page .soon-card h2 { margin: 0; font-size: 20px; }
