@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f1f5f9;
}

/* Contenedor A4 Proporcional */
.cv-sheet {
    width: 210mm;
    min-height: 297mm;
    background: white;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    transition: all 0.2s ease;
}

/* Overlay de Marca de Agua */
.watermark-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 50;
}

.watermark-text {
    transform: rotate(-35deg);
    font-size: 30px;
    font-weight: 900;
    color: rgba(220, 38, 38, 0.18);
    border: 5px dashed rgba(220, 38, 38, 0.25);
    padding: 18px 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    user-select: none;
}

/* PLANTILLA 1: CLÁSICA EXECUTIVE */
.tpl-clasica {
    font-family: 'Merriweather', serif;
    padding: 2.5rem;
    color: #1e293b;
}
.tpl-clasica .cv-header {
    border-bottom: 2px solid #1e3a8a;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}
.tpl-clasica .cv-title {
    color: #1e3a8a;
    font-size: 1.65rem;
    font-weight: 700;
    text-transform: uppercase;
}
.tpl-clasica .cv-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #1e3a8a;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 0.25rem;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

/* PLANTILLA 2: MODERNA MINIMALISTA */
.tpl-moderna {
    font-family: 'Inter', sans-serif;
    display: grid;
    grid-template-columns: 2.5fr 4.5fr;
    min-height: 297mm;
}
.tpl-moderna .sidebar {
    background-color: #0f172a;
    color: white;
    padding: 2rem 1.25rem;
}
.tpl-moderna .main-content {
    padding: 2rem 1.75rem;
    color: #334155;
}
.tpl-moderna .cv-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
}
.tpl-moderna .sidebar .cv-section-title {
    color: #38bdf8;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid #334155;
    padding-bottom: 0.25rem;
    margin-bottom: 0.75rem;
}
.tpl-moderna .main-content .cv-section-title {
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 2px solid #38bdf8;
    padding-bottom: 0.25rem;
    margin-bottom: 0.75rem;
}

/* PLANTILLA 3: CREATIVA ACCENTO */
.tpl-creativa {
    font-family: 'Inter', sans-serif;
    padding: 0;
    color: #1e293b;
}
.tpl-creativa .hero-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 2.5rem;
}
.tpl-creativa .body-content {
    padding: 2rem 2.5rem;
}
.tpl-creativa .cv-title {
    font-size: 1.75rem;
    font-weight: 900;
    text-transform: uppercase;
}
.tpl-creativa .cv-section-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #4f46e5;
    border-left: 4px solid #4f46e5;
    padding-left: 0.5rem;
    margin-bottom: 0.75rem;
}

/* ADAPTACIÓN RESPONSIVE / MOBILE APPS */
@media (max-width: 1023px) {
    .cv-sheet {
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        box-shadow: none !important;
    }

    .tpl-clasica, .tpl-creativa .body-content, .tpl-creativa .hero-header {
        padding: 1.25rem !important;
    }

    /* Adaptar la plantilla de 2 columnas para mobile */
    .tpl-moderna {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }

    .tpl-moderna .sidebar, .tpl-moderna .main-content {
        padding: 1.25rem !important;
    }

    .watermark-text {
        font-size: 18px !important;
        padding: 10px 15px !important;
    }
}