/* RESET DE LA PÁGINA */
.vias-page {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* SECCIÓN HERO CON GIF DE FONDO */
.vias-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;        
    background: url('../videos/vias_fondo.gif') no-repeat center center fixed; 
    background-size: cover;
    box-sizing: border-box;
    padding-top: 120px;
    padding-bottom: 60px;
}

/* CAPA OSCURA PARA QUE RESALTE EL TEXTO SOBRE EL GIF */
.vias-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 15, 0.75); 
    z-index: 1;
}

/* CONTENIDO (TEXTOS) */
.vias-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vias-titles {
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
}

.vias-titles h1 {
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
}

.vias-titles h2 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 0;
    font-family: 'Roboto', sans-serif;
}

.vias-text {
    width: 100%;
    text-align: justify; /* Textos justificados como en tu imagen original */
}

.vias-text p {
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 25px;
}

.vias-text p:last-child {
    margin-bottom: 0;
}

/* ANIMACIÓN REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .vias-titles h1 {
        font-size: 36px;
    }
    .vias-titles h2 {
        font-size: 18px;
    }
    .vias-text p {
        font-size: 15px;
    }
}

/* ==============================================================
   SECCIÓN DE PROYECTOS (ANTES Y DESPUÉS)
   ============================================================== */

.proyecto-seccion {
    width: 100%;
    background-color: #ffffff; 
    padding: 100px 0 60px 0; 
    display: flex;
    justify-content: center;
    align-items: center; 
    min-height: 100vh; 
    box-sizing: border-box;
}

.proyecto-container {
    width: 90%;
    max-width: 1000px; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Títulos del Proyecto (Se mantienen igual) */
.proyecto-header {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.proyecto-header h3 {
    color: #001A51; 
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: 'Roboto', sans-serif;
}

.proyecto-header h4 {
    color: #001A51;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 0;
    font-family: 'Roboto', sans-serif;
}

/* Contenedor del Slider */
.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9; 
    overflow: hidden;
    cursor: ew-resize; 
    border-radius: 12px; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); 
    max-height: 45vh; 
    max-width: calc(45vh * (16/9)); 
    margin-bottom: 30px; 
}

.slider-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

/* Imagen "Después" */
.slider-container .after {
    clip-path: inset(0 0 0 50%);
    transition: clip-path 0.15s ease-out;
}

/* Línea divisoria */
.slider-container .divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    border-radius: 2px;
    pointer-events: none;
    transition: left 0.15s ease-out; /* Transición suave */
}

/* Estado de carga */
.slider-container.loading .after {
    clip-path: inset(0 0 0 100%);
}

/* Información del Proyecto (Texto Inferior) */
.proyecto-info {
    width: 100%;
    text-align: left;
}

.proyecto-info p {
    color: #333333; /* Gris oscuro para mejor lectura */
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.proyecto-info p strong {
    color: #001A51; /* Resalta las etiquetas en azul corporativo */
    font-weight: 700;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .proyecto-header h3 {
        font-size: 24px;
    }
    .proyecto-header h4 {
        font-size: 18px;
    }
    .proyecto-info p {
        font-size: 14px;
    }
}