/* Capa visual común a todas las páginas, con la identidad de la portada («pasillo entre mundos»):
   fondo oscuro, letra Bricolage, el naranja de Leboxi para acentos y el nombre del estudio en rojo LCN.
   En las fichas y sus políticas, el fondo y el acento son los del producto: los mismos de su mundo en la portada.
   Todas las páginas cierran con la franja naranja del estudio, igual que la portada.
   Se carga después de styles.css; la portada suma pasillo.css encima. */
:root {
  --bg: #0d1117;
  --text: #f3efe6;
  --muted: #b8bfcb;
  --orange: #ff8900;
  --red: #e63b1f;
  --line: rgba(243, 239, 230, .16);
  --accent: #ff8900;
  --display: 'Bricolage Grotesque', 'Figtree', sans-serif;
  --ink: #1a0f00;            /* texto sobre el naranja */
  --ink-hover: #7a1d0c;
  color-scheme: dark;
}
body {
  --page: var(--product-bg, var(--bg));
  --accent: var(--product-accent, var(--orange));
  --surface: color-mix(in srgb, var(--page) 86%, #fff);
  --surface-solid: color-mix(in srgb, var(--page) 80%, #fff);
  background: var(--page); color: var(--text); font-size: 16px; line-height: 1.55;
}
html { background: var(--bg); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; color: var(--text); text-wrap: balance; }
p, li { text-wrap: pretty; }
p { margin-top: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1320px; padding-inline: clamp(20px, 5vw, 64px); }
.eyebrow { margin-bottom: 12px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.btn { display: inline-flex; align-items: center; min-height: 48px; border-radius: 999px; padding: 12px 22px; font: 800 15px/1 'Figtree', sans-serif; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn.primary:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn:not(.primary) { border-color: var(--line); color: var(--text); }
.btn:not(.primary):hover { border-color: var(--accent); color: var(--accent); }
.text-link, .estudio-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-size: 15px; font-weight: 800; text-underline-offset: 5px; }
.actions { align-items: center; gap: 16px; margin-top: 24px; }

/* Cabecera y pie */
header { position: relative; z-index: 5; background: var(--page); border-color: var(--line); }
header .wrap { min-height: 72px; gap: 20px; }
.brand { gap: 10px; }
.brand img { width: 40px; }
.brand-name { color: var(--red); font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
header nav { gap: clamp(14px, 2vw, 28px); margin-left: auto; font-size: 14px; font-weight: 600; }
nav a { color: var(--text); white-space: nowrap; }
nav a:hover, nav a[aria-current=page] { color: var(--accent); }
.lang { min-height: 36px; border: 2px solid rgba(243, 239, 230, .35); background: transparent; color: var(--text); padding: 0 12px; font-size: 13px; font-weight: 700; }
.lang:hover { border-color: var(--accent); color: var(--accent); }
.mobile-menu { display: none; }
footer { background: var(--page); border-color: var(--line); color: var(--muted); font-size: 13px; }
footer .wrap { align-items: center; }
footer a, .footer-red { color: var(--muted); }
footer a:hover, .footer-red:hover { color: var(--accent); }

/* Cierre de cada página: la franja naranja del estudio (la misma de la portada) */
.editorial-contact { background: var(--orange); color: var(--ink); padding-block: clamp(40px, 6vw, 64px); }
.editorial-contact .eyebrow { color: var(--ink); }
.editorial-contact h2 { max-width: 760px; margin: 0 0 12px; color: var(--ink); font-size: clamp(30px, 3.6vw, 48px); line-height: 1; }
.editorial-contact p:not(.eyebrow) { max-width: 680px; color: #2b1700; font-size: 17px; }
.editorial-contact .btn.primary { margin-top: 6px; background: var(--ink); border-color: var(--ink); color: #fff3e0; }
.editorial-contact .btn.primary:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.contact-email { margin: 14px 0 0; color: #2b1700; font-size: 16px; }
.contact-email a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 800; text-underline-offset: 5px; overflow-wrap: anywhere; }
.contact-email a:hover { color: var(--ink-hover); }
.editorial-social { display: flex; gap: 8px 24px; flex-wrap: wrap; margin-top: 8px; }
.editorial-social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-size: 14px; }
.editorial-contact .editorial-social a { color: var(--ink); }
.editorial-contact .editorial-social a:hover { color: var(--ink-hover); }

/* Equipo y colaboración. Las tres personas están dibujadas con tinta oscura: van sobre una tarjeta clara. */
.estudio { background: transparent; border-color: var(--line); color: var(--text); }
.estudio .eyebrow { color: var(--accent); }
.estudio h1, .estudio h2 { margin: 0 0 16px; font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.estudio h1 { font-size: clamp(44px, 6vw, 84px); }
.estudio h2 { font-size: clamp(32px, 4vw, 52px); }
.estudio-text p:not(.eyebrow) { max-width: 560px; color: var(--muted); font-size: 17px; }
.estudio-text .estudio-collab { margin-top: 16px !important; }
.estudio-link { margin-top: 8px; }
.team-scene { padding: 20px 16px 16px; border-radius: 28px; background: #f3efe6; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.team-scene .team-role { color: #586361; }
.team-role { display: block; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }

/* Catálogo */
.editorial-intro { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 24px; }
.editorial-intro h1 { max-width: 980px; margin: 0 0 16px; font-size: clamp(44px, 6vw, 84px); line-height: 1; }
.editorial-intro > p:not(.eyebrow) { max-width: 690px; color: var(--muted); font-size: 18px; }
.editorial-intro > .btn { margin-top: 12px; }
.catalog-group { padding-block: 20px 40px; scroll-margin-top: 85px; }
.catalog-group h2 { margin: 0 0 20px; font-size: clamp(28px, 3.2vw, 40px); }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.catalog-tile { display: block; min-width: 0; color: var(--text); text-decoration: none; }
.catalog-tile img { width: 100%; height: auto; aspect-ratio: 512 / 250; object-fit: cover; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: transform .2s ease; }
.catalog-tile:hover img { transform: translateY(-3px); }
.catalog-tile h3 { margin: 12px 0 2px; font: 800 17px 'Figtree', sans-serif; letter-spacing: -.01em; }
.catalog-tile h3 span { color: var(--accent); }
.catalog-tile:hover h3 { color: var(--accent); }
.catalog-tile p { margin: 0; color: var(--muted); font-size: 14px; }
#juegos .catalog-tile:nth-child(-n+2) { grid-column: span 2; }
#apps .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 780px; }

/* Colaborar */
.collab-offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-bottom: 48px; }
.collab-offers article { border-radius: 16px; padding: 20px; background: var(--surface); }
.collab-offers article span { color: var(--accent); font-size: 12px; font-weight: 800; }
.collab-offers h3 { margin: 10px 0 6px; font: 800 18px 'Figtree', sans-serif; letter-spacing: -.01em; }
.collab-offers p { margin: 0; color: var(--muted); font-size: 15px; }
.collab-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 72px); border-top: 1px solid var(--line); padding-block: 40px 48px; }
.collab-detail h2 { margin: 0 0 12px; font-size: clamp(28px, 3.2vw, 40px); }
.collab-detail h2 a { color: var(--text); text-underline-offset: 6px; }
.collab-detail h2 a:hover { color: var(--accent); }
.collab-detail p:not(.eyebrow) { max-width: 540px; color: var(--muted); }

/* Fichas de producto: cada una es su mundo (fondo y acento del producto) */
.breadcrumb { color: var(--muted); font-size: 13px; }
.breadcrumb a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.ficha-top { padding-top: 8px; }
.familia-chip { min-height: 44px; border-color: var(--line); color: var(--muted); font-size: 13px; }
.familia-chip:hover { border-color: var(--accent); color: var(--text); }
.status { border-color: var(--line); color: var(--muted); }
.status.live { border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--accent); }
.ficha-kind { color: var(--accent); font-size: 12px; }
.product-hero { gap: clamp(24px, 5vw, 64px); padding-block: 32px 48px; }
.product-hero h1 { margin: 10px 0 14px; font-size: clamp(48px, 6.6vw, 96px); font-weight: 800; line-height: .95; letter-spacing: -.045em; }
.product-hero .lead { color: var(--text); font-family: var(--display); font-size: clamp(21px, 2.2vw, 28px); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.product-hero .description { margin-top: 12px; color: var(--muted); font-size: 17px; }
.product-visual { min-height: 0; border: 0; border-radius: 0; background: transparent; }
.product-visual img.cover { width: 100%; height: auto; aspect-ratio: 512 / 250; object-fit: cover; border-radius: 16px; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .65), 0 0 140px -50px color-mix(in srgb, var(--accent) 45%, transparent); }
.product-visual img:not(.cover) { box-shadow: none; }
.facts { gap: 8px; margin-top: 20px; }
.facts span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--muted); font-size: 13px; }
.feature-grid { gap: 24px; border-color: var(--line); padding-block: 36px 48px; }
.feature-grid article { border-radius: 16px; padding: 20px; background: var(--surface); }
.feature-grid h2 { margin-bottom: 8px; font: 800 18px 'Figtree', sans-serif; letter-spacing: -.01em; }
.feature-grid p, .faq details p { color: var(--muted); }
.gallery-section { border-color: var(--line); }
.gallery-section h2, .faq h2, .product-support h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; }
.faq { border-color: var(--line); }
.faq details { padding-block: 4px; }
.faq summary { display: flex; align-items: center; min-height: 52px; color: var(--text); font-size: 18px; font-weight: 700; }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: 4px 0 16px; }
.product-support { border: 0; border-radius: 28px; background: var(--surface); }
.product-support a { color: var(--accent); }
.hermanos { border-color: var(--line); }
.hermano { border-color: var(--line); border-radius: 16px; background: var(--surface); color: var(--text); }
.hermano:hover { border-color: var(--accent); }
.hermano small { color: var(--muted); }

