/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.tabs-autos-seccion-wrapper {
    position: relative;
    width: 100%;
}

.tabs-autos-seccion {
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 60px 20px 120px 20px;
    position: relative;
    
/*    background-color: rgba(0, 0, 0, 0.4); 
    background-blend-mode: overlay; */
    
}

/* TÍTULO */
.tabs-autos-seccion .titulo-seccion {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 44px;
    color: #ffffff;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.8);
    margin-bottom: 20px;
    letter-spacing: 1px;
    max-width: 800px;
    margin-top: 20px;
}

/* PÁRRAFO */
.tabs-autos-seccion .descripcion-seccion {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 30px;
    color: #ffffff;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.8);
    max-width: 700px;
    margin: 0 auto 30px auto;
    padding: 0 20px;
}

/* Contenedor del botón */
.mostrar-ocultar-contenedor {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 10;
}

/* BOTÓN */
.mostrar-ocultar-boton {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    position: relative;
}

.mostrar-ocultar-boton::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
    transition: border-color 0.3s ease;
}

.mostrar-ocultar-boton:hover {
    transform: scale(1.08);
    background-color: #f5f5f5;
}

.mostrar-ocultar-boton:hover::before {
    border-color: rgba(255, 255, 255, 0.6);
}

.mostrar-ocultar-icono {
    font-size: 2.8rem;
    font-weight: 300;
    line-height: 1;
    color: #ff0000;
    display: inline-block;
    transition: transform 0.4s ease;
}

.mostrar-ocultar-texto {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 16px;
    color: #ffffff;
    margin-top: 14px;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.9);
    letter-spacing: 0.5px;
}

/* CONTENIDO DESPLEGABLE */
.contenido-desplegable {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    z-index: 9999;
    overflow-y: auto;
    padding: 80px 60px 40px 60px;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
}

.contenido-desplegable.abierto {
    transform: translateY(0);
}

/* Botón de cierre */
.btn-cerrar {
    position: fixed;
    top: 25px;
    right: 35px;
    font-size: 4.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #ea0029;
    transition: transform 0.3s ease;
    padding: 10px;
    z-index: 10000;
}

.btn-cerrar:hover {
    transform: rotate(90deg);
}

/* Contenido interno */
.contenido-interno {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    margin-top:50px!important;
}

/* Filas intercaladas */
.fila-intercalada {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
    padding: 30px 0;

}

.fila-intercalada:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.fila-intercalada .imagen {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.fila-intercalada .imagen img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.fila-intercalada .imagen img:hover {
    transform: scale(1.03);
}

.fila-intercalada .texto {
    flex: 1;
    padding: 20px;
    text-align: left;
}

.fila-intercalada .texto p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 28px;
    color: #4E5356;
    margin: 0;
}

.fila-intercalada.reverse {
    flex-direction: row-reverse;
}

/* Ocultar imágenes mobile en desktop */
.fila-intercalada .imagen .img-mobile {
    display: none;
}

/* Overlay */
.overlay-fondo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.overlay-fondo.visible {
    opacity: 1;
    visibility: visible;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .fila-intercalada {
        gap: 30px;
        margin-bottom: 40px;
        padding: 20px 0;
    }
    
    .fila-intercalada .imagen img {
        height: 220px;
    }
    
    .contenido-desplegable {
        padding: 70px 30px 30px 30px;
    }
    
    .tabs-autos-seccion .titulo-seccion {
        font-size: 34px;
        line-height: 40px;
    }
    
    .fila-intercalada .texto p {
        font-size: 24px;
        line-height: 26px;
    }
}

@media (max-width: 767px) {
    .tabs-autos-seccion {
        padding: 40px 15px 100px 15px;
    }
    
    .tabs-autos-seccion .titulo-seccion {
        font-size: 28px;
        line-height: 34px;
    }
    
    .tabs-autos-seccion .descripcion-seccion {
        font-size: 16px;
        line-height: 26px;
        padding: 0 10px;
    }
    
    .mostrar-ocultar-boton {
        width: 60px;
        height: 60px;
    }
    
    .mostrar-ocultar-boton::before {
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -5px;
    }
    
    .mostrar-ocultar-icono {
        font-size: 2.4rem;
    }
    
    .mostrar-ocultar-texto {
        font-size: 12px;
        line-height: 15px;
    }
    
    .btn-cerrar {
       font-size: 4rem;
        top: 68px !important;
        right: 20px;
        z-index: 10000 !important;
        position: inherit;
        color: #ea0029;
    }
    
    .contenido-desplegable {
        padding: 60px 20px 20px 20px;
    }
    
    .fila-intercalada {
        flex-direction: column !important;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 40px;
        padding: 15px 0;
    }
    
    .fila-intercalada .imagen {
        width: 100%;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 8px 30px rgba(0,0,0,0.1);
        order: 0;
    }
    
    .fila-intercalada .imagen img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        transition: transform 0.4s ease;
    }
    
    .fila-intercalada .imagen img:hover {
        transform: scale(1.02);
    }
    
    .fila-intercalada .texto {
        width: 100%;
        padding: 0;
        text-align: left;
        order: 1;
        margin-top:10px; 
    }
    
    .fila-intercalada .texto p {
        font-family: 'Poppins', sans-serif;
        font-weight: 400;
        font-size: 28px;
        line-height: 28px;
        color: #1a1a1a;
        margin: 0;
    }
    
    .fila-intercalada .imagen .img-desktop {
        display: none;
    }
    
    .fila-intercalada .imagen .img-mobile {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .tabs-autos-seccion .titulo-seccion {
        font-size: 22px;
        line-height: 28px;
    }
    
    .tabs-autos-seccion .descripcion-seccion {
        font-size: 18px;
        line-height: 24px;
    }
    
    .mostrar-ocultar-contenedor {
        bottom: 30px;
    }
    
    .mostrar-ocultar-boton {
        width: 54px;
        height: 54px;
    }
    
    .mostrar-ocultar-boton::before {
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        border-width: 1px;
    }
    
    .mostrar-ocultar-icono {
        font-size: 2rem;
    }
    
    .mostrar-ocultar-texto {
        font-size: 11px;
        line-height: 14px;
    }
    
    .contenido-desplegable {
        padding: 50px 15px 15px 15px;
    }
    
    .fila-intercalada {
        gap: 15px;
        margin-bottom: 11px;
        padding: 10px 0;
    }
    
    .fila-intercalada .texto p {
        font-size: 28px;
        line-height: 28px;
    }
}
