@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@300;400&family=Inter:wght@300;400&display=swap");
/* /css/style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    height: 100vh;
    display: flex;
    position: relative;
    color: #fff;
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.3) 65%, rgba(0, 0, 0, 0) 100%),
        url("../img/fondo.png") center center / cover no-repeat;
}

/* CONTENEDOR PRINCIPAL */
.container {
    position: relative;
    width: 100%;
    display: flex;
    z-index: 1;
}

/* IZQUIERDA (logo reducido visualmente) */
.left {
    width: 40%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 40px 40px 40px;
}

.left img {
    max-width: 60%;
    opacity: 0.9;
}

/* DERECHA (FORM-ERROR) */
.form-error {
    margin-bottom: 20px;
    padding: 10px 15px;
    border: 1px solid rgba(200, 169, 106, 0.4);
    color: rgba(200, 169, 106, 0.8);
    font-size: 13px;
    font-weight: 300;
}

/* DERECHA (formulario) */
.right {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* AJUSTE FINO DE POSICIÓN */
.form-box {
    transform: translateY(-20px);
}

.form-box {
    width: 100%;
    max-width: 420px;
}

/* ESPACIADO GENERAL DEL FORM */
.form-box form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* TEXTO LEGAL MÁS SEPARADO */
.legal-text {
    margin-top: 20px;
}

/* INPUTS */
input,
textarea {
    width: 100%;
    margin-bottom: 20px;
    padding: 10px 5px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    outline: none;
    font-family: "Inter", sans-serif;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: 0.3s;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* EFECTO FOCUS */
input:focus,
textarea:focus {
    border-bottom: 1px solid #c8a96a;
}

/* BOTÓN */
button {
    width: 100%;
    padding: 12px;
    background: #c8a96a;
    border: none;
    color: #000;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

/* HOVER */
button:hover {
    background: #d8b97a;
}

/* EFECTO LIGERO DE BRILLO */
button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.6s;
}

button:hover::after {
    left: 100%;
}

/* LEGAL */
.legal-check {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.legal-check input {
    margin: 0;
}

.legal-check input[type="checkbox"] {
    width: auto;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

.legal-check span {
    display: inline;
    line-height: 1.4;
}

.legal-text {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 10px;
}

/* ENLACES FORMULARIO (checkbox) */
.legal-check a {
    color: rgba(200, 169, 106, 0.7); /* dorado suave */
    text-decoration: none;
    font-weight: 300;
    transition: 0.3s;
}

.legal-check a:hover {
    color: rgba(200, 169, 106, 1);
}

/* FOOTER */
.footer {
    position: absolute;
    bottom: 25px; /* lo subimos */
    width: 100%;
    text-align: center;
    font-size: 12px;
    z-index: 2;
    font-weight: 300;
}

.footer a {
    color: rgba(200, 169, 106, 0.6);
    text-decoration: none;
    transition: 0.3s;
}

.footer a:hover {
    color: rgba(200, 169, 106, 1);
}

/* TOQUE EDITORIAL */
.legal-text {
    font-family: "Playfair Display", serif;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .left {
        width: 35%;
        padding: 60px 30px 30px 30px;
    }

    .right {
        width: 65%;
        padding: 30px;
    }

    .form-box {
        max-width: 440px;
        transform: none;
    }

    .left img {
        max-width: 220px;
    }
}

@media (max-width: 900px) {
    body {
        height: auto;
        min-height: 100vh;
        display: block;
        background:
            linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
            url("../img/fondo.png") center center / cover no-repeat;
    }

    .container {
        min-height: 100vh;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 30px 20px 20px;
    }

    .left,
    .right {
        width: 100%;
        padding: 0;
    }

    .left {
        align-items: center;
        justify-content: center;
        margin-bottom: 25px;
    }

    .left img {
        max-width: 210px;
    }

    .right {
        align-items: center;
        justify-content: center;
    }

    .form-box {
        width: 100%;
        max-width: 520px;
        transform: none;
    }

    .footer {
        position: relative;
        bottom: auto;
        margin: 25px 0 15px;
        font-size: 12px;
        line-height: 1.5;
    }
}

@media (max-width: 600px) {
    body {
        background:
            linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)),
            url("../img/fondo-mobile.png") center center / cover no-repeat;
    }

    .container {
        padding: 18px 22px 15px;
    }

    .left {
        margin-bottom: 20px;
    }

    .left img {
        max-width: 185px;
    }

    input,
    textarea {
        font-size: 15px;
        margin-bottom: 18px;
    }

    textarea {
        min-height: 120px;
    }

    .legal-check {
        align-items: flex-start;
        font-size: 12px;
        gap: 8px;
    }

    .legal-check span {
        line-height: 1.45;
    }

    button {
        padding: 14px;
    }

    .footer {
        margin-top: 20px;
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .container {
        padding: 16px 18px 12px;
    }

    .left img {
        max-width: 165px;
    }

    .form-box {
        max-width: 100%;
    }

    .footer {
        font-size: 11px;
    }
}
