/* SisRifa - Estilos Modernos y Elegantes */

:root {
    --primary-color: #1e3a8a;      /* Azul oscuro elegante */
    --secondary-color: #10b981;     /* Verde esmeralda */
    --accent-color: #f59e0b;        /* Dorado/Naranja */
    --dark-color: #1f2937;          /* Gris oscuro */
    --light-gray: #f8fafc;          /* Gris muy claro */
    --border-color: #e5e7eb;        /* Gris border */
    --text-primary: #1f2937;        /* Texto principal */
    --text-secondary: #6b7280;      /* Texto secundario */
    --success-color: #059669;       /* Verde éxito */
    --warning-color: #d97706;       /* Naranja advertencia */
    --danger-color: #dc2626;        /* Rojo peligro */
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset y Base */
* {
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: var(--text-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Layout Principal */
.main-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    padding-top: 76px; /* Espacio para navbar fixed */
    padding-bottom: 2rem;
}

/* Navbar Moderno */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: var(--white) !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin: 0 0.2rem;
}

.nav-link:hover {
    color: var(--white) !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--white) !important;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Hero Section Mejorada */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 50%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.95;
}

/* Cards Modernas */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    background: var(--white);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    border: none;
    color: var(--white);
    padding: 1.5rem 2rem;
    font-weight: 600;
}

.card-body {
    padding: 2rem;
}

.rifa-card {
    transition: all 0.4s ease;
    border-radius: 20px;
    overflow: hidden;
}

.rifa-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Botones Modernos */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    text-transform: none;
    letter-spacing: 0.025em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: var(--white);
}

.btn-success {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    color: var(--white);
}

.btn-warning {
    background: linear-gradient(135deg, var(--accent-color) 0%, #d97706 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #b91c1c 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Formularios Elegantes */
.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    background: var(--white);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
    background: var(--white);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Progress Bar Animada */
.progress {
    height: 8px;
    border-radius: 10px;
    background-color: var(--border-color);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    border-radius: 10px;
    transition: width 0.8s ease;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

/* Alerts Modernos */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    border-left: 4px solid;
}

.alert-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: var(--success-color);
    border-left-color: var(--success-color);
}

.alert-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: var(--warning-color);
    border-left-color: var(--warning-color);
}

.alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    color: var(--danger-color);
    border-left-color: var(--danger-color);
}

/* Tables Elegantes */
.table {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 0;
}

.table th {
    background: linear-gradient(135deg, var(--dark-color) 0%, #374151 100%);
    color: var(--white);
    border: none;
    font-weight: 600;
    padding: 1.25rem;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.table td {
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: var(--light-gray);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Badges Modernos */
.badge {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

.bg-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #047857 100%) !important;
}

.bg-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #b45309 100%) !important;
}

.bg-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #991b1b 100%) !important;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #111827 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem 0;
    margin-top: auto;
}

.footer p {
    margin-bottom: 0;
}

/* Tickets/Boletos */
.ticket {
    background: var(--white);
    border-radius: 16px;
    border: 3px dashed var(--primary-color);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--shadow);
}

.ticket:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.ticket::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: var(--light-gray);
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.ticket::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: var(--light-gray);
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.ticket-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin: 1.5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Spinner */
.spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 0.25em;
    border-color: var(--primary-color);
    border-right-color: transparent;
}

/* Input Groups */
.input-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.input-group .form-control {
    border: none;
    box-shadow: none;
}

