/**
 * Estilos del Frontend - Swiper Slider Block
 * 
 * @package DestinoPremio_Theme
 */

/* ============================================
   CONTAINER PRINCIPAL
============================================ */
.dp-swiper-slider-wrapper {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    overflow: hidden;
}

.dp-swiper-container {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* ============================================
   SLIDES
============================================ */
.dp-swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.dp-swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease;
    z-index: 1;
}

.dp-swiper-slide.no-overlay::before {
    display: none;
}

/* Imagen de fondo del slide */
.dp-slide-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ============================================
   CONTENIDO DEL SLIDE
============================================ */
.dp-slide-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    text-align: center;
    color: white;
    max-width: 800px;
    width: 100%;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.swiper-slide-active .dp-slide-content {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 1;
}

/* Posiciones del contenido */
.dp-slide-content.position-center-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.dp-slide-content.position-center-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
}

.dp-slide-content.position-center-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
}

.dp-slide-content.position-top-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding-top: 4rem;
}

.dp-slide-content.position-top-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding-top: 4rem;
}

.dp-slide-content.position-top-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: right;
    padding-top: 4rem;
}

.dp-slide-content.position-bottom-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding-bottom: 4rem;
}

.dp-slide-content.position-bottom-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    text-align: left;
    padding-bottom: 4rem;
}

.dp-slide-content.position-bottom-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
    padding-bottom: 4rem;
}

.dp-slide-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation-delay: 0.2s;
}

.dp-slide-description {
    font-size: 1.25rem;
    margin: 0 0 2rem 0;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation-delay: 0.4s;
}

.dp-slide-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--dp-primary-color, #667eea) 0%, var(--dp-secondary-color, #764ba2) 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    animation-delay: 0.6s;
    border: 2px solid transparent;
}

.dp-slide-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: white;
    color: var(--dp-primary-color, #667eea);
    border-color: var(--dp-primary-color, #667eea);
}

.dp-slide-button:active {
    transform: translateY(-1px);
}

/* ============================================
   NAVEGACIÓN (FLECHAS)
============================================ */
.dp-swiper-button-prev,
.dp-swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dp-swiper-button-prev {
    left: 2rem;
}

.dp-swiper-button-next {
    right: 2rem;
}

.dp-swiper-button-prev:hover,
.dp-swiper-button-next:hover {
    background: var(--dp-primary-color, #667eea);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.dp-swiper-button-prev:hover::after,
.dp-swiper-button-next:hover::after {
    color: white;
}

.dp-swiper-button-prev::after,
.dp-swiper-button-next::after {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 3px solid var(--dp-primary-color, #667eea);
    border-right: 3px solid var(--dp-primary-color, #667eea);
    transition: all 0.3s ease;
}

.dp-swiper-button-prev::after {
    transform: rotate(-135deg);
    margin-left: 5px;
}

.dp-swiper-button-next::after {
    transform: rotate(45deg);
    margin-right: 5px;
}

.dp-swiper-button-prev.swiper-button-disabled,
.dp-swiper-button-next.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ============================================
   PAGINACIÓN
============================================ */
.dp-swiper-pagination {
    position: relative;
    bottom: 0 !important;
    padding: 1.5rem 0;
    background: transparent;
}

/* Bullets */
.dp-swiper-pagination.swiper-pagination-bullets .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.dp-swiper-pagination.swiper-pagination-bullets .swiper-pagination-bullet-active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

/* Fraction */
.dp-swiper-pagination.swiper-pagination-fraction {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Progressbar */
.dp-swiper-pagination.swiper-pagination-progressbar {
    background: rgba(255, 255, 255, 0.3);
    height: 4px;
    top: auto !important;
    bottom: 0 !important;
}

.dp-swiper-pagination.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background: linear-gradient(90deg, var(--dp-primary-color, #667eea) 0%, var(--dp-secondary-color, #764ba2) 100%);
}

/* ============================================
   ANIMACIONES
============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   EFECTOS ESPECIALES
============================================ */

/* Efecto Parallax en la imagen */
.dp-swiper-slide.parallax .dp-slide-image {
    transform: scale(1.2);
    transition: transform 8s ease-out;
}

.swiper-slide-active.parallax .dp-slide-image {
    transform: scale(1);
}

/* ============================================
   RESPONSIVE
============================================ */

/* Tablets */
@media (max-width: 1024px) {
    .dp-slide-title {
        font-size: 2.5rem;
    }
    
    .dp-slide-description {
        font-size: 1.1rem;
    }
    
    .dp-swiper-button-prev,
    .dp-swiper-button-next {
        width: 40px;
        height: 40px;
    }
    
    .dp-swiper-button-prev {
        left: 1rem;
    }
    
    .dp-swiper-button-next {
        right: 1rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .dp-swiper-slider-wrapper {
        margin: 1rem 0;
    }
    
    .dp-swiper-container {
        border-radius: 8px;
    }
    
    .dp-slide-content {
        padding: 1.5rem;
    }
    
    .dp-slide-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .dp-slide-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .dp-slide-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .dp-swiper-button-prev,
    .dp-swiper-button-next {
        width: 36px;
        height: 36px;
        opacity: 0.8;
    }
    
    .dp-swiper-button-prev {
        left: 0.5rem;
    }
    
    .dp-swiper-button-next {
        right: 0.5rem;
    }
    
    /* Ajustar posiciones en mobile */
    .dp-slide-content.position-top-center,
    .dp-slide-content.position-top-left,
    .dp-slide-content.position-top-right {
        padding-top: 2rem;
    }
    
    .dp-slide-content.position-bottom-center,
    .dp-slide-content.position-bottom-left,
    .dp-slide-content.position-bottom-right {
        padding-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .dp-slide-title {
        font-size: 1.5rem;
    }
    
    .dp-slide-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .dp-slide-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .dp-swiper-pagination.swiper-pagination-bullets .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
    
    .dp-swiper-pagination.swiper-pagination-bullets .swiper-pagination-bullet-active {
        width: 24px;
    }
}

/* ============================================
   TEMA OSCURO (OPCIONAL)
============================================ */
@media (prefers-color-scheme: dark) {
    .dp-swiper-button-prev,
    .dp-swiper-button-next {
        background: rgba(45, 55, 72, 0.9);
    }
    
    .dp-swiper-button-prev::after,
    .dp-swiper-button-next::after {
        border-color: white;
    }
}

/* ============================================
   ESTADOS DE CARGA
============================================ */
.dp-swiper-slider-wrapper.loading {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    border-radius: 12px;
}

.dp-swiper-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.dp-swiper-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: var(--dp-primary-color, #667eea);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.dp-swiper-loading-text {
    color: #718096;
    font-weight: 600;
}

/* ============================================
   MEJORAS DE ACCESIBILIDAD
============================================ */
.dp-swiper-button-prev:focus,
.dp-swiper-button-next:focus {
    outline: 3px solid var(--dp-primary-color, #667eea);
    outline-offset: 2px;
}

.dp-slide-button:focus {
    outline: 3px solid white;
    outline-offset: 2px;
}

/* Reducir animaciones para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {
    .dp-slide-content,
    .dp-slide-title,
    .dp-slide-description,
    .dp-slide-button,
    .dp-swiper-button-prev,
    .dp-swiper-button-next {
        animation: none;
        transition: none;
    }
}

