/**
 * Estilos CSS para la Animación por Scroll de la Secuencia de Cierre de Caja [biury_caja_secuencia]
 * Tema Hijo Biury (Arquitectura Flexbox Integrada para Ajuste 100% Perfecto en Elementor)
 */

.biury-seq-section {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0 auto;
    padding: clamp(16px, 3vh, 36px) 20px clamp(20px, 4vh, 44px) 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: transparent;
    box-sizing: border-box;
    overflow: hidden;
}

/* 1. Encabezado Superior (Título + Badge) */
.bseq-title-wrap {
    width: 100%;
    max-width: 860px;
    text-align: center;
    z-index: 22;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: clamp(16px, 2.8vh, 32px);
    flex-shrink: 0;
}

.bseq-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(28px, 5vw, 54px);
    font-weight: 800;
    margin: 0;
    line-height: 1.15;
    word-break: break-word;
    text-align: center;
    width: 100%;
    letter-spacing: -0.5px;
}

.biury-seq-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(244, 64, 168, 0.12);
    color: #F440A8;
    font-size: clamp(10.5px, 2vw, 13px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 18px;
    border-radius: 20px;
    margin-top: 10px;
    margin-bottom: 0;
}

/* Degradado Fuego Fucsia */
.biury-gradient-text-fire {
    background-image: linear-gradient(90deg, #FF7B89 0%, #F440A8 40%, #8B5CF6 75%, #EF7088 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 800 !important;
    filter: drop-shadow(0px 4px 15px rgba(244, 64, 168, 0.25));
}

/* 2. Escenario 3D de la Caja Centrada */
.biury-seq-box-stage {
    position: relative;
    width: 900px;
    max-width: 100%;
    height: clamp(200px, 46vh, 420px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    perspective: 1200px;
    margin: auto 0;
    flex: 1 1 auto;
}

.biury-seq-frame-layer {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.bseq-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    will-change: opacity, transform, filter;
    filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.14));
    transition: filter 0.1s linear;
}

.bseq-frame-0 { z-index: 10; }
.bseq-frame-1, .bseq-frame-2, .bseq-frame-3 { z-index: 15; }

/* Capa de Productos Originales */
.bseq-prods-original {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 12;
}

.bseq-prod {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 280px;
    max-height: 310px;
    object-fit: contain;
    opacity: 0;
    filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.42));
    will-change: opacity, transform, filter;
}

/* Capa Máscara de Oclusión Frontal */
.biury-seq-mask-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 14;
}

.bseq-mask-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    will-change: opacity, transform;
    pointer-events: none;
}

/* 3. Pie Inferior (Descripción + Botón) */
.bseq-footer-wrap {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 23;
    margin: 0 auto;
    flex-shrink: 0;
}

.bseq-text {
    text-align: center;
    box-sizing: border-box;
}

.bseq-desc {
    font-size: clamp(11.5px, 1.6vw, 14px);
    font-weight: 500;
    color: #5E555C;
    margin: 0 auto;
    max-width: clamp(280px, 85vw, 580px);
    line-height: 1.35;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.bseq-action-wrap {
    display: flex;
    justify-content: center;
    pointer-events: auto;
    width: 100%;
}

.f-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2vw, 16px);
    background: #FFFFFF;
    padding: clamp(5px, 1.2vh, 9px) clamp(14px, 2.5vw, 24px);
    border-radius: 40px;
    border: 1px solid #F0E8EC;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    max-width: 94vw;
    box-sizing: border-box;
}

.biury-seq-price {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(14px, 3.2vw, 20px);
    font-weight: 700;
    color: #2E2926;
    white-space: nowrap;
}

.biury-seq-add-btn {
    background: #F440A8;
    color: #FFFFFF !important;
    font-size: clamp(11px, 2.2vw, 13px);
    font-weight: 600;
    padding: clamp(6px, 1.5vw, 9px) clamp(14px, 2.2vw, 20px);
    border-radius: 30px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(244, 64, 168, 0.3);
    white-space: nowrap;
}

.biury-seq-add-btn:hover {
    background: #D8309A;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(244, 64, 168, 0.4);
}

/* BREAKPOINTS RESPONSIVE */
@media (max-width: 1200px) {
    .biury-seq-section { height: 100vh; height: 100dvh; padding: 18px 16px; gap: 8px; }
    .biury-seq-box-stage { height: clamp(210px, 45vh, 380px); }
    .bseq-prod { max-width: 250px; max-height: 280px; }
}

@media (max-width: 1024px) {
    .biury-seq-section { height: 100vh; height: 100dvh; padding: 16px 14px; gap: 8px; }
    .biury-seq-box-stage { max-width: 95vw; height: clamp(200px, 44vh, 350px); }
    .bseq-prod { max-width: 220px; max-height: 250px; }
}

@media (max-width: 768px) {
    .biury-seq-section { height: 100vh; height: 100dvh; padding: 14px 12px; gap: 6px; }
    .biury-seq-box-stage { max-width: 96vw; height: clamp(200px, 44vh, 320px); }
    .bseq-prod { max-width: 195px; max-height: 225px; }
}

@media (max-width: 480px) {
    .biury-seq-section { height: 100vh; height: 100dvh; padding: 12px 10px; gap: 6px; }
    .biury-seq-box-stage { max-width: 98vw; height: clamp(190px, 42vh, 280px); }
    .bseq-prod { max-width: 175px; max-height: 200px; }
    .biury-seq-add-btn svg { width: 12px; height: 12px; }
}
