/* =========================
   BASE
========================= */
body {
    margin: 0;
    padding: 0;
    background: #f5f6fa;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #334155;
}

/* =========================
   MARCO GENERAL
========================= */
.marco {
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
}

/* =========================
   CONTENIDO CENTRADO
========================= */
.contenido {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px; /* aire superior */
}

/* =========================
   FORMULARIO
========================= */
.formulario {
    background: #ffffff;
    padding: 60px 50px; /* más espacio interno */
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    width: 560px; /* más ancho para permitir separación */
    box-sizing: border-box;
}

/* =========================
   TÍTULOS
========================= */
h2 {
    margin-top: 0;
    margin-bottom: 45px;
    font-size: 22px;
    color: #1e293b;
    text-align: center;
}

.titulo-seccion {
    font-size: 15px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #475569;
}

/* =========================
   GRID EMPRESA (2 columnas)
========================= */
.empresa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px; /* más espacio entre columnas */
    row-gap: 25px; /* más espacio entre filas */
    margin-bottom: 40px;
}

.empresa-grid input,
.empresa-grid select {
    width: 100%;
    padding: 14px 16px; /* igual que los inputs */
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    height: 46px; /* fuerza misma altura */
    box-sizing: border-box;
    appearance: none; /* elimina estilo nativo del select */
    -webkit-appearance: none;
    -moz-appearance: none;
}


.empresa-grid input:focus,
.empresa-grid select:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* =========================
   SEPARADOR
========================= */
.separador {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 50px 0;
}

/* =========================
   BLOQUE USUARIO (1 columna)
========================= */
.usuario-bloque {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.usuario-bloque input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.usuario-bloque input:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* =========================
   BOTÓN
========================= */
.formulario button {
    width: 100%;
    padding: 14px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 35px;
}

.formulario button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.formulario button:active {
    transform: translateY(0);
}

/* =========================
   ENLACE INFERIOR
========================= */
.volver {
    display: block;
    margin-top: 25px;
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    text-align: center;
    transition: color 0.2s ease;
}

.volver:hover {
    color: #2563eb;
}

/* =========================
   MENSAJE
========================= */
.mensaje {
    margin-top: 20px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}
