/* Estilos para las funciones de WordPress integradas */

/* Tarjetas de funciones */
.function-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 10px 5px;
    height: 100%;
}

.function-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Imagen de la función */
.function-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.function-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.function-card:hover .function-image img {
    transform: scale(1.05);
}

/* Fecha superpuesta */
.function-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(220, 20, 60, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Información de la función */
.function-info {
    padding: 20px !important;
    background: #fff;
}

.function-info .title-box {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.function-info .title-box a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.function-info .title-box a:hover {
    color: #dc143c;
    text-decoration: none;
}

/* Descripción */
.function-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    min-height: 60px;
    text-align: justify;
}

/* Meta información */
.function-meta {
    border-top: 1px solid #eee;
    padding-top: 15px;
    text-align: center;
}

.function-meta .btn {
    background: linear-gradient(45deg, #dc143c, #ff4757);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.function-meta .btn:hover {
    background: linear-gradient(45deg, #b71c1c, #dc143c);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 20, 60, 0.3);
    color: white;
}

/* Ajustes para el carrusel */
.news .owl-carousel .owl-item {
    display: flex;
    align-items: stretch;
}

.news .owl-carousel .item {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0 10px;
}

/* Asegurar que el carrusel no se rompa */
.owl-carousel {
    display: block !important;
}

.owl-carousel .owl-item {
    float: left;
}

.owl-carousel .owl-stage {
    display: flex !important;
    align-items: stretch;
}

.owl-carousel .owl-stage-outer {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .function-image {
        height: 150px;
    }
    
    .function-info {
        padding: 15px !important;
    }
    
    .function-info .title-box {
        font-size: 16px;
        min-height: auto;
    }
    
    .function-description {
        font-size: 13px;
        min-height: auto;
    }
    
    .function-date {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* Ajustes para cuando no hay contenido */
.no-functions-message {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    margin: 20px;
}

.no-functions-message h4 {
    color: white;
    margin-bottom: 15px;
}

.no-functions-message p {
    opacity: 0.9;
    margin: 0;
}

/* Estilos para la sección de boletos */
.ticket-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 2px solid #dc143c !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.1);
    transition: all 0.3s ease;
}

.ticket-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.15);
}

.ticket-section h5 {
    color: #2c3e50;
    font-weight: bold;
}

.ticket-section .btn-success {
    background: linear-gradient(45deg, #25D366, #128C7E);
    border: none;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.ticket-section .btn-success:hover {
    background: linear-gradient(45deg, #128C7E, #075E54);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
}

.ticket-section .btn-success i {
    font-size: 1.2em;
}

/* Responsive para la sección de boletos */
@media (max-width: 768px) {
    .ticket-section .col-md-4 {
        text-align: center !important;
    }
    
    .ticket-section .btn-success {
        width: 100%;
        margin-top: 10px;
    }
}

/* Estilos para botones de WhatsApp en carrusel */
.function-meta .btn-success {
    background: linear-gradient(45deg, #25D366, #128C7E);
    border: none;
    color: white;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.function-meta .btn-success:hover {
    background: linear-gradient(45deg, #128C7E, #075E54);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.function-meta .d-flex {
    gap: 8px;
}

.function-meta .d-flex .btn {
    flex: 1;
}

/* Responsive para botones del carrusel */
@media (max-width: 576px) {
    .function-meta .d-flex {
        flex-direction: column;
    }
    
    .function-meta .btn {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* ===== BREADCRUMBS STYLES ===== */
.breadcrumb {
    font-size: 14px;
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #dc3545;
    font-weight: bold;
    font-size: 16px;
}

.breadcrumb-item a {
    color: #dc3545;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #c82333;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 600;
}

/* Estilo específico para breadcrumb-agile */
.breadcrumb-agile {
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-agile .breadcrumb {
    padding: 0.75rem 0;
    margin-bottom: 0;
}

/* Breadcrumb responsivo */
@media (max-width: 576px) {
    .breadcrumb {
        font-size: 12px;
        padding: 0.5rem 0;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        font-size: 14px;
    }
    
    .breadcrumb-item i {
        display: none;
    }
}

/* ===== PAGINATION STYLES ===== */
.pagination {
    margin: 2rem 0;
}

.page-link {
    color: #dc3545;
    border-color: #dc3545;
    transition: all 0.3s ease;
}

.page-link:hover {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.page-item.active .page-link {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Pagination responsive */
@media (max-width: 576px) {
    .pagination {
        font-size: 14px;
    }
    
    .page-link {
        padding: 0.375rem 0.75rem;
    }
}

/* ===== FUNCTIONS GRID RESPONSIVE ===== */
@media (max-width: 768px) {
    .function-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .function-actions {
        width: 100%;
    }
    
    .function-actions .btn {
        width: 48%;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .function-actions .btn {
        width: 100%;
        margin-bottom: 5px;
    }
}