/* ===== TOURS SECTION - EL CORAZÓN DEL SITIO ===== */
.tours-section {
    padding: var(--spacing-3xl) 0;
    background: var(--light-color);
    position: relative;
    overflow: hidden;
}

.tours-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.tours-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

/* Patrón sutil de fondo */
.tours-section {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.03) 0%, transparent 50%);
    background-size: 100% 100%;
}

.tours-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    position: relative;
    z-index: 2;
    padding: var(--spacing-2xl) 0;
}

.tours-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    opacity: 0.3;
}

/* ===== FILTROS DE TOURS ===== */
.tours-filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
    flex-wrap: wrap;
}

.filter-button {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--light-color);
    border: 2px solid var(--neutral-color);
    border-radius: var(--border-radius-xl);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: var(--fs-base);
    color: var(--gray-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    min-width: 180px;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.02);
}

.filter-button.active {
    background: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.filter-button i {
    font-size: var(--fs-lg);
}

/* ===== CONTENEDOR Y GRID DE TOURS ===== */
.tours-container {
    position: relative;
    z-index: 2;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-3xl);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ===== TARJETA DE TOUR PROFESIONAL ===== */
.tour-card {
    background: var(--light-color);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid var(--neutral-color);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 650px;
}

.tour-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.02) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.tour-card:hover::before {
    opacity: 1;
}

.tour-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

/* ===== HEADER DE LA TARJETA ===== */
.tour-header-section {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.tour-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: var(--neutral-color);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tour-card:hover .tour-image {
    transform: scale(1.08);
}

.tour-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.6) 0%,
        rgba(255, 107, 53, 0.4) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.tour-card:hover .tour-overlay {
    opacity: 1;
}

.tour-category-badge {
    position: absolute;
    top: var(--spacing-lg);
    left: var(--spacing-lg);
    background: var(--primary-color);
    color: var(--light-color);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
    z-index: 3;
}

.tour-preview-btn {
    background: var(--light-color);
    color: var(--primary-color);
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    font-weight: 700;
    font-size: var(--fs-base);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tour-preview-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* ===== CONTENIDO DE LA TARJETA ===== */
.tour-content {
    padding: var(--spacing-2xl);
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.tour-title {
    font-size: var(--fs-2xl);
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: var(--spacing-md);
    text-align: center;
    line-height: 1.2;
}

.tour-description {
    font-size: var(--fs-base);
    color: var(--gray-color);
    line-height: 1.7;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

/* ===== DETALLES SIMPLIFICADOS ===== */
.tour-details-simple {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.tour-detail-simple {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--gray-color);
    font-size: var(--fs-sm);
}

.tour-detail-simple i {
    color: var(--primary-color);
    font-size: var(--fs-base);
}

/* ===== PRECIO EN LA TARJETA ===== */
.tour-price-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--border-radius-md);
    color: var(--light-color);
}

.tour-price-simple .price-label {
    font-size: var(--fs-sm);
    font-weight: 500;
    opacity: 0.9;
}

.tour-price-simple .price-value {
    font-size: var(--fs-lg);
    font-weight: 700;
}

/* ===== CARACTERÍSTICAS SIMPLIFICADAS ===== */
.tour-highlights-simple {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.highlight-tag {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-md);
    font-size: var(--fs-xs);
    font-weight: 600;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

/* ===== ACCIONES DE LA TARJETA ===== */
.tour-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.tour-action-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--light-color);
    border: none;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    font-weight: 700;
    font-size: var(--fs-base);
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.tour-action-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.tour-action-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    font-size: var(--fs-base);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tour-action-secondary:hover {
    background: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== ESTADOS DE CARGA Y VACÍO ===== */
.tours-loading,
.tours-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    text-align: center;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--neutral-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner p {
    color: var(--gray-color);
    font-weight: 500;
    margin: 0;
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
}

.empty-state i {
    font-size: var(--fs-6xl);
    color: var(--gray-color);
    margin-bottom: var(--spacing-lg);
}

.empty-state h3 {
    color: var(--dark-color);
    margin-bottom: var(--spacing-md);
}

.empty-state p {
    color: var(--gray-color);
    margin-bottom: var(--spacing-xl);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== MODAL DE DETALLES COMPLETOS ===== */
.tour-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: var(--spacing-lg);
    animation: fadeIn 0.3s ease;
}

.tour-modal-content {
    background: var(--light-color);
    border-radius: var(--border-radius-xl);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    animation: slideUp 0.3s ease;
}

.tour-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-2xl);
    border-bottom: 1px solid var(--neutral-color);
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--light-color);
    z-index: 1;
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
}

