/* ============================
   CONTENEDOR GENERAL
============================ */
.formulario {
    max-width: 900px;
    margin: 0 auto;
    padding: 25px;
}

/* ============================
   TITULOS
============================ */
.titulo-form {
    text-align: center;
    margin-bottom: 30px;
    font-size: 26px;
    font-weight: bold;
    color: #222;
}

.seccion-titulo {
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    border-left: 4px solid #0066cc;
    padding-left: 10px;
}

/* ============================
   FILAS Y CAMPOS (GRID REAL)
============================ */
.fila {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ⭐ 4 columnas iguales */
    gap: 25px;                              /* ⭐ separación real */
    margin-bottom: 20px;
}

.campo {
    display: flex;
    flex-direction: column;
}

.campo label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #222;
}

.campo input,
.campo select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font-size: 15px;
    width: 100%;
}

.campo input:disabled {
    background: #f3f3f3;
    color: #666;
}

/* ============================
   ANCHOS LÓGICOS (GRID SPAN)
============================ */
.w-100 { grid-column: span 4; }
.w-75  { grid-column: span 3; }
.w-50  { grid-column: span 2; }
.w-25  { grid-column: span 1; }

/* ============================
   BOTÓN
============================ */
.btn-guardar {
    margin-top: 30px;
    width: 220px;          /* ⭐ mismo ancho */
    padding: 12px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    display: inline-block; /* ⭐ antes era block → lo cambiamos */
    transition: 0.2s;
}

.btn-guardar:hover {
    background: #004c99;
}

.btn-secundario {
    margin-top: 30px;
    width: 220px;          /* ⭐ mismo ancho que btn-guardar */
    padding: 12px;
    background: #777;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    display: inline-block; /* ⭐ igual comportamiento */
    transition: 0.2s;
}

.btn-secundario:hover {
    background: #555;
}

.botonera {
    display: flex;
    gap: 20px;          /* separación entre botones */
    margin-top: 30px;   /* aire arriba */
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 768px) {
    .fila {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Restaurar flecha nativa del SELECT */
.campo select {
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
}

