@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffe5e2; /* Tu color rosa base */
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    color: #444;
}
 
header {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    width: 100px; 
    height: auto; 
    border-radius: 15px;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}

.main-title {
    padding: 5px 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: #990b0d;
    border-radius: 30px; 
    box-shadow: 0 6px 14px rgba(214, 40, 40, 0.3);
    display: inline-block;
    margin: 0;
}

.search-box {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.25); /* Transparencia */
    backdrop-filter: blur(10px); /* Efecto cristal */
    padding: 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.search-box input {
    width: 100%;
    padding: 15px;
    border-radius: 15px;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    text-align: center;
    outline: none;
    box-sizing: border-box;
    color: #990b0d;
    font-weight: 600;
    transition: 0.3s;
}

.search-box input:focus {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 15px rgba(214, 40, 40, 0.1);
}

.error-message {
    color: #990b0d;
    font-weight: 600;
    margin: 5px 0 0 0;
    min-height: 1.2em;
    text-align: center;
}
 
.card-id-label {
    background-color: #990b0d;
    color: white;
    font-weight: 800;
    font-size: 24px;
    text-align: center;
    padding: 10px 0;
    margin: 0;
    border-radius: 15px; 
    margin-bottom: 8px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card-container {
    display: none; 
    animation: fadeIn 0.5s ease;
}

.bingo-card {
    background-color: transparent !important;
    padding: 0;
    box-shadow: none;
}

.bingo-body {
    background-color: #990b0d; 
    padding: 20px;
    border-radius: 15px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Contenedor para alinear los botones */
.button-row {
    display: flex;
    justify-content: center; /* Centrados */
    gap: 15px; /* Espacio entre ellos */
    margin-top: 20px;
}

/* Estilo base para AMBOS botones */
.action-btn {
    border: none;
    padding: 10px 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    transition: transform 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.action-btn:active {
    transform: scale(0.95);
}

/* Color específico para COPIAR (Rojo) */
.copy-btn {
    background-color: #c92a2a; 
}

/* Color específico para DESCARGAR (Verde) */
.download-btn {
    background-color: #2e7d32; /* Verde bonito */
}

.bingo-title {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    text-align: center;
    color: white;
    font-weight: 800;
    font-size: 28px; 
    margin-bottom: 15px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.cell {
    background: white;
    width: 50px; 
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: bold;
    font-size: 22px; 
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.cell:hover {
    transform: scale(1.05);
}
 
.cell.free {
    background: #80ed99; 
    color: #004b23;
    font-size: 14px; 
}

.cell.marked {
    background: #ffcc00;
    color: #d62828;
    transform: scale(0.95);
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}
 
.cell.free.marked {
    background: #ffcc00; 
    color: #d62828;
}
 
.center-logo {
    width: 85%;
    height: 85%;
    object-fit: contain;
    border-radius: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media(max-width: 480px){
    .main-title { font-size: 20px; }
    .bingo-card { padding: 10px; }
    .card-id-label { font-size: 20px; }
    .logo { width: 100px; border-radius: 10px; } 
    .cell { 
        width: 42px; 
        height: 42px; 
        font-size: 18px; 
    }
}