/* Documentos: privacidad y borrar cuenta */
.legal h1 { font-size: clamp(38px, 4.6vw, 60px); font-weight: 800; line-height: 1.02; }
.legal h2 { border-color: var(--line); font-size: clamp(24px, 2.6vw, 32px); }
.legal h4, .legal strong { color: var(--text); }
.legal p, .legal li, .legal h3, .legal h4 { max-width: 72ch; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--accent); overflow-wrap: anywhere; }
.privacy-list { list-style: none; padding-left: 0 !important; }
.privacy-list li { border-top: 1px solid var(--line); padding: 0; margin: 0; }
.privacy-list li:last-child { border-bottom: 1px solid var(--line); }
.privacy-list a { display: flex; align-items: center; min-height: 52px; color: var(--text); text-decoration: none; }
.privacy-list a:hover { color: var(--accent); }
.review-note { border-color: #d7b471; background: #2b2412; color: #f0d79c !important; }

/* Enlaces para la bio */
.enlaces { max-width: 760px; padding-block: 40px 56px; }
.enlaces-head { align-items: flex-start; text-align: left; }
.enlaces-head .leboxi { width: 86px; }
.enlaces-head h1 { color: var(--text); font-family: var(--display); font-size: clamp(40px, 5.6vw, 64px); font-weight: 800; line-height: 1; }
.enlaces-head p { color: var(--muted); }
.enlaces-head .redes { justify-content: flex-start; }
.red { min-height: 48px; border-color: var(--line); color: var(--text); }
.red:hover { border-color: var(--accent); color: var(--accent); }
.enlaces-lista { gap: 0; }
.enlace { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 14px 0; background: transparent; color: var(--text); }
.enlace:last-child { border-bottom: 1px solid var(--line); }
.enlace:hover { transform: none; border-color: var(--line); color: var(--accent); }
.enlace::after { color: var(--accent); }
.enlace strong { font: 800 17px 'Figtree', sans-serif; }
.enlace small { color: var(--muted); }
.enlaces-mail a { color: var(--accent); }

@media (max-width: 900px) {
  header .desktop-nav { display: none; }
  header .wrap { flex-wrap: nowrap; min-height: 64px; padding-block: 10px; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary { display: grid; place-items: center; list-style: none; width: 44px; height: 44px; border: 2px solid rgba(243, 239, 230, .35); border-radius: 12px; color: var(--text); cursor: pointer; font-size: 20px; line-height: 1; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu[open] summary { border-color: var(--accent); color: var(--accent); }
  .mobile-menu nav { position: absolute; top: calc(100% + 8px); right: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; width: min(260px, calc(100vw - 40px)); padding: 8px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-solid); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
  .mobile-menu nav a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); }
  .mobile-menu nav a:last-child { border-bottom: 0; }
  .lang { order: 0; margin-left: auto; min-height: 44px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #juegos .catalog-tile:nth-child(-n+2) { grid-column: span 1; }
  footer .wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-links { flex-wrap: wrap; gap: 0 24px; }
  .footer-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
}
@media (max-width: 620px) {
  .brand-name { font-size: 17px; white-space: nowrap; }
  .brand img { width: 32px; }
  .collab-offers, .collab-detail { grid-template-columns: 1fr; gap: 16px; }
  .collab-offers { padding-bottom: 36px; }
  .collab-detail { padding-block: 32px 40px; }
  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-hero { grid-template-columns: 1fr; gap: 24px; }
  .product-visual { order: -1; }
  .product-visual img.cover { width: 100%; }
  .catalog-grid, #apps .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-grid { gap: 20px 16px; }
  .catalog-tile h3 { font-size: 15px; }
  .catalog-tile p { font-size: 13px; }
  .editorial-intro { padding-top: 32px; }
  .team-scene { padding: 12px 8px 12px; border-radius: 20px; }
}
@media (max-width: 360px) {
  header .wrap { gap: 8px; }
  .brand-name { font-size: 15px; }
  .brand img { width: 28px; }
  .lang { padding-inline: 8px; font-size: 12px; }
}

/* Visor de capturas (site.js) */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: 0; background: rgba(8, 10, 14, .95); color: var(--text); }
.lightbox::backdrop { background: rgba(8, 10, 14, .9); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%; margin: 0; padding: 56px 72px 24px; }
.lightbox img { display: block; max-width: 100%; max-height: calc(100dvh - 110px); width: auto; height: auto; border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.lightbox figcaption { font: 700 13px 'Figtree', sans-serif; letter-spacing: .08em; color: var(--muted); }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 999px; background: rgba(243, 239, 230, .12); color: var(--text); cursor: pointer; font: 400 30px/1 'Figtree', sans-serif; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(243, 239, 230, .26); }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox button[hidden] { display: none; }
@media (max-width: 620px) {
  .lightbox figure { padding: 60px 12px 76px; }
  .lightbox img { max-height: calc(100dvh - 150px); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; transform: none; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
}
