/* =========================================================
   CONTROL PIRATAS
   ESTILO OFICIAL UNIFICADO 2026
   Negro + Amarillo Piratas
   ========================================================= */

:root{
    --amarillo:#FDB827;
    --amarillo-claro:#FFD45A;
    --amarillo-oscuro:#D99D00;

    --negro:#050505;
    --negro-2:#0d0d0d;
    --negro-3:#151515;

    --panel:rgba(24,24,24,.94);
    --panel-2:rgba(12,12,12,.96);

    --blanco:#fff;
    --gris:#aaa;
    --gris-claro:#ddd;

    --borde:rgba(255,255,255,.10);
    --borde-amarillo:rgba(253,184,39,.30);

    --verde:#25D366;
    --rojo:#c83c3c;

    --radio:16px;
    --radio-pequeno:11px;

    --sombra:
        0 12px 30px rgba(0,0,0,.32);

    --sombra-amarilla:
        0 8px 25px rgba(253,184,39,.12);
}


/* =========================================================
   BASE
   ========================================================= */

*{
    box-sizing:border-box;
}

html,
body{
    margin:0;
    padding:0;
    width:100%;
    min-height:100%;
}

html{
    scroll-behavior:smooth;
    background:#030303;
}

body,
button,
input,
select,
textarea,
option,
a,
table,
th,
td,
label,
span,
div,
p,
strong,
h1,
h2,
h3,
h4,
h5,
h6{
    font-family:
        "Segoe UI",
        Tahoma,
        Arial,
        sans-serif !important;
}

body{
    min-height:100vh;
    overflow-x:hidden;

    color:var(--blanco);

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(253,184,39,.08),
            transparent 38%
        ),
        #030303;
}

img{
    max-width:100%;
    height:auto;
}

a{
    color:inherit;
}

a,
button{
    transition:
        transform .20s ease,
        background .20s ease,
        border-color .20s ease,
        box-shadow .20s ease,
        color .20s ease;
}


/* =========================================================
   FONDO PIRATAS ANIMADO
   ========================================================= */

.piratas-fondos-globales{
    position:fixed;
    inset:0;

    width:100%;
    height:100%;

    z-index:0;

    overflow:hidden;
    pointer-events:none;

    background:#030303;
}

.piratas-fondos-globales::after{
    content:"";

    position:absolute;
    inset:0;

    z-index:10;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.28),
            rgba(0,0,0,.48)
        ),
        radial-gradient(
            circle at center,
            transparent 20%,
            rgba(0,0,0,.38) 100%
        );

    pointer-events:none;
}

.piratas-fondo-global{
    position:absolute;
    inset:-2%;

    width:104%;
    height:104%;

    object-fit:cover;
    object-position:center;

    opacity:0;

    animation:
        piratasSecuencia 48s
        infinite ease-in-out;

    transform:scale(1.03);

    filter:
        saturate(.94)
        contrast(1.02)
        brightness(.86);

    will-change:
        opacity,
        transform;
}

.piratas-fondo-global.f1{
    animation-delay:0s;
}

.piratas-fondo-global.f2{
    animation-delay:8s;
}

.piratas-fondo-global.f3{
    animation-delay:16s;
}

.piratas-fondo-global.f4{
    animation-delay:24s;
}

.piratas-fondo-global.f5{
    animation-delay:32s;
}

.piratas-fondo-global.f6{
    animation-delay:40s;
}

@keyframes piratasSecuencia{

    0%{
        opacity:0;
        transform:scale(1.03);
    }

    4%{
        opacity:.56;
    }

    15%{
        opacity:.56;
    }

    20%{
        opacity:0;
        transform:scale(1.08);
    }

    100%{
        opacity:0;
        transform:scale(1.08);
    }
}


/* =========================================================
   CONTENIDO SOBRE EL FONDO
   ========================================================= */

body > header,
body > main,
body > footer,
body > .header,
body > .contenedor,
body > .container,
body > .contenido,
body > .wrapper,
body > .app{
    position:relative;
    z-index:2;
}

