:root {
    --primary-blue: #2c3e50;    /* Azul oscuro profesional */
    --light-blue-bg: #f4f7f9;   /* Fondo azulado muy claro y limpio */
    --accent-yellow: #ffff00;   /* El amarillo de atención */
    --border-color: #000000;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--light-blue-bg);
    font-family: 'Segoe UI', Arial, sans-serif; /* Fuente limpia */
    margin: 0;
    padding: 0;
}

/* UI Control con tono azulado */
.ui-control {
    background-color: var(--primary-blue);
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.btn {
    background: white;
    border: 2px solid var(--border-color);
    padding: 8px 20px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--primary-blue);
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: var(--accent-yellow);
    transform: translateY(-2px);
}

/* Estructura A4 */
.page-a4 {
    width: 210mm;
    height: 297mm;
    background: #ffffff;
    margin: 20px auto;
    padding: 15mm;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
}

/* Cabecera Limpia */
.header-fichas {
    border-bottom: 4px solid var(--primary-blue);
    color: var(--primary-blue);
    font-size: 28px;
    font-weight: 800;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.instruccion-fija {
    background-color: var(--accent-yellow);
    border: 2px solid var(--border-color);
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* REGLAS DE IMPRESIÓN */
@page {
    size: A4;
    margin: 0; /* Elimina cabeceras/pies automáticos del navegador */
}

@media print {
    body { background: white !important; }
    .ui-control { display: none !important; }
    .page-a4 {
        margin: 0 auto !important;
        box-shadow: none !important;
        width: 210mm !important;
        height: 297mm !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
/* Recuadro de información para el terapeuta */
.info-terapeuta {
    width: 210mm; /* Mismo ancho que la hoja A4 */
    margin: 20px auto 120px auto; /* Separación de la hoja y espacio para el menú */
    background: #333;
    border: 2px solid #555;
    border-radius: 12px;
    padding: 20px;
    color: #ccc;
    font-size: 0.95rem;
    box-sizing: border-box;
    transform-origin: top center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.info-terapeuta h4 {
    color: #ffff00;
    margin-top: 0;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-bottom: 1px solid #555;
    padding-bottom: 8px;
}

.info-terapeuta p {
    line-height: 1.4;
    margin-bottom: 0;
}

/* Ocultar en la impresión */
@media print {
    .info-terapeuta {
        display: none !important;
    }
}
