* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
}

.logo-image {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid #d4af37;
    box-sizing: border-box;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #d4af37;
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    color: #cccccc;
    font-size: 1.1em;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
    border-radius: 10px;
    border: 1px solid #d4af37;
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    color: #cccccc;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #d4af37;
}

.stat-value2 {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #ff9800;
}

.stat-value3 {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #f44336;
}




.info-cards {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.info-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
}

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

.info-card h3 {
    color: #d4af37;
    margin-bottom: 15px;
    font-size: 1.3em;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 10px;
}

.premios-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
}

.premio {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.premio:last-child {
    border-bottom: none;
}

.premio-lugar {
    font-weight: bold;
    color: #d4af37;
    font-size: 1.1em;
}

.premio-valor {
    color: #ffffff;
    font-weight: 500;
}

.instrucciones-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
}

.instrucciones-lista {
    margin: 0;
    padding-left: 20px;
    color: #ffffff;
}

.instrucciones-lista li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.instrucciones-lista li:last-child {
    margin-bottom: 0;
}

.pago-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
}

.pago-info p {
    margin: 10px 0;
    color: #ffffff;
    line-height: 1.6;
}

.pago-info strong {
    color: #d4af37;
}

.grid-container {
    display: grid;
    gap: 8px;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 0;
}

.numero {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #d4af37;
    position: relative;
    overflow: hidden;
}

.numero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.numero:hover::before {
    left: 100%;
}

.numero.disponible {
    background: #f5f5dc;
    color: #1a1a1a;
    border-color: #d4af37;
}

.numero.disponible:hover {
    background: #d4af37;
    color: #1a1a1a;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.numero.pendiente {
    background: #2d2d2d;
    color: #ff9800;
    border-color: #ff9800;
    cursor: not-allowed;
}

.numero.pendiente::after {
    content: '⏳';
    position: absolute;
    font-size: 0.8em;
    top: 2px;
    right: 5px;
}

.numero.reservado {
    background: #2d2d2d;
    color: #f44336;
    border-color: #f44336;
    cursor: not-allowed;
}

.numero.reservado::after {
    content: '✓';
    position: absolute;
    font-size: 0.8em;
    top: 2px;
    right: 5px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    color: #d4af37;
    margin-bottom: 20px;
}

.modal-content p {
    margin-bottom: 20px;
    color: #cccccc;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #d4af37;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    background: #1a1a1a;
    color: #ffffff;
}

.form-group input:focus {
    outline: none;
    border-color: #d4af37;
}

.form-help {
    display: block;
    margin-top: 5px;
    color: #cccccc;
    font-size: 0.85em;
    font-style: italic;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background: #d4af37;
    color: #1a1a1a;
}

.btn-primary:hover {
    background: #c9a227;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-admin {
    background: linear-gradient(135deg, #d4af37 0%, #c9a227 100%);
    color: #1a1a1a;
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    font-size: 0.9em;
    z-index: 1000;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-admin:hover {
    background: linear-gradient(135deg, #c9a227 0%, #d4af37 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-success {
    background: #4caf50;
    color: white;
}

.btn-success:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-danger:hover {
    background: #da190b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.3);
}

.btn-warning {
    background: #ff9800;
    color: white;
}

.btn-warning:hover {
    background: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9em;
}

.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 2000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    background: #4caf50;
}

.notification.error {
    background: #f44336;
}

.notification.info {
    background: #2196f3;
}

/* .grid-container {
        display: flex;
        flex-wrap: wrap;
        padding: 10px;
    }

    .grid-container .numero {
        margin: 5px;
    } */

/* Media Queries para el grid de números */

/* Mobile (< 480px): 5 números por fila */
@media (max-width: 479px) {
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        gap: 6px;
    }

    .numero {
        width: 100%;
        height: 50px;
        font-size: 1em;
    }
}

/* Tablet pequeña (480px - 768px): 8 números por fila */
@media (min-width: 480px) and (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(55px, 1fr));
        gap: 7px;
    }

    .numero {
        width: 100%;
        height: 55px;
        font-size: 1.1em;
    }
}

/* Tablet grande (768px - 1024px): 12 números por fila */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 8px;
    }

    .numero {
        width: 100%;
        height: 60px;
        font-size: 1.2em;
    }
}

/* Desktop (1024px - 1440px): 16 números por fila */
@media (min-width: 1025px) and (max-width: 1440px) {
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 8px;
    }

    .numero {
        width: 100%;
        height: 60px;
        font-size: 1.2em;
    }
}

/* Desktop grande (> 1440px): 20 números por fila */
@media (min-width: 1441px) {
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(65px, 1fr));
        gap: 10px;
    }

    .numero {
        width: 100%;
        height: 65px;
        font-size: 1.3em;
    }
}

/* Media queries generales para responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .info-cards {
        flex-direction: column;
    }

    .info-card {
        padding: 20px;
    }

    .info-card h3 {
        font-size: 1.1em;
    }

    .premio {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .stats {
        flex-direction: column;
        gap: 15px;
    }

    .btn-admin {
        position: relative;
        top: auto;
        right: auto;
        margin: 0 auto 20px auto;
        display: block;
        text-align: center;
    }

    .logo-container {
        margin-bottom: 20px;
    }
}