body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
    background: url('../IMG/Avion.jpg') no-repeat center center fixed;
    background-size: cover;
    filter: none;
    /* quito height: 100vh */
    padding-top: 100px; /* espacio para header fijo */
    display: flex;
    justify-content: center;
    /* no align-items para que no se superponga con header */
}

/* Fondo borroso */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
   background-image: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url('../IMG/Avion.jpg');
    background-size: cover;
    z-index: -1;
}

/* Contenedor centrador */
.main-container {
    min-height: calc(100vh - 100px); /* altura total menos header */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Header - Hero transparente */
.hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: transparent; /* sin fondo */
    z-index: 100;
    display: flex;
    align-items: center;
    box-shadow: none; /* sin sombra */
}

/* Contenedor de nav para alinear */
.nav.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav__logo h2 {
    font-weight: 300;
    color: #fff;
    font-size: 1.8rem;
    margin: 0;
}

/* Menú de navegación */
.nav__link--menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2em;
}

.nav__items {
    margin: 0;
}

.nav__links {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav__links:hover {
    color: #2980b9;
}


form {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    margin: 40px auto 0 auto;
    position: relative;
    z-index: 1;
}
h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}


input, button {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    padding: 12px 15px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}


input:focus {
    outline: none;
    border-color: #2980b9;
}


button {
    background-color: #2980b9;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #216fa2;
}


p.mensaje-login {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 10px;
}

p.mensaje-login a {
    color: #2980b9;
    text-decoration: none;
}

p.mensaje-login a:hover {
    text-decoration: underline;
}


.mensaje-exito {
    color: green;
    text-align: center;
    margin-bottom: 10px;
}

.mensaje-error {
    color: red;
    text-align: center;
    margin-bottom: 10px;
}


@media (max-width: 800px) {
    .nav__link--menu {
        gap: 1em;
    }
    form {
        padding: 25px 20px;
        max-width: 95%;
    }
}
