

/* Contenedor principal */
.contenedor {
    min-height: 800px;
    max-width: 1200px;
    margin: 2rem auto;
    display: flex;
    flex-wrap: wrap;
}

/* Contenedor de imagen */
.contenedor .img {
    background-image: url(../../imagenes/imagen_fondo.jpg);
    background-size: cover;
    min-height: 800px;
    width: 800px;
}

/* Contenedor de fondo blanco */
.contenedor .blanco {
    min-height: 800px;
    width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenedor de formulario */
.contenedor .blanco .formulario {
    width: 380px;
    min-height: 600px;
    background-color: rgba(251, 98, 101, 0.75);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Configuración de label */
.contenedor .blanco .formulario form label {
    font-size: 1.2rem;
}

/* Inputs */
.contenedor .blanco .formulario form input {
    display: block;
    width: 100%;
    max-width: 300px;
    height: 28px;
    margin-bottom: 1.6rem;
    border-radius: 16px;
    border: 1px solid #DDD;
    background-color: rgba(255, 255, 255, 0.75);
    color: #3d3d3d;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

/* Título */
.contenedor .blanco .formulario .central h2 {
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 2rem;
}

/* Checkbox + texto en flex */
.form-opcion {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
#checkbox{
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Texto de opción */
.central p {
    font-size: 0.9em;
    position: relative;
    bottom: 42px;
    left: 20px;
    color: white;
}

/* Mensaje de error */
#formRegistro p#error-message {
    color: #ff3333;
    font-size: 10px;
    margin-bottom: 1rem;
    margin-right: 1.5rem;
    height: 1.2em;
}

/* Botón de registro */
#btnRegistro {
    width: 150px;
    height: 40px;
    margin-top: 2rem;
    margin-left: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 40px;
    box-shadow: 5px 4px 4px 0 rgba(0, 0, 0, 0.25);
    background-color: #f0d945;
    font-size: 1.1em;
    cursor: pointer;
}

#btnRegistro:hover {
    background-color: #FFDF00;
}

/* ----------------- MEDIA QUERIES ---------------- */

/* Teléfonos chicos */
@media (max-width: 820px) {
    .contenedor {
        max-width: 100%;
        margin: 1rem auto;
        flex-direction: column-reverse;
        align-items: center;
    }

    .contenedor .img {
        background-size: cover;
        background-repeat: no-repeat;
        min-height: 300px;
        width: 100%;
    }

    .contenedor .blanco {
        min-height: auto;
        width: 100%;
        padding: 1rem;
    }

    .contenedor .blanco .formulario {
        width: 100%;
        max-width: 320px;
        min-height: 500px;
    }
}

/* Tablets */
@media (max-width: 1200px) and (min-width: 820px) {
    .contenedor {
        max-width: 100%;
        justify-content: center;
    }

    .contenedor .img {
        background-size: cover;
        background-repeat: no-repeat;
        min-height: 600px;
        width: 500px;
        background-color: beige;
    }

    .contenedor .blanco {
        min-height: 600px;
        width: 320px;
    }

    .contenedor .blanco .formulario {
        width: 100%;
        max-width: 620px;
        min-height: 600px;
    }
}