﻿/* ============================================================
   1. ESTILOS VISUALES (Lo que ves en pantalla)
   ============================================================ */
.border-txantrea {
    border: 2px solid #0055a4 !important;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #ffffff;
    overflow: hidden; /* Seguridad extra */
}

.titulo-seccion {
    color: #0055a4;
    font-weight: bold;
    text-transform: uppercase;
}

/* EL CUBO DE CONTROL: Limita la explicación para que no empuje el diseño */
.explicacion-fija {
    height: 60px !important; /* Altura fija para que no crezca */
    max-height: 60px !important;
    overflow: hidden !important; /* Corta el texto sobrante */
    font-size: 11px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Corta a las 4 líneas */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* ============================================================
   2. ESTILOS DE IMPRESIÓN (El "Golpe Final" para A4)
   ============================================================ */
@media print {
    @page {
        size: A4 portrait;
        margin: 0 !important;
    }

    /* Ocultar elementos innecesarios */
    nav, header, footer, .navbar, .sidebar, .btn, .d-print-none, form {
        display: none !important;
    }

    body {
        margin: 0 !important;
        padding: 0 !important;
        -webkit-print-color-adjust: exact !important;
    }

    /* Escudo compacto */
    .club-header img, .logo-entrenamiento, [class*="logo"] {
        height: 45px !important;
        width: auto !important;
    }

    /* Dibujo del ejercicio: tamaño garantizado */
    #ficha-profesional div[id^="dibujoP"] {
        height: 110px !important;
        width: 100% !important;
        border: 1px solid #0055a4 !important;
    }

    #ficha-profesional img {
        max-height: 105px !important;
    }

    /* Forzar que la descripción no crezca al imprimir */
    .explicacion-fija {
        height: 55px !important; /* Ligeramente más bajo en papel */
        font-size: 9px !important;
        margin: 0 !important;
    }

    .border-txantrea {
        margin-bottom: 2px !important;
        padding: 4px !important;
        page-break-inside: avoid !important;
    }

    p, span, li {
        font-size: 9px !important;
        line-height: 1 !important;
    }
}
