﻿:root {
    --azul-txantrea: #0055a4;
    --azul-oscuro: #003366;
    --azul-claro: #e7f1ff;
    --txantrea-white: #ffffff;
    --txantrea-gray: #f0f2f5;
}
body {
    background-color: var(--txantrea-gray);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: #333;
    margin: 0;
}

.content {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 25px;
    min-height: 100vh;
    transition: all 0.3s;
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--azul-txantrea);
}

.btn-primary, .btn-txantrea {
    background-color: var(--azul-txantrea) !important;
    border-color: var(--azul-oscuro) !important;
    color: white !important;
}

    .btn-primary:hover, .btn-txantrea:hover {
        background-color: var(--azul-oscuro) !important;
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

.sidebar {
    background-color: var(--azul-oscuro);
    color: white;
    padding: 20px;
    width: 260px;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
}

.table thead, .calendar-table th {
    background-color: var(--azul-txantrea) !important;
    color: white !important;
    text-transform: uppercase;
}
.tipo-etiqueta, [class^="tipo-"] {
    padding: 2px 6px;
    border-radius: 4px;
    display: block;
    margin-bottom: 3px;
    font-size: 11px;
    font-weight: 600;
}

/* Paleta completa */
.c-juegos {
    background: #00bcd4;
    color: white;
}

.c-finalizaciones {
    background: #9c27b0;
    color: white;
}

.c-fuerza {
    background: #f44336;
    color: white;
}

.c-resistencia {
    background: #ff9800;
    color: white;
}

.c-velocidad {
    background: #ff5722;
    color: white;
}

.c-estrategia {
    background: #795548;
    color: white;
}

.c-acciones {
    background: #009688;
    color: white;
}

.c-tecnica-ind {
    background: #2196f3;
    color: white;
}

.c-tecnica-col {
    background: #3f51b5;
    color: white;
}

.c-juego-red {
    background: #4caf50;
    color: white;
}

.c-partido-red {
    background: #2e7d32;
    color: white;
}

.c-partido-apl {
    background: #8bc34a;
    color: black;
}

.c-motricidad {
    background: #ffeb3b;
    color: black;
}

.c-competicion {
    background: #002b5c;
    color: white;
    border: 2px solid #00c3ff;
}
/* ============================
   SLIDER DE OCUPACIÓN (IMÁGENES)
   ============================ */

.slider {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 2 / 1;
    min-height: 260px; /* ← ESTA LÍNEA ES OBLIGATORIA */
    margin: auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 4px solid white;
}

    .slider img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        transition: opacity 1s ease;
    }

        .slider img.activa {
            opacity: 1;
        }

.overlay-equipo {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 6px 10px;
    background: rgba(0,0,0,0.55);
    color: white;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    z-index: 10;
}
@media print {
    /* Fuerza el formato horizontal (Landscape) */
    @page {
        size: landscape;
        margin: 5mm;
    }

    /* Oculta los elementos que rompen la impresión */
    .sidebar, .btn, .overlay-equipo {
        display: none !important;
    }

    /* Asegura que el contenido ocupe todo el ancho */
    .content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    /* Tabla compacta y forzada a horizontal */
    table {
        width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
    }

    th, td {
        border: 1px solid #000 !important;
        padding: 2px !important;
        font-size: 6pt !important; /* Tamaño pequeño para que quepa todo */
        text-align: center !important;
        word-wrap: break-word;
        -webkit-print-color-adjust: exact !important; /* Mantiene los colores verde/rojo */
        print-color-adjust: exact !important;
    }
}