/* Custom styles for VAOpe Clone Completo */

:root {
    --primary: #006fff;
    --primary-rgb: 0 111 255;
    --primary-light: #2b88ff;
    --primary-dark: #0053bf;
    --accent: #FACC15;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 20px;
    border: 3px solid #f8fafc;
}

::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Category Buttons */
.category-btn {
    background-color: #f8fafc;
    color: #64748b;
    border: 1px solid #f1f5f9;
}

.category-btn:hover {
    background-color: #f1f5f9;
    color: #475569;
}

.category-btn.active {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 10px 15px -3px rgb(var(--primary-rgb) / 0.2);
}

/* Event Cards */
.event-card {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* Modal Transitions */
#event-modal {
    transition: opacity 0.3s ease;
}

#modal-content {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

/* Hero Section Refinements */
#hero h1 {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-100 {
    animation-delay: 0.1s;
}

#hero-slider-container {
    will-change: transform;
}

/* Search Input Focus */
#search-input:focus {
    box-shadow: 0 0 0 4px rgb(var(--primary-rgb) / 0.1);
}

/* Search Suggestions */
#search-suggestions {
    max-height: 400px;
    overflow-y: auto;
}

#search-suggestions img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.suggestion-item:hover {
    background-color: #eff6ff;
}

/* Custom transitions for hero search */
#hero-search-input:focus + button {
    transform: scale(1.05);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-primary-light {
    background-color: var(--primary-light);
}

.bg-primary-dark {
    background-color: var(--primary-dark);
}

.hover-bg-primary:hover {
    background-color: var(--primary);
}

.hover-bg-primary-dark:hover {
    background-color: var(--primary-dark);
}

.text-primary {
    color: var(--primary);
}

.text-primary-light {
    color: var(--primary-light);
}

.hover-text-primary:hover {
    color: var(--primary);
}

.border-primary {
    border-color: var(--primary);
}

.hover-border-primary:hover {
    border-color: var(--primary);
}

.focus-border-primary:focus {
    border-color: var(--primary);
}

.bg-primary-soft {
    background-color: rgb(var(--primary-rgb) / 0.12);
}

.bg-primary-40 {
    background-color: rgb(var(--primary-rgb) / 0.4);
}

/* Box Selection Grid */
.box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.box-item {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.box-item.available {
    background-color: #f3f4f6;
    color: #1f2937;
}

.box-item.available:hover {
    background-color: #e5e7eb;
    transform: scale(1.05);
}

.box-item.selected {
    background-color: #FACC15; /* Amarillo (Reserva/Seleccionado) */
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4);
    border-color: #eab308;
    transform: scale(1.05);
}

.box-item.sold-out {
    background-color: #fee2e2;
    color: #ef4444;
    cursor: not-allowed;
    opacity: 0.6;
    text-decoration: line-through;
}

.box-item.reserved {
    background-color: #fef3c7; /* Naranja muy claro / Crema */
    color: #d97706; /* Naranja oscuro */
    cursor: not-allowed;
    border: 2px dashed #fbbf24;
    position: relative;
}

.box-item.reserved::after {
    content: 'P'; /* Pendiente */
    position: absolute;
    top: -5px;
    right: -5px;
    background: #fbbf24;
    color: white;
    font-size: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

/* Utility for smooth image loading */
