/* La página de inicio de Omeyocan (docs/94). Interfaz C · Tilmatli (docs/47, view/tilmatli.gd), como el aviso de
   privacidad: el fondo y las mantas de añil con cenefa de grana y ocre, los títulos en Cinzel dorado. El orden, el de
   las páginas de los MOBA: la portada a sangre con la descarga, los dioses, la partida, los modos y dónde bajarlo.
   Sin scripts y sin nada de otros sitios: las letras van en ../privacidad/fuentes/ (licencia OFL). */

@font-face { font-family: "Cinzel"; src: url("../privacidad/fuentes/Cinzel-Variable.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../privacidad/fuentes/BarlowSemiCondensed-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../privacidad/fuentes/BarlowSemiCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../privacidad/fuentes/BarlowSemiCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --fondo: #0f1526;
  --anil: #1e2d55; --anil-hi: #2e4579; --anil-lo: #111a33;
  --grana: #b52435; --grana-lo: #6e1220;
  --ocre: #e0aa3e; --ocre-hi: #f6d58a; --ocre-lo: #9c6a1c;
  --jade: #4fbf7f; --maya: #4aa7bd;
  --tlilli: #17120f; --ichcatl: #ecdfc4;
  --texto: #f1e6cd; --texto-2: #cbbd9f;
  --letra: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --titulo: "Cinzel", Georgia, "Times New Roman", serif;
  --ancho: 1180px;
  --cenefa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Crect width='32' height='16' fill='%23b52435'/%3E%3Crect y='0' width='32' height='1.5' fill='%2317120f'/%3E%3Crect y='14.5' width='32' height='1.5' fill='%2317120f'/%3E%3Cpath d='M1 12 H5 V9 H8 V6 H11 V3.5 H20 V10 H15 V7 H17.5' fill='none' stroke='%23e0aa3e' stroke-width='1.7'/%3E%3Cpath d='M26 4 L29 8 L26 12 L23 8 Z' fill='%23ecdfc4'/%3E%3C/svg%3E");
  --greca-ocre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath d='M0 10.5 H4 V7.5 H7 V4.5 H10 V1.5 H21 V9 H15 V5.5 H18' fill='none' stroke='%23e0aa3e' stroke-width='1.7' stroke-linecap='square'/%3E%3C/svg%3E");
  --quech: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='74' height='30' viewBox='0 0 74 30'%3E%3Crect width='74' height='30' fill='%23b52435'/%3E%3Crect y='6' width='74' height='6' fill='%23e0aa3e'/%3E%3Cpath d='M0 9 L4 6 L8 9 L12 6 L16 9 L20 6 L24 9 L28 6 L32 9 L36 6 L40 9 L44 6 L48 9 L52 6 L56 9 L60 6 L64 9 L68 6 L72 9 L74 7.5' fill='none' stroke='%2317120f' stroke-width='1.2'/%3E%3Crect y='14' width='74' height='6' fill='%231e2d55'/%3E%3Cpath d='M30 22 L37 29 L44 22' fill='%23ecdfc4'/%3E%3C/svg%3E");
  --tejido: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
            repeating-linear-gradient(90deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px);
  --oro: linear-gradient(180deg, #fff3d0 0%, #f2c766 45%, #b77d22 72%, #e9b555 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--tejido), var(--fondo); color: var(--texto);
  font-family: var(--letra); font-weight: 500; font-size: 17px; line-height: 1.55; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocre-hi); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--ocre); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--titulo); margin: 0; letter-spacing: .02em; }
.saltar { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 8px 14px; background: var(--ocre); color: var(--tlilli); font-weight: 700; text-decoration: none; }
.saltar:focus { top: 12px; }
.cenefa { height: 16px; background: var(--cenefa) repeat-x; background-size: 32px 16px; }