main,
.contenedor,
.container,
.contenido,
.wrapper,
.app{
    background-color:transparent;
}


/* =========================================================
   ENCABEZADO OFICIAL PIRATAS
   ========================================================= */

header,
.header,
.encabezado,
.estadisticas-header{
    position:relative;

    text-align:center;

    background:
        linear-gradient(
            180deg,
            rgba(25,25,25,.97),
            rgba(4,4,4,.98)
        );

    border-bottom:
        1px solid rgba(253,184,39,.38);

    box-shadow:
        0 12px 32px rgba(0,0,0,.42);

    backdrop-filter:blur(8px);
}

.header{
    padding:17px 15px 20px;
}

.logo{
    width:82px;
    height:82px;

    object-fit:cover;

    border-radius:50%;

    border:
        3px solid var(--amarillo);

    box-shadow:
        0 0 0 5px rgba(253,184,39,.07),
        0 8px 22px rgba(0,0,0,.50);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.logo:hover{
    transform:
        translateY(-2px)
        scale(1.03);

    box-shadow:
        0 0 0 6px rgba(253,184,39,.10),
        0 12px 28px rgba(0,0,0,.55);
}

.titulo,
.titulo-panel,
.titulo-seccion,
.menu-titulo,
.admin-titulo,
.cumpleanos-titulo,
.instalar-app-titulo,
.notificaciones-app-titulo{
    color:var(--amarillo);
    font-weight:800 !important;
}

.titulo{
    margin:8px 0 2px;

    font-size:
        clamp(24px,4vw,34px);

    text-transform:uppercase;

    letter-spacing:1.4px;

    text-shadow:
        2px 3px 0 #000;
}

.subtitulo{
    margin:3px 0 0;

    color:#bdbdbd;

    font-size:12px;

    letter-spacing:1.3px;
}

.usuario-superior{
    margin-top:8px;

    color:#d5d5d5;

    font-size:11px;
}


/* =========================================================
   CONTENEDORES
   ========================================================= */

.contenedor,
.container{
    width:100%;

    max-width:1120px;

    margin:auto;

    padding:
        18px 14px 40px;
}

.panel,
.tarjeta,
.card,
.admin-box,
.cumpleanos-box,
.notificaciones-app,
.instalar-app,
.frecuente-card,
.total-box,
.categoria-actual{
    background:
        linear-gradient(
            145deg,
            rgba(35,35,35,.94),
            rgba(13,13,13,.97)
        );

    border:
        1px solid var(--borde);

    box-shadow:
        var(--sombra);

    backdrop-filter:
        blur(8px);
}


/* =========================================================
   BARRA SUPERIOR
   ========================================================= */

.barra-superior{
    display:flex;

    align-items:center;

    justify-content:
        space-between;

    flex-wrap:wrap;

    gap:10px;

    margin-bottom:16px;
}

.categoria-activa{
    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:7px;

    padding:8px 15px;

    border-radius:50px;

    background:
        linear-gradient(
            135deg,
            var(--amarillo-claro),
            var(--amarillo)
        );

    color:#050505;

    font-size:13px;

    font-weight:800 !important;

    box-shadow:
        var(--sombra-amarilla);
}

.cerrar-sesion,
.volver,
.btn-pie{
    display:inline-flex;

    align-items:center;

    justify-content:center;

    min-height:39px;

    padding:8px 14px;

    border-radius:50px;

    border:
        1px solid rgba(255,255,255,.13);

    background:
        rgba(18,18,18,.92);

    color:#fff;

    text-decoration:none;

    font-size:12px;

    font-weight:700 !important;
}

.cerrar-sesion:hover,
.volver:hover,
.btn-pie:hover{
    background:
        var(--amarillo);

    border-color:
        var(--amarillo);

    color:#050505;

    transform:
        translateY(-2px);
}


/* =========================================================
   PANEL ADMINISTRADOR
   ========================================================= */

.admin-box{
    margin-bottom:18px;

    padding:15px;

    border-radius:var(--radio);

    border-color:
        var(--borde-amarillo);
}

.admin-titulo{
    margin:
        0 0 11px;

    text-align:center;

    font-size:15px;
}

.buscador-categoria{
    position:relative;

    width:100%;

    max-width:520px;

    margin:0 auto;
}

.buscador-categoria input{
    width:100%;

    min-height:43px;

    padding:9px 13px;

    border-radius:10px;

    border:
        1px solid rgba(253,184,39,.35);
}

.resultados-categoria{
    display:none;

    position:relative;

    z-index:20;

    margin-top:6px;

    overflow:hidden;

    border:
        1px solid rgba(255,255,255,.10);

    border-radius:11px;

    background:#151515;

    box-shadow:
        0 10px 25px rgba(0,0,0,.35);
}

.resultado-categoria{
    display:block;

    padding:10px 13px;

    border-bottom:
        1px solid rgba(255,255,255,.07);

    color:#fff;

    text-decoration:none;

    font-size:12px;

    font-weight:700;
}

.resultado-categoria:last-child{
    border-bottom:0;
}

.resultado-categoria:hover{
    background:
        var(--amarillo);

    color:#050505;
}

.sin-resultados{
    padding:10px 13px;

    color:#999;

    text-align:center;

    font-size:12px;
}

.admin-acciones,
.categorias-admin{
    display:flex;

    flex-wrap:wrap;

    justify-content:center;

    gap:8px;

    margin-top:12px;
}


/* =========================================================
   BOTONES
   ========================================================= */

.boton,
.btn,
.btn-categoria,
.categoria-link,
.admin-accion{
    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:6px;

    min-height:39px;

    padding:8px 13px;

    border-radius:11px;

    border:
        1px solid rgba(255,255,255,.11);

    background:
        linear-gradient(
            145deg,
            rgba(38,38,38,.96),
            rgba(14,14,14,.98)
        );

    color:#fff;

    text-decoration:none;

    font-size:12px;

    font-weight:700 !important;

    cursor:pointer;

    box-shadow:
        0 5px 14px rgba(0,0,0,.20);
}

.boton:hover,
.btn:hover,
.btn-categoria:hover,
.categoria-link:hover,
.admin-accion:hover{
    background:
        linear-gradient(
            135deg,
            var(--amarillo-claro),
            var(--amarillo)
        );

    border-color:
        var(--amarillo);

    color:#050505;

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 18px rgba(0,0,0,.28);
}

.boton.destacado,
.btn-categoria.activa,
.categoria-link.activa,
.btn-inicio,
.btn-guardar,
.btn-registrar,
button[type="submit"],
button.destacado{
    background:
        linear-gradient(
            135deg,
            var(--amarillo-claro),
            var(--amarillo),
            var(--amarillo-oscuro)
        );

    border-color:
        var(--amarillo);

    color:#050505;

    font-weight:800 !important;
}


/* =========================================================
   TARJETAS RESUMEN
   ========================================================= */

.resumen{
    display:grid;

    grid-template-columns:
        repeat(4,1fr);

    gap:10px;

    margin-bottom:24px;
}

.card{
    position:relative;

    overflow:hidden;

    padding:16px 10px;

    border-radius:var(--radio);

    text-align:center;

    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.card::before{
    content:"";

    position:absolute;

    top:0;
    left:18%;
    right:18%;

    height:2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--amarillo),
            transparent
        );

    opacity:.7;
}

