/* Zas: los colores, la letra y las medidas de la aplicación (config/scripts/zas/base.lua) */
:root {
  --fondo: #0E0F11;          /* lo de detrás del vídeo */
  --panel: #141518;          /* barras y menús */
  --tinta: #F2F2F0;
  --tinta2: #9A9BA1;
  --acento: #FFC83D;
  --acento-texto: #FFC83D;   /* el ámbar cuando es texto (en claro, más oscuro para leerse) */
  --sobre-acento: #141518;
  --via: rgba(255, 255, 255, .20);
  --sobre: rgba(255, 255, 255, .06);
  --borde: rgba(255, 255, 255, .09);
  --sombra: 0 24px 80px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .4);
  --ancho: 1140px;
  --radio: 10px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --fondo: #ECECE8; --panel: #F5F5F2; --tinta: #17181A; --tinta2: #6C6D72; --acento: #F0A800; --acento-texto: #8A5D00;
    --sobre-acento: #17181A; --via: rgba(0, 0, 0, .16); --sobre: rgba(0, 0, 0, .05); --borde: rgba(0, 0, 0, .09);
    --sombra: 0 24px 70px rgba(0, 0, 0, .18), 0 2px 8px rgba(0, 0, 0, .08);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--fondo); color: var(--tinta);
  font-family: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-weight: 600; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; border-radius: 6px; }
.ancho { max-width: var(--ancho); margin: 0 auto; padding: 0 24px; }
.ancho-ancho { max-width: calc(var(--ancho) + 48px); margin: 0 auto; padding: 0 24px; }
.saltar { position: absolute; left: -9999px; top: 8px; background: var(--acento); color: var(--sobre-acento); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.saltar:focus { left: 8px; }

/* cabecera: como la franja de arriba de la ventana, fina y quieta */
.cabecera { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--fondo) 82%, transparent);
            backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
            border-bottom: 1px solid transparent; transition: border-color .16s; }
.cabecera.con-borde { border-bottom-color: var(--borde); }
.fila { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.marca { display: flex; align-items: center; gap: 10px; font-size: 17px; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 6px; }
.enlace { color: var(--tinta2); font-size: 14px; padding: 8px 10px; border-radius: 8px; transition: color .16s, background-color .16s; }
.enlace:hover { color: var(--tinta); background: var(--sobre); }
.idiomas { position: relative; margin: 0 6px 0 4px; }
.idiomas summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--tinta2);
                   border: 1px solid var(--borde); border-radius: 8px; padding: 5px 9px; cursor: pointer; transition: color .16s, border-color .16s; }
.idiomas summary::-webkit-details-marker { display: none; }
.idiomas summary:hover, .idiomas[open] summary { color: var(--tinta); border-color: var(--tinta2); }
.idiomas summary svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.idiomas ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; margin: 0; padding: 6px; list-style: none;
              background: var(--panel); border: 1px solid var(--borde); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.35);
              display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 2px; width: max-content; max-width: calc(100vw - 32px);
              max-height: min(70vh, 520px); overflow-y: auto; }
.idiomas a { display: block; padding: 6px 10px; border-radius: 6px; font-size: 14px; color: var(--tinta2); white-space: nowrap; }
.idiomas a:hover { color: var(--tinta); background: var(--sobre); }
.idiomas a[aria-current] { color: var(--tinta); font-weight: 600; }
@media (max-width: 640px) { .idiomas ul { grid-template-columns: repeat(2, minmax(110px, 1fr)); position: fixed; right: 16px; top: 60px; } }

/* botones: el ámbar, solo para descargar */
.boton { display: inline-flex; align-items: center; gap: 10px; background: var(--acento); color: var(--sobre-acento);
         font-size: 16px; padding: 13px 22px; border-radius: var(--radio); transition: filter .16s, transform .16s; }
.boton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.boton:hover { filter: brightness(1.07); }
.boton:active { transform: translateY(1px); }
.boton-peq { font-size: 14px; padding: 7px 14px; border-radius: 8px; }
.enlace-flecha { color: var(--tinta2); font-size: 15px; padding: 10px 4px; transition: color .16s; }
.enlace-flecha::after { content: " →"; }
.enlace-flecha:hover { color: var(--tinta); }

