/* ============================================================
   Catálogo Slider — CSS
   ============================================================ */

.catalogo-slider-wrapper *,
.catalogo-slider-wrapper *::before,
.catalogo-slider-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.catalogo-slider-wrapper {
    width: 100%;
    position: relative;
}

/* ── Swiper ── */
.cs-swiper {
    width: 100%;
    height: 85vh; /* fallback; controlado desde Elementor */
    border-radius: 12px;
    overflow: hidden;
}

/* ── Slide ── */
.cs-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ── Imagen de fondo ── */
.cs-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 6s ease;
    transform: scale(1);
    will-change: transform;
}

.cs-bg--empty {
    background-color: #cccccc;
}

.swiper-slide-active .cs-bg {
    transform: scale(1.04);
}

/* ── Overlay ── */
.cs-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

/* ── Panel de información ── */
.cs-info {
    position: absolute;
    z-index: 10;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    max-width: min(480px, 90%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    /* Animación de entrada */
    opacity: 0;
    transform: translateY(12px);
}

.swiper-slide-active .cs-info {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

/* ── Posiciones ── */
.cs-pos-bottom-left  { bottom: 2.2rem; left: 2.2rem; }
.cs-pos-bottom-right { bottom: 2.2rem; right: 2.2rem; }
.cs-pos-top-left     { top: 2.2rem;    left: 2.2rem; }
.cs-pos-top-right    { top: 2.2rem;    right: 2.2rem; }

/* ── Tipografía base (sobreescrita por Elementor) ── */
.cs-titulo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.cs-descripcion {
    font-size: 1rem;
    color: #e0e0e0;
    line-height: 1.55;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.cs-precio {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 800;
    color: #f5c842;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    margin-top: 0.2rem;
}

/* ── Flechas ── */
.cs-btn-next,
.cs-btn-prev {
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.4);
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: background 0.25s ease, transform 0.2s ease;
}

.cs-btn-next:hover,
.cs-btn-prev:hover {
    background: rgba(0, 0, 0, 0.72) !important;
    transform: scale(1.08);
}

.cs-btn-next::after,
.cs-btn-prev::after {
    font-size: 18px !important;
    font-weight: 700 !important;
}

/* ── Paginación ── */
.cs-pagination { bottom: 1rem !important; }

.cs-pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
    width: 8px;
    height: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cs-pagination .swiper-pagination-bullet-active {
    background: #ffffff !important;
    transform: scale(1.3);
}

/* ── Sin posts ── */
.cs-no-posts {
    text-align: center;
    padding: 2rem;
    color: #888;
    font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .cs-swiper {
        height: 65vw;
        min-height: 320px;
    }

    .cs-info {
        max-width: calc(100% - 2rem) !important;
        padding: 1.1rem 1.3rem;
    }

    .cs-pos-bottom-left,
    .cs-pos-bottom-right {
        bottom: 1rem;
        left: 1rem;
        right: auto;
    }

    .cs-pos-top-left,
    .cs-pos-top-right {
        top: 1rem;
        left: 1rem;
        right: auto;
    }

    .cs-btn-next,
    .cs-btn-prev {
        display: none !important;
    }
}
