/* Canary Options · portada y catálogo (estilo Canary Arcade, 25-10-2026).
   Solo la usa /index.html; el resto de páginas siguen con styles.css. */
:root {
  color-scheme: dark;
  --ink: #0E1A26;
  --panel: #152738;
  --panel-2: #1B3247;
  --line: #2A4762;
  --text: #F4F2EA;
  --muted: #A9B7C5;
  --azul: #1688B4;
  --amarillo: #E3BB32;
  --naranja: #E17B46;
  --verde: #77A56B;
  --coral: #D15B63;
  --violeta: #8174B3;
  --gris: #8B929B;
  --display: 'Bungee', 'Arial Black', Impact, system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ink); scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(22,136,180,.20), transparent 60%),
    radial-gradient(900px 420px at -10% 30%, rgba(129,116,179,.14), transparent 60%),
    var(--ink);
  color: var(--text);
  font: 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; border-radius: 6px; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: 8px; z-index: 50; padding: 12px 20px; border-radius: 999px; background: var(--amarillo); color: #111; font-weight: 800; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 800; color: #111; text-decoration: none; transition: transform .12s, filter .12s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.play { background: var(--amarillo); box-shadow: 0 4px 0 #9C7F17; }
.btn.ghost { background: var(--panel-2); color: var(--text); }
.btn.big { min-height: 52px; padding: 12px 26px; font-size: 17px; }
.btn[disabled] { opacity: .6; cursor: default; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--amarillo); font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 20; background: linear-gradient(var(--ink) 75%, rgba(14,26,38,0)); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; min-width: 0; }
.brand-bird { width: 54px; height: 54px; flex-shrink: 0; }
.brand-word { font-family: 'Outfit', var(--body); font-size: 31px; line-height: 1; letter-spacing: -1px; white-space: nowrap; }
.brand-word b { font-weight: 800; }
.brand-options { font-weight: 600; }
.brand-options i { font-style: normal; }
.brand-options i:nth-child(1) { color: var(--azul); }
.brand-options i:nth-child(2) { color: var(--amarillo); }
.brand-options i:nth-child(3) { color: var(--naranja); }
.brand-options i:nth-child(4) { color: var(--verde); }
.brand-options i:nth-child(5) { color: var(--coral); }
.brand-options i:nth-child(6) { color: var(--violeta); }
.brand-options i:nth-child(7) { color: var(--gris); }
.account-button { flex-shrink: 0; }
.account-button svg { width: 18px; height: 18px; }
.account-button.signed { box-shadow: inset 0 0 0 2px var(--verde); }

