/* Páginas SEO de subany (public/<idioma>/): mismos tokens, logo y fuente que la web, a partir de legal.css.
   Sin JavaScript: siempre el tema claro. */
@font-face {
  font-family: 'Inter Variable';
  font-weight: 100 900;
  font-display: swap;
  src: url('/fuentes/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Variable';
  font-weight: 100 900;
  font-display: swap;
  src: url('/fuentes/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tema claro «luz de vela». */
:root {
  --fondo: #C9AE8C;
  --superficie: #D6BFA0;
  --borde: #B69A75;
  --texto: #1C1915;
  --texto-suave: #3F382F;
  --boton-fondo: #1C1915;
  --boton-texto: #D6BFA0;
  --degradado: linear-gradient(90deg, #FF8A00, #FF2D78);
  --foco: #8E0F42;
  --tinta: #1C1915; /* «subtitle» del logo, en tinta negra en los dos temas */
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--fondo);
  color: var(--texto);
  font-family: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.65;
}

a { color: var(--texto); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--foco); outline-offset: 2px; border-radius: 4px;
}

.seo { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 56px; }

.seo-cabecera {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
  padding-bottom: 20px; border-bottom: 1px solid var(--borde);
}
.marca {
  display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px;
  color: var(--texto); text-decoration: none; font-size: 19px; letter-spacing: -0.03em; line-height: 1;
}
.marca img { width: 30px; height: 30px; }
.marca b { font-weight: 750; color: var(--tinta); background: var(--degradado) no-repeat 0 85% / 100% 30%; padding: 0 2px; }
.marca span span { font-weight: 400; color: var(--texto-suave); }

.idiomas ul { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0; padding: 0; list-style: none; }
.idiomas a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 8px; border-radius: 8px;
  color: var(--texto-suave); font-size: 0.875rem; text-decoration: none;
}
.idiomas a:hover { color: var(--texto); background: var(--superficie); }
.idiomas a[aria-current="page"] { color: var(--texto); font-weight: 700; }

h1 {
  font-size: clamp(1.875rem, 6vw, 2.5rem); font-weight: 750; letter-spacing: -0.035em; line-height: 1.1;
  margin: 36px 0 12px; text-wrap: balance;
}
.intro { font-size: 1.0625rem; color: var(--texto-suave); margin: 0 0 24px; }
h2 { font-size: 1.1875rem; letter-spacing: -0.02em; margin: 36px 0 8px; }
p, li { color: var(--texto-suave); font-size: 0.9875rem; }

.caja {
  margin: 8px 0 12px; padding: 18px; border: 1px solid var(--borde); border-radius: 14px; background: var(--superficie);
}
.caja label { display: block; font-weight: 700; margin-bottom: 10px; }
.caja-fila { display: flex; gap: 8px; }
.caja input[type="text"] {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px; font: inherit; font-size: 1rem;
  background: var(--fondo); color: var(--texto); border: 1px solid var(--borde); border-radius: 10px;
}
.caja input::placeholder { color: var(--texto-suave); opacity: 0.8; }
.caja button {
  min-height: 48px; padding: 0 20px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--boton-fondo); color: var(--boton-texto); font: inherit; font-weight: 700; white-space: nowrap;
}
.caja button:hover { filter: brightness(1.15); }
.caja-nota { margin: 10px 0 0; font-size: 0.8125rem; }

.faq details { border-bottom: 1px solid var(--borde); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 0;
  cursor: pointer; list-style: none; font-weight: 600; color: var(--texto);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.25rem; color: var(--texto-suave); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 14px; }

.otras ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.otras a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--borde); background: var(--superficie); text-decoration: none; font-size: 0.875rem;
}
.otras a:hover { border-color: var(--texto-suave); }

.seo-pie {
  margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--borde);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--texto-suave); font-size: 0.8125rem;
}
.seo-pie a { color: var(--texto-suave); }

.accion { margin: 0 0 20px; }
.boton {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 10px;
  background: var(--boton-fondo); color: var(--boton-texto); font-weight: 700; text-decoration: none;
}
.boton:hover { filter: brightness(1.15); }
.tabla-niveles { margin: 12px 0 8px; }
.tabla-niveles table { width: 100%; border-collapse: separate; border-spacing: 0 12px; }
.tabla-niveles thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tabla-niveles tr { display: block; padding: 14px 18px; border: 1px solid var(--borde); border-radius: 14px; background: var(--superficie); }
.tabla-niveles tbody { display: block; }
.tabla-niveles th[scope="row"] { display: block; margin: 0 0 6px; font-size: 1.125rem; font-weight: 750; text-align: start; color: var(--texto); }
.tabla-niveles td { display: grid; grid-template-columns: minmax(7.5em, 11em) 1fr; gap: 4px 14px; padding: 6px 0; border-top: 1px solid var(--borde); font-size: 0.9375rem; color: var(--texto-suave); }
.tabla-niveles td::before { content: attr(data-etiqueta); font-weight: 650; color: var(--texto); }