.card:hover{
    transform:
        translateY(-3px);

    border-color:
        rgba(253,184,39,.28);

    box-shadow:
        0 15px 30px rgba(0,0,0,.36);
}

.card-icon{
    font-size:25px;
}

.card h3{
    margin:
        6px 0 4px;

    color:#aaa;

    font-size:10px;

    letter-spacing:.8px;
}

.numero,
.total-valor,
.categoria-actual strong{
    color:
        var(--amarillo);

    font-weight:
        800 !important;
}

.numero{
    font-size:24px;
}


/* =========================================================
   MENÚ PRINCIPAL
   ========================================================= */

.menu-titulo{
    margin:
        23px 0 13px;

    text-align:center;

    font-size:18px;

    letter-spacing:.6px;
}

.menu{
    display:grid;

    grid-template-columns:
        repeat(3,1fr);

    gap:10px;
}

.menu .boton{
    position:relative;

    overflow:hidden;

    min-height:58px;

    padding:12px 14px;

    border-radius:14px;

    justify-content:flex-start;

    font-size:13px;
}

.menu .boton::after{
    content:"";

    position:absolute;

    inset:auto -30px -45px auto;

    width:75px;
    height:75px;

    border-radius:50%;

    background:
        rgba(253,184,39,.05);

    transition:
        transform .25s ease;
}

