/* assets/css/style.css - VERSIÓN FINAL */

:root {
    --primary-blue: #005B9F;
    --dark-blue: #002F56;
    --accent-orange: #FF7B00;
    --teal: #14b8a6;
    --navy: #0f172a;
    --bg-light: #f4f7f6;
    --text-dark: #333333;
    --text-light: #ffffff;
    --card-bg: #ffffff;
    --border-color: #dddddd;
    --et-green: #00ff88;
    /* Color ET Labs */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- UTILIDADES --- */
.text-center {
    text-align: center;
}

.w-100 {
    width: 100%;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.d-none {
    display: none;
}

.d-flex {
    display: flex;
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-10 {
    gap: 10px;
}

/* --- HEADER --- */
.main-header {
    background-color: var(--primary-blue);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.logo-header {
    height: 50px;
    width: auto;
}

/* Menú Usuario (Dropdown) */
.user-menu-container {
    position: relative;
    display: inline-block;
}

.user-trigger {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 1000;
    margin-top: 5px;
    overflow: hidden;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.dropdown-content a:last-child {
    border-bottom: none;
    color: #d9534f;
    font-weight: bold;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
}

.show {
    display: block;
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--dark-blue);
    color: var(--text-light);
    text-align: center;
    padding: 25px 20px;
    margin-top: auto;
}

.logo-footer {
    height: 40px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    margin: 0 10px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

/* --- FORMS & UI GLOBAL --- */
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--accent-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.2);
}

/* Quitar flechitas input number */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary:hover {
    background-color: #d9531e;
    transform: translateY(-2px);
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.alert-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.alert-info {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* --- LOGIN / REGISTRO (Auth) --- */
.auth-body {
    background: #002F56;
    margin: 0;
    height: 100vh;
    height: 100dvh; /* Soporte para pantallas modernas, evita que las barras del SO lo pisen */
    overflow: hidden;
}

.pantalla-completa {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 8%;
    box-sizing: border-box;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    z-index: 1;
}

.auth-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 400px;
    max-height: 70vh; /* Lo bajamos a 80 para dejar un margen seguro arriba y abajo */
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    padding: 30px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform: translateY(115px);
}

.auth-wrapper::-webkit-scrollbar {
    width: 5px;
}

.auth-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

@media (max-width: 768px) {
    .auth-body {
        background: #f4f7f6;
        height: auto;
        overflow: auto;
    }
    
    .pantalla-completa {
        flex-direction: column;
        justify-content: flex-start;
        padding: 0;
        height: auto;
    }
    
    .hero-img {
        position: relative;
        width: 100%;
        height: auto;
        max-height: 40vh;
        object-fit: contain;
        object-position: center;
        background: #000;
        display: block;
    }
    
    .auth-wrapper {
        margin: 30px auto 50px auto;
        width: 90%;
        max-height: none;
        overflow-y: visible;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
}

/* --- DASHBOARD ESPECÍFICO --- */
.dashboard-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Grid de estadísticas superior */
.stats-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.stat-card {
    flex: 1;
    min-width: 280px;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Tarjeta Azul (Rendimiento) */
.card-blue {
    background: var(--primary-blue);
    color: white;
    text-align: center;
}

.score-big {
    font-size: 3rem;
    margin: 10px 0;
    font-weight: 800;
}

.score-big small {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.8;
}

.rank-text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

/* Tarjeta Blanca (Partidos Hoy) */
.card-white {
    background: white;
    display: flex;
    flex-direction: column;
}

.card-title {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 8px;
    font-weight: 700;
}

.matches-scroll {
    flex: 1;
    overflow-y: auto;
    max-height: 200px;
    padding-right: 5px;
}

/* Lista de Partidos (General) */
.match-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
    font-size: 0.9rem;
}

.match-time {
    color: #888;
    font-weight: bold;
    font-size: 0.8rem;
    width: 45px;
}

.score-badge {
    background: #f4f7f6;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: bold;
    color: var(--primary-blue);
    border: 1px solid #ddd;
    min-width: 50px;
    text-align: center;
    font-size: 0.85rem;
    margin: 0 5px;
}

/* Banderas */
.flag-icon {
    width: 26px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    vertical-align: middle;
    margin: 0 6px;
}

/* Wrapper inteligente para equipos: Permite truncar texto en Flexbox */
.team-flex {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.team-flex.right {
    justify-content: flex-end;
}

.team-flex.left {
    justify-content: flex-start;
}

/* El nombre del equipo que se corta con "..." */
.team-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark-blue);
    display: block;
}

/* Ajuste responsive para celulares muy chicos */
@media (max-width: 400px) {
    .team-truncate {
        font-size: 0.85rem;
    }

    .grupo-card {
        padding: 15px 10px;
    }
}

/* Grupo de Partidos (Prode) */
.grupo-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.grupo-title {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Fila de Partido Input */
.match-row {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.match-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.match-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.input-gol {
    width: 45px;
    height: 40px;
    text-align: center;
    padding: 0;
    font-weight: bold;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
}

.input-gol:focus {
    border-color: var(--accent-orange);
    background: #fff;
}

/* Bloqueado */
.locked-info {
    background: #f1f5f9;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
    margin-top: 10px;
    font-weight: 500;
}

/* --- ADMIN PANEL --- */
.panel {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 20px;
}

.panel-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
}

.panel-body {
    padding: 20px;
}

.table-admin {
    width: 100%;
    border-collapse: collapse;
}

.table-admin th {
    text-align: left;
    background: #f9fafb;
    padding: 12px;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
}

.table-admin td {
    padding: 15px 12px;
    border-bottom: 1px solid #f1f5f9;
}

.btn-delete {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-add-row {
    background: var(--navy);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
}

.preview-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* =========================================
   ET LABS BRANDING - MODAL & FOOTER
   ========================================= */
.et-credit {
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.et-credit strong {
    color: var(--et-green);
}

.et-credit:hover {
    opacity: 0.8;
}

.et-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.et-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.et-card {
    background: #111;
    border-radius: 20px;
    width: 90%;
    max-width: 350px;
    position: relative;
    padding: 2px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.2);
}

.et-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--et-green), transparent, var(--et-green), transparent);
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.et-content {
    background: #1a1a1a;
    border-radius: 18px;
    padding: 30px;
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.et-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.et-close:hover {
    color: white;
}

.et-logo {
    width: 140px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.et-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--et-green);
    margin-bottom: 20px;
}

.et-text p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ccc;
    margin-bottom: 25px;
}

.et-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.et-link {
    background: #222;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 1px solid #333;
    transition: all 0.3s;
}

.et-link:hover {
    background: #333;
    border-color: var(--et-green);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.et-footer {
    font-size: 0.7rem;
    color: #555;
    margin-top: 25px;
}

/* --- FILTROS (TABS) --- */
.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    /* Scroll horizontal en celular si hace falta */
    padding-bottom: 5px;
}

.filter-btn {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-btn:hover {
    background: #f0f0f0;
}

.filter-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 91, 159, 0.3);
}

/* --- TENDENCIA TEXTO --- */
.trend-text {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    margin-top: 8px;
    background: #f8fafc;
    padding: 4px;
    border-radius: 4px;
    border: 1px dashed #e2e8f0;
}

.trend-text strong {
    color: var(--primary-blue);
}

/* --- BARRA DE CONTROL (Filtros + Acciones) --- */
.control-bar {
    display: flex;
    flex-wrap: wrap;
    /* Permite que bajen si no hay espacio */
    align-items: center;
    /* Alineación vertical CENTRADA perfecta */
    gap: 15px;
    margin-bottom: 25px;
    background: #fff;
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Contenedor de Filtros (Izquierda) */
.filter-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    /* Scroll si no entran */
    align-items: center;
    scrollbar-width: none;
    /* Ocultar scrollbar feo */
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

/* Botones de Filtro */
.filter-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: var(--text-dark);
    padding: 0 16px;

    /* FUERZA LA ALINEACIÓN */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-btn:hover {
    background: #e2e6ea;
}

.filter-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: 0 2px 5px rgba(0, 91, 159, 0.3);
}

/* Grupo de Acciones (Derecha) */
.action-group {
    display: flex;
    gap: 10px;
    margin-left: auto;
    /* Empuja el grupo a la derecha en escritorio */
    align-items: center;
}

/* Botones de Icono (Azar / Borrar) */
.btn-icon {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;

    /* FUERZA LA ALINEACIÓN */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.2s;
    position: relative;
    padding: 0;
}

.btn-icon:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
    transform: translateY(-2px);
}

/* Color especial para el dado al pasar el mouse */
#btnRandom:hover {
    background: #dbeafe;
    color: var(--primary-blue);
    border-color: #93c5fd;
}

