/* =========================================================================
   info.master-mu.com — hoja de estilo

   Hereda el lenguaje visual del template Koleos de la web principal para que
   los dos sitios se sientan del mismo mundo, pero es independiente: no carga
   Bootstrap ni nada de WebEngine.

   Igual que la web principal, el diseno es ESTATICO a 1200px. En pantallas
   mas angostas no se reacomoda: aparece scroll horizontal. Es una decision
   deliberada, la misma que esta documentada en static-layout.css.
   ========================================================================= */

:root {
    /* Fondo y paneles: los mismos de profiles03.css */
    --bg:          #03050a;
    --panel-alto:  #151a26;
    --panel-bajo:  #0c0f18;
    --panel-plano: rgba(15, 19, 29, 0.66);

    --linea:       rgba(138, 156, 184, 0.16);
    --linea-viva:  rgba(138, 156, 184, 0.30);

    --txt:         #d8dfea;
    --txt-fuerte:  #f0f4fa;
    --dim:         #8a94a6;

    /* Paleta sobria: azul acero y dorado apagado. Nada de neon. */
    --acero:       #7d9dc4;
    --acero-tenue: rgba(125, 157, 196, 0.16);
    --oro:         #c2a15e;
    --oro-tenue:   rgba(194, 161, 94, 0.12);
    --cobre:       #b8795e;
    --verde:       #6dae86;
    --rojo:        #c25b63;

    --fuente-titulo: 'Exo 2', 'Open Sans', 'Segoe UI', sans-serif;
    --fuente-texto:  'Open Sans', 'Segoe UI', Arial, sans-serif;

    --ancho: 1200px;
}

/* ---------------------------------------------------------------- lienzo */

* { box-sizing: border-box; }

html {
    min-width: var(--ancho);
    overflow-x: auto;
    background: var(--bg);
}

body {
    min-width: var(--ancho);
    margin: 0;
    background: var(--bg);
    color: var(--txt);
    font-family: var(--fuente-texto);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-size-adjust: 100%;
}

.envoltorio { width: var(--ancho); margin: 0 auto; position: relative; }

a { color: var(--acero); text-decoration: none; transition: color .15s; }
a:hover { color: var(--txt-fuerte); }

h1, h2, h3, h4 { font-family: var(--fuente-titulo); font-weight: 600; margin: 0; color: var(--txt-fuerte); }
h1 { font-size: 30px; letter-spacing: .3px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }

/* ------------------------------------------------------- barra superior */

.barra {
    background: linear-gradient(180deg, rgba(12,15,24,.96), rgba(3,5,10,.96));
    border-bottom: 1px solid var(--linea);
    font-size: 12px;
}
.barra .envoltorio { display: flex; align-items: center; gap: 18px; height: 40px; }
.barra .marca { font-family: var(--fuente-titulo); font-weight: 600; color: var(--oro); letter-spacing: 1.2px; text-transform: uppercase; }
.barra .estado { color: var(--dim); margin-left: auto; display: flex; align-items: center; gap: 8px; }
.barra .punto { width: 7px; height: 7px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 8px rgba(109,174,134,.9); }
.barra .punto.viejo { background: var(--cobre); box-shadow: 0 0 8px rgba(184,121,94,.9); }

/* Selector de server */
.servidores { display: flex; gap: 6px; }
.servidores a {
    padding: 3px 12px; border-radius: 999px; font-size: 11px; letter-spacing: .6px;
    text-transform: uppercase; color: var(--dim);
    border: 1px solid transparent;
}
.servidores a.activo { color: var(--txt-fuerte); border-color: var(--linea-viva); background: var(--acero-tenue); }
.servidores a:hover { color: var(--txt-fuerte); }

/* -------------------------------------------------------------- cabecera */

