html, body, * {
    font-family: "Roboto", sans-serif !important;
}

/* Pesos específicos para diferentes elementos */
body {
    font-weight: 400;
}

.navbar-brand, h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
}

strong, b, .fw-bold {
    font-weight: 700;
}
.e-control, .e-btn, .e-input, .e-dropdown, .e-grid {
    font-family: "Roboto", sans-serif !important;
}
/* Estilos para cards de eventos */
.evento-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Ajustes para componentes Syncfusion */
.e-control-wrapper {
    width: 100%;
}

.e-btn.e-block {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .evento-card {
        margin-bottom: 1rem;
    }
}

/* Loading animation (para futuro) */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Sticky sidebar mejorado */
.sticky-top {
    position: sticky !important;
    z-index: 1020;
}

/* Cards de categorías de precio */
.card.border-primary {
    border: 2px solid var(--bs-primary) !important;
    transition: all 0.3s ease;
}

.card.border-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.25);
}

/* Mejoras al progress bar de Syncfusion */
.e-progressbar .e-progress-value {
    font-weight: bold;
    font-size: 14px;
    color: white !important;
}

.e-progressbar .e-progress-track {
    background-color: #e9ecef !important;
}

/* Badges personalizados */
.badge.fs-6 {
    font-size: 1rem !important;
    padding: 0.5rem 1rem;
}

.badge.fs-5 {
    font-size: 1.25rem !important;
    padding: 0.6rem 1.2rem;
}

/* Alertas de fases de venta */
.alert.mb-2 {
    border-left: 4px solid;
    padding-left: 1rem;
}

.alert-success {
    border-left-color: #198754;
}

.alert-secondary {
    border-left-color: #6c757d;
}

/* Información de ocupación */
.text-center small strong {
    display: block;
    font-size: 1.1rem;
    color: var(--bs-primary);
}

/* Breadcrumb personalizado */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
    color: var(--bs-primary);
}

/* Botones Syncfusion mejorados */
.e-btn.e-large {
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 600;
}

.e-btn.e-success {
    background: linear-gradient(135deg, #198754, #20c997);
    border: none;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
}

.e-btn.e-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
}

.e-btn.e-danger {
    background: linear-gradient(135deg, #dc3545, #e85a4f);
}

.e-btn.e-outline {
    border: 2px solid var(--bs-primary);
    background: transparent;
    color: var(--bs-primary);
}

/* Toast notifications */
.toast-container {
    z-index: 1055;
}

.toast {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive improvements */
@media (max-width: 991.98px) {
    .sticky-top {
        position: static !important;
    }

    .card.sticky-top {
        margin-top: 1rem;
    }
}

/* Animaciones suaves */
.card {
    transition: all 0.3s ease;
}

.alert {
    transition: all 0.3s ease;
}

/* Loading estado para progress bar */
.e-progressbar.loading .e-progress-bar {
    animation: progressPulse 1.5s ease-in-out infinite alternate;
}

@keyframes progressPulse {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* ===== ESTILOS PARA PROCESO DE COMPRA ===== */

/* Métodos de pago */
.payment-method {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #dee2e6;
}

.payment-method:hover {
    border-color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.payment-method.active,
.payment-method.border-primary {
    border-color: #0d6efd;
    background-color: #f8f9fa;
}

/* Formularios */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.is-valid {
    border-color: #28a745;
}

.is-invalid {
    border-color: #dc3545;
}

/* Cards y componentes */
.sticky-top {
    z-index: 1020;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.form-text {
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sticky-top {
        position: relative !important;
        top: auto !important;
    }
}

/* Estados de loading */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Proceso de compra visual */
.proceso-compra .step {
    position: relative;
}

.proceso-compra .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #dee2e6;
    transform: translateY(-50%);
}

.proceso-compra .step.completed::after {
    background: #28a745;
}

.proceso-compra .step.active::after {
    background: linear-gradient(to right, #28a745 50%, #dee2e6 50%);
}

/* Modales */
.modal-content {
    border-radius: 0.5rem;
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
}

/* Alertas y notificaciones */
.alert {
    border-radius: 0.375rem;
    border: none;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
}

/* Entradas y tickets */
.entrada-item {
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.entrada-item:hover {
    border-color: #0d6efd;
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
}

.entrada-qr {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    background: #f8f9fa;
    padding: 0.25rem;
    border-radius: 0.25rem;
}

/* Estados de entrada */
.estado-valida {
    color: #28a745;
}

.estado-canjeada {
    color: #6c757d;
}

.estado-cancelada {
    color: #dc3545;
}

/* Botones especiales */
.btn-compra {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-compra:hover {
    background: linear-gradient(45deg, #1e7e34, #1ea97c);
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.2);
}

/* Iconos */
.icono-estado {
    width: 1.2rem;
    height: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Animaciones */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Tema oscuro (opcional) */
@media (prefers-color-scheme: dark) {
    .card {
        background-color: #2d3748;
        color: #e2e8f0;
    }

    .bg-light {
        background-color: #4a5568 !important;
    }

    .text-muted {
        color: #a0aec0 !important;
    }
}

.entrada-item {
    transition: all 0.3s ease;
}

.entrada-item:hover {
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
}

.qr-placeholder {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.entrada-qr {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    word-break: break-all;
    max-width: 100px;
}

@media print {
    .btn, .card-footer, nav, .sidebar {
        display: none !important;
    }
}


 .entrada-card {
     transition: all 0.3s ease;
 }

.entrada-card:hover {
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
}

.qr-display {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.qr-code-text {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    word-break: break-all;
    max-width: 120px;
    margin-top: 0.5rem;
}

@media print {
    .btn, .card-footer, nav, .col-lg-4 {
        display: none !important;
    }

    .col-lg-8 {
        width: 100% !important;
    }
}

.entrada-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.entrada-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.qr-placeholder {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.animate__animated {
    animation-duration: 1s;
}

.animate__bounceIn {
    animation-name: bounceIn;
}

@keyframes bounceIn {
    from, 20%, 40%, 60%, 80%, to {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }

    0% {
        opacity: 0;
        transform: scale3d(.3, .3, .3);
    }

    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }

    40% {
        transform: scale3d(.9, .9, .9);
    }

    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }

    80% {
        transform: scale3d(.97, .97, .97);
    }

    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}