/* Sitio del servidor (REQ-024). Fantasia oscura clasica: negros calidos, dorado viejo y rojo sangre.
   Sin imagenes de terceros: los adornos son CSS. La politica de seguridad no permite estilos en linea. */

@font-face {
    font-family: "Cinzel";
    src: url("../fonts/Cinzel.ttf") format("truetype");
    font-weight: 400 900;
    font-display: swap;
}

:root {
    --fondo: #0b0907;
    --fondo-2: #14100c;
    --panel: #1a1510;
    --panel-2: #221b14;
    --borde: #4a3b21;
    --borde-claro: #6d5730;
    --oro: #d9b26a;
    --oro-claro: #f1d9a0;
    --oro-oscuro: #9a7a3c;
    --rojo: #8c1c13;
    --rojo-claro: #b8322a;
    --texto: #d8cdb4;
    --texto-suave: #a0957e;
    --verde: #6fbf73;
    --azul: #6aa8e8;
    --titulos: "Cinzel", "Trajan Pro", Georgia, serif;
    --cuerpo: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { font-size: 17px; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--texto);
    font-family: var(--cuerpo);
    line-height: 1.6;
    background:
        radial-gradient(ellipse 120% 60% at 50% -10%, rgba(140, 28, 19, 0.28), transparent 60%),
        radial-gradient(ellipse 80% 50% at 50% 110%, rgba(217, 178, 106, 0.08), transparent 60%),
        linear-gradient(180deg, var(--fondo-2), var(--fondo) 40%);
    background-attachment: fixed;
}

a { color: var(--oro); text-decoration: none; }
a:hover, a:focus { color: var(--oro-claro); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--oro-claro); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--titulos); color: var(--oro); font-weight: 700; line-height: 1.25; letter-spacing: 0.03em; }
h1 { font-size: 2rem; margin: 0 0 0.6rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.8rem; }
h3 { font-size: 1.05rem; margin: 1.4rem 0 0.5rem; color: var(--oro-claro); }
p { margin: 0.6rem 0; }

