/* 
    Premium Full-Width Post Slider 
    Estilos para concurso - Estética Moderna y Limpia
*/

:root {
    --slider-height: 850px; /* Altura solicitada */
    --overlay-bg: rgba(0, 0, 0, 0.45);
    --accent-color: #ffffff;
    --transition-speed: 0.5s;
}

/* Contenedor Full Width */
.wp-slider-fullwidth-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    background: #000;
}

.wp-posts-swiper {
    width: 100%;
    height: var(--slider-height);
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Imagen - Ocupa todo el ancho siempre */
.slide-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* Llena el espacio */
    object-position: center center; /* Centrado vertical y horizontal perfecto */
}

/* Overlay Estilo Premium */
.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
    padding: 60px 5%; /* Más espacio inferior */
    box-sizing: border-box;
    z-index: 10;
}

.slide-info {
    max-width: 1200px;
    margin: 0 auto;
    color: #ffffff; /* Blanco Puro */
    opacity: 1; /* Siempre visible */
    transform: none; /* Sin movimiento */
}

/* Eliminamos la animación de subida del texto */
.swiper-slide-active .slide-info {
    opacity: 1;
    transform: none;
}

.slide-category {
    display: inline-block;
    background: #e63946; /* Fondo Rojo */
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    backdrop-filter: blur(8px);
    color: #ffffff; /* Texto Blanco */
}

.slide-title {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 3rem; /* Más grande para impacto */
    font-weight: 800;
    color: #ffffff; /* Regresa a Blanco */
    margin: 0 0 15px 0;
    line-height: 1.1;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.5); /* Sombra para legibilidad */
    
    /* Trunkado a 2 líneas en Escritorio */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slide-more-btn {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.slide-more-btn .arrow {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.slide-more-btn:hover {
    color: #ccc;
}

.slide-more-btn:hover .arrow {
    transform: translateX(8px);
}

/* Flechas de Navegación Personalizadas */
.swiper-button-next,
.swiper-button-prev {
    color: #fff !important;
    background: rgba(0,0,0,0.2);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0,0,0,0.5);
    transform: scale(1.1);
}

/* Paginación */
.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.5;
    width: 12px !important;
    height: 12px !important;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

/* Ajustes Tablet */
@media (max-width: 1024px) {
    :root {
        --slider-height: 450px; /* Altura más baja para Tablet */
    }
    
    .slide-title {
        font-size: 2.2rem;
        -webkit-line-clamp: 3; /* 3 líneas en Tablet */
        text-align: left; /* Regresa a la izquierda */
    }

    .slide-info {
        text-align: left;
    }

    .slide-category {
        display: table;
        margin: 0 auto 15px auto;
        border-bottom: none;
    }
}

/* Ajustes Móvil */
@media (max-width: 768px) {
    :root {
        --slider-height: 350px; /* Altura optimizada para evitar huecos negros */
    }

    .slide-title {
        font-size: 1.6rem;
        -webkit-line-clamp: 3; /* 3 líneas en Móvil */
        text-align: left; /* Regresa a la izquierda */
    }
    
    .slide-overlay {
        padding: 20px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none; /* Ocultamos flechas en móvil para dar prioridad al swipe táctil */
    }
    
    .wp-posts-swiper {
        min-height: auto;
    }
}
