/* ============================================ */
/* EVENTOS - CSS COMPLETO MEJORADO */
/* ============================================ */

/* ========== TARJETAS DE EVENTOS ========== */
.single_blog {
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.single_blog:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.25) !important;
    border-color: rgba(102, 126, 234, 0.2) !important;
}

/* Wrapper de imagen con badges */
.evento-imagen-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 250px !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
}

.evento-imagen-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.single_blog:hover .evento-imagen-wrapper img {
    transform: scale(1.08) !important;
}

/* Badge destacado en imagen */
.evento-badge-destacado {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%) !important;
    color: #856404 !important;
    padding: 8px 16px !important;
    border-radius: 25px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    z-index: 2 !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4) !important;
    letter-spacing: 0.5px !important;
    animation: pulse 2s infinite !important;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
    }
}

/* Badge de fecha en imagen */
.evento-fecha-badge {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    text-align: center !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
    z-index: 2 !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.evento-fecha-badge .dia {
    font-size: 26px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    display: block !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.evento-fecha-badge .mes {
    font-size: 11px !important;
    text-transform: uppercase !important;
    margin-top: 4px !important;
    letter-spacing: 1.5px !important;
    font-weight: 600 !important;
    display: block !important;
}

/* Contenido de la tarjeta */
.single_blog_content {
    padding: 24px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    background: white !important;
}

/* Badge de categoría */
.techno_blog_meta {
    margin-bottom: 12px !important;
}

.badge-categoria {
    color: white !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    display: inline-block !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
}

.badge-categoria:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    text-decoration: none !important;
    filter: brightness(1.1) !important;
}

/* Título del evento */
.blog_page_title {
    margin-bottom: 12px !important;
}

.blog_page_title h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    color: #2c3e50 !important;
}

.blog_page_title h3 a {
    color: #2c3e50 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    display: block !important;
}

.blog_page_title h3 a:hover {
    color: #667eea !important;
    text-decoration: none !important;
}

/* Descripción */
.blog_description {
    margin-bottom: 16px !important;
    flex: 1 !important;
}

.blog_description p {
    color: #6c757d !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

/* Meta información del evento */
.evento-meta-info {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    padding: 16px 0 !important;
    border-top: 1px solid #e9ecef !important;
    margin-top: auto !important;
}

.meta-item {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    color: #6c757d !important;
    font-weight: 500 !important;
}

.meta-item i {
    color: #667eea !important;
    font-size: 14px !important;
}

/* Botón Leer Más */
.blog_page_button {
    margin-top: 8px !important;
}

.blog_page_button a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 28px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    border: none !important;
    letter-spacing: 0.3px !important;
}

.blog_page_button a:hover {
    transform: translateX(4px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
    text-decoration: none !important;
    filter: brightness(1.1) !important;
}

.blog_page_button a i {
    transition: transform 0.3s ease !important;
    font-size: 14px !important;
}

.blog_page_button a:hover i {
    transform: translateX(4px) !important;
}

/* ========== CALENDARIO ========== */
#calendar-widget {
    background: #ffffff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.calendar-header-month {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    padding: 12px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
}

.calendar-select {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #333 !important;
    padding: 6px 10px !important;
    border-radius: 5px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    flex: 1 !important;
    max-width: 140px !important;
}

.calendar-select:hover {
    background: #ffffff !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
}

.calendar-select:focus {
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3) !important;
}

.calendar-select option {
    background: white !important;
    color: #333 !important;
    padding: 5px !important;
}

.calendar-weekdays {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    background: #f8f9fa !important;
    border-bottom: 1px solid #e3e6f0 !important;
}

.weekday {
    text-align: center !important;
    padding: 5px 0 !important;
    font-size: 7px !important;
    font-weight: 700 !important;
    color: #666 !important;
    letter-spacing: 0.1px !important;
}

.calendar-dates {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    background: white !important;
    padding: 4px !important;
    gap: 2px !important;
}