.contenedor { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.angosto { width: min(560px, 100% - 2rem); margin-inline: auto; }
.medio { width: min(820px, 100% - 2rem); margin-inline: auto; }
main { flex: 1; padding: 2.2rem 0 3rem; }

/* ------------------------------------------------------------------ cabecera */
.cabecera { border-bottom: 1px solid var(--borde); background: rgba(11, 9, 7, 0.92); position: sticky; top: 0; z-index: 10; }
.cabecera .contenedor { display: flex; align-items: center; gap: 0.9rem; min-height: 68px; flex-wrap: wrap; }
.marca { font-family: var(--titulos); font-weight: 900; font-size: 1.25rem; color: var(--oro-claro); letter-spacing: 0.08em;
    text-transform: uppercase; display: flex; align-items: center; gap: 0.6rem; }
.marca:hover { text-decoration: none; color: #fff; }
.marca img { display: block; height: 34px; width: auto; margin: -4px 0 -4px -8px; filter: brightness(1.3) contrast(1.05); }
.marca:hover img { filter: brightness(1.6); }
.menu { display: flex; gap: 0.15rem; flex-wrap: wrap; margin-left: auto; align-items: center; }
.menu a, .menu button { font-family: var(--titulos); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 0.5rem 0.6rem; color: var(--texto); border: 1px solid transparent; border-radius: 3px; background: none; cursor: pointer; }
.menu a:hover, .menu button:hover { color: var(--oro-claro); border-color: var(--borde); text-decoration: none; }
.menu a.activo { color: var(--oro); border-color: var(--borde-claro); background: var(--panel); }
.menu form { margin: 0; }
.menu .destacado { background: linear-gradient(180deg, var(--rojo-claro), var(--rojo)); color: #fbeed0; border-color: #c9483f; }
.menu .destacado:hover { color: #fff; border-color: var(--oro); }

.estado { font-size: 0.8rem; color: var(--texto-suave); display: flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.punto { width: 9px; height: 9px; border-radius: 50%; background: #6b6b6b; flex: none; }
.punto.arriba { background: var(--verde); box-shadow: 0 0 9px var(--verde); }
.punto.abajo { background: var(--rojo-claro); box-shadow: 0 0 9px var(--rojo-claro); }

/* ------------------------------------------------------------------- portada */
.portada { text-align: center; padding: 3.2rem 1rem 2.6rem; border: 1px solid var(--borde); position: relative;
    background:
        radial-gradient(ellipse at 50% 34%, rgba(58, 92, 214, 0.22), transparent 48%),
        radial-gradient(ellipse at 50% 0%, rgba(184, 50, 42, 0.35), transparent 65%),
        linear-gradient(180deg, #1d1510, #120e0a); }
.portada::before, .portada::after { content: ""; position: absolute; left: 12px; right: 12px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--oro-oscuro), transparent); }
.portada::before { top: 12px; } .portada::after { bottom: 12px; }
.portada h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 900; color: var(--oro-claro); text-transform: uppercase;
    text-shadow: 0 2px 0 #000, 0 0 28px rgba(217, 178, 106, 0.35); margin: 0; }
.portada h1.logo { line-height: 0; margin: -1.6rem 0 -1rem; }
.portada h1.logo img { width: min(512px, 92%); height: auto; }
.portada .lema { font-style: italic; color: var(--texto); font-size: 1.1rem; margin: 0.8rem auto 1.8rem; max-width: 40rem; }
.acciones { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.adorno { color: var(--oro-oscuro); letter-spacing: 0.6em; font-size: 0.8rem; margin: 0 0 0.9rem; }

/* ------------------------------------------------------------------- botones */
.boton { display: inline-block; font-family: var(--titulos); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    font-size: 0.9rem; padding: 0.8rem 1.6rem; border-radius: 3px; cursor: pointer; text-align: center;
    border: 1px solid #c9483f; color: #fbeed0; background: linear-gradient(180deg, var(--rojo-claro), var(--rojo));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 3px 10px rgba(0, 0, 0, 0.5); }
.boton:hover, .boton:focus { color: #fff; text-decoration: none; border-color: var(--oro); filter: brightness(1.12); }
.boton.secundario { background: linear-gradient(180deg, #2a2219, #1a1510); border-color: var(--borde-claro); color: var(--oro); }
.boton.ancho { width: 100%; }
.boton[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

/* ------------------------------------------------------------------- paneles */
.panel { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--borde); padding: 1.4rem 1.5rem;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45); position: relative; }
.panel > h2:first-child, .panel > h1:first-child { margin-top: 0; }
.panel.marco::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(154, 122, 60, 0.35); pointer-events: none; }
.rejilla { display: grid; gap: 1.2rem; }
.rejilla.dos { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.rejilla.tres { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.rejilla.lateral { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); }
@media (max-width: 820px) { .rejilla.lateral { grid-template-columns: 1fr; } }
.separado { margin-top: 1.6rem; }
.centro { text-align: center; }
.suave { color: var(--texto-suave); font-size: 0.9rem; }
.titulo-pagina { border-bottom: 1px solid var(--borde); padding-bottom: 0.7rem; margin-bottom: 1.4rem; }
.titulo-pagina p { color: var(--texto-suave); margin: 0; }

/* --------------------------------------------------------------- formularios */
.campo { margin-bottom: 1.05rem; }
.campo label { display: block; font-family: var(--titulos); font-size: 0.8rem; letter-spacing: 0.07em; text-transform: uppercase;
    color: var(--oro); margin-bottom: 0.3rem; }
.campo input { width: 100%; padding: 0.7rem 0.8rem; font: inherit; font-family: "Segoe UI", Arial, sans-serif; font-size: 1rem;
    color: #f3ead6; background: #0e0b08; border: 1px solid var(--borde-claro); border-radius: 3px; }
.campo input:focus { border-color: var(--oro); box-shadow: 0 0 0 3px rgba(217, 178, 106, 0.18); outline: none; }
.campo .ayuda { font-size: 0.8rem; color: var(--texto-suave); margin-top: 0.25rem; }
.campo .error, .error { color: #ff9d94; font-size: 0.85rem; margin-top: 0.25rem; }
.trampa { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.aviso { border: 1px solid; border-left-width: 4px; padding: 0.8rem 1rem; margin: 0 0 1.2rem; background: rgba(0, 0, 0, 0.35); }
.aviso.bien { border-color: var(--verde); color: #cfeed1; }
.aviso.mal { border-color: var(--rojo-claro); color: #ffd0cb; }
.aviso.nota { border-color: var(--oro-oscuro); color: var(--texto); }
.aviso p { margin: 0.2rem 0; }

/* -------------------------------------------------------------------- tablas */
.tabla-marco { overflow-x: auto; border: 1px solid var(--borde); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th { font-family: var(--titulos); font-size: 0.78rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--oro);
    background: #120e0a; text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--borde-claro); white-space: nowrap; }
td { padding: 0.6rem 0.8rem; border-bottom: 1px solid rgba(74, 59, 33, 0.55); }
tbody tr:nth-child(odd) { background: rgba(255, 255, 255, 0.018); }
tbody tr:hover { background: rgba(217, 178, 106, 0.07); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.puesto { font-family: var(--titulos); font-weight: 700; color: var(--texto-suave); width: 3.2rem; }
tr.p1 .puesto { color: #ffd76a; text-shadow: 0 0 10px rgba(255, 215, 106, 0.6); }
tr.p2 .puesto { color: #d5dbe3; }
tr.p3 .puesto { color: #d29a62; }
.nombre { color: #f3ead6; font-weight: bold; }
.vacio { padding: 2rem 1rem; text-align: center; color: var(--texto-suave); font-style: italic; }

.pestanas { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.pestanas a { font-family: var(--titulos); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.55rem 1rem;
    border: 1px solid var(--borde); color: var(--texto); background: var(--panel); }
.pestanas a:hover { text-decoration: none; border-color: var(--oro-oscuro); color: var(--oro-claro); }
.pestanas a.activo { color: #fbeed0; border-color: #c9483f; background: linear-gradient(180deg, var(--rojo-claro), var(--rojo)); }

/* ------------------------------------------------------------------ noticias */
.noticia { border-bottom: 1px solid rgba(74, 59, 33, 0.6); padding: 1rem 0; }
.noticia:last-child { border-bottom: 0; padding-bottom: 0; }
.noticia:first-child { padding-top: 0; }
.noticia h3 { margin: 0.2rem 0; font-size: 1.1rem; }
.meta { font-size: 0.78rem; color: var(--texto-suave); display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.etiqueta { font-family: var(--titulos); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.12rem 0.5rem;
    border: 1px solid var(--borde-claro); color: var(--oro); }
.etiqueta.evento { border-color: #c9483f; color: #ff9d94; }
.etiqueta.ganadores { border-color: #ffd76a; color: #ffd76a; }
.etiqueta.mantenimiento { border-color: var(--azul); color: var(--azul); }

/* ----------------------------------------------------------------- contenido */
.texto h2 { border-bottom: 1px solid var(--borde); padding-bottom: 0.3rem; }
.texto ul, .texto ol { padding-left: 1.4rem; }
.texto li { margin: 0.25rem 0; }
.texto code { font-family: Consolas, monospace; font-size: 0.88rem; background: #0e0b08; border: 1px solid var(--borde); padding: 0 0.3rem; color: var(--oro-claro); }
.texto blockquote { margin: 1rem 0; padding: 0.6rem 1rem; border-left: 4px solid var(--oro-oscuro); background: rgba(0, 0, 0, 0.3); }
.texto blockquote p { margin: 0.2rem 0; }
.texto table { margin: 1rem 0; border: 1px solid var(--borde); }
.texto strong { color: #f3ead6; }

.dato { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(74, 59, 33, 0.55); }
.dato:last-child { border-bottom: 0; }
.dato span:first-child { color: var(--texto-suave); }
.dato span:last-child { color: #f3ead6; font-weight: bold; text-align: right; }
.mucoin { color: var(--azul) !important; }

.tarjeta h3 { margin-top: 0; }
.tarjeta .numero { font-family: var(--titulos); font-size: 1.9rem; color: var(--oro-oscuro); line-height: 1; }

/* ----------------------------------------------------------------------- pie */
.pie { border-top: 1px solid var(--borde); background: #080605; padding: 1.4rem 0; font-size: 0.82rem; color: var(--texto-suave); }
.pie .contenedor { display: flex; gap: 1rem 2rem; flex-wrap: wrap; justify-content: space-between; }
.pie p { margin: 0.15rem 0; }

@media (max-width: 640px) {
    html { font-size: 16px; }
    .menu { margin-left: 0; width: 100%; }
    .estado { width: 100%; }
    .panel { padding: 1.1rem; }
}

@media (prefers-reduced-motion: no-preference) {
    .boton, .menu a, .pestanas a { transition: filter 0.15s, border-color 0.15s, color 0.15s; }
}

/* ------------------------------------------------------------------- redes */
.redes { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.redes a { font-family: var(--titulos); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 0.3rem 0.7rem; border: 1px solid var(--borde-claro); border-radius: 3px; color: var(--oro); }
.redes a:hover { color: #fff; border-color: var(--oro); text-decoration: none; }
