﻿.wrapper {
    position: relative;
    padding-top: 65px; /* deja espacio para el logo encima */
}

.logo-container {
    position: absolute;
    top: -118px; /* controla cuánto se mete encima */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.logo-container img {
    width: 350px; /* tamaño del logo */
    height: auto;
}

/* Sección principal con imagen de fondo */
.hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    background: url('../imagenes/somos.jpg') no-repeat center center;
    background-size: cover;
}

/* Fondo semitransparente para mejorar la visibilidad del texto */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
}

.logo {
    width: 300px;
    height: 100px;
    object-fit: contain;
}

/* Título */
.title {
    font-size: 3rem;
    font-weight: bold;
}

/* Subtítulo */
.subtitle {
    font-size: 1.5rem;
}
/*Login
/* Body: con fondo de imagen */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 60px;
    width: 100%;
    background: url("/imagenes/hero-bg.png") no-repeat center center/cover;
    background-size: cover;
    /* Necesario para usar el ::before correctamente */
    position: relative;
    z-index: 0;
}

    /*  Capa gris oscura sobre la imagen de fondo */
    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5); /* Mas gris Talia */
        z-index: -1; /* Asegura el contenido */
    }

/* (contenedor del formulario) */
.wrapper {
    width: 500px;
    background: rgba(2500, 355, 355, 0.); /* semitransparente */
    border-radius: 10px;
    padding: 50px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

/* Formulario */
form {
    display: flex;
    flex-direction: column;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: white;
}

/* Estilo de los campos de entrada */
.input-field {
    position: relative;
    border-bottom: 2px solid #ccc;
    margin: 15px 0;
}

    .input-field label {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        color: white;
        font-size: 16px;
        pointer-events: none;
        transition: 0.15s ease;
    }

    .input-field input {
        width: 100%;
        height: 40px;
        background: transparent;
        border: none;
        outline: none;
        font-size: 16px;
        color: white;
    }

        .input-field input:focus ~ label,
        .input-field input:valid ~ label {
            font-size: 0.8rem;
            top: 10px;
            transform: translateY(-120%);
        }

/* Estilo de olvido de contraseña */
.forgot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 25px 0 35px 0;
    color: #333;
}

/* Estilo del botón */
button {
    background: #007BFF;
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 16px;
    border: 2px solid transparent;
    transition: 0.3s ease;
}

    button:hover {
        background: #0056b3;
    }

/* Link de registro */
.register {
    text-align: center;
    margin-top: 20px;
    color: #ffff;
}

    .register a {
        color: #007BFF;
        text-decoration: none;
    }

        .register a:hover {
            text-decoration: underline;
        }

.hidden {
    display: none;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

