/* ================================================
   SWIPER SLIDER - ESTILOS PERSONALIZADOS MODERNOS
   ================================================ */

/* Contenedor principal del slider */
.hero-slider {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Slides */
.hero-slider .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Imagen de fondo con efecto parallax */
.slide-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 8s ease-out;
}

/* Efecto zoom en slide activo */
.swiper-slide-active .slide-bg {
    transform: scale(1.1);
}

/* Overlay oscuro sobre la imagen */
.slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

/* Contenedor del texto */
.slide-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 20px;
}

.caption-content {
    text-align: center;
    max-width: 900px;
    color: #fff;
}

/* Subtítulo */
.slide-subtitle {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.2s;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Título principal */
.slide-title {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.4s;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Descripción */
.slide-description {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 35px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.6s;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Botón */
.slide-btn {
    display: inline-block;
    padding: 18px 50px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color, #FF512F), var(--secondary-color, #DD2476));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.8s;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(255, 81, 47, 0.3);
}

.slide-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    transition: left 0.5s ease;
}

.slide-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 81, 47, 0.5);
    color: #fff;
}

.slide-btn:hover::before {
    left: 100%;
}

/* Animación de entrada */
@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reset animation for non-active slides */
.swiper-slide:not(.swiper-slide-active) .slide-subtitle,
.swiper-slide:not(.swiper-slide-active) .slide-title,
.swiper-slide:not(.swiper-slide-active) .slide-description,
.swiper-slide:not(.swiper-slide-active) .slide-btn {
    opacity: 0;
    transform: translateY(30px);
}

/* ================================================
   NAVIGATION ARROWS - DISEÑO MODERNO
   ================================================ */

.swiper-button-next,
.swiper-button-prev {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ================================================
   PAGINATION - DISEÑO MODERNO
   ================================================ */

.swiper-pagination {
    bottom: 30px !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #fff;
    width: 40px;
    border-radius: 6px;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 1200px) {
    .slide-title {
        font-size: 56px;
    }
    
    .slide-description {
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .slide-title {
        font-size: 48px;
    }
    
    .slide-subtitle {
        font-size: 16px;
    }
    
    .slide-description {
        font-size: 16px;
    }
    
    .slide-btn {
        padding: 15px 40px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .slide-title {
        font-size: 36px;
    }
    
    .slide-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .slide-description {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .slide-btn {
        padding: 12px 35px;
        font-size: 13px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 45px;
        height: 45px;
    }
    
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .slide-title {
        font-size: 28px;
    }
    
    .slide-subtitle {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .slide-description {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .slide-btn {
        padding: 10px 30px;
        font-size: 12px;
    }
    
    .swiper-pagination {
        bottom: 20px !important;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none; /* Ocultar flechas en móviles */
    }
}

/* ================================================
   EFECTOS ADICIONALES
   ================================================ */

/* Efecto de brillo en el título */
@keyframes shine {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.swiper-slide-active .slide-title {
    background: linear-gradient(
        90deg,
        #fff 25%,
        rgba(255, 255, 255, 0.8) 50%,
        #fff 75%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideUp 0.8s ease forwards 0.4s, shine 3s linear infinite 1s;
}

/* Línea decorativa debajo del subtítulo */
.slide-subtitle::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    margin: 15px auto 0;
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

/* Particles effect (opcional) */
.slide-caption::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent);
    background-size: 200% 200%;
    animation: sparkle 20s linear infinite;
    opacity: 0.3;
    pointer-events: none;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}
