@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap&family=Teko:wght@300");

:root {
    --font-family: "Bebas Neue", cursive;
    --bg-color: #eeeeee;
    --gray: #dfdfdf;
}

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: var(--font-family);
}

body {
    background-color: var(--bg-color);
}

.face {
    height: 100vh;
}
.img__container {
    width: 60%;
    margin: 100px auto;
}
.main__img {
    width: 100%;
}
.nav {
    padding: 1rem 3rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 3rem;
}

button {
    border: none;
    --primary-color: #111;
    --hovered-color: rgb(138, 140, 138);
    position: relative;
    display: flex;
    font-size: 20px;
    gap: 0.5rem;
    align-items: center;
    cursor: pointer;
}

button a {
    margin: 0;
    position: relative;
    font-size: 20px;
    color: #111;
}

button::after {
    position: absolute;
    content: "";
    width: 0;
    left: 0;
    bottom: -7px;
    background: var(--hovered-color);
    height: 2px;
    transition: 0.3s ease-out;
}

button a::before {
    position: absolute;
    /*   box-sizing: border-box; */
    content: "contactanos";
    width: 0%;
    inset: 0;
    color: var(--hovered-color);
    overflow: hidden;
    transition: 0.3s ease-out;
}

button:hover::after {
    width: 100%;
}

button:hover a::before {
    width: 100%;
}

button:hover svg {
    transform: translateX(4px);
    color: var(--hovered-color);
}

button svg {
    color: var(--primary-color);
    transition: 0.2s;
    position: relative;
    width: 15px;
    transition-delay: 0.2s;
}

.contact__title {
    text-align: right;
    font-size: 2.1rem;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-weight: 200;
    text-transform: uppercase;
    padding: 0 3rem;
}
.contacto {
    height: 90vh;
}
.container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    height: 80%;
    margin: auto;
}
.form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: gray;
    gap: 1rem;
    width: 450px;
    height: 100%;
    padding: 1rem;
    font-size: 1.2rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.column {
    display: flex;
    flex-direction: column;
}

.form input,
.form textarea {
    background-color: var(--gray);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
        sans-serif;
    color: #000;
    text-transform: none;
    padding: 0.7rem 3rem;
    border-radius: 15px;
    border: none;
}
#name {
    flex-grow: 1;
    width: 200px;
    padding: 10px 16px;
}
#apellido {
    flex-grow: 1;
    width: 200px;
    padding: 10px 16px;
}
.form input:focus,
#mensaje:focus {
    outline: 1px solid grey;
}
.form textarea {
    resize: none;
    height: 20%;
}
.form button {
    align-self: flex-start;
    cursor: pointer;
    transition: all 0.5s ease-in;
    color: gray;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-family: "Teko", sans-serif;
    font-size: large;
    text-transform: uppercase;
}
form button:hover {
    background: none;
    color: var(--hovered-color);
}
.info__img {
    height: 20rem;
}
.footer {
    text-align: center;
    color: rgb(138, 140, 138);
    font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS",
        sans-serif;
}

@media screen and (max-width: 800px) {
    .nav {
        display: none;
    }
    .img__container {
        width: 90%;
        margin: 200px auto;
    }
    .contact__title {
        text-align: center;
    }
    .form {
        width: 100%;
    }
    .column {
        width: 100%;
        display: flex;
        gap: 16px;
        flex-wrap: nowrap;
    }
    #name,
    #apellido {
        width: 100%;
    }
    .container {
        flex-direction: column-reverse;
        height: 90%;
    }
    .info {
        margin: auto;
    }
    .info__img {
        height: 250px;
    }
}

@media screen and (max-width: 500px) {
    .img__container {
        width: 90%;
        margin: 450px auto;
    }
    .info__img {
        display: none;
    }
    .map {
        color: gray;
    }
}
