/* =========================================================
   LAYOUT GENERAL
========================================================= */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background: url("../img/fondo_inicio.png") no-repeat center center fixed;
    background-size: cover;
}

/* Capa oscura */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

/* =========================================================
   HEADER
========================================================= */
.main-header {
    position: relative;
    z-index: 3;
    background: #0D0D0D;
    padding: 8px 30px;
    border-bottom: 3px solid #8C5C03;
    display: flex;
    justify-content: center;
}

.header-content {
    width: 100%;
    max-width: 1600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo {
    height: 48px;
}

.menu-left {
    display: flex;
    gap: 25px;
    margin-left: 20px;
}

.menu-left a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.menu-left a:hover {
    color: #F2CF1D;
}

/* =========================================================
   FORMULARIO CENTRADO AUTOMÁTICO
========================================================= */
.login-container {
    position: relative;
    z-index: 3;

    width: 380px;
    margin: 80px auto 0 auto;

    background: white;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
    text-align: center;
}

.titulo-login {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 22px;
    font-weight: bold;
    color: #0D0D0D;
}

label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    font-size: 14px;
    color: #222;
}

input {
    width: 100%;
    padding: 11px;
    border-radius: 6px;
    border: 1px solid #666;
    margin-bottom: 16px;
}

/* Botón */
.btn-login {
    width: 100%;
    padding: 12px;
    background: #8C5C03;
    border: none;
    border-radius: 7px;
    color: white;
    font-size: 15px;
    cursor: pointer;
}

.btn-login:hover {
    background: #734A02;
}

/* Mensaje */
.mensaje {
    margin-top: 12px;
    font-weight: bold;
}

/* =========================================================
   FOOTER PEGADO ABAJO SIEMPRE
========================================================= */
.main-footer {
    position: relative;
    z-index: 3;

    margin-top: auto; /*  <<<<<<  ESTA ES LA SOLUCIÓN   */
    background: #0D0D0D;
    border-top: 3px solid #8C5C03;
    color: white;
    text-align: center;
    padding: 14px 0;
    font-size: 0.9rem;
}