/* ------------------------------------------------------------------ barra de arriba */
.barra-sup {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px;
  padding: 10px max(16px, env(safe-area-inset-left)) 10px; padding-right: max(16px, env(safe-area-inset-right));
  background: rgba(15,21,38,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(224,170,62,.35);
}
.marca { font-family: var(--titulo); font-weight: 800; letter-spacing: .2em; font-size: 17px; text-decoration: none;
  background: var(--oro); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.barra-sup nav { display: flex; gap: 22px; margin-left: auto; }
.barra-sup nav a { color: var(--texto); text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.barra-sup nav a:hover { color: var(--ocre-hi); }
.idioma { flex: none; font-weight: 700; font-size: 14px; color: var(--texto); text-decoration: none; padding: 5px 12px;
  border: 1px solid rgba(224,170,62,.6); border-radius: 2px; background: linear-gradient(180deg, #24355f, #16213f); }

/* ------------------------------------------------------------------ portada */
.portada { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.portada-arte, .portada-arte img { position: absolute; inset: 0; width: 100%; height: 100%; }
.portada-arte img { object-fit: cover; object-position: 60% 40%; z-index: -2; }
.portada::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(15,21,38,.92) 0%, rgba(15,21,38,.6) 38%, rgba(15,21,38,0) 70%),
              linear-gradient(0deg, var(--fondo) 0%, rgba(15,21,38,0) 35%); }
.portada-texto { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 16px 56px; }
.portada h1 { font-weight: 900; font-size: clamp(46px, 9vw, 104px); line-height: 1; letter-spacing: .06em;
  background: var(--oro); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 var(--grana-lo)) drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.lema { margin: 10px 0 0; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; font-size: 15px; color: var(--ocre); }
.lema::before, .lema::after { content: ""; display: inline-block; width: 48px; height: 12px; vertical-align: -1px;
  background: var(--greca-ocre) repeat-x; background-size: 24px 12px; margin: 0 12px 0 0; }
.lema::after { margin: 0 0 0 12px; }
.sub { font-size: clamp(19px, 2.4vw, 24px); max-width: 30em; margin: 14px 0 22px; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.botones { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.badge img { width: 180px; height: auto; }
.boton { display: inline-flex; align-items: center; min-height: 54px; padding: 0 22px; font-weight: 700; font-size: 17px;
  color: var(--tlilli); text-decoration: none; letter-spacing: .03em; border-radius: 3px;
  background: linear-gradient(180deg, #f6d58a, #e0aa3e 55%, #b77d22); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 10px rgba(0,0,0,.5); }
.boton:hover { filter: brightness(1.08); }
.nota { margin: 16px 0 0; font-size: 15px; color: var(--texto-2); letter-spacing: .04em; }

/* ------------------------------------------------------------------ secciones */
main { display: block; }
/* lo que somos, junto al video (como «Te damos la bienvenida» y su tráiler en Wild Rift) */
.cielo { max-width: var(--ancho); margin: 0 auto; padding: 64px 16px 24px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; font-size: 19px; }
.cielo.alto { grid-template-columns: 1.4fr 1fr; max-width: 980px; }
.cielo-texto { text-align: center; }
.video { margin: 0; }
.video video { width: 100%; height: auto; display: block; background: #000; border: 1px solid rgba(224,170,62,.55); border-radius: 3px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.cielo.alto .video video { max-height: 78vh; width: auto; max-width: 100%; margin: 0 auto; }
.video figcaption { margin-top: 8px; font-size: 14px; color: var(--texto-2); text-align: center; }
.cielo h2, .seccion h2 { font-weight: 800; font-size: clamp(28px, 4.5vw, 42px); color: var(--ocre-hi);
  background: var(--oro); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cielo h2::after, .seccion h2::after { content: ""; display: block; width: 120px; height: 12px; margin: 12px auto 0;
  background: var(--greca-ocre) repeat-x; background-size: 24px 12px; }
.cielo p:first-of-type { font-style: italic; color: var(--texto); }
.seccion { max-width: var(--ancho); margin: 0 auto; padding: 56px 16px 16px; text-align: center; }
.seccion-sub { margin: 10px 0 28px; color: var(--texto-2); font-size: 18px; }

/* noticias: tres tarjetas con fecha, como LoL y Wild Rift */
.noticias { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.noticia a { display: block; height: 100%; color: var(--texto); text-decoration: none; background: var(--tejido), linear-gradient(180deg, #1e2d55, #16213f);
  border: 1px solid rgba(224,170,62,.5); border-radius: 3px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.4); transition: transform .2s ease; }
.noticia a:hover { transform: translateY(-3px); }
.noticia img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.noticia .etiqueta { margin: 12px 16px 0; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ocre); }
.noticia h3 { margin: 4px 16px 0; font-size: 19px; color: var(--ocre-hi); line-height: 1.25; }
.noticia p:last-child { margin: 8px 16px 18px; font-size: 15.5px; color: var(--texto-2); }

/* los dioses: tarjetas con el arte de la carga, como la galería de campeones de Wild Rift */
.dioses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; text-align: left; }
.dios { position: relative; aspect-ratio: 420 / 753; overflow: hidden; border-radius: 3px; background: var(--anil-lo);
  border: 1px solid rgba(224,170,62,.55); box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.dios img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.dios::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,14,28,.96) 0%, rgba(10,14,28,.55) 40%, rgba(10,14,28,0) 62%); }
.dios-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 12px 12px 14px; }
.dios h3 { font-size: 19px; font-weight: 800; line-height: 1.15; color: var(--texto); }
.rol { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ocre); }
.hora { display: block; color: var(--maya); }
.apodo { margin: 2px 0 0; font-size: 15px; color: var(--ocre-hi); }
.desc { margin: 8px 0 0; font-size: 14px; line-height: 1.4; color: var(--texto-2); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s ease, opacity .3s ease; }
.dios:hover img, .dios:focus-within img { transform: scale(1.05); }
.dios:hover .desc, .dios:focus-within .desc { max-height: 12em; opacity: 1; }

/* la partida: imagen y texto, en mantas */
.rasgos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; text-align: left; }
.rasgo { background: var(--tejido), linear-gradient(180deg, #1e2d55, #16213f); border: 1px solid rgba(224,170,62,.5); border-radius: 3px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.rasgo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.rasgo div { padding: 16px 18px 20px; }
.rasgo h3, .modo h3, .manta h3 { font-size: 21px; font-weight: 700; color: var(--ocre-hi); }
.rasgo p { margin: 8px 0 0; }
.rasgo.codice { display: flex; align-items: center; background: var(--tejido), linear-gradient(180deg, #ecdfc4, #d9c8a4); }
.rasgo.codice h3 { color: var(--grana); }
.rasgo.codice p { color: var(--tlilli); font-size: 19px; }
.rasgo.codice .lista { margin: 16px 0 0; padding: 0; list-style: none; color: var(--tlilli); }
.rasgo.codice .lista li { padding: 6px 0 6px 22px; border-top: 1px solid rgba(23,18,15,.18); background: var(--greca-ocre) no-repeat 0 12px; background-size: 14px 7px; }
.rasgo.codice .lista strong { color: var(--grana); }

/* los modos */
.modos { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; text-align: left; }
.modo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 3px; border: 1px solid rgba(224,170,62,.45); }
.modo img { width: 100%; height: 100%; object-fit: cover; }
.modo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,14,28,.95) 0%, rgba(10,14,28,.3) 50%, rgba(10,14,28,0) 70%); }
.modo div { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 10px 10px 12px; }
.modo h3 { font-size: 17px; }
.modo p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.35; color: var(--texto-2); }

/* descargar */
.tiendas { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 18px; margin-top: 28px; text-align: left; }
.manta { position: relative; padding: 26px 22px 24px; border-radius: 2px; border: 1px solid rgba(224,170,62,.6);
  background: var(--tejido), linear-gradient(180deg, #24355f, #16213f); box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.manta .punta { position: absolute; left: 50%; top: -1px; width: 74px; height: 30px; transform: translateX(-50%); background: var(--quech); }
.manta p { margin: 8px 0 18px; color: var(--texto-2); }
.cuenta { margin: 22px auto 0; max-width: 34em; color: var(--texto-2); }
.redes .botones { justify-content: center; margin-top: 24px; }

/* pie */
.pie { margin-top: 64px; text-align: center; padding: 0 16px max(28px, env(safe-area-inset-bottom)); color: var(--texto-2); font-size: 15px; }
.pie .cenefa { margin: 0 -16px 28px; }
.pie img { margin: 0 auto 8px; border-radius: 14px; }
.pie-marca { font-family: var(--titulo); font-weight: 800; letter-spacing: .2em; color: var(--ocre); margin: 0 0 4px; }
.pie p { margin: 4px 0; }
.pie a { color: var(--texto); }
.pie .pie-redes a { color: var(--ocre-hi); font-weight: 700; }
.pie .edad { margin-top: 12px; font-size: 13.5px; color: var(--texto-2); }

/* ------------------------------------------------------------------ tableta y celular */
@media (max-width: 1000px) {
  .dioses { grid-template-columns: repeat(4, 1fr); }
  .modos { grid-template-columns: repeat(3, 1fr); }
  .noticias { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .barra-sup nav { display: none; }
  .idioma { margin-left: auto; }
  .portada { min-height: min(92vh, 780px); }
  .portada-arte img { object-position: 50% 20%; }
  .portada::after { background: linear-gradient(0deg, var(--fondo) 8%, rgba(15,21,38,.75) 42%, rgba(15,21,38,0) 70%); }
  .portada-texto { padding-bottom: 36px; text-align: center; }
  .lema { letter-spacing: .18em; font-size: 13px; }
  .lema::before, .lema::after { width: 24px; }
  .botones { justify-content: center; }
  .cielo, .cielo.alto { padding-top: 44px; font-size: 18px; grid-template-columns: 1fr; gap: 24px; }
  .noticias { grid-template-columns: 1fr; }
  /* los dioses se deslizan de lado, como el carrusel de los MOBA en el celular; la descripción se ve siempre */
  .dioses { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px 10px; scrollbar-width: none; }
  .dioses::-webkit-scrollbar { display: none; }
  .dios { flex: 0 0 72%; scroll-snap-align: center; }
  .desc { max-height: 12em; opacity: 1; }
  .rasgos { grid-template-columns: 1fr; }
  .modos { grid-template-columns: repeat(2, 1fr); }
  .tiendas { grid-template-columns: 1fr; }
}