/* Portada */
.category-home { padding-block: 8px 24px; }
.home-hero {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  padding: 22px 28px; border-radius: 18px; background: #13212F; box-shadow: inset 0 0 0 2px var(--amarillo);
}
.home-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5vw, 44px); line-height: 1; }
.home-hero h1 span { color: var(--amarillo); }
.home-copy { max-width: 420px; font-size: 17px; color: #D6DCE2; }
.section-title { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 28px 0 14px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head .section-title { margin-bottom: 14px; }
.quiet-link { color: var(--muted); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.quiet-link:hover { color: var(--text); }

.category-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.category-choice {
  --c: var(--gris);
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px;
  min-height: 190px; padding: 26px 20px 20px; border-radius: var(--r);
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); transition: transform .15s, box-shadow .15s;
}
.category-choice::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--c); }
.category-choice:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--c); }
.choice-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--c); color: #111; display: grid; place-items: center; }
.choice-icon svg { width: 26px; height: 26px; }
.category-choice strong { font-size: 22px; font-weight: 800; }
.category-choice > span:not(.choice-icon):not(.choice-arrow) { color: var(--muted); font-size: 15px; }
.choice-arrow { margin-top: auto; font-family: var(--display); font-size: 15px; color: var(--c-text, var(--c)); }
.choice-empresas { --c: var(--amarillo); }
.choice-herramientas { --c: var(--verde); --c-text: #8FBC83; }
.choice-juegos { --c: var(--azul); --c-text: #4FB0D8; }
.choice-juegos .choice-icon, .choice-entretenimiento .choice-icon { color: #fff; }
.choice-entretenimiento { --c: var(--coral); --c-text: #E58A90; }
.home-all { display: inline-flex; margin-top: 14px; }

/* Cuenta */
.account-promo {
  display: flex; flex-wrap: wrap; gap: 24px 28px; align-items: center;
  margin-top: 36px; padding: 28px; border-radius: 18px; background: #172A3B; box-shadow: inset 0 0 0 2px var(--amarillo);
}
.account-promo > div { flex: 1 1 320px; min-width: 0; }
.account-promo h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4vw, 38px); line-height: 1.05; margin: 10px 0 12px; }
.account-promo h2 span { color: var(--amarillo); }
.account-promo p { color: #D6DCE2; font-size: 17px; max-width: 420px; margin-bottom: 20px; }
.benefits { flex: 1 1 360px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.benefits li { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--panel-2); }
.benefits strong { display: block; }
.benefits li span:last-child span { font-size: 14px; color: var(--muted); }
.tick { flex: 0 0 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
.tick svg { width: 16px; height: 16px; }
.tick.azul { background: var(--azul); } .tick.verde { background: var(--verde); color: #111; } .tick.violeta { background: var(--violeta); }

/* Destacadas */
.featured { margin-top: 12px; }
.featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.feature-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); transition: transform .15s; }
.feature-card:hover { transform: translateY(-2px); }
.feature-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--panel-2); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.play-tag {
  position: absolute; left: 12px; bottom: 12px; padding: 9px 18px; border-radius: 999px;
  background: var(--amarillo); color: #111; font-weight: 800; box-shadow: 0 4px 0 #9C7F17;
}
.feature-text { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.feature-text strong { font-size: 20px; }
.feature-text span:last-child { color: var(--muted); font-size: 15px; }

/* Catálogo */
.catalog { padding-block: 8px 48px; }
.catalog-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin-bottom: 18px; }
.catalog-heading > div { flex: 1 1 260px; }
.catalog-heading h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4vw, 40px); line-height: 1.05; margin-top: 6px; }
.catalog-heading a { color: var(--muted); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.catalog-heading a:hover { color: var(--text); }
.catalog-heading a.back-link { order: -1; flex-basis: 100%; text-decoration: none; font-weight: 800; color: var(--amarillo); }
.catalog-groups { display: flex; flex-direction: column; gap: 36px; }
.category-group { --c: var(--gris); }
.category-group.empresas { --c: var(--amarillo); }
.category-group.herramientas { --c: var(--verde); }
.category-group.ocio, .category-group.juegos { --c: var(--azul); }
.category-group.entretenimiento { --c: var(--coral); }
.category-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 16px; border-top: 4px solid var(--c); }
.category-heading h2 { font-family: var(--display); font-weight: 400; font-size: 24px; }
.category-heading p { color: var(--muted); }
.category-count { font-weight: 800; color: #111; background: var(--c); border-radius: 999px; padding: 2px 10px; font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.game-sections { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.game-sections a { padding: 8px 14px; border-radius: 999px; background: var(--panel-2); font-weight: 700; font-size: 14px; }
.game-sections a:hover { background: var(--text); color: var(--ink); }
.game-section-heading { grid-column: 1 / -1; padding-top: 14px; scroll-margin-top: 90px; }
.game-section-heading h3 { font-family: var(--display); font-weight: 400; font-size: 22px; }
.game-section-heading p { color: var(--muted); }

.app-card {
  --c: var(--gris);
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border-radius: var(--r); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
}
.app-card.empresas { --c: var(--amarillo); }
.app-card.herramientas { --c: var(--verde); }
.app-card.juegos { --c: var(--azul); }
.app-card.entretenimiento { --c: var(--coral); }
.app-cover { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--panel-2); }
.app-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
a.app-cover:hover img { transform: scale(1.04); }
.app-cover .play-tag { pointer-events: none; }
.app-card:not(:has(.app-cover))::before { content: ""; height: 6px; background: var(--c); }
.card-top { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 0; }
.app-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.app-identity > div { min-width: 0; }
.app-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; line-height: 1; background: var(--panel-2); color: var(--text); font-weight: 800; }
.app-icon-photo { object-fit: cover; padding: 0; }
.app-state { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 800; }
.app-identity h3 { font-size: 20px; font-weight: 800; overflow-wrap: anywhere; }
.open-app {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 48px; padding: 10px 16px; border: 0; border-radius: 999px;
  background: var(--amarillo); color: #111; font-weight: 800; text-align: center; box-shadow: 0 4px 0 #9C7F17; cursor: pointer;
}
.open-app:hover { filter: brightness(1.08); }
.open-app:disabled { background: var(--panel-2); color: var(--muted); box-shadow: none; cursor: default; }
.card-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 14px 16px 16px; }
.app-description { color: #D6DCE2; font-size: 15px; }
.card-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; background: var(--panel-2); font-size: 14px; font-weight: 700; }
.card-links a:hover { background: var(--line); }
.card-links a[href="/condiciones/"] { background: none; padding-inline: 0; color: var(--muted); font-weight: 400; text-decoration: underline; text-underline-offset: 4px; }
.preview-note { display: block; flex-basis: 100%; color: var(--muted); font-size: 14px; }
.app-features { margin-top: auto; border-top: 1px solid var(--line); font-size: 15px; }
.app-features summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--muted); font-weight: 700; }
.app-features[open] summary { color: var(--text); }
.app-features ul { margin: 0 0 10px; padding-left: 18px; color: #D6DCE2; }
.app-features li + li { margin-top: 6px; }
.app-features p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }

