body {
    margin: 0;
    padding: 0;
    background: #f0f0f0;
    font-family: Arial, sans-serif;
}

/* Marco general */
.marco {
    position: relative;
    width: 100vw;
    height: 100vh;
    border: 8px solid #f0f0f0;
    box-sizing: border-box;
}

/* Logo */
.logo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 120px;
}

/* Centrado */
.contenido {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Cuadro externo */
.cuadro-externo {
    background: rgba(255, 255, 255, 0.4);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0,0,0,0.1);
    backdrop-filter: blur(4px);
}

/* Cuadro interno (formulario) */
.formulario {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
    width: 500px;
    text-align: center;
    box-sizing: border-box;
}

/* Títulos de sección */
.titulo-seccion {
    text-align: left;
    font-size: 16px;
    font-weight: bold;
    color: black;
    margin-bottom: 10px;
    margin-top: 5px;
}

/* GRID de 3 filas x 2 columnas para datos de empresa */
.empresa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 20px;
    margin-bottom: 25px;
}

.empresa-grid input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

/* Select adaptado al estilo de inputs */
.empresa-grid select {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    font-family: Arial, sans-serif;
    color: #000; /* mismo color que los inputs */
    box-sizing: border-box;
    background: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

/* Placeholder estilo igual que los inputs */
.empresa-grid select:invalid {
    color: #000;
    font-style: normal;
}


/* Separador */
.separador {
    border: none;
    border-top: 1px solid #ddd;
    margin: 25px 0;
}

/* Bloque de usuario */
.usuario-bloque input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

/* Botón */
.formulario button {
    width: 100%;
    padding: 12px;
    background: #003366;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 15px;
}

.formulario button:hover {
    background: #002244;
}

/* Enlace inferior */
.volver {
    display: block;
    margin-top: 15px;
    font-size: 14px;
    color: black;
    text-decoration: none;
}

.volver:hover {
    text-decoration: underline;
}

.mensaje {
    margin: 20px 0 0 0;             /* margen superior solo */
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;

    max-width: 80%;                 /* no sobrepasa el contenedor */
    min-width: 500px;               
    width: 500px;                    /* que se ajuste al contenido */
    
    box-sizing: border-box;
    overflow-wrap: break-word;      /* texto se ajusta sin romper layout */
}