@media (max-width: 560px) {
  .tabla-niveles td { grid-template-columns: 1fr; }
  .boton { width: 100%; }
  .caja-fila { flex-direction: column; }
  .caja input[type="text"] { flex: none; width: 100%; }
  .caja button { width: 100%; }
}

/* Japonés, coreano y árabe: fuentes del sistema (sin descargas); el árabe se muestra de derecha a izquierda (dir="rtl"). */
html:lang(ja) body { font-family: 'Inter Variable', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', Meiryo, 'Noto Sans JP', 'Noto Sans CJK JP', system-ui, sans-serif; line-height: 1.8; }
html:lang(ko) body { font-family: 'Inter Variable', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', 'Noto Sans CJK KR', 'Nanum Gothic', system-ui, sans-serif; line-height: 1.75; }
html:lang(ar) body { font-family: 'Inter Variable', 'Segoe UI', Tahoma, 'Geeza Pro', 'SF Arabic', 'Noto Sans Arabic', 'Noto Naskh Arabic', Arial, system-ui, sans-serif; line-height: 1.85; }
html:is(:lang(ja), :lang(ko), :lang(ar)) :is(h1, h2) { letter-spacing: 0; line-height: 1.35; }
html:lang(ja) h1, html:lang(ko) h1 { word-break: keep-all; overflow-wrap: anywhere; }
.marca { direction: ltr; unicode-bidi: isolate; }
.caja input[type="text"] { unicode-bidi: plaintext; }
/* En la lista de idiomas, cada nombre en su propia dirección. */
.idiomas a { unicode-bidi: isolate; }

/* FAQ: índice, preguntas con ancla propia y pasos. */
[id] { scroll-margin-top: 16px; }
.indice { margin: 8px 0 12px; padding: 14px 18px; border: 1px solid var(--borde); border-radius: 14px; background: var(--superficie); }
.indice h2 { margin: 0 0 6px; font-size: 1rem; }
.indice ol { margin: 0; padding-inline-start: 1.4em; columns: 2 14em; column-gap: 24px; }
.indice li { margin: 2px 0; }
h3 { font-size: 1.0625rem; letter-spacing: -0.01em; margin: 24px 0 6px; color: var(--texto); }
.pregunta p { margin: 0 0 10px; }
.pregunta:target h3 { background: var(--degradado) no-repeat 0 92% / 100% 22%; }
.pasos { margin: 0; padding-inline-start: 1.4em; }
.pasos li { margin: 0 0 6px; }
.pasos b { color: var(--texto); }
.mas-faq { margin: 14px 0 0; font-weight: 600; }
.caja-titulo { margin: 0 0 12px; font-weight: 700; color: var(--texto); }
.caja .boton { margin: 0; }

/* Tabla de plataformas: tabla normal en pantallas anchas; fichas en las estrechas (como la de niveles). */
@media (min-width: 561px) {
  .tabla-plataformas table { border-collapse: collapse; border-spacing: 0; }
  .tabla-plataformas thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .tabla-plataformas tbody { display: table-row-group; }
  .tabla-plataformas tr { display: table-row; padding: 0; border: 0; border-radius: 0; background: none; }
  .tabla-plataformas th, .tabla-plataformas td { padding: 8px 10px; border-bottom: 1px solid var(--borde); text-align: start; font-size: 0.9375rem; }
  .tabla-plataformas thead th { font-weight: 650; color: var(--texto); }
  .tabla-plataformas th[scope="row"] { display: table-cell; margin: 0; font-size: 0.9375rem; font-weight: 650; }
  .tabla-plataformas td { display: table-cell; border-top: 0; }
  .tabla-plataformas td::before { content: none; }
}
.seccion[id] > h2 { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--borde); }
/* En pantallas estrechas, la ficha de cada plataforma va compacta: directo, VOD y clips en una sola línea. */
@media (max-width: 560px) {
  .tabla-plataformas tr { padding: 12px 16px; }
  .tabla-plataformas th[scope="row"] { margin-bottom: 4px; }
  .tabla-plataformas td { display: inline-flex; gap: 6px; padding: 2px 14px 2px 0; border-top: 0; font-size: 0.875rem; }
  .tabla-plataformas td::before { font-weight: 600; }
  .tabla-plataformas td:last-child { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--borde); }
  .tabla-plataformas td:last-child::before { content: none; }
}