.menu .boton:hover::after{
    transform:
        scale(1.5);
}
/* =========================================================
   CUMPLEAÑOS
   ========================================================= */

.cumpleanos-box{
    margin-bottom:18px;
    padding:15px;
    border-radius:var(--radio);
    border-color:rgba(253,184,39,.28);
}

.cumpleanos-titulo{
    margin:0 0 11px;
    text-align:center;
    font-size:17px;
}

.cumpleanos-jugador{
    padding:11px;
    margin-bottom:8px;
    border-radius:11px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.05);
    text-align:center;
}

.cumpleanos-nombre{
    color:var(--amarillo);
    font-weight:800;
}

.boton-whatsapp,
.btn-whatsapp{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    margin-top:8px;
    padding:8px 13px;
    border:0;
    border-radius:50px;
    background:var(--verde) !important;
    color:#fff !important;
    text-decoration:none;
    font-size:12px;
    font-weight:800;
}

.boton-whatsapp:hover,
.btn-whatsapp:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(37,211,102,.20);
}


/* =========================================================
   FORMULARIOS
   ========================================================= */

form{
    max-width:100%;
}

label{
    color:#ddd;
    font-weight:700;
}

input,
select,
textarea{
    max-width:100%;
    min-height:40px;
    padding:8px 10px;
    background:#111;
    color:#fff;
    border:1px solid #444;
    border-radius:9px;
    outline:none;
    transition:
        border-color .20s ease,
        box-shadow .20s ease,
        background .20s ease;
}

select option{
    background:#111;
    color:#fff;
}

textarea{
    min-height:88px;
    resize:vertical;
}

input:focus,
select:focus,
textarea:focus{
    border-color:var(--amarillo);
    box-shadow:0 0 0 3px rgba(253,184,39,.12);
}

input::placeholder,
textarea::placeholder{
    color:#888;
}

.campo input,
.campo select,
.campo textarea{
    background:#fff;
    color:#111;
    border-color:#d5d5d5;
}


/* =========================================================
   PANELES GENERALES
   ========================================================= */

.panel,
.tarjeta,
.total-box,
.frecuente-card,
.categoria-actual{
    border-radius:var(--radio);
    padding:14px;
}

.panel,
.tarjeta{
    transition:
        border-color .20s ease,
        box-shadow .20s ease;
}

.panel:hover,
.tarjeta:hover{
    border-color:rgba(253,184,39,.20);
}


/* =========================================================
   TABLAS GENERALES
   ========================================================= */

.tabla-wrap,
.table-responsive,
.tabla-responsive{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    border-radius:12px;
}

table{
    width:100%;
    border-collapse:collapse;
    background:rgba(20,20,20,.97);
    border:1px solid var(--borde);
}

th,
thead th{
    padding:9px 8px;
    background:
        linear-gradient(
            180deg,
            var(--amarillo-claro),
            var(--amarillo)
        );
    color:#050505;
    border:1px solid var(--amarillo-oscuro);
    font-weight:800;
    white-space:nowrap;
}

td,
tbody td{
    padding:9px 8px;
    border:1px solid var(--borde);
    color:#fff;
    text-align:center;
}

tbody tr:nth-child(even){
    background:rgba(255,255,255,.025);
}

tbody tr{
    transition:background .15s ease;
}

