/* ===================================
   SECCIÓN HISTORIA — PUEBLO VIEJO
=================================== */

.pv-hitos-section {
    background: #faf8f6;
    padding-top: 70px;
    padding-bottom: 70px;
    overflow: hidden;
}

.pv-hitos-section > .vc_column_container > .vc_column-inner {
    padding-top: 0;
}

/* Introducción */

.pv-hitos-intro {
    max-width: 570px;
    padding-right: 35px;
}

.pv-eyebrow {
    display: block;
    margin-bottom: 16px;
    color: #31566d;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.pv-hitos-intro h2 {
    margin: 0 0 26px;
    color: #9d9264;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.8px;
    text-transform: uppercase;
}

.pv-hitos-intro p {
    max-width: 540px;
    margin: 0 0 22px;
    color: #4e4e4e;
    font-size: 16px;
    line-height: 1.75;
}

/* Contenedor de tarjetas */

.pv-hitos-wrapper {
    display: flex;
    gap: 9px;
    width: 100%;
    padding-bottom: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #a49a6e #e8e6e3;
}

.pv-hitos-wrapper::-webkit-scrollbar {
    height: 5px;
}

.pv-hitos-wrapper::-webkit-scrollbar-track {
    background: #e8e6e3;
}

.pv-hitos-wrapper::-webkit-scrollbar-thumb {
    background: #a49a6e;
    border-radius: 10px;
}

/* Tarjeta */

.pv-hito {
    position: relative;
    flex: 0 0 155px;
    min-height: 365px;
    padding: 26px 20px 20px;
    background: #eeecec;
    border-top: 2px solid #aaa078;
    overflow: hidden;
    scroll-snap-align: start;
    transition:
        background-color 0.35s ease,
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.pv-hito-numero {
    display: block;
    color: rgba(49, 86, 109, 0.10);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    transition: color 0.35s ease;
}

.pv-hito-contenido {
    position: absolute;
    right: 20px;
    bottom: 22px;
    left: 20px;
}


.pv-hito-anio {
    display: block;
    margin-bottom: 7px;
    color: #596400;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pv-hito h3 {
    margin: 0;
    color: #31566d;
    font-size: 10px !important;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.pv-hito p {
    max-height: 0;
    margin: 0;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.55;
    opacity: 0;
    overflow: hidden;
    transform: translateY(8px);
    transition:
        max-height 0.35s ease,
        margin 0.35s ease,
        opacity 0.35s ease,
        transform 0.35s ease;
}

/* Tarjeta activa y hover */

.pv-hito-destacado,
.pv-hito:hover {
    background: #596400;
    box-shadow: 0 16px 30px rgba(40, 49, 53, 0.13);
    transform: translateY(-5px);
}

.pv-hito-destacado .pv-hito-numero,
.pv-hito:hover .pv-hito-numero {
    color: #ffffff;
}

.pv-hito-destacado .pv-hito-anio,
.pv-hito-destacado h3,
.pv-hito:hover .pv-hito-anio,
.pv-hito:hover h3 {
    color: #ffffff;
}

.pv-hito-destacado p,
.pv-hito:hover p {
    max-height: 100px;
    margin-top: 14px;
    opacity: 1;
    transform: translateY(0);
}

/* Tablet */

@media (max-width: 1199px) {
    .pv-hito {
        flex-basis: 145px;
        min-height: 340px;
    }

    .pv-hitos-intro {
        padding-right: 10px;
    }
}

/* Móvil */

@media (max-width: 767px) {
    .pv-hitos-section {
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .pv-hitos-intro {
        max-width: none;
        padding-right: 0;
        padding-bottom: 28px;
    }

    .pv-hitos-intro h2 {
        font-size: 29px;
    }

    .pv-hitos-intro p {
        font-size: 15px;
        line-height: 1.65;
    }

    .pv-hitos-wrapper {
        width: calc(100vw - 30px);
        padding-right: 35px;
    }

    .pv-hito {
        flex-basis: 72vw;
        max-width: 270px;
        min-height: 330px;
    }

    /* Mostrar siempre la descripción en móvil */
    .pv-hito p {
        max-height: 100px;
        margin-top: 14px;
        color: #4e4e4e;
        opacity: 1;
        transform: none;
    }

    .pv-hito-destacado p {
        color: #ffffff;
    }
    
    .hito-h3 {
        font-size:10px;
    }
}