@charset "utf-8";
/* CSS Document */

/* Fuentes personalizadas */
@font-face {
    font-family: 'Bitcrusher';
    src: url('fonts/bitcrusher.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Bunya';
    src: url('fonts/bunya.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* styles.css - Estilos generales */
:root {
    --light-blue: #000;
    --medium-blue: #3cc5f7;
    --primary-blue: #000;
    --dark-blue: #024e92;
    --navy: #000;
    --green: #2e7d32;
    --light-bg: #ccc;
}

body {
    font-family: 'Bunya', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Bitcrusher', Arial, sans-serif;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

.bg-dark-blue {
    background-color: var(--dark-blue) !important;
}

.bg-navy {
    background-color: var(--navy) !important;
}

.text-primary {
    color: var(--primary-blue) !important;
}

.text-dark-blue {
    color: var(--dark-blue) !important;
}

.text-navy {
    color: var(--navy) !important;
}

.text-green {
    color: var(--green) !important;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    color: white;
}

.btn-success {
    background-color: var(--green);
    border-color: var(--green);
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Estilos para la barra de navegación */
.navbar {
    background-color: var(--navy) !important;
    padding: 0.5rem 1rem;
}

.navbar-brand img {
    height: 100px;
    width: auto;
}

.navbar-toggler {
    border: 1px solid var(--light-blue);
    color: var(--light-blue);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(129, 203, 238, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link i {
    margin-right: 0.5rem;
}

.navbar-nav .nav-link:hover {
    color: var(--light-blue) !important;
}

/* Footer styles */
footer.bg-dark-blue {
    background-color: var(--navy) !important;
}

footer a.text-white:hover {
    color: var(--light-blue) !important;
    text-decoration: underline;
}

.bg-purple {
    background-color: var(--dark-blue) !important;
}

.alert-info {
    background-color: #e3f2fd;
    border-color: #bbdefb;
    color: var(--dark-blue);
}

/* Modal styles */
.modal-content {
    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    background-color: var(--navy);
    color: white;
    border-bottom: 2px solid var(--primary-blue);
}

.modal-footer {
    border-top: 1px solid #dee2e6;
}

/* Form styles */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(27, 163, 224, 0.25);
}

/* Contenedor para imágenes de sorteos - MANTIENE RELACIÓN DE ASPECTO */
.card-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.raffle-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Responsividad */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .card-img-container {
        height: 180px;
    }
}

/* Utilidades */
.rounded-top-10 {
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
}

.rounded-bottom-10 {
    border-bottom-left-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Estilos para cartones de bingo */
.bingo-card-90 {
    border: 3px solid var(--primary-blue);
    margin: 1px;
    overflow: hidden;
    background: white;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
}

.bingo-card-90.selected {
    border-color: var(--green);
    border-width: 4px;
    box-shadow: 0 0 15px rgba(46, 125, 50, 0.5);
}

.bingo-table-90 {
    width: 100%;
    font-size: 16px;
    table-layout: fixed;
}

.bingo-table-90 td {
    border: 1px solid #ddd;
    text-align: center;
    height: 40px;
    width: 11.11%;
    position: relative;
    box-sizing: border-box;
}

.bingo-table-90 td.empty {
    background-color: #000000;
}

.bingo-table-90 td.number {
    font-weight: bold;
    font-size: 18px;
}

/* Estilos para cartones de bingo 75 */
.bingo-card {
    border: 3px solid var(--primary-blue);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.3s;
    background: white;
    cursor: pointer;
}

.bingo-card.selected {
    border-color: var(--green);
    border-width: 4px;
    box-shadow: 0 0 15px rgba(46, 125, 50, 0.5);
}

.bingo-card-header {
    background-color: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 8px;
    font-weight: bold;
}


/* Barra fija inferior */
.fixed-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

/* Centrado de elementos */
.text-center, .justify-content-center {
    text-align: center !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}