/* Hero Posts Slider CSS */

.hero-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
    background-color: #ffffff;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: none;
    overflow: hidden;
    border-radius: 12px;
}

.hero-slide.active {
    display: block;
    animation: fadeIn 0.8s ease-in-out;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease;
    border-radius: 12px;
}

.hero-slide:hover .hero-bg-image {
    transform: scale(1.05);
}

.hero-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 18px;
    font-weight: 500;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
    padding: 40px;
    box-sizing: border-box;
}

.hero-content-inner {
    max-width: 800px;
    width: 100%;
}

/* Posicionamiento del texto */
.hero-text-left {
    justify-content: flex-start;
}

.hero-text-center {
    justify-content: center;
}

.hero-text-right {
    justify-content: flex-end;
}

.hero-vertical-top {
    align-items: flex-start;
}

.hero-vertical-center {
    align-items: center;
}

.hero-vertical-bottom {
    align-items: flex-end;
}

/* Categorías */
.hero-categories {
    margin-bottom: 15px;
}

.hero-category-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
    margin-bottom: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Título */
.hero-title {
    margin: 0 0 20px 0;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Fecha */
.hero-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}


/* Navegación */
.hero-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.hero-prev,
.hero-next {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    color: white;
    backdrop-filter: blur(10px);
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.hero-prev:disabled,
.hero-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* Paginación */
.hero-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-pagination .pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-pagination .pagination-dot.active {
    background: #FF6000;
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-pagination .pagination-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animaciones de entrada para el contenido */
.hero-slide.active .hero-content-inner {
    animation: slideInUp 0.8s ease 0.3s both;
}

.hero-slide.active .hero-title {
    animation: slideInLeft 0.8s ease 0.5s both;
}


/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding: 20px;
    }
    
    .hero-title {
        font-size: 32px !important;
    }
    
    
    .hero-navigation {
        padding: 0 10px;
    }
    
    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
    }
    
    .hero-pagination {
        bottom: 15px;
    }
    
    .hero-pagination .pagination-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 15px;
    }
    
    .hero-title {
        font-size: 24px !important;
    }
    
    
    .hero-category-tag {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* Estados de carga */
.hero-slider-container.loading {
    opacity: 0.7;
}

.hero-slider-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #FF6000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 20;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Mejoras de accesibilidad */
.hero-prev:focus,
.hero-next:focus,
.hero-btn:focus {
    outline: 2px solid #FF6000;
    outline-offset: 2px;
}

/* Forzar modo claro - Evitar modo oscuro */
@media (prefers-color-scheme: dark) {
    .hero-slider-container {
        background: #ffffff !important;
        background-color: #ffffff !important;
    }
}

/* Efectos adicionales */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 96, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 4;
    pointer-events: none;
}

.hero-slide:hover::before {
    opacity: 1;
}

/* Optimizaciones de rendimiento */
.hero-slider {
    will-change: transform;
}

.hero-bg-image {
    will-change: transform;
}

/* Estilos para diferentes temas */
.hero-slider-container.theme-minimal .hero-overlay {
    background: rgba(0, 0, 0, 0.3) !important;
}

.hero-slider-container.theme-modern .hero-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%) !important;
}

.hero-slider-container.theme-classic .hero-overlay {
    background: rgba(0, 0, 0, 0.7) !important;
}

/* Efectos de parallax (opcional) */
.hero-slider-container.parallax .hero-bg-image {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.hero-slider-container.parallax .hero-slide:hover .hero-bg-image {
    transform: scale(1.15);
}

/* Efectos de texto */
.hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}