/* textos */
.antetitulo { color: var(--acento-texto); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; }
h1 { font-size: clamp(44px, 7.4vw, 88px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; }
.entradilla { color: var(--tinta2); font-size: clamp(17px, 2vw, 20px); font-weight: 500; max-width: 600px; margin: 22px auto 0; }
.nota { color: var(--tinta2); font-size: 13px; font-weight: 500; margin: 16px 0 0; }
kbd { font: inherit; font-size: .8em; display: inline-block; min-width: 1.9em; text-align: center; background: var(--panel);
      border: 1px solid var(--borde); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; color: var(--tinta); }

/* portada */
.portada { text-align: center; padding: 88px 0 0; }
.acciones { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 22px; margin-top: 36px; }

/* el producto: la ventana de verdad, grande */
.escaparate { margin-top: 64px; margin-bottom: 0; position: relative; }
.escaparate::before { /* el reflejo de la imagen sobre el fondo, apenas */
  content: ""; position: absolute; inset: 8% 10% -4%; background: url(img/panel-960.webp) center / cover;
  filter: blur(60px) saturate(120%); opacity: .22; z-index: -1; pointer-events: none; }
.escaparate img { border-radius: 12px; border: 1px solid var(--borde); box-shadow: var(--sombra); width: 100%; }

/* rendimiento */
section { padding: 120px 0 0; }
.rendimiento h2, .pasos h2, .funciones h2 { max-width: 760px; }
.cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 56px 0 0; border-top: 1px solid var(--borde); }
.cifra { padding: 32px 28px 8px 0; }
.cifra + .cifra { padding-left: 28px; border-left: 1px solid var(--borde); }
.cifra dt { color: var(--tinta2); font-size: 15px; }
.cifra dd { margin: 0; }
.numero { font-size: clamp(56px, 7vw, 92px); line-height: 1.05; letter-spacing: -0.045em; color: var(--acento-texto); font-variant-numeric: tabular-nums; font-weight: 700; }
.unidad { font-size: clamp(22px, 2.6vw, 30px); color: var(--acento-texto); margin-left: 6px; letter-spacing: -0.01em; }
.detalle { color: var(--tinta2); font-size: 14px; font-weight: 500; max-width: 300px; margin-top: 8px !important; }
.metodo { margin-top: 36px; border-top: 1px solid var(--borde); padding-top: 18px; }
.metodo summary { cursor: pointer; color: var(--tinta2); font-size: 14px; list-style: none; width: fit-content; }
.metodo summary::-webkit-details-marker { display: none; }
.metodo summary::before { content: "+"; display: inline-block; width: 18px; color: var(--acento-texto); }
.metodo[open] summary::before { content: "−"; }
.metodo summary:hover { color: var(--tinta); }
.metodo-texto { color: var(--tinta2); font-size: 14px; font-weight: 500; max-width: 820px; margin-top: 12px; }
.metodo-texto table { border-collapse: collapse; margin: 12px 0; font-variant-numeric: tabular-nums; }
.metodo-texto td, .metodo-texto th { text-align: left; padding: 4px 18px 4px 0; border-bottom: 1px solid var(--borde); font-weight: 500; }
.metodo-texto th { color: var(--tinta); font-weight: 600; }

/* así de rápido */
.secuencia { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: paso; }
.secuencia figure { margin: 0 0 20px; border-radius: 10px; overflow: hidden; border: 1px solid var(--borde); aspect-ratio: 16 / 10; background: var(--panel); }
.secuencia figure img { width: 100%; height: 100%; object-fit: cover; }
.secuencia h3 { font-size: 19px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.secuencia h3 span { margin-left: 6px; }
.secuencia p { color: var(--tinta2); font-weight: 500; font-size: 15px; margin: 8px 0 0; }
/* un chat cualquiera con el clip pegado: no es Zas, por eso es solo un esbozo */
.pegar { display: grid; place-items: center; }
.chat { width: 76%; display: flex; justify-content: flex-end; }
.burbuja { background: var(--sobre); border: 1px solid var(--borde); border-radius: 14px 14px 4px 14px; padding: 10px; width: 82%; }
.adjunto { display: flex; align-items: center; gap: 10px; background: var(--fondo); border-radius: 10px; padding: 12px; font-size: 12px; color: var(--tinta2); overflow: hidden; }
.adjunto span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adjunto svg { flex: none; width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--acento); fill: var(--sobre-acento); }

