/* ==========================================
   AJUSTES GENERALES
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    color: #171717;
    background-color: #f7f7f5;

    font-family: "Inclusive Sans", sans-serif;
    font-weight: 300;

    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

input,
textarea {
    width: 100%;

    color: #171717;
    background-color: #ffffff;

    border: 1px solid #d9d9d9;
    border-radius: 7px;

    outline: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

input:focus,
textarea:focus {
    border-color: #171717;

    box-shadow: 0 0 0 2px rgba(23, 23, 23, 0.08);
}

textarea {
    resize: vertical;
}


/* ==========================================
   PÁGINA
========================================== */

.contact-page {
    position: relative;

    width: 100%;
    min-height: 100vh;

    padding:
        55px
        clamp(45px, 6vw, 100px)
        105px;
}


/* ==========================================
   PUNTOS DECORATIVOS
========================================== */

.decorative-dot {
    position: absolute;
    z-index: 5;

    width: 15px;
    height: 15px;

    background-color: #c8c2b9;
    border-radius: 50%;

    pointer-events: none;
}

.dot-top-left {
    top: 35px;
    left: 30px;
}

.dot-top-center {
    top: 35px;
    left: 50%;

    transform: translateX(-50%);
}

.dot-top-right {
    top: 35px;
    right: 30px;
}

.dot-left-center {
    top: 58%;
    left: 30px;
}

.dot-right-center {
    top: 58%;
    right: 30px;
}


/* ==========================================
   FLECHA
========================================== */

.back-button {
    position: absolute;

    top: 45px;
    left: 60px;

    z-index: 10;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: "Inclusive Sans", sans-serif;
    font-size: 48px;
    font-weight: 300;
    line-height: 1;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.back-button:hover {
    opacity: 0.55;
    transform: translateX(-5px);
}


/* ==========================================
   MENÚ
========================================== */

.main-menu {
    position: absolute;

    top: 60px;
    right: 60px;

    z-index: 10;

    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 2px;
}

.main-menu a {
    font-family: "Inclusive Sans", sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.main-menu a:hover {
    opacity: 0.55;
    transform: translateX(-3px);
}

.main-menu .active {
    color: #9a3d3d;
}


/* ==========================================
   CONTENIDO DE CONTACTO
========================================== */

.contact-content {
    width: min(720px, 68%);

    margin:
        170px
        auto
        0;
}

.contact-content h1 {
    margin-bottom: 95px;

    font-family: "Inclusive Sans", sans-serif;
    font-size: 64px;
    font-weight: 400;
    line-height: 1;

    text-align: center;
}


/* ==========================================
   FORMULARIO
========================================== */

.contact-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 34px;
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;

    margin-bottom: 10px;

    font-size: 17px;
    font-weight: 400;
    line-height: 1;
}

.form-group input {
    height: 52px;

    padding: 0 16px;

    font-size: 17px;
    font-weight: 300;
}

.form-group textarea {
    min-height: 170px;

    padding: 16px;

    font-size: 17px;
    font-weight: 300;
    line-height: 1.35;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #8d8d8d;

    opacity: 1;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #9a3d3d;
}

.form-error {
    display: block;

    min-height: 17px;
    margin-top: 6px;

    color: #9a3d3d;

    font-size: 13px;
    line-height: 1.2;
}

.submit-button {
    width: 100%;
    min-height: 58px;

    color: #ffffff;
    background-color: #000000;

    border-radius: 7px;

    font-size: 18px;
    font-weight: 300;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.submit-button:hover {
    opacity: 0.78;
}

.submit-button:active {
    transform: scale(0.99);
}

.submit-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.form-status {
    min-height: 22px;

    margin-top: 16px;

    font-size: 15px;
    line-height: 1.3;
    text-align: center;
}

.form-status.is-success {
    color: #345f3a;
}

.form-status.is-error {
    color: #9a3d3d;
}


/* ==========================================
   REDES Y CORREO
========================================== */

.contact-links {
    width: min(1090px, 88%);

    margin:
        105px
        auto
        20px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 12px;
}

.contact-links a {
    display: inline-flex;
    align-items: center;

    gap: 14px;

    font-family: "Inclusive Sans", sans-serif;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.contact-links a:hover {
    opacity: 0.55;
    transform: translateX(4px);
}

.contact-links i {
    width: 32px;

    font-size: 29px;
    text-align: center;
}


/* ==========================
   FOOTER
========================== */

.site-footer {
    position: relative;
    z-index: 3;

    width: min(1400px, calc(100% - 120px));

    margin: 40px auto 0;
    padding: 48px 0 55px;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    align-items: start;

    background: transparent;

    border-top: 1px solid rgba(23, 23, 23, 0.18);

    color: #111111;

    opacity: 0;
    transform: translateY(20px);

    animation: showFooter 0.75s ease 1s forwards;
}


/* IZQUIERDA */

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 58px;
}

.footer-brand > a:first-child {
    font-family: "Inclusive Sans", sans-serif;
    font-size: 20px;
    font-weight: 300;

    color: #111111;
}

.footer-brand i {
    font-size: 18px;
    color: #111111;
}


/* CENTRO */

.footer-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 18px;

    justify-self: center;
}

.footer-menu a {
    font-family: "Inclusive Sans", sans-serif;
    font-size: 15px;
    font-weight: 300;

    color: #111111;
}


/* DERECHA */

.footer-contact {
    justify-self: center;
    align-self: start;
}

.footer-contact a {
    font-family: "Inclusive Sans", sans-serif;
    font-size: 15px;
    font-weight: 300;

    color: #111111;
}


/* HOVER */

.footer-brand a,
.footer-menu a,
.footer-contact a {
    transition: opacity 0.3s ease;
}

.footer-brand a:hover,
.footer-menu a:hover,
.footer-contact a:hover {
    opacity: 0.55;
}


/* ANIMACIÓN */

@keyframes showFooter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 1000px) {

    .contact-content {
        width: min(680px, 76%);
    }

    .contact-content h1 {
        font-size: 58px;
        margin-bottom: 75px;
    }

    .contact-links {
        width: 84%;
    }

}


/* ==========================================
   CELULAR
========================================== */

@media (max-width: 720px) {

    .contact-page {
        padding: 35px 24px 80px;
    }

    .decorative-dot {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    border-radius: 50%;
}

    .back-button {
        top: 35px;
        left: 24px;
        font-size: 40px;
    }

    .main-menu {
        top: 45px;
        right: 24px;
    }

    .main-menu a {
        font-size: 16px;
    }

    .contact-content {
        width: 100%;
        margin-top: 155px;
    }

    .contact-content h1 {
        margin-bottom: 60px;
        font-size: 50px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group {
        margin-bottom: 22px;
    }

    .form-group label {
        font-size: 16px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }

    .contact-links {
        width: 100%;
        margin: 75px auto 10px;
    }

    .contact-links a {
        font-size: 20px;
    }

    .contact-links i {
        width: 25px;
        font-size: 23px;
    }

    .dot-left-center,
    .dot-right-center {
        display: none;
    }

    .site-footer {
        width: calc(100% - 48px);
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-menu {
        display: none;
    }
}


/* ==========================================
   PANTALLAS PEQUEÑAS
========================================== */

@media (max-width: 420px) {

    .main-menu a {
        font-size: 14px;
    }

    .contact-content h1 {
        font-size: 44px;
    }

    .contact-links a {
        font-size: 17px;
    }

}