/* =========================================================
   AYS OBRAS — CONTACTO Y FOOTER
========================================================= */

.ays-contact-stage {
    --ays-navy: #102b3f;
    --ays-navy-dark: #0b2435;
    --ays-gold: #feeAAF;
    --ays-muted: #94a5b4;
    --ays-white: #ffffff;
    --ays-footer-height: clamp(108px, 13dvh, 132px);

    position: relative;
    z-index: 90;

    width: 100%;
    height: 100dvh;
    /* Empieza después de Reformas para que esta se vea completa. */
    /* Entra desde abajo mientras Reformas continúa fijada. */
    margin-top: -100dvh;

    overflow: hidden;
    box-sizing: border-box;

    background: var(--ays-navy);
}

.ays-contact {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;

    width: 100%;
    height: calc(100dvh - var(--ays-footer-height));
    min-height: 0;
    padding: clamp(48px, 6dvh, 72px) 7vw;

    overflow: hidden;
    box-sizing: border-box;

    background: var(--ays-navy);
    color: var(--ays-white);
}

/* CONTENIDO */

.ays-contact-content {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
    gap: clamp(52px, 9vw, 150px);
    align-items: center;

    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

.ays-contact-kicker {
    margin: 0 0 4px;

    color: #8194a5;

    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(55px, 6vw, 96px);
    font-weight: 400;
    line-height: .9;
    letter-spacing: .015em;
}

.ays-contact h2 {
    margin: 0;

    color: var(--ays-gold);

    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(62px, 7vw, 110px);
    font-weight: 400;
    line-height: .9;
    letter-spacing: .015em;
}

.ays-contact-label {
    display: inline-block;
    margin: clamp(35px, 5dvh, 56px) 0 0;
    padding: 8px 12px 7px;

    background: var(--ays-gold);
    color: var(--ays-navy);

    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(20px, 1.7vw, 28px);
    letter-spacing: .09em;
    line-height: 1;
}

.ays-contact-details {
    display: grid;
    gap: 18px;

    margin-top: clamp(34px, 5dvh, 56px);
}

.ays-contact-detail {
    display: flex;
    gap: 17px;
    align-items: center;

    margin: 0;

    color: var(--ays-white) !important;

    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(16px, 1.35vw, 22px);
    line-height: 1.35;
    text-decoration: none;
}

a.ays-contact-detail:hover {
    color: var(--ays-gold) !important;
}

.ays-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    color: var(--ays-gold) !important;

    font-family: Arial, sans-serif;
    font-size: 28px;
    line-height: 1;
}

