/* ===== BASE ===== */
body {
    font-family: Arial, Helvetica, sans-serif;
}

.contenedor {
    max-width: 700px;
    margin: 5px auto;
    padding: 20px;
}

/* ===== INPUTS ===== */
input, select {
    height: 38px;
    padding: 0 10px;
    font-size: 15px;
    text-align: center;
    line-height: 38px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* ===== MARCOS ===== */
.marco {
    border: 1.5px solid #0E4B9C;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 18px; /* reducido para compactar */
}

.marco legend {
    padding: 0 10px;
    color: #0E4B9C;
    font-weight: 600;
}

/* ===== GRIDS ===== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr; /* corregido */
    gap: 18px;
}

.grid-3 > div,
.grid-2 > div {
    display: flex;
    flex-direction: column;
}

/* ===== SEPARADOR ===== */
.separador-form{
    width:60%;
    height:1px;
    background:linear-gradient(to right, #85c893, #24c948);
    margin:20px auto;
    opacity:0.6;
}

/* ===== OCULTAR SIN ROMPER GRID ===== */
.oculto{
    visibility:hidden;
    pointer-events:none;
}

/* asegurar tamaño estable */
#grupo-categoria{
    width:100%;
}

/* ===== LABELS ===== */
label {
    margin-bottom: 6px;
    font-weight: 600;
    text-align: left;
}

/* ===== BOTÓN ===== */
.boton-centro {
    text-align: center;
    margin-top: 25px;
}

.btn-registrar{
    padding:12px 36px;
    font-size:15px;
    background:linear-gradient(135deg,#72e199,#24c948);
    color: whitesmoke;
    border-radius:8px;
    cursor:pointer;
    transition:all 0.25s ease;
    border: 1px solid navy;
    box-shadow:0 4px 12px rgba(0,0,0,0.15);
}

.btn-registrar:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 18px rgba(0,0,0,0.25);
}

.btn-registrar:active{
    transform:scale(0.97);
}

/* ===== NAV CERRAR ===== */
.cerrar{
    transition:0.2s;
}

.cerrar:hover{
    transform:rotate(90deg) scale(1.2);
}

/* ===== CHECKBOX ===== */
.checkbox-wrapper{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    margin:10px auto;
    font-size:14px;
    flex-wrap:wrap;
}
.checkbox-wrapper label{
font-weight: normal;   
}

@media (min-width:768px){
    .checkbox-wrapper{
        white-space:nowrap;
    }
}

.checkbox-wrapper input{
    margin-top:2px;
    flex-shrink:0;
}

.checkbox-wrapper label{
    line-height:1.3;
}

/* ===== MENSAJE PLAZAS ===== */
#plazas-msg{
    margin:12px 0;
    font-weight:600;
    font-size:14px;
    text-align:center;
}

/* estados */
.ok{
    color:#2e9c5d;
}

.warning{
    color:#d68636;
}

.critico{
    color:#d44863;
    animation:pulse 1s infinite;
}

.cerrado{
    color:#999;
}

/* animación */
@keyframes pulse{
    0%{opacity:1;}
    50%{opacity:0.5;}
    100%{opacity:1;}
}