@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  font-family: Manrope, "Segoe UI", Arial, sans-serif;
  color: #171b1b;
  background: #f6f7f4;
  --ink: #141919;
  --muted: #505956;
  --line: #d9dfd7;
  --wash: #e9ece7;
  --dark: #171d1e;
  --bright: #f6f8f5;
  --accent: #c4e978;
  --width: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 18px; }
body { margin: 0; font-size: 1rem; line-height: 1.55; }
[hidden] { display: none !important; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.065; letter-spacing: -.055em; }
h1 { font-size: clamp(3rem, 6.1vw, 6.5rem); font-weight: 800; }
h2 { font-size: clamp(2.1rem, 4vw, 3.95rem); font-weight: 800; }
h3 { font-size: clamp(1.18rem, 2vw, 1.55rem); font-weight: 800; letter-spacing: -.04em; }
a { color: inherit; text-underline-offset: .23em; }
button, input { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #646464; outline-offset: 4px; }
main:focus { outline: none; }
.wrap { width: min(var(--width), calc(100% - 2 * clamp(1rem, 5vw, 3rem))); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset: .5rem auto auto 1rem; z-index: 3; padding: .6rem .8rem; background: #fff; transform: translateY(-160%); }
.skip:focus { transform: none; }
.header { background: #101516; color: var(--bright); }
.bar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; min-height: 77px; }
.brand { display: inline-flex; width: fit-content; min-height: 48px; align-items: center; gap: .65rem; text-decoration: none; font-weight: 800; letter-spacing: -.045em; white-space: nowrap; }
.brand img { width: clamp(3rem, 5.2vw, 4.35rem); height: auto; flex: none; }
.bar nav, .footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem clamp(.8rem, 3vw, 2rem); }
.bar nav a, .account-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; text-decoration: none; font-weight: 750; }
.bar nav a:hover, .account-link:hover, .bar nav a[aria-current] { text-decoration: underline; }
.account-link { justify-self: end; white-space: nowrap; }
.account-link svg, .footer svg, .primary svg, .card-link svg { width: 1.08rem; height: 1.08rem; flex: none; }
.hero-band { background: radial-gradient(ellipse at 83% 30%, #2b3630, transparent 58%), var(--dark); color: var(--bright); }
.hero { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: clamp(1rem, 4vw, 3.5rem); padding-block: clamp(1.65rem, 5vw, 4.5rem); }
.hero-copy { padding-block: clamp(.5rem, 1.8vw, 1.5rem); }
.hero-copy h1 { max-width: 11ch; font-size: clamp(2.85rem, 5.7vw, 6rem); }
.hero-typing { display: inline-block; }
.lead { margin-top: .9rem; color: var(--muted); font-size: clamp(1.03rem, 1.75vw, 1.24rem); max-width: 43ch; }
.hero-band .lead { color: #c8d0c9; }
.hero-frame { min-width: 0; overflow: hidden; border: 1px solid #899c873d; border-radius: .85rem; background: #101516; color: var(--bright); }
.art { display: block; min-width: 0; }
.art img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.art-minecraft-java img { object-position: 50% 57%; }
.art-project-zomboid img { object-position: 50% 38%; }
.art-terraria img { object-position: 50% 56%; }
.art-7-days-to-die img { object-position: 50% 44%; }
.art-hytale img { object-position: 52% 52%; }
.hero-frame figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 1rem; padding: .15rem 1rem; }
.hero-frame a { display: grid; align-items: center; min-height: 44px; font-size: .85rem; }
.hero-frame a:first-child { font-weight: 800; text-decoration: none; }
.hero-frame a:hover { text-decoration: underline; }
.primary { display: inline-flex; width: fit-content; justify-content: center; align-items: center; gap: .65rem; min-height: 48px; margin-top: 1.5rem; padding: .7rem 1rem; border-radius: 5px; background: var(--ink); color: #fff; font-weight: 800; text-decoration: none; }
.primary:hover { background: #303030; }
.hero .primary { color: #151b12; background: var(--accent); }
.hero .primary:hover { background: #ddf6a6; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.25rem; }
.hero-actions { margin-top: 1.5rem; }
.hero-actions .primary { margin-top: 0; }
.social-link { display: inline-flex; align-items: center; gap: .42rem; min-height: 44px; font-weight: 700; }
.social-link svg { width: 1.08rem; height: 1.08rem; flex: none; }
.footer nav .social-link { min-height: 44px; }
.section { padding-block: clamp(2rem, 5vw, 4.5rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .7rem 1.25rem; margin-bottom: 1.4rem; }
.section-head > a { font-weight: 750; }
.filters { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .65rem 1.2rem; padding-bottom: 1rem; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: .32rem .88rem; }
.filter-buttons button { min-height: 44px; padding: .28rem .12rem; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); }
.filter-buttons button:hover, .filter-buttons button[aria-pressed="true"] { border-bottom-color: var(--ink); color: var(--ink); }
.search { position: relative; display: flex; align-items: center; min-width: min(100%, 16.8rem); }
.search input { width: 100%; height: 44px; padding: .5rem .7rem .5rem 2.05rem; border: 0; border-radius: 5px; color: var(--ink); background: var(--wash); }
.search > svg { width: 1rem; height: 1rem; position: absolute; left: .72rem; pointer-events: none; }
.results-count { min-height: 1.5rem; margin-bottom: .65rem; color: var(--muted); font-size: .88rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(.7rem, 1.5vw, 1.2rem); }
.card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: .85rem; background: var(--wash); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: clamp(1rem, 1.9vw, 1.45rem); }
.card-meta { margin-top: .52rem; color: var(--muted); font-size: .9rem; }
.gameplay-link { display: inline-flex; width: fit-content; min-height: 44px; align-items: center; font-size: .88rem; color: inherit; }
.card-action { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem; margin-top: auto; padding-top: .55rem; }
.card-price { font-weight: 750; font-size: .86rem; }
.card-link { display: inline-flex; min-height: 44px; align-items: center; gap: .36rem; font-size: .94rem; font-weight: 800; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.card:hover { background: #ededed; }
.card-with-photo { background: var(--dark); color: var(--bright); }
.card-with-photo:hover { background: #232b2b; }
.card-with-photo .card-meta, .card-with-photo .affiliation { color: #cad3cb; }
.card-with-photo .card-link { color: var(--accent); }
.card-with-photo .card-link:focus-visible, .hero a:focus-visible, .header a:focus-visible { outline-color: var(--accent); }
.empty { padding: 1rem 0; color: var(--muted); }
.callout { align-items: center; display: flex; justify-content: space-between; gap: 1rem 2rem; margin-block: .45rem clamp(2rem, 5vw, 4rem); padding: clamp(1.25rem, 4vw, 3rem); background: var(--wash); color: var(--ink); }
.callout h2 { font-size: clamp(1.65rem, 3.4vw, 3rem); }
.callout p { color: var(--muted); margin-top: .45rem; }
.callout .card-link { white-space: nowrap; }
.detail { padding-block: clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem); }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; color: var(--muted); font-size: .85rem; margin-bottom: 1.3rem; }
.detail h1, .simple h1 { font-size: clamp(2.55rem, 6vw, 5.65rem); overflow-wrap: break-word; }
.detail-copy { max-width: 35rem; margin-block: auto; }
.detail-grid { display: grid; gap: clamp(1.1rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); }
.detail-grid.has-media { grid-template-columns: minmax(0,1fr) minmax(0, .9fr); }
.detail-media .art { overflow: hidden; border-radius: .75rem; background: var(--dark); }
.game-clip { width: 100%; min-width: 0; max-width: 44rem; }
.game-clip iframe { display: block; width: 100%; height: auto; min-height: 200px; aspect-ratio: 16 / 9; border: 0; border-radius: .55rem; background: var(--dark); }
.detail > .game-clip { margin-top: 2rem; }
.credit { padding-top: .45rem; color: var(--muted); font-size: .78rem; }
.affiliation { margin-top: .45rem; color: var(--muted); font-size: .84rem; }
.detail-copy .state { margin-top: 1.15rem; font-weight: 750; }
.plan-section .section-head { margin-bottom: .8rem; }
.game-guide { padding-block: clamp(1.5rem, 3vw, 3rem); border-top: 1px solid var(--line); }
.game-guide h2 { font-size: clamp(1.38rem, 3vw, 2.2rem); }
.game-guide p { max-width: 66ch; margin-top: .65rem; }
.game-guide a { display: inline-grid; align-items: center; min-height: 44px; font-size: .9rem; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr)); gap: .9rem; }
.plan-card { display: flex; flex-direction: column; gap: .75rem; padding: clamp(1.1rem, 3vw, 1.6rem); border-radius: .6rem; background: var(--wash); }
.plan-card p { color: var(--muted); font-size: .94rem; }
.plan-card strong { display: block; margin-top: .72rem; font-size: 1.55rem; }
.plan-card .plan-list-price strong { margin-top: 0; color: var(--ink); font-size: clamp(1rem, 2vw, 1.35rem); }
.plan-card dl { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem 1.1rem; margin-top: auto; padding-top: .7rem; }
.plan-card dt { color: var(--muted); font-size: .8rem; }
.plan-card dd { font-weight: 800; }
.plan-memory { flex-basis: 100%; }
.plan-memory dd { font-size: clamp(1.6rem, 3vw, 2.15rem); letter-spacing: -.05em; }
.plan-card ul { padding-inline-start: 1.15rem; }
.simple { padding-block: clamp(2rem, 7vw, 5rem); }
.info-page { max-width: 51rem; margin-inline: auto; }
.info-page h1 { max-width: 17ch; line-height: 1.05; font-size: clamp(2.5rem, 6vw, 4.75rem); }
.info-page h2 { margin-block: 2.1rem .55rem; font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.2; }
.info-page p, .info-page li { max-width: 70ch; line-height: 1.7; overflow-wrap: anywhere; }
.info-page :is(p,ul,ol) { margin-block: .65rem 1.1rem; }
.info-page ul, .info-page ol { padding-inline-start: 1.4rem; }
.info-page li + li { margin-block-start: .35rem; }
.info-page a { text-underline-offset: .16em; }
.consumer-links { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 0 1.1rem; }
.consumer-links a { display: inline-flex; align-items: center; min-height: 36px; color: #454545; font-size: .72rem; font-weight: 650; text-underline-offset: .2em; }
@media (max-width: 33rem) {
  .consumer-links { justify-content: space-between; gap: 0 .3rem; }
  .consumer-links a { min-height: 44px; font-size: .64rem; }
}
.list { margin: 0; padding: 0; list-style: none; }
.list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(8rem, auto); padding: .65rem .25rem; gap: .65rem 1rem; align-items: center; border-bottom: 1px solid var(--line); }
.list li > a { align-self: start; }
.list li > span { color: var(--muted); font-size: .88rem; }
.list .card-link { min-height: 44px; }
.comparison .list { display: grid; gap: .38rem; margin-top: 1.45rem; }
.comparison .list li { background: var(--wash); border: 0; border-radius: .4rem; padding: .5rem .85rem; }
.comparison .list .comparison-game { grid-template-columns: 142px minmax(0, 1fr) minmax(0, auto); padding: .5rem .85rem .5rem .5rem; }
.comparison-game .art { overflow: hidden; border-radius: .3rem; }
.comparison .comparison-game > a { align-self: center; }
.footer { background: var(--ink); color: #eee; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; padding-block: 1.2rem; }
.footer nav a { display: inline-flex; min-height: 42px; align-items: center; gap: .42rem; color: #dedede; font-size: .91rem; text-decoration: none; }
.footer nav a:hover { text-decoration: underline; }

@media (max-width: 50rem) {
  .bar { grid-template-columns: 1fr auto; gap: 0 .65rem; min-height: 62px; }
  .bar nav { grid-row: 2; grid-column: 1/-1; gap: .6rem 1.1rem; }
  .bar nav a { font-size: .91rem; }
  .hero { gap: .65rem; }
  .hero-copy { padding-right: .4rem; }
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 42rem) {
  .hero, .detail-grid.has-media { grid-template-columns: minmax(0,1fr); }
  .hero-copy h1 { max-width: 11ch; }
  .hero-frame img { aspect-ratio: 16 / 9; }
  .hero-copy { padding-bottom: 1.2rem; }
  .callout { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .comparison .list .comparison-game { grid-template-columns: 96px minmax(0, 1fr); gap: 0 .75rem; }
  .comparison-game .art { grid-row: span 2; }
  .comparison .comparison-game > span { grid-column: 2; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-typing { animation: reveal-typing .42s steps(7, end) both; }
  @keyframes reveal-typing { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
  .primary, .card { transition: background-color .16s ease; }
  .primary svg, .card-link svg { transition: transform .16s ease; }
  .primary:hover svg, .card-link:hover svg { transform: translateX(3px); }
}
@media (max-width: 24rem) {
  .grid { grid-template-columns: minmax(0,1fr); }
  .list li { grid-template-columns: minmax(0,1fr); gap: 0; }
}

/* Colores del catálogo estático. Las hojas de Comercio son independientes. */
:root {
  color-scheme: dark;
  color: #f4f7f1;
  background: #101516;
  --ink: #f4f7f1;
  --muted: #c0cbc1;
  --line: #3a4940;
  --wash: #222c26;
  --dark: #19221e;
  --bright: #f4f7f1;
  --accent: #c4e978;
  --taw-canvas: #101516;
  --taw-subtle: #18211d;
  --taw-raised: #2a3930;
}

:focus-visible { outline-color: var(--accent); }
.skip { background: var(--accent); color: #17231a; }
.header, .footer { background: #111819; color: var(--bright); }
.bar nav a[aria-current], .header .account-link[aria-current] { color: var(--accent); }
.consumer-links a { color: var(--muted); }
.consumer-links a:hover, .footer nav a:hover { color: var(--bright); }
.footer nav a { color: var(--muted); }

.hero-band { background: radial-gradient(ellipse at 16% 0%, #253329 0, transparent 58%), var(--taw-canvas); }
.hero-frame, .game-guide, .list li { border-color: transparent; }
.hero-frame, .detail-media .art { background: var(--taw-subtle); }
.card, .card-with-photo, .callout, .comparison .list li, .plan-card { background: var(--wash); color: var(--ink); }
.card:hover, .card-with-photo:hover { background: var(--taw-raised); }
.card-with-photo :is(.card-meta, .affiliation), .info-page .lead { color: var(--muted); }
.primary, .hero .primary { color: #17231a; background: var(--accent); }
.primary:hover, .hero .primary:hover { background: #ddf5a7; }
.card-link, .info-page a, .game-guide a, .crumb a, .list li > a { color: var(--accent); }
.filter-buttons button:hover, .filter-buttons button[aria-pressed="true"] { border-bottom-color: var(--accent); color: var(--accent); }
.search input::placeholder { color: var(--muted); opacity: 1; }

/* Controles compartidos. El cuadro de preferencias conserva su apertura a pedido. */
body .cookie-dialog { color: var(--ink); background: var(--wash); border-color: transparent; }
body :is(.cookie-actions, .media-choice) button { color: var(--ink); background: var(--taw-raised); border-color: transparent; }
body :is(.cookie-actions, .media-choice) button:hover { color: #17231a; background: var(--accent); }
body .cookie-dialog :is(button, a):focus-visible,
body .game-clip :is(button, iframe):focus-visible, body .cookie-preferences:focus-visible { outline-color: var(--accent); }

/* Juegos conserva dimensiones y selectores de planes de su hoja posterior. */
main[data-gaming-page] {
  --gaming-edge: transparent;
  --gaming-paper: var(--wash);
  --gaming-well: var(--taw-raised);
  --gaming-green: var(--accent);
  --gaming-focus: var(--accent);
}
main[data-gaming-page] :is(.gaming-secondary, .gaming-option, .gaming-plan, .comparison .list li) { border-color: transparent; box-shadow: none; }
main[data-gaming-page] .gaming-secondary { background: var(--wash); }
main[data-gaming-page] :is(.gaming-secondary, .gaming-option):hover { background: var(--taw-raised); border-color: transparent; }
main[data-gaming-page] .gaming-plan:hover { border-color: transparent; }
main[data-gaming-page] .gaming-plan:target { border-color: transparent; box-shadow: none; outline: 2px solid var(--accent); outline-offset: 3px; }
main[data-gaming-page] .comparison .list li:is(:hover, :focus-within) { border-color: transparent; background: var(--taw-raised); }

/* Compatibilidad con la portada previa. */
body .entrada-card, body .entrada-window, body .entrada-window-bar, body .entrada-credit a { border-color: transparent; }
body .entrada-soporte a { color: var(--accent); background: var(--wash); border-color: transparent; }
body .entrada-soporte a:hover { background: var(--taw-raised); }

/* Especificidad superior a web.css, que se carga después del estilo base. */
body .taw-web {
  --web-ink: var(--ink);
  --web-muted: var(--muted);
  --web-line: var(--line);
  --web-dark: var(--taw-canvas);
  --web-focus: var(--accent);
  background: var(--taw-canvas);
}
body .taw-web .taw-web-hero { background: radial-gradient(ellipse at 80% 0%, #283d32 0, transparent 60%), var(--taw-canvas); }
body .taw-web :is(.taw-web-guide, .taw-web-plan, .taw-web-workflow, .taw-web-selector a) {
  color: var(--ink); background: var(--wash); border-color: transparent; box-shadow: none;
}
body .taw-web .taw-web-guide a { background: var(--taw-raised); border-color: transparent; }
body .taw-web :is(.taw-web-selector a, .taw-web-guide a):hover { background: #35483b; border-color: transparent; }
body .taw-web .taw-web-plan-free { background: #23352a; }
body .taw-web .taw-web-workflows { background: var(--taw-subtle); border-color: transparent; }
body .taw-web .taw-web-icon[src*="/lucide/"] { filter: brightness(0) invert(1); }

.taw404 {
  min-block-size: min(60vh, 36rem);
  display: grid;
  align-content: center;
  padding-block: clamp(2.5rem, 9vw, 7rem);
  background: radial-gradient(ellipse at 16% 0%, #253329 0, transparent 58%), var(--taw-canvas);
  color: var(--ink);
}
.taw404 h1 { font-size: clamp(2.7rem, 7vw, 5.8rem); }
.taw404 p { margin-top: .8rem; color: var(--muted); }
.taw404-acciones { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin-top: 1.4rem; }
.taw404-acciones a { display: inline-flex; min-height: 44px; align-items: center; }
.taw404-acciones a:not(.primary) { color: var(--accent); }
.taw404-acciones .primary { margin-top: 0; }
