/* ==================== ENCABEZADO ANIMADO ==================== */

/* Contenedor principal */
.heading-cv-title {
    position: relative;
    overflow: hidden;
    min-height: 75vh;
    --hero-bg: url("/static/img/claudio_team.webp");
    background-image: none;
}

/* Overlay negro opaco tras animación */
.heading-cv-title::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--degraded-bg-color);
    z-index: 1;
}

/* Imagen animada inicial */
.heading-cv-title::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    animation: heroBgReveal 0.5s ease-out forwards;
}

/* Contenido siempre encima */
.heading-cv-title>* {
    position: relative;
    z-index: 2;
}

/* Texto de entra después del fondo */
.heading-cv-title .generic-title-page {
    opacity: 0;
    transform: translateY(10px);
    animation: heroTextIn 0.75s ease-out forwards;
    animation-delay: 0.5s;
    margin: 0 1.5rem;
}

/* Keyframes */
@keyframes heroBgReveal {
    0% {
        opacity: 0;
        filter: brightness(0.25) saturate(0.85);
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        filter: brightness(1) saturate(1);
        transform: scale(1);
    }
}

@keyframes heroTextIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== CONTENEDOR PAR BOTONES CON DESCARGA ==================== */

.cv-downloads-row {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .cv-downloads-row {
        flex-direction: column;
        gap: 2rem;
    }
}

/* ==================== CV TIPO HOJA PDF ==================== */

/* Bloque que contine el paper */
.cv-paper-wrap {
    display: flex;
    justify-content: center;
}

/* Paper */
.cv-paper {
    max-width: 1250px;
    padding: 2.2rem 2.4rem;
    background: var(--color-text-tertiary);
    border-radius: 0px;
    box-shadow: var(--degraded-box_shadow-card);
    color: var(--color-bg-footer-gray);
}

/* Header */
.cv-head {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 1.50rem;
    margin-bottom: 1.4rem;
    align-items: center;
}

.cv-head-photo {
    width: auto;
    height: auto;
    overflow: hidden;
}

.cv-head-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cv-head-main {
    text-align: center;
}

.cv-name {
    font-size: var(--font-size-900);
    font-weight: 700;
    text-align: center;
}

.cv-role {
    font-size: var(--font-size-400);
    font-weight: 700;
    color: var(--color-accent-aqua-secondary);
    margin-bottom: 0;
}

.cv-contact {
    font-size: var(--font-size-200);
    color: var(--color-bg-footer-gray);
    margin-bottom: 2rem;
}

.cv-contact a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cv-contact-webside {
    font-weight: 700;
    color: var(--color-accent-aqua-secondary) !important;
    text-decoration: none;
}

.cv-underline {
    font-size: var(--font-size-200);
    color: var(--color-bg-footer-gray);
    margin-bottom: 2rem;
}

.cv-underline a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cv-summary {
    margin: 0;
    font-size: var(--font-size-200);
    text-align: justify;
    color: var(--color-bg-footer-gray);
}

/* Secciones y títulos */
.cv-section {
    margin-top: 1.35rem;
}

.cv-section-title {
    text-align: left;
    font-size: var(--font-size-300);
    font-weight: 700;
    color: var(--color-accent-aqua-secondary);
    padding-bottom: 0.3rem;
    border-bottom: 2px solid var(--color-accent-aqua-secondary);
    ;
}

/* Bloques */
.cv-block {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
}

.cv-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: baseline;
}

.cv-company-role {
    font-weight: 700;
    font-size: var(--font-size-200);
    margin-bottom: 0.1rem;
}

.cv-location-dates {
    text-align: left;
    font-size: var(--font-size-200);
    font-style: italic;
    color: var(--color-bg-footer-gray);
}

.cv-bullets {
    margin: 0 0 0 2.5rem;
    padding: 0;
    font-size: var(--font-size-200);
    text-align: justify;
}

.cv-bullets li {
    margin: 0.28rem 0;
}

.cv-bullets--compact li {
    margin: 0.18rem 0;
}

/* Hover por bloque */
.cv-highlight {
    border: 1px solid transparent;
    transition: background var(--duration-1000) ease, border-color var(--duration-1000) ease, transform var(--duration-1000) ease, box-shadow var(--duration-1000) ease;
}

.cv-highlight:hover {
    transform: translateY(-2px);
}

/* Marcador lateral */
.cv-highlight:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2), inset 6px 0 0 var(--color-accent-aqua-secondary);
}

/* Mobile */
@media (max-width: 1050px) {
    .cv-paper {
        padding: 1.50rem 1.50rem;
    }

    .cv-head {
        grid-template-columns: 1fr;
    }

    .cv-head-photo {
        width: auto;
        height: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .cv-head-photo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .cv-name {
        font-size: var(--font-size-900);
    }

    .cv-row {
        grid-template-columns: 1fr;
    }

    cv-location-dates {
        text-align: left;
    }

    .cv-bullets {
        margin-left: 1.25rem;
    }
}