/* RESET Y FONDO FIJO */
.construccion-page {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    background: url('../images/fondo-construccion.png') no-repeat center center;
    background-attachment: fixed;
    background-size: cover;
}

/* CAPA OSCURA GENERAL */
.construccion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(60, 64, 72, 0.85);
    z-index: 1;
}

/* SECCIONES (Cada una ocupa mínimo una pantalla) */
.construccion-seccion {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 0 60px 0;
    box-sizing: border-box;
}

.construccion-container {
    width: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Alternancia de diseño */
.normal-layout {
    flex-direction: row;
}

.reverse-layout {
    flex-direction: row-reverse;
}

/* IMÁGENES */
.construccion-imagen {
    flex: 1.2;
}

.construccion-imagen a {
    display: block;
    transition: transform 0.3s ease;
}

.construccion-imagen a:hover {
    transform: scale(1.03); /* Ligero efecto al pasar el mouse por ser un enlace */
}

.construccion-imagen img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    display: block;
    object-fit: cover;
}

/* TEXTOS */
.construccion-texto {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.titulo-principal {
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 40px;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
}

.construccion-texto h2 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
}

.construccion-texto p {
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 0;
    text-align: justify;
}

/* Centrar textos en diseño normal y alinear a la izquierda en reverso */
.normal-layout .construccion-texto h2,
.normal-layout .construccion-texto p {
    text-align: center;
}

.reverse-layout .construccion-texto h2,
.reverse-layout .construccion-texto p {
    text-align: center;
}

/* ANIMACIÓN REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media screen and (max-width: 900px) {
    .construccion-container,
    .reverse-layout {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .titulo-principal {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin-bottom: 30px;
    }
}