/* ============================================
ensambles.css
   ============================================ */

/* ── HEADER ── */
.sec-header-img {
    width: 100%;
    line-height: 0;
}

.sec-header-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── TABS NAV ── */
.ensambles-tabs-section {
    background: var(--color-fondo);
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--color-borde);
    background: var(--color-fondo);
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 20px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #666;
    font-family: var(--fuente-cuerpo);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transicion);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.tab-btn i {
    font-size: 16px;
}

.tab-btn:hover {
    color: var(--color-blanco);
    background: var(--color-fondo-alt);
}

.tab-btn.activo {
    color: var(--color-rojo);
    border-bottom-color: var(--color-rojo);
    background: var(--color-fondo-alt);
}

/* ── TAB CONTENIDO ── */
.tab-contenido {
    display: none;
}

.tab-contenido.activo {
    display: block;
}

/* ── TAB FONDO CON IMAGEN ── */
.tab-fondo {
    position: relative;
    width: 100%;
    padding-bottom: 71%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.tab-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.6) 45%,
            rgba(0, 0, 0, 0.05) 100%);
    z-index: 0;
}

/* Texto tabs normales */
.tab-texto {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    z-index: 1;
    width: 45%;
    padding: 20px 48px;
}

.tab-texto h3 {
    font-family: var(--fuente-titulo);
    font-size: 22px;
    color: var(--color-rojo);
    letter-spacing: 4px;
    margin-bottom: 24px;
}

.tab-texto p {
    margin-bottom: 14px;
    color: #ccc;
}

.tab-destacado {
    color: var(--color-rojo) !important;
    font-size: 14px;
    letter-spacing: 1px;
    margin-top: 8px;
    font-style: italic;
}

/* ── ENSAMBLE VIVO INNER ── */
.ensamble-vivo-inner {
    position: absolute;
    inset: 0;
    z-index: 1;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
}

.ensamble-vivo-inner .tab-texto {
    position: static;
    transform: none;
    width: 45%;
    padding: 0;
}

/* ── CARRUSEL FOTOS ── */
.ensamble-carrusel {
    position: relative;
    width: 45%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(192, 20, 26, 0.2);
}

.ensamble-slide {
    display: none;
}

.ensamble-slide.activo {
    display: block;
}

.ensamble-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.ensamble-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--color-rojo-suave);
    color: var(--color-blanco);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transicion);
    z-index: 2;
}

.ensamble-btn:hover {
    background: var(--color-rojo);
    border-color: var(--color-rojo);
}

.ensamble-prev {
    left: 8px;
}

.ensamble-next {
    right: 8px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .tab-fondo {
        padding-bottom: 0;
        min-height: 600px;
    }

    .ensamble-vivo-inner {
        padding: 32px 24px;
    }

    .ensamble-vivo-inner .tab-texto {
        width: 100%;
    }

    .ensamble-fotos {
        width: 100%;
    }

    .tab-texto {
        width: 70%;
        padding: 40px 24px;
    }
}

@media (max-width: 480px) {
    .tab-fondo {
        padding-bottom: 0;
        background-attachment: scroll;
    }

    .tab-texto {
        position: relative;
        top: auto;
        transform: none;
        width: 100%;
        padding: 32px 24px;
        background-image: url('../assets/img/fondos/fondos-varios-03.svg');
        background-size: cover;
        background-position: center;
    }

    .tab-texto::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.85);
        z-index: 0;
    }

    .tab-texto h3,
    .tab-texto p,
    .tab-destacado {
        position: relative;
        z-index: 1;
    }

    .tab-texto h3 {
        font-size: 18px;
        letter-spacing: 3px;
    }

    .ensamble-vivo-inner {
        position: relative;
        padding: 32px 24px;
    }

    .ensamble-vivo-inner .tab-texto {
        width: 100%;
    }

    .ensamble-carrusel {
        width: 100%;
    }
}

#tab-arreglos .tab-fondo {
    padding-bottom: 50%;
}