tbody tr:hover{
    background:rgba(253,184,39,.08);
}


/* =========================================================
   JUGADORES
   No alterar dimensiones especiales de sus columnas
   ========================================================= */

.tabla-jugadores{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}

.tabla-jugadores table{
    width:100%;
}

.tabla-jugadores .col-jugador{
    text-align:left;
}

.tabla-jugadores .uniforme{
    background:var(--amarillo);
    color:#050505;
    font-weight:900;
}


/* =========================================================
   COLORES FUNCIONALES SUB50
   Se respetan las clases definidas por jugadores.php.
   ========================================================= */

.sub50-leyenda,
.leyenda-sub50{
    position:relative;
    z-index:2;
}


/* =========================================================
   ESTADÍSTICAS
   Compatibilidad con estadisticas.php
   ========================================================= */

.estadisticas-header{
    padding:13px 12px;
}

.estadisticas-logo{
    width:68px;
    height:68px;
    object-fit:cover;
    border-radius:50%;
    border:3px solid var(--amarillo);
    box-shadow:
        0 0 0 4px rgba(253,184,39,.08),
        0 8px 22px rgba(0,0,0,.45);
}

.estadisticas-header h1{
    margin:6px 0 2px;
    color:var(--amarillo);
    font-size:clamp(22px,4vw,30px);
    font-weight:900;
}

.estadisticas-subtitulo{
    color:#bbb;
    font-size:11px;
    letter-spacing:1.3px;
}

.estadisticas-contenedor{
    position:relative;
    z-index:2;
    width:100%;
    max-width:1500px;
    margin:auto;
    padding:14px 11px 35px;
}

.estadisticas-superior{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:11px;
}

.estadisticas-categoria{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:8px 14px;
    border-radius:30px;
    background:
        linear-gradient(
            135deg,
            var(--amarillo-claro),
            var(--amarillo)
        );
    color:#050505;
    font-weight:900;
    font-size:12px;
}

.estadisticas-nav{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin-bottom:12px;
}

.est-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    min-height:39px;
    padding:8px 12px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:10px;
    background:
        linear-gradient(
            145deg,
            #252525,
            #101010
        );
    color:#fff;
    text-decoration:none;
    font-size:12px;
    font-weight:800;
    cursor:pointer;
}

.est-btn:hover,
.est-btn.activo{
    background:
        linear-gradient(
            135deg,
            var(--amarillo-claro),
            var(--amarillo)
        );
    color:#050505;
    border-color:var(--amarillo);
    transform:translateY(-1px);
}

.est-btn-excel{
    background:
        linear-gradient(
            135deg,
            #16733a,
            #11582c
        );
    color:#fff;
}

.est-btn-excel:hover{
    background:#168244;
    color:#fff;
    border-color:#28a85b;
}

.est-panel{
    margin-bottom:13px;
    padding:13px;
    border-radius:14px;
    border:1px solid rgba(253,184,39,.18);
    background:
        linear-gradient(
            145deg,
            rgba(32,32,32,.95),
            rgba(13,13,13,.97)
        );
    box-shadow:var(--sombra);
    backdrop-filter:blur(7px);
}

.est-panel h2{
    margin:0 0 10px;
    color:var(--amarillo);
    font-size:16px;
}

.est-tabla-wrap{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    border-radius:11px;
    border:1px solid #383838;
    background:#111;
}

.est-tabla{
    width:100%;
    min-width:1250px;
    border-collapse:separate;
    border-spacing:0;
    background:#151515 !important;
}

.est-tabla td{
    padding:8px 7px;
    font-size:11px;
}

.est-tabla input[type="number"]{
    width:54px;
    min-height:34px;
    padding:4px;
    text-align:center;
    background:#fff !important;
    color:#111 !important;
    border:1px solid #ccc !important;
    border-radius:6px;
}

.est-promedio{
    color:var(--amarillo) !important;
    font-weight:900;
}


/* =========================================================
   AVISOS
   ========================================================= */

