.page .container {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;

}

.contact-minimal {
    padding: 3rem 0;
}

/* =====================================================
CONTACT PAGE LAYOUT
===================================================== */

.contact-minimal__wrap {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 4rem;
    align-items: start;
}

/* =====================================================
LEFT COLUMN
===================================================== */

.contact-minimal__left {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.contact-minimal__eyebrow {
    margin: 0 0 1.5rem;
    font-size: .95rem;
    color: var(--muted);
}

.contact-minimal__info p {
    margin: 0 0 0.8rem;
    font-size: .92rem;
    line-height: 1.5;
    color: var(--text);
}

/* =====================================================
MAP BLOCK
===================================================== */

.contact-minimal__mapblock {
    margin-top: 2.5rem;
}

.contact-minimal__address {
    margin: 0 0 1rem;
    font-size: .95rem;
    line-height: 1.5;
    color: var(--text);
    max-width: 28ch;
}

.contact-minimal__map {
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .08);
    background: rgba(0, 0, 0, .03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

.contact-minimal__map iframe {
    width: 100%;
    height: 240px;
    border: 0;
    display: block;
}

/* =====================================================
FORM
===================================================== */

.contact-minimal__form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-minimal__form::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../assets/logos/G&A tnr plano.svg");
    background-repeat: no-repeat;
    background-position: center 10%;
    background-size: contain;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.contact-minimal__form>* {
    position: relative;
    z-index: 1;
}

/* =====================================================
FORM GRID
===================================================== */

.contact-minimal__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.contact-minimal__field {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.contact-minimal__field label {
    font-size: .9rem;
    color: var(--text);
}

/* =====================================================
FORM INPUTS
===================================================== */

.contact-minimal__field input,
.contact-minimal__field select,
.contact-minimal__field textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, .22);
    background: transparent;
    border-radius: 0;
    padding: .55rem 0;
    color: var(--text);
    font: inherit;
    outline: none;
    box-shadow: none;
}

.contact-minimal__field input:focus,
.contact-minimal__field select:focus,
.contact-minimal__field textarea:focus {
    border-bottom-color: rgba(0, 0, 0, .55);
}

.contact-minimal__field textarea {
    resize: vertical;
    min-height: 130px;
}

/* =====================================================
SUBMIT BUTTON
===================================================== */

.contact-minimal__submit {
    align-self: flex-start;
    min-width: 110px;
    height: 38px;
    padding: 0 1.2rem;
    border: none;
    border-radius: 999px;
    background: var(--identity);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

/* =====================================================
BOTTOM CONTACT LINKS
===================================================== */

.contact-minimal__bottom {
    padding-top: 20px;
    margin-top: 4.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
}

.contact-minimal__biglink {
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    line-height: 1.1;
    word-break: break-word;
}

.contact-minimal__biglink:hover {
    opacity: .75;
}

/* =====================================================
RESPONSIVE
===================================================== */

@media (max-width: 920px) {

    .contact-minimal {
        padding: 2.25rem 0;
    }

    .contact-minimal__wrap {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* FORMULARIO PRIMERO SOLO EN MÓVIL */
    .contact-minimal__right {
        order: -1;
    }

    .contact-minimal__row {
        grid-template-columns: 1fr;
    }

    .contact-minimal__map {
        max-width: 100%;
    }

    .contact-minimal__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        margin-top: 3rem;
    }

    .contact-minimal__biglink {
        font-size: clamp(1.25rem, 5vw, 1.8rem);
    }
}

@media (max-width: 640px) {

    .contact-minimal {
        padding: 1.75rem 0;
    }

    .contact-minimal__wrap {
        gap: 2rem;
    }

    .contact-minimal__map iframe {
        height: 220px;
    }

    .contact-minimal__field label {
        font-size: .85rem;
    }

    .contact-minimal__field input,
    .contact-minimal__field select,
    .contact-minimal__field textarea {
        padding: .7rem 0;
        font-size: .95rem;
    }

    .contact-minimal__submit {
        width: 100%;
        min-width: 0;
    }

    .contact-minimal__biglink {
        font-size: 1.2rem;
        line-height: 1.25;
    }
}

/* =========================================================
   TOAST / FORM MESSAGE
========================================================= */

.site-toast {
    position: fixed;
    top: calc(var(--header-h) + 1.2rem);
    right: 1.5rem;
    z-index: 9999;

    width: min(380px, calc(100vw - 2rem));

    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 18px;

    background: rgba(247, 245, 241, .88);
    color: rgba(0, 0, 0, .86);

    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);

    box-shadow: 0 24px 70px rgba(0, 0, 0, .18);

    overflow: hidden;

    opacity: 0;
    transform: translateY(-16px) scale(.98);
    pointer-events: none;

    transition:
        opacity .35s ease,
        transform .35s ease;
}

.site-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.site-toast__content {
    padding: 1rem 1.1rem .9rem;
}

.site-toast__title {
    display: block;
    margin-bottom: .35rem;

    font-size: .85rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.site-toast__text {
    margin: 0;

    color: rgba(0, 0, 0, .62);
    font-size: .9rem;
    line-height: 1.45;
}

.site-toast__bar {
    width: 100%;
    height: 4px;

    background: rgba(0, 0, 0, .08);
    overflow: hidden;
}

.site-toast__bar span {
    display: block;
    width: 100%;
    height: 100%;

    transform-origin: left;
    transform: scaleX(1);
}

.site-toast--success .site-toast__bar span {
    background: #2e8b57;
}

.site-toast--error .site-toast__bar span {
    background: #b3261e;
}

.site-toast--success .site-toast__title {
    color: #2e8b57;
}

.site-toast--error .site-toast__title {
    color: #b3261e;
}

.site-toast.is-running .site-toast__bar span {
    animation: toastProgress var(--toast-duration, 4200ms) linear forwards;
}

@keyframes toastProgress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

@media (max-width: 640px) {
    .site-toast {
        top: calc(var(--header-h) + .8rem);
        right: 1rem;
        left: 1rem;
        width: auto;
    }
}


/* =========================================================
   RESPONSIVE FINAL — CONTACTO
   Pegar al final de contacto.css
========================================================= */

/* =========================
   1440px / Desktop medio
========================= */

@media (max-width: 1440px) {
    .page .container {
        max-width: 1080px;
        width: 92%;
    }

    .contact-minimal__wrap {
        gap: 3rem;
        grid-template-columns: .85fr 1.15fr;
    }

    .contact-minimal__biglink {
        font-size: clamp(1.35rem, 2.6vw, 2rem);
    }
}

/* =========================
   1200px / Portátil pequeño
========================= */

@media (max-width: 1200px) {
    .page .container {
        max-width: 960px;
    }

    .contact-minimal {
        padding: 2.5rem 0;
    }

    .contact-minimal__wrap {
        gap: 2.5rem;
    }

    .contact-minimal__map {
        max-width: 380px;
    }

    .contact-minimal__bottom {
        gap: 1.5rem;
    }

    .contact-minimal__biglink {
        font-size: clamp(1.25rem, 2.4vw, 1.8rem);
    }
}

/* =========================
   1024px / Tablet horizontal
========================= */

@media (max-width: 1024px) {
    .page .container {
        max-width: 860px;
        width: 92%;
    }

    .contact-minimal__wrap {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-minimal__right {
        order: -1;
    }

    .contact-minimal__left {
        min-height: auto;
    }

    .contact-minimal__mapblock {
        margin-top: 2rem;
    }

    .contact-minimal__address {
        max-width: 100%;
    }

    .contact-minimal__map {
        max-width: 100%;
    }

    .contact-minimal__map iframe {
        height: 280px;
    }

    .contact-minimal__bottom {
        margin-top: 3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .contact-minimal__biglink {
        font-size: clamp(1.45rem, 4vw, 2rem);
    }
}

/* =========================
   768px / Tablet vertical
========================= */

@media (max-width: 768px) {
    .page .container {
        width: 100%;
        padding: 0 1.35rem;
    }

    .contact-minimal {
        padding: 2.2rem 0 3rem;
    }

    .contact-minimal__wrap {
        gap: 2.4rem;
    }

    .contact-minimal__eyebrow {
        margin-bottom: 1.1rem;
        font-size: .85rem;
    }

    .contact-minimal__info p {
        font-size: .9rem;
        line-height: 1.55;
    }

    .contact-minimal__form {
        gap: 1.1rem;
    }

    .contact-minimal__row {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .contact-minimal__field label {
        font-size: .86rem;
    }

    .contact-minimal__field input,
    .contact-minimal__field select,
    .contact-minimal__field textarea {
        font-size: .95rem;
    }

    .contact-minimal__field textarea {
        min-height: 120px;
    }

    .contact-minimal__submit {
        min-width: 130px;
    }

    .contact-minimal__map iframe {
        height: 250px;
    }

    .contact-minimal__bottom {
        margin-top: 2.5rem;
        padding-top: 1.3rem;
    }

    .contact-minimal__biglink {
        font-size: clamp(1.25rem, 5.5vw, 1.75rem);
    }
}

/* =========================
   640px / Móvil normal
========================= */

@media (max-width: 640px) {
    .page .container {
        padding: 0 1.2rem;
    }

    .contact-minimal {
        padding: 1.8rem 0 2.8rem;
    }

    .contact-minimal__wrap {
        gap: 2rem;
    }

    .contact-minimal__form::before {
        background-position: center 4%;
        opacity: .04;
    }

    .contact-minimal__field label {
        font-size: .82rem;
    }

    .contact-minimal__field input,
    .contact-minimal__field select,
    .contact-minimal__field textarea {
        padding: .68rem 0;
        font-size: .92rem;
    }

    .contact-minimal__field textarea {
        min-height: 115px;
    }

    .contact-minimal__submit {
        width: 100%;
        min-width: 0;
        height: 42px;
    }

    .contact-minimal__map iframe {
        height: 220px;
    }

    .contact-minimal__bottom {
        margin-top: 2.2rem;
        gap: 1.2rem;
    }

    .contact-minimal__biglink {
        font-size: 1.15rem;
        line-height: 1.25;
    }

    .site-toast {
        top: calc(var(--header-h) + .8rem);
        right: 1rem;
        left: 1rem;
        width: auto;
        border-radius: 16px;
    }

    .site-toast__title {
        font-size: .78rem;
    }

    .site-toast__text {
        font-size: .84rem;
    }
}

/* =========================
   480px / Móvil pequeño
========================= */

@media (max-width: 480px) {
    .page .container {
        padding: 0 1rem;
    }

    .contact-minimal {
        padding: 1.5rem 0 2.4rem;
    }

    .contact-minimal__eyebrow {
        font-size: .78rem;
    }

    .contact-minimal__info p,
    .contact-minimal__address {
        font-size: .84rem;
    }

    .contact-minimal__map iframe {
        height: 200px;
    }

    .contact-minimal__field label {
        font-size: .78rem;
    }

    .contact-minimal__field input,
    .contact-minimal__field select,
    .contact-minimal__field textarea {
        font-size: .88rem;
    }

    .contact-minimal__biglink {
        font-size: 1rem;
    }

    .site-toast {
        right: .8rem;
        left: .8rem;
    }

    .site-toast__content {
        padding: .9rem 1rem .8rem;
    }
}

/* =========================
   380px / Móvil muy estrecho
========================= */

@media (max-width: 380px) {

    .contact-minimal__info p,
    .contact-minimal__address,
    .contact-minimal__field input,
    .contact-minimal__field select,
    .contact-minimal__field textarea {
        font-size: .82rem;
    }

    .contact-minimal__map iframe {
        height: 180px;
    }

    .contact-minimal__biglink {
        font-size: .92rem;
    }

    .site-toast__title {
        font-size: .72rem;
    }

    .site-toast__text {
        font-size: .8rem;
    }
}