/* 
 * BOLETAJE.COM - CSS CLON COMPLETO
 * Basado en metodología exitosa e-Ticket
 * Estilos idénticos al sitio original
 */

/* ========================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
======================================== */
:root {
    --primary-color: #fdb700;
    --secondary-color: #000;
    --text-dark: #333;
    --text-light: #666;
    --text-muted: #999;
    --border-color: #ddd;
    --background-light: #f8f9fa;
    --background-white: #fff;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 8px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========================================
   HEADER Y NAVEGACION
======================================== */
.header-section {
    background: var(--primary-color);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0.5rem 0;
}

.navbar-brand .logo-img {
    width: 180px;
    height: auto;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    margin: 0 10px;
    transition: var(--transition);
    text-decoration: none;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.login-link {
    background: var(--primary-color);
    color: var(--secondary-color) !important;
    padding: 8px 20px !important;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.login-link:hover {
    background: #e6a600;
    color: var(--secondary-color) !important;
}

/* Search Form */
.search-form {
    width: 400px;
    margin: 0 20px;
}

.input-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(253, 183, 0, 0.1);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: #e6a600;
}

.search-btn i {
    color: var(--secondary-color);
    font-size: 14px;
}

/* Mobile Search */
.mobile-display {
    display: none;
    background: var(--primary-color);
    padding: 10px 15px;
}

.mobile-search-container {
    display: flex;
    gap: 10px;
}

.mobile-search-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    outline: none;
}

.mobile-search-btn {
    background: var(--secondary-color);
    color: var(--background-white);
    border: none;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
}

/* ========================================
   HERO BANNER
======================================== */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-color), #ffcd33);
    color: var(--secondary-color);
    padding: 80px 0;
    text-align: center;
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.banner-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.9;
}

/* ========================================
   SECCIONES DE EVENTOS
======================================== */
.featured-section, .events-section {
    padding: 60px 0;
    background: var(--background-white);
}

.events-section {
    background: var(--background-light);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--text-dark);
    text-align: center;
}

.section-title i {
    color: var(--primary-color);
    margin-right: 10px;
}

.events-count {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Filter Bar */
.filter-select {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 12px 15px;
    font-size: 16px;
    background: var(--background-white);
    transition: var(--transition);
}

.filter-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(253, 183, 0, 0.1);
    outline: none;
}

/* ========================================
   CARDS DE EVENTOS
======================================== */
.event-card {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 30px;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.event-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.event-card:hover .event-image {
    transform: scale(1.05);
}

.event-card-body {
    padding: 20px;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-venue {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.event-venue i {
    color: var(--primary-color);
    margin-right: 5px;
}

.buy-button {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.buy-button:hover {
    background: #e6a600;
    transform: translateY(-1px);
}

/* Load More Button */
.btn-load-more {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 15px 40px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-load-more:hover {
    background: #e6a600;
    transform: translateY(-2px);
}

/* ========================================
   CAROUSEL DE DESTACADOS
======================================== */
.owl-carousel .owl-item {
    display: flex;
}

.owl-carousel .event-card {
    width: 100%;
    margin: 0 10px;
}

.owl-nav button {
    background: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 20px !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.owl-nav .owl-prev {
    left: -60px !important;
}

.owl-nav .owl-next {
    right: -60px !important;
}

.owl-dots {
    text-align: center;
    margin-top: 30px;
}

.owl-dot {
    width: 12px !important;
    height: 12px !important;
    background: var(--border-color) !important;
    border-radius: 50% !important;
    margin: 0 5px !important;
}

.owl-dot.active {
    background: var(--primary-color) !important;
}

/* ========================================
   SECCION DE ESTADISTICAS
======================================== */
.stats-section {
    background: var(--secondary-color);
    color: var(--background-white);
    padding: 60px 0;
}

.stat-item {
    padding: 20px;
    text-align: center;
}

.stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   FOOTER
======================================== */
.footer-section {
    background: #2f3136;
    color: #ccc;
    padding: 50px 0 20px 0;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-description {
    color: #999;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-title {
    color: var(--background-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list li {
    margin-bottom: 8px;
}

.footer-list a {
    color: #999;
    text-decoration: none;
    transition: var(--transition);
}

.footer-list a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: #e6a600;
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.footer-divider {
    border-color: #444;
    margin: 30px 0 20px 0;
}

.footer-copyright {
    color: #999;
    font-size: 0.9rem;
    text-align: center;
}

.powered-by {
    color: var(--primary-color);
    font-weight: 600;
}

/* ========================================
   LOADER
======================================== */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(102, 91, 91, 0.8);
    display: none;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 16px solid lightblue;
    border-right-color: var(--primary-color);
    animation: spin 1s infinite linear;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 768px) {
    .desktop-display {
        display: none;
    }
    
    .mobile-display {
        display: block;
    }
    
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .featured-section, .events-section {
        padding: 40px 0;
    }
    
    .stats-section {
        padding: 40px 0;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .owl-nav button {
        display: none !important;
    }
    
    .search-form {
        width: 100%;
        margin: 10px 0;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 20px;
    }
    
    .nav-item {
        margin: 5px 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-banner {
        padding: 60px 0;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 20px;
    }
}

/* ========================================
   ANIMACIONES ADICIONALES
======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ========================================
   UTILIDADES
======================================== */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-light) !important;
}

.shadow {
    box-shadow: var(--shadow-medium) !important;
}

.rounded-lg {
    border-radius: var(--border-radius) !important;
}

/* Fix para Bootstrap Override */
.btn:focus {
    box-shadow: none !important;
}

.form-select:focus, .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(253, 183, 0, 0.25) !important;
    border-color: var(--primary-color) !important;
}