/*------------------BODY------------------*/
body {
    margin: 0;
    background-color: #e6f1ff;
}

/*------------------CONTACTOS------------------*/

.bg-contactos {
    position: relative;
    width: 100%;
    height: 30vh;
    background-image: url("../img/sobremi.webp");
    background-size: cover;
    background-attachment: fixed;
    background-position: right;
    z-index: -1;
    display: grid;
    place-items: center;
}

.bg-contactos::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.33);
}

.bg-contactos h1 {
    font-size: 4em;
    font-family: "Quicksand", sans-serif;
    text-shadow: 0 0 30px black;
    font-weight: 400;
    color: #fff;
    z-index: 3;
}

/*------------------FORM------------------*/

.contact-container {
    margin: 130px auto 110px;
    font-family: "Manrope";
    justify-content: center;
    align-items: center;
    min-height: 40vh;
    background-color: #fff;
    display: flex;
    flex-direction: row;
    width: 90%;
    max-width: 1200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.contact-info {
    background-color: #2e73db;
    color: #fff;
    padding: 130px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    font-size: 1.2rem;
    font-family: "Georgia", serif;
    flex: 1;
    padding-left: 140px;
}

.contact-info h2 {
    font-family: "Manrope";
    margin-bottom: 40px;
    font-size: 1.8em;
    margin-top: 0;
    text-align: center;
    border-bottom: solid 2px #fff;
    padding-bottom: 1em;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    font-family: "Manrope";
}

.info-item svg {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.info-item svg:hover {
    transition: transform 0.3s;
    transform: translateY(-4px);
}

.info-item:last-child {
    margin-left: -5px;
}

.info-item p {
    margin: 0;
    line-height: 1.5;
    font-size: 1rem;
}

.contact-form {
    padding: 60px;
    flex: 1;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    font-family: "Manrope";
    margin-bottom: 20px;
    padding: 15px;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid #ccc;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: #2e73db;
}

.contact-form textarea {
    resize: none;
    margin-bottom: 20px;
    height: 59px;
}

.contact-form .buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.contact-form button {
    font-family: "Manrope";
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    background-color: #2e73db;
    color: white;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #3e88f7;
}

.contact-form .clear-button {
    background-color: #e0e0e0;
    color: #333;
}

.contact-form .clear-button:hover {
    background-color: #d6d6d6;
}

input:hover,
select:hover,
textarea:hover {
    border-bottom: 2px solid #a0a0a0;
}

input:invalid:not(:placeholder-shown),
select:invalid {
    border-bottom: solid 1.5px #db0c0c;
}

@media (max-width: 1210px) {
    .contact-info {
        padding-left: 6em;
    }
}

@media (max-width: 1150px) {
    .contact-info {
        padding-left: 3.6em;
    }
}

@media (max-width: 965px) {
    .contact-container {
        flex-direction: column;
        margin: 4em auto;
    }

    .contact-info {
        text-align: center;
        padding: 30px 100%;
    }

    .contact-info h2 {
        margin: 1em auto;
        font-size: 1.2em;
        text-align: center;
    }

    .contact-form {
        width: 95%;
        padding: 20px;
    }

    .info-item {
        margin: 0 0 23px 0;
        width: 95%;
        gap: 15px;
    }

    .info-item p {
        font-size: 0.9rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 14px;
        padding: 10px;
        height: 46px;
    }

    .contact-form .buttons {
        gap: 10px;
        align-items: center;
        margin: 0 auto;
    }

    .contact-form button {
        width: 120px;
        padding: 11px 0;
    }
}

/*------------------MAPA------------------*/

.maps {
    text-align: center;
}

.maps h5 {
    font-size: 1.5em;
    font-family: "Manrope", sans-serif;
    font-weight: 500;
    margin: 0.5em 0 1.3em 0;
}

.fa-location-dot {
    font-size: 3em;
}

/*------------------MEDIA-QUERY------------------*/

@media (max-width: 1024px) {
    .bg-contactos {
        height: 23vh;
    }

    .bg-contactos h1 {
        font-size: 3.5em;
    }

    .contact {
        flex-wrap: wrap;
        justify-content: center;
        padding: 3em 0;
        gap: 3em;
    }

    .hidden-left h2 {
        font-size: 35px;
    }

    .div {
        width: 40%;
        margin: 3em auto;
    }

    .hidden-left h3 {
        font-size: 19px;
        max-width: 690px;
    }

    .form h3 {
        font-size: 1.4em;
        padding: 2em;
    }
}

@media (max-width: 600px) {
    .bg-contactos {
        height: 23vh;
        background-attachment: scroll;
        background-image: url("../img/INFOPERSONAL/consultorio-sillones.webp");
    }

    .bg-contactos h1 {
        font-size: 40px;
    }

    .hidden-left h2 {
        font-size: 30px;
    }

    .hidden-left h3 {
        margin: auto 1em;
        font-size: 17px;
    }

    .form h3 {
        font-size: 1.2em;
        padding: 1em;
    }

    .social-media {
        gap: 4em;
        padding: 4em 0.7em;
    }

    .social-media span {
        font-size: 1em;
    }

    .fa-contacts {
        font-size: 3em;
    }

    .media {
        gap: 1em;
    }

    .maps h5 {
        font-size: 22px;
    }

    .maps iframe {
        height: 460px;
    }

    .fa-location-dot {
        font-size: 2.5em;
    }
}