.alerta,
.mensaje,
.aviso,
.exito,
.error,
.est-error,
.est-ok{
    padding:10px 13px;
    margin:10px 0;
    border-radius:10px;
    color:#fff;
}

.alerta,
.mensaje,
.aviso{
    border:1px solid rgba(253,184,39,.28);
    background:rgba(20,20,20,.96);
}

.exito,
.est-ok{
    border:1px solid rgba(37,211,102,.45);
    background:rgba(20,93,53,.94);
}

.error,
.est-error{
    border:1px solid rgba(200,60,60,.60);
    background:rgba(125,36,36,.94);
}


/* =========================================================
   INSTALAR APP / NOTIFICACIONES
   ========================================================= */

.instalar-app{
    display:none;
    margin-top:22px;
    padding:17px 15px;
    border-radius:var(--radio);
    text-align:center;
}

.instalar-app.visible{
    display:block;
}

.instalar-app-titulo,
.notificaciones-app-titulo{
    margin-bottom:5px;
    font-size:17px;
}

.instalar-app-texto,
.notificaciones-app-texto{
    margin:0 0 12px;
    color:#c5c5c5;
    font-size:12px;
    line-height:1.5;
}

.boton-instalar-app,
.boton-notificaciones{
    width:100%;
    min-height:45px;
    border:0;
    border-radius:11px;
    background:
        linear-gradient(
            135deg,
            var(--amarillo-claro),
            var(--amarillo),
            var(--amarillo-oscuro)
        );
    color:#050505;
    font-size:13px;
    font-weight:800;
    cursor:pointer;
}

.boton-instalar-app:hover,
.boton-notificaciones:hover{
    transform:translateY(-2px);
    box-shadow:var(--sombra-amarilla);
}

.instalar-ios-ayuda{
    display:none;
    margin-top:10px;
    padding:10px;
    border-radius:10px;
    background:rgba(255,255,255,.05);
    color:#d7d7d7;
    font-size:11px;
    line-height:1.5;
}

.notificaciones-app{
    margin-top:15px;
    padding:15px;
    border-radius:var(--radio);
    text-align:center;
}