/* Pie */
.site-footer { margin-top: 48px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-block: 28px 36px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.site-footer address { font-style: normal; overflow-wrap: anywhere; }
.site-footer strong { color: var(--text); }
.site-footer a { text-decoration: underline; text-underline-offset: 4px; }
.site-footer a:hover { color: var(--text); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 6px 18px; max-width: 480px; align-content: flex-start; }
.company-info { margin-bottom: 18px; max-width: 640px; }
.company-info summary { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: var(--panel-2); color: var(--text); font-weight: 800; cursor: pointer; list-style: none; }
.company-info summary::-webkit-details-marker { display: none; }
.company-info summary::after { content: '+'; font-size: 20px; }
.company-info[open] summary::after { content: '−'; }
.company-info-copy { margin-top: 16px; }
.company-info-copy h2 { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--text); margin-bottom: 12px; }
.company-info-copy p { margin-bottom: 10px; }
.company-info-signature { color: var(--text); font-weight: 800; }

/* Ventana de cuenta */
.auth-dialog { width: min(440px, calc(100% - 24px)); padding: 0; border: 0; border-radius: 18px; background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 2px var(--amarillo), 0 30px 80px rgba(0,0,0,.5); }
.auth-dialog::backdrop { background: rgba(5,10,16,.75); }
.auth-box { display: flex; flex-direction: column; gap: 14px; padding: 26px; }
.auth-box h2 { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.05; }
.auth-box > p { color: #D6DCE2; }
.auth-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--panel-2); color: var(--text); font-size: 22px; cursor: pointer; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 14px; }
.field input { height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--panel-2); color: var(--text); font-weight: 400; box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--amarillo); }
.pass-row { display: flex; gap: 8px; }
.pass-row input { flex: 1; }
.eye { width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--panel-2); color: var(--text); display: grid; place-items: center; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.eye svg { width: 20px; height: 20px; }
.eye[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--amarillo); }
.auth-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.auth-actions .btn { flex: 1 1 140px; }
.auth-msg { min-height: 1.5em; font-weight: 800; }
.auth-msg.error { color: #F0A0A5; }
.auth-msg.ok { color: #A6D39A; }
.auth-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); }