.cabecera {
    position: relative;
    height: 230px;
    overflow: hidden;
    border-bottom: 1px solid var(--linea);
    background:
        radial-gradient(1200px 260px at 50% 110%, rgba(125,157,196,.16), transparent 70%),
        radial-gradient(700px 200px at 50% -10%, rgba(194,161,94,.10), transparent 70%),
        linear-gradient(180deg, #070a12 0%, #03050a 100%);
}

.cabecera .envoltorio { height: 100%; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 4; }
.cabecera .lema { color: var(--oro); font-family: var(--fuente-titulo); letter-spacing: 3px; text-transform: uppercase; font-size: 12px; margin-bottom: 10px; }
.cabecera h1 { font-size: 40px; line-height: 1.15; max-width: 720px; }
.cabecera p { color: var(--dim); max-width: 640px; margin: 12px 0 0; font-size: 15px; }

/* Linea dorada que separa la cabecera del contenido */
.cabecera::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(194,161,94,.55), transparent);
}

/* ------------------------------------------------------------ particulas
   Tomadas del hero de la web principal (override01.css): nucleo blanco y
   halo de color, que es lo unico que las hace visibles sobre un fondo
   cargado. Mismos tiempos y mismas variantes de color. */

.particulas { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }

.particulas span {
    position: absolute;
    width: 4px; height: 4px; border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, rgba(122,230,255,.95) 45%, rgba(122,230,255,0) 100%);
    box-shadow: 0 0 6px rgba(255,255,255,.75), 0 0 18px rgba(122,230,255,.9), 0 0 34px rgba(122,230,255,.45);
    opacity: 0;
    animation: derivaParticula 14s linear infinite;
    will-change: transform, opacity;
}
.particulas span:nth-child(3n) {
    background: radial-gradient(circle, #ffffff 0%, rgba(85,255,190,.95) 45%, rgba(85,255,190,0) 100%);
    box-shadow: 0 0 6px rgba(255,255,255,.7), 0 0 18px rgba(85,255,190,.85), 0 0 34px rgba(85,255,190,.4);
}
.particulas span:nth-child(4n) {
    background: radial-gradient(circle, #fff2ec 0%, rgba(255,120,90,.95) 45%, rgba(255,120,90,0) 100%);
    box-shadow: 0 0 6px rgba(255,220,200,.7), 0 0 18px rgba(255,110,80,.85), 0 0 34px rgba(255,110,80,.4);
}
.particulas span:nth-child(7n) {
    background: radial-gradient(circle, #fffdf0 0%, rgba(255,205,90,.95) 45%, rgba(255,205,90,0) 100%);
    box-shadow: 0 0 6px rgba(255,245,210,.75), 0 0 20px rgba(255,195,70,.9), 0 0 38px rgba(255,195,70,.45);
}
.particulas span:nth-child(5n) { width: 6px; height: 6px; }
.particulas span:nth-child(8n) { width: 7px; height: 7px; }

.particulas span:nth-child(1)  { left: 12%; top: 78%; animation-delay: 0s;   animation-duration: 13s; }
.particulas span:nth-child(2)  { left: 19%; top: 62%; animation-delay: -5s;  animation-duration: 15s; }
.particulas span:nth-child(3)  { left: 28%; top: 71%; animation-delay: -2s;  animation-duration: 12s; }
.particulas span:nth-child(4)  { left: 39%; top: 82%; animation-delay: -8s;  animation-duration: 16s; }
.particulas span:nth-child(5)  { left: 48%; top: 66%; animation-delay: -4s;  animation-duration: 14s; }
.particulas span:nth-child(6)  { left: 56%; top: 75%; animation-delay: -10s; animation-duration: 17s; }
.particulas span:nth-child(7)  { left: 64%; top: 58%; animation-delay: -6s;  animation-duration: 13s; }
.particulas span:nth-child(8)  { left: 73%; top: 70%; animation-delay: -1s;  animation-duration: 15s; }
.particulas span:nth-child(9)  { left: 82%; top: 84%; animation-delay: -7s;  animation-duration: 16s; }
.particulas span:nth-child(10) { left: 90%; top: 64%; animation-delay: -3s;  animation-duration: 14s; }
.particulas span:nth-child(11) { left: 7%;  top: 52%; animation-delay: -9s;  animation-duration: 18s; }
.particulas span:nth-child(12) { left: 34%; top: 48%; animation-delay: -11s; animation-duration: 15s; }
.particulas span:nth-child(13) { left: 51%; top: 42%; animation-delay: -6s;  animation-duration: 19s; }
.particulas span:nth-child(14) { left: 69%; top: 46%; animation-delay: -12s; animation-duration: 17s; }
.particulas span:nth-child(15) { left: 86%; top: 54%; animation-delay: -4s;  animation-duration: 18s; }
.particulas span:nth-child(16) { left: 4%;  top: 70%; animation-delay: -2s;  animation-duration: 16s; }
.particulas span:nth-child(17) { left: 16%; top: 40%; animation-delay: -14s; animation-duration: 20s; }
.particulas span:nth-child(18) { left: 24%; top: 88%; animation-delay: -7s;  animation-duration: 13s; }
.particulas span:nth-child(19) { left: 31%; top: 60%; animation-delay: -3s;  animation-duration: 17s; }
.particulas span:nth-child(20) { left: 44%; top: 52%; animation-delay: -9s;  animation-duration: 14s; }
.particulas span:nth-child(21) { left: 59%; top: 88%; animation-delay: -5s;  animation-duration: 18s; }
.particulas span:nth-child(22) { left: 66%; top: 36%; animation-delay: -13s; animation-duration: 21s; }
.particulas span:nth-child(23) { left: 77%; top: 60%; animation-delay: -1s;  animation-duration: 15s; }
.particulas span:nth-child(24) { left: 84%; top: 42%; animation-delay: -8s;  animation-duration: 19s; }
.particulas span:nth-child(25) { left: 94%; top: 78%; animation-delay: -6s;  animation-duration: 16s; }
.particulas span:nth-child(26) { left: 41%; top: 38%; animation-delay: -15s; animation-duration: 22s; }
.particulas span:nth-child(27) { left: 9%;  top: 90%; animation-delay: -10s; animation-duration: 14s; }
.particulas span:nth-child(28) { left: 97%; top: 56%; animation-delay: -12s; animation-duration: 20s; }

@keyframes derivaParticula {
    0%   { transform: translate3d(0, 38px, 0) scale(.4); opacity: 0; }
    12%  { opacity: 1; }
    55%  { opacity: .85; }
    80%  { opacity: .5; }
    100% { transform: translate3d(34px, -260px, 0) scale(1.5); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .particulas span { animation: none; opacity: .5; }
}

/* -------------------------------------------------------------- navegacion
   Barras inclinadas, en el espiritu del navbar del sitio principal, pero
   dibujadas solo con CSS: este sitio no arrastra las imagenes del otro. */

.menu { background: linear-gradient(180deg, #0b0e17, #05070d); border-bottom: 1px solid var(--linea); position: sticky; top: 0; z-index: 20; }
.menu .envoltorio { display: flex; gap: 2px; }

.menu a {
    position: relative;
    padding: 14px 22px;
    font-family: var(--fuente-titulo);
    font-size: 13px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase;
    color: var(--dim);
    transform: skewX(-14deg);
    border-bottom: 2px solid transparent;
}
.menu a > span { display: inline-block; transform: skewX(14deg); }
.menu a:hover { color: var(--txt-fuerte); background: rgba(125,157,196,.07); }
.menu a.activo {
    color: var(--oro);
    background: linear-gradient(180deg, rgba(194,161,94,.14), transparent);
    border-bottom-color: var(--oro);
}

/* ---------------------------------------------------------------- paneles */

.contenido { padding: 28px 0 60px; }

.panel {
    position: relative;
    border: 1px solid var(--linea);
    border-radius: 10px;
    background: linear-gradient(180deg, var(--panel-alto) 0%, var(--panel-bajo) 100%);
    box-shadow: 0 14px 36px rgba(0,0,0,.45);
    overflow: hidden;
    margin-bottom: 22px;
}

.panel-cab {
    display: flex; align-items: center; gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--linea);
    background: rgba(0,0,0,.22);
}
.panel-cab h2 { font-size: 17px; }
.panel-cab .sub { color: var(--dim); font-size: 12px; margin-left: auto; }

.panel-cuerpo { padding: 20px; }
.panel-cuerpo.sin-aire { padding: 0; }

.rejilla { display: grid; gap: 22px; align-items: start; }
.rejilla.dos { grid-template-columns: 1fr 1fr; }
.rejilla.tres { grid-template-columns: repeat(3, 1fr); }
.rejilla.dos-uno { grid-template-columns: 2fr 1fr; }

/* ------------------------------------------------------------- estadistica */

.tarjetas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }

.tarjeta {
    border: 1px solid var(--linea);
    border-radius: 10px;
    background: linear-gradient(180deg, var(--panel-alto), var(--panel-bajo));
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
}
.tarjeta::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--oro), transparent);
}
.tarjeta .cifra { font-family: var(--fuente-titulo); font-size: 27px; font-weight: 600; color: var(--txt-fuerte); line-height: 1.1; }
.tarjeta .rotulo { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: 1.1px; margin-top: 5px; }
.tarjeta .detalle { color: var(--acero); font-size: 12px; margin-top: 6px; }

/* --------------------------------------------------------------- etiquetas */

.chip {
    display: inline-block; padding: 2px 9px; border-radius: 999px;
    font-size: 11px; letter-spacing: .5px;
    border: 1px solid var(--linea-viva); color: var(--dim); background: rgba(0,0,0,.25);
    white-space: nowrap;
}
.chip.oro    { color: var(--oro);   border-color: rgba(194,161,94,.45); background: var(--oro-tenue); }
.chip.acero  { color: var(--acero); border-color: rgba(125,157,196,.45); background: var(--acero-tenue); }
.chip.verde  { color: var(--verde); border-color: rgba(109,174,134,.45); background: rgba(109,174,134,.10); }
.chip.rojo   { color: var(--rojo);  border-color: rgba(194,91,99,.45);  background: rgba(194,91,99,.10); }
.chip.apagado{ color: #6b7385; border-color: rgba(107,115,133,.35); }

/* Rareza: seis escalones, de comun a legendario. */
.rar { display: inline-flex; align-items: center; gap: 7px; }
.rar i { width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); flex: none; }
.rar-1 i { background: #6dae86; box-shadow: 0 0 7px rgba(109,174,134,.7); }
.rar-2 i { background: #7d9dc4; box-shadow: 0 0 7px rgba(125,157,196,.7); }
.rar-3 i { background: #9d8fd0; box-shadow: 0 0 7px rgba(157,143,208,.7); }
.rar-4 i { background: #c2a15e; box-shadow: 0 0 7px rgba(194,161,94,.7); }
.rar-5 i { background: #d98b52; box-shadow: 0 0 8px rgba(217,139,82,.8); }
.rar-6 i { background: #c25b63; box-shadow: 0 0 10px rgba(194,91,99,.9); }
.rar-0 i { background: #4a5162; }
.rar-1 b { color: #6dae86; } .rar-2 b { color: #7d9dc4; } .rar-3 b { color: #9d8fd0; }
.rar-4 b { color: #c2a15e; } .rar-5 b { color: #d98b52; } .rar-6 b { color: #c25b63; }
.rar b { font-weight: 600; font-size: 12px; }

/* ----------------------------------------------------------------- tablas */

.tabla { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabla th {
    text-align: left; padding: 11px 16px;
    font-family: var(--fuente-titulo); font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1.1px; color: var(--dim);
    border-bottom: 1px solid var(--linea-viva);
    background: rgba(0,0,0,.25);
    position: sticky; top: 0;
}
.tabla td { padding: 11px 16px; border-bottom: 1px solid rgba(138,156,184,.08); vertical-align: middle; }
.tabla tbody tr:hover { background: rgba(125,157,196,.06); }
.tabla tbody tr:last-child td { border-bottom: none; }
.tabla .num { text-align: right; font-variant-numeric: tabular-nums; }
.tabla .apagada td { opacity: .45; }
.tabla .principal { color: var(--txt-fuerte); font-weight: 600; }
.tabla .suave { color: var(--dim); font-size: 12px; }

.desborde { max-height: 620px; overflow: auto; }

/* ---------------------------------------------------------- cuenta atras */

.destacado {
    display: flex; align-items: center; gap: 24px;
    padding: 22px 24px;
    border-radius: 10px;
    border: 1px solid rgba(194,161,94,.28);
    background:
        radial-gradient(600px 120px at 0% 50%, rgba(194,161,94,.10), transparent 70%),
        linear-gradient(180deg, var(--panel-alto), var(--panel-bajo));
}
.destacado .reloj {
    font-family: var(--fuente-titulo); font-size: 42px; font-weight: 700;
    color: var(--oro); letter-spacing: 1px; line-height: 1;
    font-variant-numeric: tabular-nums; min-width: 190px;
}
.destacado .quien { font-family: var(--fuente-titulo); font-size: 22px; color: var(--txt-fuerte); }
.destacado .cuando { color: var(--dim); font-size: 13px; margin-top: 4px; }

/* ------------------------------------------------------------ linea del dia */

/* Cuatro columnas fijas: con flex las celdas quedaban de anchos distintos
   segun cuanto texto tuviera cada hora, y la grilla se veia despareja. */
.dia { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dia .hora {
    border: 1px solid var(--linea); border-radius: 8px; padding: 9px 11px;
    background: rgba(0,0,0,.25);
}
.dia .hora.paso { opacity: .38; }
.dia .hora.ahora { border-color: rgba(194,161,94,.6); background: var(--oro-tenue); }
.dia .hora .t { font-family: var(--fuente-titulo); font-size: 15px; color: var(--txt-fuerte); font-variant-numeric: tabular-nums; }
.dia .hora .q { font-size: 11px; color: var(--dim); margin-top: 2px; line-height: 1.35; }

/* --------------------------------------------------------------- buscador */

.buscador { display: flex; gap: 10px; align-items: center; }
.campo {
    flex: 1;
    background: rgba(0,0,0,.35);
    border: 1px solid var(--linea-viva);
    border-radius: 8px;
    color: var(--txt-fuerte);
    padding: 11px 14px;
    font-family: var(--fuente-texto); font-size: 14px;
    outline: none;
}
.campo::placeholder { color: #5f6878; }
.campo:focus { border-color: rgba(194,161,94,.55); box-shadow: 0 0 0 3px rgba(194,161,94,.10); }

select.campo { flex: none; min-width: 190px; cursor: pointer; }
option { background: #0c0f18; }

.filtros { display: flex; gap: 8px; flex-wrap: wrap; }
.filtro {
    padding: 6px 14px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--linea); background: rgba(0,0,0,.25);
    color: var(--dim); font-size: 12px; letter-spacing: .4px;
    font-family: var(--fuente-texto);
}
.filtro:hover { color: var(--txt-fuerte); border-color: var(--linea-viva); }
.filtro.activo { color: var(--oro); border-color: rgba(194,161,94,.5); background: var(--oro-tenue); }

/* --------------------------------------------------------------- graficos */

.grafico { position: relative; height: 260px; }
.grafico.alto { height: 340px; }

/* ------------------------------------------------------------------ notas */

.nota {
    border-left: 3px solid var(--acero);
    background: var(--acero-tenue);
    padding: 12px 16px; border-radius: 0 8px 8px 0;
    color: var(--txt); font-size: 13px;
}
.nota.oro { border-left-color: var(--oro); background: var(--oro-tenue); }
.nota b { color: var(--txt-fuerte); }

.vacio { text-align: center; color: var(--dim); padding: 48px 20px; }
.vacio strong { display: block; color: var(--txt-fuerte); font-size: 16px; margin-bottom: 6px; font-family: var(--fuente-titulo); }

/* ------------------------------------------------------------------- pie */

.pie {
    border-top: 1px solid var(--linea);
    background: linear-gradient(180deg, rgba(8,11,18,.9), rgba(3,5,10,1));
    padding: 26px 0 34px;
    color: var(--dim); font-size: 12px;
}
.pie .envoltorio { display: flex; gap: 30px; align-items: flex-start; }
.pie .col { flex: 1; }
.pie h4 { color: var(--txt-fuerte); font-size: 13px; margin-bottom: 8px; }
.pie a { color: var(--acero); }

/* ------------------------------------------------------------- utilidades */

.entre { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fila { display: flex; align-items: center; gap: 10px; }
.crece { flex: 1; }
.der { text-align: right; }
.dim { color: var(--dim); }
.mini { font-size: 12px; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.oculto { display: none !important; }