.input-group .btn {
    border: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .ticket-number {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* Animaciones */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* ===========================================
   GALERÍA 3D ESPECTACULAR
   =========================================== */

.hero-gallery {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-slider {
    position: relative;
    width: 90%;
    height: 80%;
    max-width: 1200px;
    max-height: 700px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-3d-container {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.6s ease;
    transform: translateZ(0);
    filter: brightness(1.1) contrast(1.1);
}

.hero-image:hover {
    transform: translateZ(50px) rotateY(5deg) rotateX(5deg);
    filter: brightness(1.2) contrast(1.2);
}

.image-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide.active .image-glow {
    opacity: 1;
}

.image-reflection {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    border-radius: 20px;
    pointer-events: none;
    opacity: 0.3;
    transform: scaleY(-1);
    filter: blur(2px);
}

.gallery-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.nav-btn i {
    font-size: 20px;
}

.thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: none;
    padding: 0;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.thumbnail.active {
    border-color: #ffd700;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    z-index: 5;
    pointer-events: none;
}

.hero-content {
    padding: 60px;
    color: white;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.price-label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.status-badge.closed {
    background: rgba(220, 53, 69, 0.8);
    color: white;
}

.status-badge.urgent {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.6);
}

/* ===========================================
   PANEL DE PARTICIPACIÓN
   =========================================== */

.participation-panel {
    position: sticky;
    top: 20px;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.admin-stats {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.progress-info {
    margin-bottom: 20px;
}

.progress {
    height: 8px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.1);
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-item .number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-item .label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.price-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.price-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-amount {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.price-text {
    font-size: 1.1rem;
    opacity: 0.9;
}

.participate-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 15px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
}

.participate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(40, 167, 69, 0.4);
}

.time-remaining .alert {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

/* ===========================================
   INFORMACIÓN DEL PREMIO
   =========================================== */

.prize-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.prize-details {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-item i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.detail-item .label {
    font-weight: 600;
    color: #666;
    min-width: 140px;
}

.detail-item .value {
    font-weight: 700;
    color: #333;
}

/* ===========================================
   MODAL DE IMAGEN
   =========================================== */

.modal-content.bg-transparent {
    background: rgba(0, 0, 0, 0.9) !important;
    border: none;
}

.modal-xl .modal-body img {
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 768px) {
    .hero-gallery {
        height: 70vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        padding: 30px;
    }
    
    .price-value {
        font-size: 2rem;
    }
    
    .thumbnails {
        gap: 10px;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .nav-btn {
        width: 50px;
        height: 50px;
    }
    
    .participation-panel {
        position: static;
        margin-top: 30px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .price-value {
        font-size: 1.8rem;
    }
    
    .thumbnails {
        bottom: 10px;
        gap: 8px;
    }
    
    .thumbnail {
        width: 50px;
        height: 35px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .nav-btn i {
        font-size: 16px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-item .label {
        min-width: auto;
    }
} 

/* app.css - Estilos principales de la aplicación */

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Estilos para el selector de ganador */
.selector-ganador {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.roulette-container {
    perspective: 1000px;
}

.roulette-wheel {
    transform-style: preserve-3d;
    transition: transform 0.5s ease-in-out;
}

.confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Animaciones para efectos */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotate-animation {
    animation: rotate 2s linear infinite;
}

/* Estilos para botones especiales */
.btn-winner {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border: none;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-winner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: white;
}

/* Estilos para estadísticas */
.stats-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Efectos de glassmorphism */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Estilos para la página de ganadores */
.winners-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.winner-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.winner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Estilos para fotos de ganadores */
.winner-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Estilos para reportes y gráficas */
.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
    margin: 20px 0;
}

.chart-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

/* Canvas para gráficas */
#ventasPorDiaChart,
#metodosPagoChart,
#participantesChart {
    max-width: 100%;
    max-height: 400px;
}

/* Estilos para dashboard */
.dashboard-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Estilos para formularios */
.form-floating > label {
    opacity: 0.65;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 1;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Botones personalizados */
.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-success {
    background: linear-gradient(45deg, #56ab2f, #a8e6cf);
    border: none;
}

.btn-danger {
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    border: none;
}

.btn-warning {
    background: linear-gradient(45deg, #feca57, #ff9ff3);
    border: none;
    color: white;
}

/* Estilos para tablas */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table thead th {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Estilos para modales */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.modal-header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.modal-title {
    font-weight: bold;
}

/* Alertas personalizadas */
.alert {
    border: none;
    border-radius: 10px;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(45deg, #56ab2f, #a8e6cf);
    color: white;
}

.alert-danger {
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    color: white;
}

.alert-warning {
    background: linear-gradient(45deg, #feca57, #ff9ff3);
    color: white;
}

.alert-info {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

/* Navegación */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Cards mejoradas */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border-bottom: none;
    font-weight: bold;
}

/* Badges mejorados */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.custom-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

/* Utilidades de spacing */
.mt-6 { margin-top: 4rem; }
.mb-6 { margin-bottom: 4rem; }
.py-6 { padding-top: 4rem; padding-bottom: 4rem; }

/* Utilidades adicionales */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #667eea, #764ba2) border-box;
}

/* Responsive */
@media (max-width: 768px) {
    .stat-value {
        font-size: 2rem;
    }
    
    .dashboard-card {
        margin-bottom: 1rem;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .selector-ganador .container-fluid {
        padding: 1rem;
    }
    
    .roulette-container {
        font-size: 0.8rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
}

/* Loading específico para gráficas */
.chart-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    font-size: 1.1rem;
    color: #666;
}

.chart-loading .spinner-border {
    margin-right: 10px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .glass-effect {
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .stats-card {
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Estilos para imprimir */
@media print {
    .btn, .navbar, .sidebar {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Estilos para la página de rifas por comisiones */

/* Contenedor de estadísticas con scroll horizontal en móviles */
.stats-scroll-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 5px;
}

.stats-scroll-wrapper {
    display: flex;
    min-width: min-content;
    gap: 10px;
}

.stats-card {
    min-width: 150px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-body {
    padding: 15px;
}

/* Estilos adicionales para tarjetas móviles */
.rifa-card-mobile {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.rifa-card-mobile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.rifa-card-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.rifa-card-body-mobile {
    padding: 15px;
}

/* Mejoras para scroll horizontal en estadísticas */
.stats-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.stats-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.stats-scroll-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.stats-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mejoras para tablas en móviles */
.mobile-friendly-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-details-row {
    background-color: #f8f9fa;
}

.mobile-details {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-detail-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #dee2e6;
    padding-bottom: 5px;
}

.detail-label {
    font-weight: bold;
    color: #6c757d;
}

.detail-value {
    text-align: right;
}

/* Tarjetas para vista de mosaico */
.hover-card {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Media queries para mejorar responsividad */
@media (max-width: 768px) {
    .card-header {
        padding: 0.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .table th, .table td {
        padding: 0.5rem;
    }
    
    .mobile-friendly-table .table {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .btn-group .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    h4 {
        font-size: 1.25rem;
    }
    
    .card-header h5 {
        font-size: 1rem;
    }
    
    .card-header h4 {
        font-size: 1.1rem;
    }
    
    .btn-group .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }
    
    .table th, .table td {
        padding: 0.4rem;
        font-size: 0.85rem;
    }
    
    .mobile-detail-item {
        font-size: 0.85rem;
    }
    
    .stats-card {
        min-width: 120px;
    }
    
    .stats-body {
        padding: 10px;
    }
    
    .stats-body h4 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .stats-body small {
        font-size: 0.7rem;
    }
    
    .mobile-detail-item {
        padding-bottom: 8px;
        margin-bottom: 8px;
    }
}