.estado-notificaciones{
    margin-top:9px;
    min-height:17px;
    color:#d7d7d7;
    font-size:11px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer,
footer{
    position:relative;
    z-index:2;
    margin-top:32px;
    padding:17px 9px;
    border-top:1px solid rgba(255,255,255,.07);
    text-align:center;
    color:#888;
    font-size:11px;
}


/* =========================================================
   ELEMENTOS GENERALES
   ========================================================= */

h1,
h2,
h3{
    line-height:1.2;
}

hr{
    border:0;
    border-top:1px solid rgba(255,255,255,.10);
}

small,
.texto-secundario{
    color:#aaa;
}


/* =========================================================
   ANIMACIONES SUAVES
   ========================================================= */

@keyframes piratasEntrada{
    from{
        opacity:0;
        transform:translateY(8px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

.admin-box,
.cumpleanos-box,
.resumen,
.menu,
.instalar-app.visible,
.notificaciones-app{
    animation:
        piratasEntrada .38s ease both;
}


/* =========================================================
   RESPONSIVE TABLET
   ========================================================= */

@media(max-width:850px){

    .resumen{
        grid-template-columns:
            repeat(2,1fr);
    }

    .menu{
        grid-template-columns:
            repeat(2,1fr);
    }
}


/* =========================================================
   RESPONSIVE MÓVIL
   ========================================================= */

@media(max-width:768px){

    .piratas-fondo-global{
        object-fit:cover;
        object-position:center top;
    }

    table{
        font-size:12px;
    }

    th,
    td{
        padding:7px 6px;
    }

    .estadisticas-nav{
        display:grid;
        grid-template-columns:
            repeat(2,1fr);
    }

    .est-btn{
        width:100%;
    }

    .est-tabla{
        min-width:1180px;
    }
}


@media(max-width:550px){

    .header{
        padding:14px 10px 17px;
    }

    .logo{
        width:70px;
        height:70px;
    }

    .titulo{
        margin-top:6px;
        font-size:23px;
        letter-spacing:1px;
    }

    .subtitulo{
        font-size:10px;
    }

    .contenedor,
    .container{
        padding:
            13px 8px 30px;
    }

    .barra-superior{
        justify-content:center;
        margin-bottom:13px;
    }

    .categoria-activa,
    .cerrar-sesion{
        max-width:100%;
    }

    .resumen{
        gap:7px;
    }

    .card{
        padding:13px 6px;
    }

    .card-icon{
        font-size:22px;
    }

    .numero{
        font-size:20px;
    }

    .menu{
        grid-template-columns:1fr;
        gap:8px;
    }

    .menu .boton{
        min-height:53px;
    }

    .admin-box,
    .cumpleanos-box{
        padding:12px;
    }

    input,
    select,
    textarea,
    button{
        font-size:16px;
    }

    .estadisticas-header{
        padding:10px 7px;
    }

    .estadisticas-logo{
        width:58px;
        height:58px;
    }

    .estadisticas-contenedor{
        padding:10px 6px 27px;
    }

    .estadisticas-superior{
        justify-content:center;
    }

    .est-panel{
        padding:8px;
        border-radius:10px;
    }

    .est-formulario{
        display:block;
    }

    .est-formulario label{
        width:100%;
        margin-bottom:7px;
    }

    .est-formulario select,
    .est-formulario button{
        width:100%;
        min-width:0;
    }

    .est-jugador{
        min-width:165px;
    }
}


/* =========================================================
   ACCESIBILIDAD
   Si el dispositivo pide menos movimiento
   ========================================================= */

@media(prefers-reduced-motion:reduce){

    *,
    *::before,
    *::after{
        scroll-behavior:auto !important;
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        transition-duration:.01ms !important;
    }

    .piratas-fondo-global{
        display:none;
    }

    .piratas-fondo-global.f1{
        display:block;
        opacity:.50;
        transform:none;
    }
}


/* =========================================================
   FIN
   CONTROL PIRATAS - ESTILO OFICIAL UNIFICADO
   ========================================================= */
   /* =========================================================
   FOTOS OFICIALES DEL FONDO PIRATAS
   Compatibilidad con DIV f1 - f6
   ========================================================= */

.piratas-fondo-global{
    position:absolute;
    inset:0;

    width:100%;
    height:100%;

    background-repeat:no-repeat;
    background-position:center center;
    background-size:cover;

    opacity:0;

    transform:scale(1.03);

    animation:
        piratasSecuencia 48s
        infinite ease-in-out;

    will-change:
        opacity,
        transform;
}

.piratas-fondo-global.f1{
    background-image:
        url("/ControlPiratas/imagenes/fondos/images (1).jpg");
    animation-delay:0s;
}

.piratas-fondo-global.f2{
    background-image:
        url("/ControlPiratas/imagenes/fondos/images (2).jpg");
    animation-delay:8s;
}

.piratas-fondo-global.f3{
    background-image:
        url("/ControlPiratas/imagenes/fondos/images (3).jpg");
    animation-delay:16s;
}

.piratas-fondo-global.f4{
    background-image:
        url("/ControlPiratas/imagenes/fondos/images (4).jpg");
    animation-delay:24s;
}

.piratas-fondo-global.f5{
    background-image:
        url("/ControlPiratas/imagenes/fondos/images (5).jpg");
    animation-delay:32s;
}

.piratas-fondo-global.f6{
    background-image:
        url("/ControlPiratas/imagenes/fondos/images (6).jpg");
    animation-delay:40s;
}


/* MÓVIL */
@media(max-width:768px){

    .piratas-fondo-global{
        background-position:center center;
        background-size:cover;
    }
}


/* MENOS MOVIMIENTO */
@media(prefers-reduced-motion:reduce){

    .piratas-fondo-global{
        display:none;
        animation:none !important;
    }

    .piratas-fondo-global.f1{
        display:block;
        opacity:.50;
        transform:none;
    }
}