.ays-contact-icon svg {
    display: block;
    width: 24px;
    height: 24px;

    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ays-contact-closing {
    margin: clamp(38px, 5dvh, 58px) 0 0;
    padding-top: 24px;

    border-top: 3px solid var(--ays-gold);

    color: #aebbc6;

    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(18px, 1.45vw, 25px);
    letter-spacing: .1em;
    line-height: 1.22;
}

/* FORMULARIO */

.ays-contact-form {
    padding: clamp(28px, 3vw, 46px);

    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 4px;

    box-sizing: border-box;
}

.ays-contact-form .frm-fluent-form {
    display: grid;
    gap: 25px;
}

.ays-contact-form .ff-el-group {
    margin: 0;
}

.ays-contact-form .ff-el-input--label {
    margin-bottom: 10px;
}

.ays-contact-form .ff-el-input--label label {
    color: var(--ays-white);

    font-family: "Bebas Neue", sans-serif;
    font-size: 17px;
    letter-spacing: .1em;
    line-height: 1;
}

.ays-contact-form .ff-el-is-required,
.ays-contact-form .ff-el-input--label .text-danger {
    color: var(--ays-gold) !important;
}

.ays-contact-form .ff-el-form-control {
    width: 100%;
    padding: 15px 17px;

    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 4px;
    outline: none;

    background: rgba(255, 255, 255, .03);
    color: var(--ays-white);

    font-family: "Montserrat", sans-serif;
    font-size: 16px;

    box-sizing: border-box;
    transition: border-color .2s ease, background-color .2s ease;
}

.ays-contact-form input.ff-el-form-control {
    height: 54px;
}

.ays-contact-form textarea.ff-el-form-control {
    min-height: 126px;
    resize: vertical;
}

.ays-contact-form .ff-el-form-control:focus {
    border-color: var(--ays-gold);
    background: rgba(255, 255, 255, .08);
}

.ays-contact-form .ff-el-form-check,
.ays-contact-form .ff-el-form-check label {
    display: flex;
    gap: 10px;
    align-items: flex-start;

    color: #b8c4ce;

    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.4;
}

.ays-contact-form .ff-el-form-check input[type="checkbox"] {
    margin: 1px 0 0;
    accent-color: var(--ays-gold);
}

.ays-contact-form .ff-btn-submit {
    justify-self: start;

    padding: 14px 20px 12px;

    border: 0 !important;
    border-radius: 0;

    background: var(--ays-gold) !important;
    color: var(--ays-navy) !important;

    cursor: pointer;

    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(19px, 1.55vw, 25px);
    letter-spacing: .08em;
    line-height: 1;
    transition: transform .2s ease, background-color .2s ease;
}

.ays-contact-form .ff-btn-submit:hover {
    background: #ffffff !important;
    transform: translateX(5px);
}

.ays-contact-form .text-danger,
.ays-contact-form .error {
    margin-top: 6px;
    color: #ffd3d3;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
}

.ays-contact-form .ff-message-success {
    margin: 0;
    padding: 14px 16px;

    border: 1px solid var(--ays-gold);
    background: rgba(254, 234, 175, .12);
    color: var(--ays-white);

    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

/* MINI-FOOTER */

.ays-footer {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;

    width: 100%;
    height: var(--ays-footer-height);
    min-height: var(--ays-footer-height);
    padding: 16px 7vw;

    background: var(--ays-navy-dark, #0b2435);
    color: #aebbc6;

    box-sizing: border-box;
}

.ays-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 36px;
}

.ays-footer a,
.ays-footer-copy {
    margin: 0;

    color: #aebbc6 !important;

    font-family: "Bebas Neue", sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: .1em;
    line-height: 1.2;
    text-decoration: none;
}

.ays-footer a:hover {
    color: var(--ays-gold, #feeAAF) !important;
}

.ays-footer-copy {
    text-align: center;
    white-space: nowrap;
}

.ays-footer-brand {
    justify-self: end;
    display: block;
    line-height: 0;
}

.ays-footer-brand img {
    display: block;
    width: clamp(100px, 8vw, 132px);
    height: auto;
}

/* TABLET Y MÓVIL */

@media (max-width: 900px) {
    .ays-contact-stage {
        height: auto;
        margin-top: 0;
        overflow: visible;
    }

    .ays-contact {
        height: auto;
        min-height: auto;
        padding: 110px 6vw 82px;
    }

    .ays-contact-content {
        grid-template-columns: 1fr;
        gap: 58px;
    }

    .ays-contact-form {
        max-width: 650px;
        width: 100%;
    }

    .ays-footer {
        grid-template-columns: 1fr auto;
    }

    .ays-footer-copy {
        grid-column: 1 / -1;
        grid-row: 2;
        text-align: left;
    }
}

@media (max-width: 600px) {
    .ays-contact {
        padding: 90px 24px 64px;
    }

    .ays-contact-kicker {
        font-size: clamp(48px, 14vw, 66px);
    }

    .ays-contact h2 {
        font-size: clamp(56px, 16vw, 76px);
    }

    /* Datos más legibles, pero tratados como un bloque compacto. */
    .ays-contact-details {
        gap: 10px;
        margin-top: 26px;
    }

    .ays-contact-detail {
        gap: 12px;
        font-size: 19px;
        line-height: 1.2;
    }

    .ays-contact-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .ays-contact-icon svg {
        width: 27px;
        height: 27px;
    }

    .ays-contact-form {
        padding: 25px 20px;
    }

    .ays-footer {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        gap: 4px 20px;
        align-items: end;

        height: auto;
        min-height: 0;
        padding: 12px 24px;
    }

    .ays-footer-legal {
        grid-column: 1 / -1;
        gap: 8px 18px;
    }

    .ays-footer-copy {
        grid-column: 1;
        grid-row: 2;
        order: initial;
    }

    .ays-footer-brand {
        grid-column: 2;
        grid-row: 2;
        align-self: end;
        justify-self: end;
        margin: 0;
    }

    .ays-footer-brand img {
        width: 82px;
    }
}

/* En escritorios bajos el formulario necesita scroll normal, no contenido recortado. */
@media (min-width: 901px) and (max-height: 760px) {
    .ays-contact-stage {
        height: auto;
        margin-top: 0;
        overflow: visible;
    }

    .ays-contact {
        height: auto;
        min-height: 0;
        padding-bottom: 82px;
        overflow: visible;
    }

    .ays-footer {
        height: auto;
        min-height: 120px;
        padding-top: 24px;
        padding-bottom: 24px;
    }
}