.tour-modal-header h2 {
    color: var(--light-color);
    font-size: var(--fs-2xl);
    font-weight: 800;
    margin: 0;
}

.tour-modal-close {
    background: none;
    border: none;
    font-size: var(--fs-xl);
    color: var(--light-color);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.tour-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--light-color);
}

.tour-modal-body {
    padding: var(--spacing-2xl);
}

.tour-modal-image {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    display: flex;
    justify-content: center;
    align-items: center;
}

.tour-modal-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    object-position: center;
    background: var(--neutral-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
    margin: 0 auto;
}

.tour-modal-description {
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--gray-color);
    margin-bottom: var(--spacing-2xl);
    text-align: left;
    white-space: pre-line;
    background: var(--neutral-color);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--primary-color);
}

.tour-modal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.tour-modal-detail {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--neutral-color);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.tour-modal-detail i {
    color: var(--primary-color);
    font-size: var(--fs-lg);
    width: 24px;
}

.tour-modal-detail div {
    color: var(--dark-color);
    font-size: var(--fs-base);
}

/* CTA Section */
.tour-modal-cta {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--border-radius-lg);
    color: var(--light-color);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.tour-modal-cta .cta-text {
    color: var(--light-color);
    font-size: var(--fs-base);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.tour-modal-cta .tour-modal-btn-primary {
    background: var(--light-color);
    color: var(--primary-color);
    border: 2px solid var(--light-color);
    font-weight: 700;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--fs-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.tour-modal-cta .tour-modal-btn-primary:hover {
    background: transparent;
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.cta-text {
    font-size: var(--fs-lg);
    color: var(--dark-color);
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
}

.tour-modal-highlights,
.tour-modal-included {
    margin-bottom: var(--spacing-2xl);
    background: var(--light-color);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--light-gray);
}

.tour-modal-highlights h4,
.tour-modal-included h4 {
    color: var(--dark-color);
    font-size: var(--fs-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.tour-modal-highlights-grid,
.tour-modal-included-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.tour-modal-highlight,
.tour-modal-included-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--neutral-color);
    border-radius: var(--border-radius-md);
    border-left: 3px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.tour-modal-highlight:hover,
.tour-modal-included-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.tour-modal-highlight i {
    color: var(--accent-color);
    font-size: var(--fs-sm);
}

.tour-modal-included-item i {
    color: var(--success-color);
    font-size: var(--fs-sm);
}

.tour-modal-footer {
    padding: var(--spacing-2xl);
    border-top: 1px solid var(--neutral-color);
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.tour-modal-btn {
    padding: var(--spacing-lg) var(--spacing-2xl);
    border: none;
    border-radius: var(--border-radius-lg);
    font-weight: 700;
    font-size: var(--fs-base);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tour-modal-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--light-color);
    box-shadow: var(--shadow-md);
}

.tour-modal-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.tour-modal-btn-secondary {
    background: transparent;
    color: var(--gray-color);
    border: 2px solid var(--neutral-color);
}

.tour-modal-btn-secondary:hover {
    background: var(--neutral-color);
    color: var(--dark-color);
}

/* ===== ANIMACIONES DEL MODAL ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DEL MODAL ===== */
@media (max-width: 768px) {
    .tour-modal {
        padding: var(--spacing-md);
    }
    
    .tour-modal-content {
        max-height: 95vh;
    }
    
    .tour-modal-header,
    .tour-modal-body,
    .tour-modal-footer {
        padding: var(--spacing-lg);
    }
    
    .tour-modal-details {
        grid-template-columns: 1fr;
    }
    
    .tour-modal-highlights-grid,
    .tour-modal-included-grid {
        grid-template-columns: 1fr;
    }
    
    .tour-modal-footer {
        flex-direction: column;
    }
    
    .tour-modal-btn {
        width: 100%;
        justify-content: center;
    }
}