/* funciones */
.bloque { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; margin-top: 88px; }
.funciones .ancho + .bloque { margin-top: 64px; }
.bloque.invertido .bloque-texto { order: 2; }
.bloque-texto h3 { font-size: clamp(26px, 3vw, 34px); }
.bloque-texto p { color: var(--tinta2); font-weight: 500; font-size: 17px; margin: 14px 0 0; }
.bloque-texto .atajo { color: var(--tinta); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.bloque-imagen { margin: 0; }
.bloque-imagen img { border-radius: 10px; border: 1px solid var(--borde); box-shadow: var(--sombra); }
.atajos { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.atajos li { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.atajos li span { color: var(--tinta2); margin-left: 8px; font-weight: 500; }
/* grabar: una zona elegida de la pantalla (esbozo, no una captura) */
.bloque-grabar { aspect-ratio: 16 / 9; border-radius: 10px; border: 1px solid var(--borde); position: relative; overflow: hidden;
                 background: url(img/reproduce-960.webp) center / cover; box-shadow: var(--sombra); }
.bloque-grabar::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.zona { position: absolute; inset: 22% 14% 18% 40%; border: 1.5px dashed var(--acento); border-radius: 4px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .0); backdrop-filter: brightness(1.8); -webkit-backdrop-filter: brightness(1.8); }
.esquina { position: absolute; width: 14px; height: 14px; border: 3px solid var(--acento); }
.e1 { left: -3px; top: -3px; border-right: 0; border-bottom: 0; }
.e2 { right: -3px; top: -3px; border-left: 0; border-bottom: 0; }
.e3 { left: -3px; bottom: -3px; border-right: 0; border-top: 0; }
.e4 { right: -3px; bottom: -3px; border-left: 0; border-top: 0; }

/* final */
.final { text-align: center; padding: 140px 0 120px; }
.final img { margin: 0 auto 28px; }
.final h2 { margin-bottom: 36px; }

/* pie */
.pie { border-top: 1px solid var(--borde); padding: 28px 0 40px; color: var(--tinta2); font-size: 13px; font-weight: 500; }
.fila-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.marca-pie { display: flex; align-items: center; gap: 8px; color: var(--tinta); font-weight: 600; }
.nav-pie { display: flex; gap: 20px; }
.pie a { color: var(--tinta2); }
.pie a:hover { color: var(--tinta); }
.creditos { flex-basis: 100%; margin: 4px 0 0; }

/* aparecer al llegar, apenas (y nada si se pide menos movimiento) */
.aparece { opacity: 0; transform: translateY(14px); transition: opacity .5s ease-out, transform .5s ease-out; }
.aparece.visto { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .aparece { opacity: 1; transform: none; transition: none; } }

/* pantallas medianas y pequeñas */
@media (max-width: 900px) {
  section { padding-top: 88px; }
  .portada { padding-top: 56px; }
  .escaparate { margin-top: 44px; }
  .cifras { grid-template-columns: 1fr; }
  .cifra, .cifra + .cifra { padding: 26px 0 18px; border-left: 0; }
  .cifra + .cifra { border-top: 1px solid var(--borde); }
  .secuencia { grid-template-columns: 1fr; gap: 40px; }
  .bloque, .bloque.invertido { grid-template-columns: 1fr; gap: 26px; margin-top: 64px; }
  .bloque.invertido .bloque-texto { order: 0; }
  .solo-ancho { display: none; }
}
@media (max-width: 480px) {
  .ancho, .ancho-ancho { padding: 0 16px; }
  .escaparate img { border-radius: 8px; }
  .acciones { flex-direction: column; gap: 6px; }
  .boton { width: 100%; justify-content: center; }
  .boton-peq { width: auto; }
  .final { padding: 104px 0 88px; }
}

/* el h1 dice qué es (para buscarlo) y el lema */
h1 .antetitulo { display: block; font-size: 13px; line-height: 1.5; letter-spacing: .08em; font-weight: 600; margin: 0 0 16px; }
h1 .lema-grande { display: block; }

/* preguntas: filas limpias que se abren con suavidad */
.lista-preguntas { margin-top: 44px; display: grid; gap: 10px; }
.pregunta { background: var(--panel); border: 1px solid var(--borde); border-radius: 12px; transition: border-color .16s, background-color .16s; }
.pregunta:hover { border-color: color-mix(in srgb, var(--tinta2) 40%, transparent); }
.pregunta[open] { border-color: color-mix(in srgb, var(--acento) 45%, transparent); }
.pregunta summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-radius: 12px; }
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::marker { content: ""; }
.pregunta summary h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.pregunta .flecha { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--tinta2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .22s ease, stroke .16s; }
.pregunta[open] .flecha { transform: rotate(180deg); stroke: var(--acento-texto); }
.respuesta { overflow: hidden; }
.respuesta p { margin: 0; padding: 0 22px 22px; color: var(--tinta2); font-weight: 500; font-size: 16px; max-width: 920px; }
@media (prefers-reduced-motion: reduce) { .pregunta, .pregunta .flecha { transition: none; } }

/* comparativa */
.sub-compara { color: var(--tinta2); font-weight: 500; font-size: 17px; max-width: 720px; margin: 18px 0 0; }
.tabla-compara { margin-top: 40px; overflow-x: auto; border: 1px solid var(--borde); border-radius: 12px; background: var(--panel); }
.tabla-compara table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
.tabla-compara th, .tabla-compara td { padding: 15px 18px; text-align: center; border-bottom: 1px solid var(--borde); }
.tabla-compara tr:last-child td, .tabla-compara tr:last-child th { border-bottom: 0; }
.tabla-compara thead th { color: var(--tinta2); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.tabla-compara thead th.zas { color: var(--acento-texto); }
.tabla-compara tbody th { text-align: left; font-weight: 600; }
.tabla-compara td { color: var(--tinta2); font-weight: 500; }
.tabla-compara td.zas { background: color-mix(in srgb, var(--acento) 7%, transparent); color: var(--tinta); }
.tabla-compara .si { color: var(--acento-texto); font-weight: 700; }
.tabla-compara .no { color: var(--tinta2); opacity: .6; }
.nota-compara { color: var(--tinta2); font-size: 13px; font-weight: 500; margin: 14px 0 0; }
/* en pantallas estrechas la tabla se desliza; la columna de nombres se queda quieta */
@media (max-width: 760px) {
  .tabla-compara tbody th, .tabla-compara thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--panel); min-width: 150px; max-width: 170px; box-shadow: 1px 0 0 var(--borde); }
  .tabla-compara th, .tabla-compara td { padding: 13px 12px; font-size: 14px; }
}

