.seccion-estructura-piso {
    position: relative;
    width: 100%;
    height: 400vh;
    background: #ffffff;
    color: #202020;
}


.contenedor-estructura-piso {
    position: sticky;
    top: 0;
    width: 100%;
    height: 80vh;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
}


/* =========================================
   VISUAL DEL PISO
========================================= */

.visual-estructura-piso {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%;
    perspective: 1200px;
}


.piso-explotado {
    position: relative;

    width: clamp(300px, 43vw, 680px);
    height: clamp(190px, 28vw, 390px);

    transform-style: preserve-3d;

    transform:
        rotateX(58deg)
        rotateZ(-8deg)
        rotateY(-8deg);
}


/* =========================================
   CAPAS
========================================= */

.capa-piso {

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    border-radius: 3px;

    overflow: hidden;

    transform-style: preserve-3d;

    transition:
        transform 1s cubic-bezier(.16, 1, .3, 1);

    box-shadow:
        0 18px 35px rgba(0, 0, 0, .12);
}


/* =========================================
   IMAGEN DE CADA CAPA
========================================= */

.capa-piso img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    user-select: none;

    pointer-events: none;
}


/* =========================================
   CAPA MADERA
========================================= */

.capa-madera {

    z-index: 4;

    box-shadow:
        0 20px 35px rgba(0,0,0,.18);
}


/* =========================================
   NÚCLEO
========================================= */

.capa-nucleo {

    z-index: 3;

    transform: translateZ(-25px);
}


/* =========================================
   ESTABILIZADORA
========================================= */

.capa-estabilizadora {

    z-index: 2;

    transform: translateZ(-50px);
}


/* =========================================
   CONTRACARA
========================================= */

.capa-contracara {

    z-index: 1;

    transform: translateZ(-75px);
}


/* =========================================
   NÚCLEO
========================================= */

.capa-nucleo {

    z-index: 3;

    background:
        repeating-linear-gradient(
            90deg,
            #66513d 0px,
            #806448 22px,
            #574332 45px
        );

    transform: translateZ(-25px);
}


/* =========================================
   ESTABILIZADORA
========================================= */

.capa-estabilizadora {

    z-index: 2;

    background:
        repeating-linear-gradient(
            90deg,
            #8b7762 0px,
            #a08b75 30px,
            #75614e 60px
        );

    transform: translateZ(-50px);
}


/* =========================================
   CONTRACARA
========================================= */

.capa-contracara {

    z-index: 1;

    background:
        repeating-linear-gradient(
            90deg,
            #4b3e34 0px,
            #5d4d40 35px,
            #3d322a 70px
        );

    transform: translateZ(-75px);
}


/* =========================================
   LÍNEA CONECTORA
========================================= */

.conector-piso {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: visible;
}

.linea-conectora {
    fill: none;
    stroke: #202020;
    stroke-width: 1;
    stroke-dasharray: 4 5;
    opacity: .35;
}

.punto-conector {
    fill: #202020;
    opacity: .5;
}


/* =========================================
   INFORMACIÓN
========================================= */

.informacion-estructura-piso {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(20px, 5vw, 50px);
    width: calc(40% - clamp(40px, 10vw, 100px));
}


/* =========================================
   NÚMERO
========================================= */

.numero-estructura-piso {

    position: absolute;

    top: 60px;
    left: clamp(30px, 7vw, 120px);

    color: #202020;

    font-size: 11px;
    font-weight: 500;

    letter-spacing: 3px;

    opacity: .45;
}


/* =========================================
   CONTENIDO
========================================= */

.contenido-capa {

    position: absolute;

    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity .6s ease,
        transform .8s cubic-bezier(.16, 1, .3, 1);

    pointer-events: none;
}


.contenido-capa.activo {

    opacity: 1;

    transform: translateY(0);

    pointer-events: auto;
}


/* =========================================
   ETIQUETA
========================================= */

.etiqueta-estructura {

    display: block;

    margin-bottom: 18px;

    color: #202020;

    font-size: 10px;
    font-weight: 500;

    letter-spacing: 4px;

    opacity: .45;
}


/* =========================================
   TÍTULO
========================================= */

.contenido-capa h2 {

    margin: 0 0 25px;

    color: #202020;

    font-size: clamp(40px, 4vw, 70px);
    font-weight: 400;

    line-height: .95;

    letter-spacing: -2px;
}


/* =========================================
   DESCRIPCIÓN
========================================= */

.contenido-capa p {

    max-width: 470px;

    margin: 0;

    color: #666666;

    font-size: 16px;

    line-height: 1.75;
}


/* =========================================
   INDICADOR
========================================= */

.indicador-scroll {

    position: absolute;

    bottom: 50px;
    left: clamp(30px, 7vw, 120px);

    display: flex;
    align-items: center;
    gap: 15px;

    color: #202020;

    font-size: 9px;
    letter-spacing: 3px;

    opacity: .4;
}


.indicador-scroll span {

    width: 35px;
    height: 1px;

    background: #202020;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 800px) {

    .seccion-estructura-piso {
        height: 400vh;
    }


    .contenedor-estructura-piso {

        display: flex;
        flex-direction: column;

        justify-content: center;
    }


    .visual-estructura-piso {
        justify-content: center;
        height: 40vh;
        width: 100%;
        flex-shrink: 0;
        order: 2;
    }


    .piso-explotado {

        width: 75vw;
        height: 45vw;
    }


    .etiqueta-estructura{
        text-align: center;
    }
    .informacion-estructura-piso {
        width: calc(100% - clamp(40px, 10vw, 100px));
        height: 200px;
        justify-content: center;
        order: 1;
    }


    .numero-estructura-piso {
        width: 100%;
        justify-content: center;
        text-align: center;
        top: 20px;
        left: 0px;
    }


    .contenido-capa h2 {
        text-align: center;
        font-size: 42px;
        letter-spacing: -1px;
    }


    .contenido-capa p {
        text-align: center;
        font-size: 14px;
        line-height: 1.6;
    }


    .indicador-scroll {
        width: 100%;
        text-align: center;
        justify-content: center;
        bottom: 25px;
        left: 0px;
    }


    .conector-piso {
        display: none;
    }

}