/* =================================================================== */
/* === ESTILOS GENERALES Y DISEÑO ELEGANTE PARA TODA LA APLICACIÓN === */
/* =================================================================== */

/* --- Estilos Generales --- */
body {
    background-color: #f0f2f5;
    color: #4a4a4a;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-container {
    max-width: 1140px;
    margin: 20px auto;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* --- Barra de Navegación Superior --- */
.navbar-custom {
    background-color: #6a11cb;
    background-image: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    border-radius: 10px;
    color: white;
    padding: 10px 20px;
}
.navbar-brand {
    font-weight: 600;
    color: white !important;
}

/* --- Cuadrícula de Números (CORREGIDA PARA MÓVILES) --- */
.numero-grid {
    display: grid;
    /* Por defecto (móvil), se ajusta automáticamente para que quepan los números */
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); 
    gap: 8px; /* Un poco menos de espacio para móviles */
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* Regla especial para pantallas más grandes (tablets y PC) */
@media (min-width: 768px) {
    .numero-grid {
        /* Aquí forzamos las 10 columnas perfectas que querías */
        grid-template-columns: repeat(10, 1fr);
        gap: 10px;
    }
}


.numero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 5px; /* Un poco menos de padding vertical */
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem; /* Un poco más pequeño para que quepa mejor en móvil */
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease-in-out;
}

.numero:hover:not(.no-disponible) {
    transform: scale(1.08);
    cursor: pointer;
}

/* --- Colores de Estado para los Números --- */
.numero.disponible { background-color: #3498db; } /* Azul */
.numero.reservado { background-color: #f1c40f; color: #333; } /* Amarillo */
.numero.pagado, .numero.vendido { background-color: #e74c3c; } /* Rojo */
.numero.seleccionado { background-color: #2ecc71; border: 2px solid white; box-shadow: 0 0 10px rgba(46, 204, 113, 0.7); } /* Verde */
.numero.no-disponible { opacity: 0.6; cursor: not-allowed; }


/* --- Leyenda de Colores (Página del Cliente) --- */
.legend-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-bottom: 1rem; }
.legend-item { display: flex; align-items: center; font-size: 0.9rem; }
.legend-color { width: 20px; height: 20px; border-radius: 4px; margin-right: 8px; border: 1px solid rgba(0,0,0,0.1); }
.legend-color.disponible { background-color: #3498db; }
.legend-color.seleccionado { background-color: #2ecc71; }
.legend-color.reservado { background-color: #f1c40f; }
.legend-color.pagado { background-color: #e74c3c; }

/* --- Tarjetas de Reservas y Pagos (Panel Vendedor) --- */
.reservation-card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: box-shadow 0.2s;
}
.reservation-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.reservation-actions .btn {
    margin-left: 5px;
}

/* --- Encabezados de Paneles con Degradado --- */
.bg-purple-gradient { background-image: linear-gradient(to right, #6a11cb 0%, #2575fc 100%); }
.bg-pink-gradient { background-image: linear-gradient(to right, #ff416c 0%, #ff4b2b 100%); }

/* --- Estilos para la Página del Cliente --- */
.rifa-header { border-radius: 12px; overflow: hidden; margin-bottom: 2rem; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.rifa-header-image { width: 100%; height: auto; display: block; }
.rifa-description { background-color: #fff; padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.info-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 20px; }
.info-button { background-color: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px; padding: 12px 15px; display: flex; align-items: center; gap: 12px; font-size: 0.95rem; transition: all 0.2s ease-in-out; }
.info-button:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
.info-button i { color: #0d6efd; font-size: 1.2rem; }
.receipt-box { background-color: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 20px; height: 100%; }

/* --- Imágenes Responsivas (Desktop/Móvil) --- */
.imagen-desktop { display: block; }
.imagen-movil { display: none; }

@media (max-width: 768px) {
  .imagen-desktop { display: none; }
  .imagen-movil { display: block; }
}