/* RESET BÁSICO */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 10px;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f4f4;
}

/* TÍTULO */
.titulo {
    text-align: center;
    margin-bottom: 10px;
}

/* TABS */
.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
}

.tab-btn {
    padding: 8px 12px;
    margin: 4px;
    border: none;
    background: #007bff;
    color: #fff;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
}

.tab-btn:hover {
    background: #0056b3;
}

/* CONTENIDO TABS */
.tab-content {
    display: none;
}

/* GRID DE NÚMEROS */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
}

.numero {
    background: #fff;
    border: 1px solid #ccc;
    text-align: center;
    padding: 14px 0;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.2s;
}

.numero:hover {
    background: #28a745;
    color: #fff;
}

/* ==========================
   MODAL
========================== */

/* FONDO */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    padding: 10px;
}

/* CONTENIDO */
.modal-content {
    background: #fff;
    width: 100%;
    max-width: 420px;
    margin: auto;
    border-radius: 12px;
    padding: 15px;
    position: relative;

    max-height: 95vh;
    overflow-y: auto;
}

/* CERRAR */
.cerrar {
    position: sticky;
    top: 0;
    float: right;
    font-size: 24px;
    cursor: pointer;
    background: #fff;
    padding-left: 10px;
    z-index: 2;
}

/* FORMULARIO */
form label {
    font-weight: bold;
    display: block;
    margin-top: 8px;
}

form input,
form select,
form button {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

form button {
    background: #007bff;
    color: white;
    border: none;
    margin-top: 12px;
    font-size: 16px;
    cursor: pointer;
}

form button:hover {
    background: #0056b3;
}

/* SECCIÓN PAGOS */
.pagos {
    margin-top: 15px;
    background: #f1f1f1;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.pagos h4 {
    margin-top: 0;
}

/* ==========================
   MOBILE
========================== */
@media (max-width: 480px) {
    .titulo {
        font-size: 18px;
    }

    .tab-btn {
        font-size: 13px;
        padding: 6px 10px;
    }

    .numero {
        padding: 12px 0;
        font-size: 14px;
    }

    .modal-content {
        padding: 12px;
    }

    .pagos {
        font-size: 13px;
    }
}
/* ESTADOS DE NÚMEROS */
.numero.reservado {
    background: #dc3545;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.8;
}
.numero.pagado {
    background: #28a745;
    color: #fff;
    cursor: not-allowed;
}
/* HISTORIA */
.historia {
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.historia h3 {
    margin-top: 0;
    text-align: center;
}

.historia p,
.historia ul {
    font-size: 15px;
    line-height: 1.5;
}
.historia .precio {
    font-size: 18px;
    text-align: center;
    margin: 10px 0;
    color: #28a745;
}
/* HISTORIA - CENTRADO EN DESKTOP */
.historia {
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    margin: 0 auto 15px auto; /* 👈 CENTRA */
    max-width: 900px;        /* 👈 LIMITA ANCHO */
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;      /* 👈 TEXTO CENTRADO */
}

/* LISTA */
.historia ul {
    list-style-position: inside;
    padding-left: 0;
    display: inline-block;
    text-align: left; /* mantiene viñetas bonitas */
}

/* IMÁGENES */
.imagenes {
    display: flex;
    justify-content: center; /* 👈 CENTRA IMÁGENES */
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.imagenes img {
    width: 100%;
    max-width: 220px;
    border-radius: 10px;
    object-fit: cover;
}


/* MOBILE */
@media (max-width: 480px) {
    .imagenes {
        justify-content: center;
    }

    .imagenes img {
        max-width: 100%;
    }
}
.btn-borrar {
    background: #dc3545;
    margin-left: 5px;
}