/* Tooltips */
.tooltip-btn::before {
    content: attr(data-title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.tooltip-btn::after {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
}

.tooltip-btn:hover::before,
.tooltip-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* RESPONSIVE MOBILE */
@media (max-width: 600px) {
    .control-bar {
        padding: 12px;
        gap: 12px;
        justify-content: center;
        /* Centrar elementos si bajan */
    }

    .filter-tabs {
        width: 100%;
        justify-content: space-between;
        /* Botones estirados */
    }

    .filter-btn {
        flex: 1;
        /* Ocupan todo el ancho disponible */
        padding: 0 5px;
        font-size: 0.85rem;
        border-radius: 8px;
        /* Menos redondo en móvil para encajar mejor */
    }

    .action-group {
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
        /* Alineados a la DERECHA */
        border-top: 1px solid #f0f0f0;
        /* Línea divisoria sutil */
        padding-top: 10px;
    }

    /* El tooltip en móvil a veces molesta, lo ajustamos para que no se salga */
    .tooltip-btn::before {
        left: auto;
        right: 0;
        transform: none;
        /* Alinear a la derecha del botón */
    }

    .tooltip-btn::after {
        left: auto;
        right: 15px;
        transform: none;
    }
}


/* --- ESTILOS DE IMPRESIÓN (A4 Perfecto) --- */
#printable-area { display: none; }

@media print {
    /* 1. Ocultamos explícitamente los componentes de la web */
    header, footer, .main-header, .main-footer, .dashboard-container, 
    .stats-grid, .alert, #notificacion-js, .control-bar, 
    .grupo-card, #prodeForm, .et-credit, nav, aside {
        display: none !important;
    }

    /* 2. Reseteo total de la hoja */
    @page { 
        size: A4; 
        margin: 0; 
    }
    
    html, body {
        width: 210mm;
        height: 297mm;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        overflow: hidden;
    }

    /* 3. El contenedor de impresión DEBE estar visible */
    #printable-area {
        display: flex !important;
        flex-direction: column;
        width: 210mm;
        height: 297mm;
        padding: 5mm; /* Tu margen de 5mm */
        box-sizing: border-box;
        background: white !important;
        visibility: visible !important;
    }

    /* HEADER IMPRESIÓN */
    .print-header {
        display: flex; align-items: center; justify-content: space-between;
        border-bottom: 2px solid #002F56;
        padding-bottom: 5px; margin-bottom: 5px; flex-shrink: 0;
    }
    .print-logo { height: 40px; width: auto; }
    .print-info { text-align: right; }
    .print-title { font-size: 14px; font-weight: 900; text-transform: uppercase; margin: 0; color: #002F56; }
    .print-subtitle { font-size: 9px; font-style: italic; margin: 0; color: #444; }
    .print-user { font-size: 10px; font-weight: bold; background: #f0f4f8; padding: 2px 6px; border-radius: 4px; border: 1px solid #dcebf7; display: inline-block; margin-top: 2px; }

    /* GRILLA AUTO-AJUSTABLE */
    .print-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 6px;
        flex-grow: 1; /* Esto hace que se estire para llenar la hoja */
        margin-bottom: 5px;
    }
    
    .print-group {
        border: 1px solid #ccc; border-radius: 4px; padding: 3px;
        background: #fff; display: flex; flex-direction: column;
        justify-content: space-evenly; overflow: hidden;
    }
    
    .print-group-title {
        font-size: 8px; font-weight: bold; text-align: center;
        background: #eef2f6; color: #002F56; padding: 1px; border-radius: 2px;
        text-transform: uppercase; border: 1px solid #dce5ee; margin-bottom: 2px;
    }
    
    .print-row {
        display: flex; justify-content: space-between; align-items: center;
        border-bottom: 1px dotted #e0e0e0; padding: 1px 0;
    }
    .print-row:last-child { border-bottom: none; }
    
    .print-team { width: 42%; display: flex; align-items: center; gap: 2px; min-width: 0; }
    .print-team.right { justify-content: flex-end; text-align: right; }
    .print-team.left { justify-content: flex-start; text-align: left; }
    
    .print-team span { 
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
        font-size: 8px; font-weight: 600;
    }
    
    .print-team img.flag-icon { width: 10px !important; height: auto !important; margin: 0 2px !important; flex-shrink: 0; }
    .print-score { width: 16%; text-align: center; font-weight: bold; font-size: 9px; background: #f5f5f5; border-radius: 3px; }

    /* SECCIÓN ORO */
    .print-gold-section {
        border: 1px solid #d4af37; border-radius: 6px; background: #fffdf5;
        padding: 5px; display: flex; justify-content: space-around;
        align-items: center; flex-shrink: 0; margin-bottom: 5px;
    }
    .gold-card { text-align: center; flex: 1; border-right: 1px solid #eec95e; }
    .gold-card:last-child { border-right: none; }
    .gold-label { font-size: 7px; text-transform: uppercase; color: #8a6d3b; font-weight: bold; display: block; }
    .gold-value { font-size: 10px; font-weight: 800; color: #000; text-transform: uppercase; }

/* FOOTER BEIGE DE IMPRESIÓN */
    .print-brand-footer {
        background-color: #f9f4e8 !important; /* Beige claro */
        padding: 8px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
        border-top: 1px solid #e0d8c0;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        height: 45px; /* Altura fija para que no desborde */
    }

    .brand-left {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-slogan {
        font-size: 10px; /* <--- AQUÍ CAMBIÁS EL TAMAÑO DEL SLOGAN */
        color: #666;
        font-weight: 500;
        font-style: italic;
        margin-top: 2px;
    }

    .brand-right {
        text-align: right;
        font-size: 8px; /* Tamaño de los datos de contacto */
        line-height: 1.3;
        color: #444;
    }

    .brand-contact-item {
        display: block;
        white-space: nowrap;
    }