/* ==========================================
   RESET Y CONFIGURACIÓN BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@page {
    size: A4 landscape;
    margin: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #0a0a0a;
    color: #eee;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* ==========================================
   ESTRUCTURA DE PÁGINA
   ========================================== */
.page {
    width: 297mm;
    height: 210mm;
    padding: 25mm;
    overflow: hidden;
    page-break-after: always;
    background: #0a0a0a;
}

.page:last-child {
    page-break-after: auto;
}

/* ==========================================
   PÁGINA 1: PORTADA
   ========================================== */
.cover {
    background-image: url('img/quinteto-bataraz-1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 40mm;
}

.header {
    background: rgba(10, 10, 10, 0.85);
    padding: 30px 40px;
    border-left: 4px solid #8a6a4b;
}

.header h1 {
    font-family: Arial, sans-serif;
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.header p {
    font-family: Arial, sans-serif;
    font-size: 1.2rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* ==========================================
   TÍTULOS GENERALES
   ========================================== */
.section-title {
    font-family: Arial, sans-serif;
    color: #8a6a4b;
    border-bottom: 1px solid #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    padding-bottom: 8px;
    font-size: 1.8rem;
}

/* ==========================================
   TIPOGRAFÍA GENERAL
   ========================================== */
p {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

strong {
    font-family: Arial, sans-serif;
}

/* ==========================================
   PRINT OPTIMIZATION
   ========================================== */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        background: #0a0a0a !important;
    }

    .page {
        background: #0a0a0a !important;
        height: 210mm !important;
        overflow: hidden !important;
    }

    .cover {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    strong,
    cite {
        font-family: Arial, sans-serif !important;
    }
}

/* ==========================================
   SCREEN PREVIEW
   ========================================== */
@media screen {
    body {
        background: #1a1a1a;
        padding: 20px;
    }

    .page {
        margin: 0 auto 30px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }
}