@media (max-width: 600px) {
  .brand-bird { width: 44px; height: 44px; }
  .brand-word { font-size: 25px; }
  .account-button { padding-inline: 14px; }
  .home-hero { padding: 18px; }
  .category-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-choice { min-height: 0; padding: 22px 14px 14px; }
  .category-choice > span:not(.choice-icon):not(.choice-arrow) { display: none; }
  .category-choice strong { font-size: 18px; }
  .choice-icon { width: 44px; height: 44px; }
  .account-promo { padding: 20px; }
}
@media (max-width: 380px) { .brand-word { font-size: 21px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print {
  body { background: #fff; color: #111; }
  .site-header, .account-promo, .featured, .site-footer, .auth-dialog { display: none; }
}

/* Juegos de pago: Canary Arcade a todo el ancho */
.arcade-banner { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: stretch; overflow: hidden; border-radius: 18px; background: #13212F; box-shadow: inset 0 0 0 2px var(--amarillo); transition: transform .15s; }
.arcade-banner:hover { transform: translateY(-2px); }
.arcade-overlay { order: -1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 28px; }
.arcade-title { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.5vw, 56px); line-height: 1; }
.arcade-title b { font-weight: 400; color: var(--amarillo); }
.arcade-sub { color: #D6DCE2; font-size: 17px; }
.arcade-overlay .play-tag { position: static; margin-top: 8px; padding: 12px 22px; font-size: 17px; }
.arcade-mosaic { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 2px 2px 2px 0; }
.arcade-mosaic img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .3s; }
.arcade-banner:hover .arcade-mosaic img { transform: scale(1.04); }
@media (max-width: 760px) {
  .arcade-banner { grid-template-columns: minmax(0, 1fr); }
  .arcade-overlay { order: 0; padding: 18px; }
  .arcade-mosaic { padding: 2px 2px 0; }
  .arcade-sub { font-size: 15px; }
  .arcade-overlay .play-tag { align-self: stretch; text-align: center; }
}

/* Menú de categorías dentro del catálogo (pastillas de colores, del tamaño del nombre) */
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.cat-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 15px; color: #111; background: var(--c); box-shadow: 0 3px 0 rgba(0,0,0,.4); transition: transform .12s, filter .12s; }
.cat-nav a:hover { filter: brightness(1.08); }
.cat-nav a[aria-current="page"] { outline: 3px solid var(--text); outline-offset: 2px; }
.cat-nav .nav-empresas { --c: var(--amarillo); }
.cat-nav .nav-herramientas { --c: var(--verde); }
.cat-nav .nav-juegos { --c: var(--azul); }
.cat-nav .nav-entretenimiento { --c: var(--coral); }
.cat-nav .nav-todas { --c: var(--panel-2); color: var(--text); }
.catalog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pill-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; font-weight: 800; color: #111; box-shadow: 0 4px 0 rgba(0,0,0,.45); }
.pill-btn:hover { filter: brightness(1.08); }
.pill-violeta { background: var(--violeta); color: #fff; }
.pill-naranja { background: var(--naranja); }

/* Página «Llévate tus apps contigo» (/instalar/) */
.guide-page { padding-block: 8px 24px; }
.guide-back { display: inline-flex; min-height: 44px; align-items: center; font-weight: 800; color: var(--amarillo); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin-top: 20px; }
.guide-card { --c: var(--gris); position: relative; overflow: hidden; padding: 26px 20px 20px; border-radius: var(--r); background: var(--panel); box-shadow: inset 0 0 0 2px var(--c); }
.guide-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--c); }
.guide-card.azul { --c: var(--azul); } .guide-card.verde { --c: var(--verde); } .guide-card.violeta { --c: var(--violeta); } .guide-card.naranja { --c: var(--naranja); }
.guide-tag { color: var(--c); filter: brightness(1.25); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; }
.guide-card h2 { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 6px 0 12px; }
.guide-card ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: #D6DCE2; }
.guide-card a { color: var(--amarillo); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
