/* Estandartes — sitio del juego. Mismos colores que la interfaz del juego (UIKit). */
:root {
  --fondo: #0b0c10;
  --panel: #14161c;
  --panel-borde: rgba(217, 173, 92, 0.35);
  --texto: #f5f0e0;
  --texto-suave: #c9c2ae;
  --dorado: #e0b866;
  --dorado-fuerte: #d9ad5c;
  --vino: #801a24;
  --vino-claro: #a1222f;
  --sombra: 0 10px 30px rgba(0, 0, 0, 0.45);
  --radio: 14px;
  --ancho: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--dorado); text-underline-offset: 3px; }
a:hover { color: #f3d48f; }
:focus-visible { outline: 3px solid var(--dorado); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: Georgia, "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  line-height: 1.2;
  color: var(--texto);
  margin: 0 0 0.5em;
}
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: 0.02em; }
h3 { font-size: 1.2rem; color: var(--dorado); }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 16px; }

.saltar {
  position: absolute; left: -9999px; top: 0;
  background: var(--dorado); color: #111; padding: 8px 12px; z-index: 100;
}
.saltar:focus { left: 8px; top: 8px; }

/* Cabecera */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--panel-borde);
}
.cabecera .contenedor { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.marca { flex: none; display: flex; align-items: center; gap: 10px; color: var(--texto); text-decoration: none; font-family: Georgia, serif; font-size: 1.2rem; font-weight: bold; letter-spacing: 0.04em; }
.marca img { width: 34px; height: 34px; border-radius: 8px; }
.menu { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.95rem; }
.menu a { color: var(--texto-suave); text-decoration: none; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--dorado); }
.idioma { border: 1px solid var(--panel-borde); border-radius: 999px; padding: 2px 10px; }
/* En el celular, el menú pasa a una segunda fila para no encimarse con el nombre. */
@media (max-width: 720px) {
  .menu .opcional { display: none; }
  .cabecera .contenedor { flex-wrap: wrap; gap: 2px 12px; padding-top: 8px; padding-bottom: 8px; min-height: 0; }
  .menu { margin-left: 0; width: 100%; align-items: center; gap: 4px 20px; }
}

/* Portada */
.portada {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex; align-items: center;
  background: #120d0a url("../img/portada.jpg") center 35% / cover no-repeat;
  overflow: hidden;
}
.portada::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 12, 16, 0.15) 0%, rgba(11, 12, 16, 0.35) 45%, var(--fondo) 100%),
    radial-gradient(ellipse at 50% 40%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.45) 100%);
}
.portada .contenedor { position: relative; text-align: center; padding-top: 32px; padding-bottom: 48px; }
.portada .logo { width: min(340px, 70vw); margin: 0 auto 8px; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6)); }
.portada h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lema { font-size: clamp(1.15rem, 3.4vw, 1.6rem); font-family: Georgia, serif; margin: 0 auto 10px; max-width: 760px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.bajada { color: var(--texto); max-width: 680px; margin: 0 auto 24px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9); }

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  background: linear-gradient(180deg, var(--vino-claro), var(--vino));
  color: var(--dorado); font-weight: bold; font-size: 1.05rem; text-decoration: none;
  border: 1px solid var(--dorado-fuerte); border-radius: 10px;
  box-shadow: var(--sombra);
}
.boton:hover { color: #f7dc9c; filter: brightness(1.1); }
.boton svg { width: 22px; height: 22px; flex: none; }
.nota-boton { display: block; margin-top: 10px; font-size: 0.9rem; color: var(--texto-suave); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); }

.etiquetas { list-style: none; padding: 0; margin: 26px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.etiquetas li {
  background: rgba(20, 22, 28, 0.82); border: 1px solid var(--panel-borde);
  border-radius: 999px; padding: 6px 14px; font-size: 0.92rem;
}

/* Secciones */
.seccion { padding: 64px 0; }
.seccion-alt { background: linear-gradient(180deg, #0f1116, #0b0c10); border-top: 1px solid rgba(217, 173, 92, 0.12); border-bottom: 1px solid rgba(217, 173, 92, 0.12); }
.intro { color: var(--texto-suave); max-width: 720px; margin: 0 0 28px; }

.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.tarjeta {
  background: var(--panel); border: 1px solid var(--panel-borde); border-radius: var(--radio);
  padding: 22px; box-shadow: var(--sombra);
}
.tarjeta p { margin: 0; color: var(--texto-suave); }
.tarjeta .icono { font-size: 1.6rem; line-height: 1; margin-bottom: 10px; }

.galeria { display: grid; grid-template-columns: 1fr; gap: 18px; }
/* En pantallas anchas: dos capturas grandes arriba y tres más chicas abajo. */
@media (min-width: 760px) {
  .galeria { grid-template-columns: repeat(6, 1fr); }
  .galeria figure { grid-column: span 2; }
  .galeria figure:nth-child(-n+2) { grid-column: span 3; }
}
.galeria figure { margin: 0; background: var(--panel); border: 1px solid var(--panel-borde); border-radius: var(--radio); overflow: hidden; }
.galeria img { width: 100%; aspect-ratio: 20 / 9; object-fit: cover; }
.galeria figcaption { padding: 10px 14px 12px; font-size: 0.95rem; color: var(--texto-suave); }

.privacidad-corta { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0 0 22px; }
.privacidad-corta li { background: var(--panel); border-left: 3px solid var(--dorado); border-radius: 8px; padding: 14px 16px; }

details { background: var(--panel); border: 1px solid var(--panel-borde); border-radius: 10px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 14px 18px; font-weight: bold; }
details > div { padding: 0 18px 16px; color: var(--texto-suave); }

/* Páginas legales */
.legal { padding: 40px 0 64px; }
.legal .contenedor { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; padding-top: 0.6em; border-top: 1px solid rgba(217, 173, 92, 0.18); }
.legal h3 { font-size: 1.05rem; margin-top: 1.4em; }
.legal p, .legal li { color: #e6e0cf; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: 0.35em; }
.fecha { color: var(--texto-suave); font-size: 0.95rem; }
.resumen { background: var(--panel); border: 1px solid var(--panel-borde); border-left: 4px solid var(--dorado); border-radius: 10px; padding: 18px 22px; margin: 24px 0; }
.resumen h2 { border: 0; margin-top: 0; padding-top: 0; font-size: 1.15rem; color: var(--dorado); }
.resumen ul { margin: 0; }
.indice { background: #101217; border-radius: 10px; padding: 14px 22px; margin: 0 0 8px; }
.indice ol { margin: 6px 0 0; columns: 2 260px; column-gap: 32px; }
.indice li { break-inside: avoid; }
.tabla { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.95rem; }
.tabla th, .tabla td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgba(217, 173, 92, 0.18); }
.tabla th { color: var(--dorado); font-weight: bold; }
.tabla-envoltura { overflow-x: auto; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; background: #1b1e25; padding: 1px 6px; border-radius: 4px; }

/* Pie */
.pie { border-top: 1px solid var(--panel-borde); padding: 28px 0 40px; color: var(--texto-suave); font-size: 0.92rem; }
.pie .contenedor { display: grid; gap: 10px; }
.pie nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pie a { color: var(--texto-suave); }
.pie a:hover { color: var(--dorado); }
.pie .marcas { font-size: 0.82rem; opacity: 0.8; }

/* Tarjetas que llevan a otra página (manual, novedades y hoja de ruta). */
.enlace-tarjeta { display: block; color: inherit; text-decoration: none; transition: border-color 0.2s; }
.enlace-tarjeta:hover { border-color: var(--dorado); color: inherit; }
