/**
 * Banner Carousel - Kayros Sorteos Perú
 * Carrusel Hero Premium con Dark/Gold Theme
 */

/* ============================================
   HERO BANNER CAROUSEL
   ============================================ */
.hero-banner-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.4),
        0 0 0 1px rgba(242, 177, 56, 0.3);
    
}

/* Separador decorativo después del banner */
.hero-banner-carousel::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(242, 177, 56, 0.8) 20%,
        rgba(242, 177, 56, 1) 50%,
        rgba(242, 177, 56, 0.8) 80%,
        transparent 100%
    );
    box-shadow: 0 0 20px rgba(242, 177, 56, 0.6);
    z-index: 10;
}

.hero-banner-carousel .swiper {
    border-radius: 0;
    overflow: hidden;
}

.hero-banner-slide {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: var(--bg-secondary);
}

/* Pantallas muy grandes (1920px+) - Banner Full HD */
@media (min-width: 1920px) {
    .hero-banner-slide {
        height: 700px;
        max-height: 1080px;
    }
}

/* Pantallas grandes (1400px - 1920px) */
@media (min-width: 1400px) and (max-width: 1919px) {
    .hero-banner-slide {
        height: 650px;
    }
}

/* Tablets y pantallas medianas (768px - 1399px) */
@media (min-width: 768px) and (max-width: 1399px) {
    .hero-banner-slide {
        height: 500px;
    }
}

/* Móviles (menos de 768px) */
@media (max-width: 767px) {
    .hero-banner-slide {
        height: 400px;
    }
}

.hero-banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 15, 15, 0.2) 0%,
        rgba(15, 15, 15, 0.4) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-slower);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.swiper-slide-active .hero-banner-image {
    animation: kenBurns 8s ease-out forwards;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Banner Content Overlay */
.hero-banner-content {
    position: absolute;
    top: 60%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    padding: var(--space-8);
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        transparent 100%
    );
    z-index: 2;
    opacity: 1;
    transition: all var(--transition-base);
}

.swiper-slide-active .hero-banner-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-banner-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-extrabold);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-3);
    text-shadow: var(--glow-gold);
}

.hero-banner-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    max-width: 600px;
}

/* Navigation Buttons - Gold Theme */
.hero-banner-carousel .swiper-button-prev,
.hero-banner-carousel .swiper-button-next {
    width: 60px;
    height: 60px;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: var(--backdrop-blur-md);
    border: 2px solid var(--gold-primary);
    border-radius: var(--radius-full);
    color: var(--gold-primary);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-gold);
}

.hero-banner-carousel .swiper-button-prev::after,
.hero-banner-carousel .swiper-button-next::after {
    font-size: 24px;
    font-weight: bold;
}

.hero-banner-carousel .swiper-button-prev:hover,
.hero-banner-carousel .swiper-button-next:hover {
    background: var(--gold-primary) !important;
    color: #000000 !important;
    transform: scale(1.1);
    box-shadow: var(--shadow-gold-strong);
}

.hero-banner-carousel .swiper-button-prev:hover::after,
.hero-banner-carousel .swiper-button-next:hover::after {
    color: #000000 !important;
}

/* Pagination - Gold Theme */
.hero-banner-carousel .swiper-pagination {
    bottom: 20px;
    z-index: 3;
}

.hero-banner-carousel .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    border: 2px solid var(--gold-primary);
    transition: all var(--transition-base);
}

.hero-banner-carousel .swiper-pagination-bullet-active {
    background: var(--gold-primary);
    width: 40px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(242, 177, 56, 0.8);
}

/* ============================================
   PREMIOS CAROUSEL - Enhanced
   ============================================ */
/* Navigation Buttons - Premios Carousel */
.premios-carousel .swiper-button-prev,
.premios-carousel .swiper-button-next {
    width: 60px;
    height: 60px;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: var(--backdrop-blur-md);
    border: 2px solid var(--gold-primary);
    border-radius: var(--radius-full);
    color: var(--gold-primary);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-gold);
}

.premios-carousel .swiper-button-prev::after,
.premios-carousel .swiper-button-next::after {
    font-size: 24px;
    font-weight: bold;
}

.premios-carousel .swiper-button-prev:hover,
.premios-carousel .swiper-button-next:hover {
    background: var(--gold-primary) !important;
    color: #000000 !important;
    transform: scale(1.1);
    box-shadow: var(--shadow-gold-strong);
}

.premios-carousel .swiper-button-prev:hover::after,
.premios-carousel .swiper-button-next:hover::after {
    color: #000000 !important;
}


.premios-carousel {
    position: relative;
    padding: var(--space-8) 0;
}

.premio-slide {
    padding: var(--space-6);
    height: auto;
}

.premio-card-carousel {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur-lg);
    border: 2px solid var(--glass-border-gold);
    border-radius: var(--radius-2xl);
    padding: var(--space-4);
    text-align: center;
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 900px;
}

.premio-card-carousel:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold-strong);
}

.premio-card-image {
    width: 100%;
    max-width: 100%;
    height: 800px;
    margin: 0 auto var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-gold);
    border-radius: var(--radius-3xl);
    padding: var(--space-3);
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
}

.premio-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        transparent 40%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
}

.premio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
    border-radius: var(--radius-2xl);
}

.premio-card-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--gradient-gold);
    color: var(--bg-primary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    box-shadow: var(--shadow-gold);
    z-index: 2;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.premio-card-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
}

.premio-card-description {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-4);
}

.premio-card-value {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--glow-gold);
}

/* Gold Shine Effect - Removed for cleaner design */

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-banner-slide {
        aspect-ratio: 4/3;
    }

    .hero-banner-title {
        font-size: var(--font-size-2xl);
    }

    .hero-banner-description {
        font-size: var(--font-size-base);
    }

    .hero-banner-content {
        padding: var(--space-4);
    }

    .hero-banner-carousel .swiper-button-prev,
    .hero-banner-carousel .swiper-button-next {
        width: 44px;
        height: 44px;
    }

    .hero-banner-carousel .swiper-button-prev::after,
    .hero-banner-carousel .swiper-button-next::after {
        font-size: 18px;
    }

    .premio-card-image {
        max-width: 200px;
        height: 200px;
    }

    .premio-card-carousel {
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .hero-banner-slide {
        aspect-ratio: 1/1;
    }

    .hero-banner-title {
        font-size: var(--font-size-xl);
    }

    .premio-card-image {
        max-width: 180px;
        height: 180px;
    }
}

/* ============================================
   LOADING STATE
   ============================================ */
.carousel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: var(--glass-bg);
    border-radius: var(--radius-3xl);
}

.carousel-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--glass-border-gold);
    border-top-color: var(--gold-primary);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.hero-banner-carousel button:focus-visible,
.premios-carousel button:focus-visible {
    outline: 3px solid var(--gold-primary);
    outline-offset: 4px;
}

/* Reducir movimiento si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    .swiper-slide-active .hero-banner-image {
        animation: none;
    }

    .premio-card-badge {
        animation: none;
    }
}
