/* 0. CONFIGURACIÓN NAVILE */
.navbar {
    width: 100%;
    background: #0E4b9c;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 20px;
    box-sizing: border-box;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-left img{
    height:42px;
    width:auto;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-right .material-symbols-outlined{
    color:white;
}

.nav-text {
    font-family: sans-serif;
	font-size: 15px;
    position: relative;
    color: white;
}

.nav-text::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}


/* ===== BASE ===== */
html, body {
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;   /*  bloquear scroll horizontal */
    margin: 0;
    padding: 0;
}

html {
    height: auto;
}
.contenedor {
    max-width: 700px;
    margin: 5px auto;
    padding: 20px;
}


h1 {
    font-family: Arial, sans-serif;
    font-weight: 700;
    text-align: center;
    color: #0E4b9c;
    font-size: clamp(20px, 6vw, 34px);
    letter-spacing: 0.02em;
    padding: 18px 15px 4px;
	margin-bottom: 0;  
}

/* ===== INPUTS ===== */
input, select {
    width: 100%;
    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;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: #0E4b9c;
    box-shadow: 0 0 0 3px rgba(14, 75, 156, 0.15);
}

/* ===== 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: white;
    font-weight: 600;
    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 ===== */

/* ── ASPA DE CIERRE ── */
.cerrar {
    font-size: 20px;
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, transform 0.4s;
    -webkit-tap-highlight-color: transparent;
}

.cerrar:hover,
.cerrar:active {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(180deg);
}

/* ===== CHECKBOX ===== */
.checkbox-wrapper {
    display: flex;
    justify-content: flex-start;   /* ← era center */
    align-items: center;
    gap: 8px;
    margin: 10px 0;                /* ← era 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 {
    width: 14px;                   
    height: 14px;
    flex-shrink: 0;
    margin: 0;
    accent-color: #0E4b9c;       
}

.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;}
}

/* RESPONSIVE para MOVILES */
@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    .nav-right span {
        display: none;
    }
    .nav-left img {
        height: 30px;
    }
    .contenedor {
        padding: 12px;       /* menos aire lateral */
    }
    h1 {
        padding: 12px 10px 4px;
    }
	
	html, body {
    height: auto;
    min-height: unset;
	}
    .marco {
        padding: 14px;
    }

    .btn-registrar {
        width: 100%;         /* botón a ancho completo en móvil */
    }
}