/* ============================
   CONTENEDOR GENERAL
============================ */
.formulario {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 40px;
}

/* ============================
   TITULOS
============================ */
.titulo-form {
    text-align: center;
    margin-bottom: 30px;
    font-size: 26px;
    font-weight: bold;
    color: #003366;
}

.seccion-titulo {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #003366;
    border-left: 4px solid #0066cc;
    padding-left: 10px;
}

/* ============================
   FILAS Y CAMPOS
============================ */
.fila {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 35px;
    margin-bottom: 45px;
}

.campo {
    display: flex;
    flex-direction: column;
}

.campo label {
    font-weight: 600;
    margin-bottom: 14px;
    color: #003366;
}

/* Inputs y selects */
.campo input,
.campo select {
    padding: 14px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #003366;
    font-size: 17px;
    width: 100%;
}

/* ============================
   ANCHOS LÓGICOS (12 columnas)
============================ */
.w-100 { grid-column: span 12;}
.w-75 { grid-column: span 9; }
.w-50 { grid-column: span 6; }
.w-40 { grid-column: span 5; }
.w-33 { grid-column: span 4; }
.w-30 { grid-column: span 4; }  /* ⭐ antes era 2, muy chico */
.w-25 { grid-column: span 3; }
.w-20 { grid-column: span 3; }  /* ⭐ antes era 2, muy chico */
.w-15 { grid-column: span 2; }


/* ============================
   BOTÓN
============================ */
.btn-guardar {
    margin-top: 30px;
    width: 220px;
    padding: 12px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    display: block;
    margin-left: auto;
    transition: 0.2s;
}

.btn-guardar:hover {
    background: #004c99;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 768px) {
    .fila {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ============================================
   CAMPOS UNIFICADOS (INPUT + SELECT)
============================================ */

.campo input,
.campo select {
    height: 48px;                /* ⭐ altura fija igual para todos */
    padding: 0 14px;             /* ⭐ padding horizontal */
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #003366;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;      /* ⭐ evita que se deformen */
    appearance: none;            /* ⭐ hace que el select no sea más alto */
}

/* Para que el SELECT muestre la flecha correctamente */
.campo select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23003366' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5.516 7.548l4.484 4.484 4.484-4.484'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}
