/* ========== WIDGET BENEFICIOS BANNER ========== */
.widget-empaque-section {
    padding: 0 0 40px;
}

.widget-empaque-banner {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.widget-empaque-banner.has-image {
    box-shadow: var(--shadow-lg);
}

.widget-empaque-banner.has-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 26, 114, 0.18);
}

.widget-empaque-banner:hover .widget-empaque-img {
    transform: scale(1.02);
}

.widget-empaque-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.35s ease;
}

.widget-empaque-fallback {
    width: 100%;
    min-height: 130px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #003399 100%);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px 24px;
    color: white;
    transition: filter 0.2s ease;
}

.widget-empaque-banner:hover .widget-empaque-fallback {
    filter: brightness(1.1);
}

.widget-empaque-fallback p {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    text-align: center;
    margin: 0;
    line-height: 1.5;
    opacity: 0.92;
}

.widget-empaque-fallback svg {
    opacity: 0.7;
    color: var(--primary-yellow);
    stroke: var(--primary-yellow);
}

.widget-empaque-cta-overlay {
    position: absolute;
    bottom: 14px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-yellow);
    color: var(--text-dark);
    padding: 8px 18px 8px 16px;
    border-radius: 30px;
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    pointer-events: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    z-index: 5;
}

.widget-empaque-banner:hover .widget-empaque-cta-overlay {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

/* ========== PAGINA BENEFICIOS ========== */
.empaque-page {
    position: fixed;
    inset: 0;
    z-index: 2000;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    background: #0a1a5c;
}

.empaque-page.open {
    transform: translateX(0);
}

.empaque-bg-marquee {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.empaque-bg-track {
    display: flex;
    height: 100%;
    width: max-content;
    animation: empaqueBgScroll 40s linear infinite;
    will-change: transform;
}

.empaque-bg-track img {
    height: 100%;
    width: auto;
    object-fit: cover;
    opacity: 0.45;
    flex-shrink: 0;
    filter: blur(3px) saturate(0.8);
    transform: scale(1.05);
}

@keyframes empaqueBgScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.empaque-bg-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(0, 12, 70, 0.68) 0%, rgba(0, 8, 45, 0.6) 100%);
    pointer-events: none;
}

.empaque-page-inner {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.empaque-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 28px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 20;
    flex-shrink: 0;
}

.empaque-back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 24px;
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.empaque-back-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateX(-3px);
}

.empaque-logo-img {
    height: 34px;
    width: auto;
}

.empaque-content-wrap {
    width: min(920px, 92%);
    margin: 18px auto 32px;
    overflow-y: auto;
    padding-bottom: 20px;
}

.empaque-hero-badge {
    display: block;
    text-align: center;
    background: var(--primary-yellow);
    color: var(--text-dark);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0 auto 12px;
    text-transform: uppercase;
    width: fit-content;
}

.empaque-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: white;
    line-height: 1.12;
    margin: 0 0 8px;
    text-align: center;
}

.empaque-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin: 0 0 20px;
    text-align: center;
}

.empaque-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.empaque-tab-btn {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(2, 17, 84, 0.55);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    min-height: 46px;
    padding: 10px 12px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.empaque-tab-btn:hover {
    border-color: rgba(255, 210, 0, 0.8);
    background: rgba(5, 25, 106, 0.75);
}

.empaque-tab-btn.active {
    color: #0a154f;
    border-color: var(--primary-yellow);
    background: var(--primary-yellow);
}

.empaque-panel {
    background: white;
    border-radius: 18px;
    padding: 26px;
    color: #0b1d62;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.empaque-panel h2 {
    font-size: 1.65rem;
    line-height: 1.2;
    margin: 0 0 10px;
    color: #031553;
}

.empaque-panel p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #20367d;
}

.empaque-panel ul {
    margin: 14px 0 0;
    padding-left: 20px;
}

.empaque-panel li {
    margin-bottom: 7px;
    font-size: 0.98rem;
    color: #20367d;
}

.empaque-panel[hidden] {
    display: none;
}

.empaque-gallery-widget {
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #f2d13c;
    background: #f5f8ff;
    margin: 8px 0 14px;
}

.empaque-gallery-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #dce3f8;
}

.empaque-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.empaque-slide.active {
    opacity: 1;
}

.empaque-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
    background: #f5f8ff;
}

.empaque-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(13, 44, 130, 0.35);
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.empaque-dot.active {
    background: #0b2d8b;
    transform: scale(1.25);
}

.empaque-panel-copy {
    margin-top: 10px;
}

/* ========== RESPONSIVE BENEFICIOS ========== */
@media (max-width: 900px) {
    .empaque-page {
        overflow-y: auto;
    }

    .empaque-page-inner {
        overflow: visible;
    }

    .empaque-content-wrap {
        width: 94%;
        margin: 18px auto 28px;
        overflow-y: visible;
    }

    .empaque-tabs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .empaque-page-header {
        padding: 12px 16px;
    }

    .empaque-title {
        font-size: 2rem;
    }

    .empaque-subtitle {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    .empaque-panel {
        padding: 18px;
        border-radius: 14px;
    }

    .empaque-panel h2 {
        font-size: 1.35rem;
    }

    .empaque-panel p,
    .empaque-panel li {
        font-size: 0.94rem;
    }

    .empaque-gallery-slides {
        aspect-ratio: 4 / 3;
    }

    .widget-empaque-section {
        padding: 0 0 28px;
    }
}