.calendar-date {
    aspect-ratio: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.calendar-date:not(.empty) {
    background: #f8f9fa !important;
}

.calendar-date:not(.empty):hover {
    background: #667eea !important;
}

.calendar-date:not(.empty):hover .date-number {
    color: white !important;
}

.date-number {
    font-size: 10px !important;
    font-weight: 500 !important;
    color: #333 !important;
    transition: all 0.2s ease !important;
}

.calendar-date.today {
    background: #ffc107 !important;
}

.calendar-date.today .date-number {
    color: #856404 !important;
    font-weight: 700 !important;
}

.calendar-date.selected {
    background: #667eea !important;
}

.calendar-date.selected .date-number {
    color: white !important;
    font-weight: 700 !important;
}

.calendar-date.empty {
    background: transparent !important;
    cursor: default !important;
}

.calendar-clear-section {
    padding: 8px !important;
    text-align: center !important;
    background: #f8f9fa !important;
    border-top: 1px solid #e3e6f0 !important;
}

.btn-limpiar-fecha-calendario {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 6px 12px !important;
    background: #6c757d !important;
    color: white !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.btn-limpiar-fecha-calendario:hover {
    background: #5a6268 !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

/* ========== SIDEBAR ========== */
.widget {
    margin-bottom: 30px !important;
    background: white !important;
    border-radius: 8px !important;
    padding: 20px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
}

.widget-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    color: #2c3e50 !important;
    padding-bottom: 12px !important;
    border-bottom: 3px solid #667eea !important;
}

/* Categorías sidebar */
.widget_categories ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.widget_categories ul li {
    transition: all 0.3s ease !important;
    margin-bottom: 8px !important;
}

.widget_categories ul li a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 15px !important;
    transition: all 0.3s ease !important;
    border-radius: 6px !important;
    color: #6c757d !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.widget_categories ul li a:hover {
    background: #f8f9fa !important;
    color: #667eea !important;
    transform: translateX(4px) !important;
}

.widget_categories ul li.active-category a {
    color: #667eea !important;
    font-weight: 600 !important;
    background: rgba(102, 126, 234, 0.1) !important;
}

.widget_categories ul li a i {
    font-size: 10px !important;
    flex-shrink: 0 !important;
}

/* Eventos destacados sidebar */
.widget_recent_data {
    background: white !important;
    border-radius: 8px !important;
    padding: 20px !important;
}

.recent-post-item {
    display: flex !important;
    gap: 15px !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #e9ecef !important;
}

.recent-post-item:last-child {
    border-bottom: none !important;
}

.recent-post-image {
    flex-shrink: 0 !important;
}

.recent-post-image img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    transition: transform 0.3s ease !important;
}

.recent-post-image:hover img {
    transform: scale(1.05) !important;
}

.recent-post-text h4 {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
}

.recent-post-text h4 a {
    color: #2c3e50 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.recent-post-text h4 a:hover {
    color: #667eea !important;
}

.rcomment {
    font-size: 12px !important;
    color: #6c757d !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

/* ========== PAGINACIÓN ========== */
.paginations {
    margin-top: 40px !important;
    display: flex !important;
    justify-content: center !important;
}

.page-numbers {
    display: flex !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.page-numbers li {
    display: inline-block !important;
}

.page-numbers a,
.page-numbers span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    border: 2px solid #e9ecef !important;
    color: #6c757d !important;
}

.page-numbers a:hover {
    background: #667eea !important;
    color: white !important;
    border-color: #667eea !important;
    transform: translateY(-2px) !important;
}

.page-numbers .current {
    background: #667eea !important;
    color: white !important;
    border-color: #667eea !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

/* Estado vacío */
.alert-no-eventos {
    padding: 50px 30px !important;
    margin: 40px 0 !important;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%) !important;
    border: 2px dashed #667eea !important;
    border-radius: 12px !important;
    text-align: center !important;
}

.alert-no-eventos h4 {
    color: #667eea !important;
    margin-bottom: 15px !important;
    font-size: 22px !important;
    font-weight: 700 !important;
}

.alert-no-eventos p {
    color: #6c757d !important;
    font-size: 16px !important;
}

.alert-no-eventos a {
    color: #667eea !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

.alert-no-eventos a:hover {
    color: #764ba2 !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .sidebar-right {
        margin-bottom: 30px !important;
    }
}

@media (max-width: 768px) {
    .single_blog {
        margin-bottom: 30px !important;
    }
    
    .evento-imagen-wrapper {
        height: 220px !important;
    }
    
    .evento-fecha-badge {
        padding: 10px 12px !important;
    }
    
    .evento-fecha-badge .dia {
        font-size: 22px !important;
    }
    
    .evento-fecha-badge .mes {
        font-size: 10px !important;
    }
    
    .blog_page_title h3 {
        font-size: 18px !important;
    }
    
    .blog_description p {
        font-size: 13px !important;
    }
    
    .calendar-select {
        font-size: 12px !important;
        padding: 5px 8px !important;
    }
}

@media (max-width: 576px) {
    .single_blog_content {
        padding: 20px !important;
    }
    
    .evento-imagen-wrapper {
        height: 200px !important;
    }
    
    .meta-item {
        font-size: 12px !important;
    }
    
    .widget-title {
        font-size: 16px !important;
    }
    
    .blog_page_button a {
        padding: 10px 24px !important;
        font-size: 13px !important;
    }
    
    .page-numbers a,
    .page-numbers span {
        width: 38px !important;
        height: 38px !important;
        font-size: 13px !important;
    }
    
    .calendar-select {
        font-size: 11px !important;
        padding: 4px 6px !important;
        max-width: 120px !important;
    }
}