/* ============================================================
   SITIO STORE - SLIDER DINÁMICO PRO
   Frontend CSS - Carrusel + Banner Ticker
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────── */
.sssd-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 auto 24px;
}

/* ── Slider Principal ────────────────────────────────────── */
.sssd-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* La altura real la define cada .sssd-slide via inline style */
}

/* ── Slides ──────────────────────────────────────────────── */
.sssd-slide {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* ── Elementos del slide ─────────────────────────────────── */
.sssd-el {
    position: absolute;
    box-sizing: border-box;
    overflow: hidden;
}
.sssd-el-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}
.sssd-slide-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.15));
}
.sssd-slide:hover .sssd-slide-img {
    transform: scale(1.04);
}

/* ── Background Removal (mix-blend-mode) ─────────────────── */
.sssd-img-nobg {
    mix-blend-mode: multiply;
    background-color: transparent !important;
}

/* ── Texto ───────────────────────────────────────────────── */
.sssd-el-text span {
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* ── Badge ───────────────────────────────────────────────── */
.sssd-el-badge {
    display: flex;
    align-items: center;
}
.sssd-el-badge span {
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    transition: transform 0.2s;
}
.sssd-el-badge span:hover { transform: scale(1.05); }

/* ── Botón CTA ───────────────────────────────────────────── */
.sssd-el-btn { display:flex; align-items:center; }
.sssd-btn-cta {
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
}
.sssd-btn-cta:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important;
}

/* ── Navegación Swiper ───────────────────────────────────── */
.sssd-nav-prev,
.sssd-nav-next {
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 44px !important;
    height: 44px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: background 0.2s, transform 0.2s;
}
.sssd-nav-prev:hover,
.sssd-nav-next:hover {
    background: #fff;
    transform: scale(1.1);
}
.sssd-nav-prev::after,
.sssd-nav-next::after {
    font-size: 16px !important;
    font-weight: 700;
    color: #1a1a2e;
}

/* ── Paginación (dots) ───────────────────────────────────── */
.sssd-pagination {
    bottom: 8px !important;
}
.sssd-pagination .swiper-pagination-bullet {
    background: rgba(0,0,0,0.3);
    opacity: 1;
    transition: all 0.2s;
}
.sssd-pagination .swiper-pagination-bullet-active {
    background: #1a1a2e;
    transform: scale(1.3);
}

/* ── Banner Ticker Inferior ──────────────────────────────── */
.sssd-ticker {
    overflow: hidden;
    white-space: nowrap;
    padding: 9px 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
}
.sssd-ticker-inner {
    display: inline-flex;
    align-items: center;
    gap: 0;
    animation: sssd-ticker-scroll linear infinite;
    will-change: transform;
}
.sssd-ticker-inner span { padding: 0 30px; }
.sssd-ticker-sep { opacity: 0.4; padding: 0 10px !important; }

@keyframes sssd-ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── Animaciones de entrada de elementos ─────────────────── */
.swiper-slide-active .sssd-el-text {
    animation: sssd-fade-up 0.6s ease forwards;
}
.swiper-slide-active .sssd-el-image {
    animation: sssd-fade-in 0.8s ease forwards;
}
.swiper-slide-active .sssd-el-btn {
    animation: sssd-fade-up 0.7s 0.2s ease both;
}
.swiper-slide-active .sssd-el-badge {
    animation: sssd-bounce-in 0.5s 0.3s ease both;
}

@keyframes sssd-fade-up {
    from { opacity:0; transform:translateY(20px); }
    to   { opacity:1; transform:translateY(0); }
}
@keyframes sssd-fade-in {
    from { opacity:0; }
    to   { opacity:1; }
}
@keyframes sssd-bounce-in {
    0%   { opacity:0; transform:scale(0.7); }
    70%  { transform:scale(1.05); }
    100% { opacity:1; transform:scale(1); }
}

/* ── Slide: siempre position:relative (refuerzo CSS, el inline ya lo tiene) ── */
.sssd-slide {
    position: relative !important;
    overflow: hidden !important;
    /* altura viene inline desde PHP — NO sobreescribir con !important */
}

/* ── Responsive: escalar fuentes, no la altura ───────────────────────────── */
@media (max-width: 1024px) {
    .sssd-el-text span  { font-size: 80% !important; }
    .sssd-el-badge span { font-size: 12px !important; }
}
@media (max-width: 768px) {
    .sssd-el-text span { font-size: 65% !important; }
    .sssd-btn-cta      { font-size: 11px !important; padding: 6px 12px !important; }
    .sssd-nav-prev, .sssd-nav-next { display: none !important; }
    .sssd-ticker       { font-size: 12px; }
}
@media (max-width: 480px) {
    .sssd-el-text span { font-size: 52% !important; }
    .sssd-btn-cta      { font-size: 10px !important; padding: 5px 10px !important; }
}
