/* Páginas SEO de subtitle.me (public/<idioma>/): mismos tokens, logo y fuente que la web, a partir de legal.css.
   Sin JavaScript: el tema sigue a prefers-color-scheme. */
@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 dark;
}
/* Tema oscuro gris cálido. */
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #3A3633;
    --superficie: #45403C;
    --borde: #5A544F;
    --texto: #EDE3D3;
    --texto-suave: #C4B9A8;
    --boton-fondo: #1C1915;
    --boton-texto: #EDE3D3;
    --foco: #FF5A94;
  }
}

* { 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); }

@media (max-width: 560px) {
  .caja-fila { flex-direction: column; }
  .caja input[type="text"] { flex: none; width: 100%; }
  .caja button { width: 100%; }
}