/* japonés, chino y coreano: cortar por frases, no por cualquier carácter */
:lang(ja), :lang(zh), :lang(ko) { word-break: auto-phrase; }

/* versiones: una tarjeta por versión, como las preguntas */
.versiones { padding: 72px 0 96px; }
.estrecho { max-width: 820px; }
.versiones h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 12px; }
.entradilla-versiones { color: var(--tinta2); font-size: 17px; font-weight: 500; margin: 0 0 40px; }
.lista-versiones { display: grid; gap: 14px; }
.version { background: var(--panel); border: 1px solid var(--borde); border-radius: 12px; padding: 20px 22px; scroll-margin-top: 76px; }
.version:first-child { border-color: color-mix(in srgb, var(--acento) 45%, transparent); }
.version header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.version h2 { font-size: 20px; letter-spacing: -0.01em; margin: 0; display: flex; align-items: center; gap: 10px; }
.version time { color: var(--tinta2); font-size: 13px; font-weight: 500; }
.ultima { background: var(--acento); color: var(--sobre-acento); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.notas { color: var(--tinta); font-size: 15px; font-weight: 500; margin: 10px 0 0; overflow-wrap: anywhere; }
.notas ul { margin: 0; padding-left: 20px; }
.notas li { margin: 4px 0; }
.notas li::marker { color: var(--tinta2); }
.notas p { margin: 6px 0; }
.notas code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--sobre); padding: 1px 5px; border-radius: 5px; }
.bajadas { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.bajada { font-size: 13px; color: var(--tinta); border: 1px solid var(--borde); border-radius: 8px; padding: 6px 11px; transition: border-color .16s, background-color .16s; }
.bajada:hover { border-color: var(--tinta2); background: var(--sobre); }
.bajada span { color: var(--tinta2); font-weight: 500; }
@media (max-width: 600px) { .versiones { padding: 40px 0 64px; } .version { padding: 16px; } }
