/* ============================================================
   LOEX — Página: Contacto
   ============================================================ */

.section-contact {
    width: 100%;
    background-color: var(--color-white);
}

body[data-page="contacto"] .site-header__inner {
    margin-top: 58px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.img-contact {
    width: 100%;
    height: 324px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: linear-gradient(90deg, #08527d 0%, #2d9add 100%);
    border-radius: 0 0 18px 18px;
    padding-bottom: 52px;
}

.img-contact h1 {
    color: var(--color-white);
    font-size: clamp(3rem, 4.2vw, 3.65rem);
    font-weight: 700;
    line-height: 1.08;
}

/* ── Info de contacto ─────────────────────────────────────── */
.align-info-contact {
    width: min(74%, 940px);
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    padding: 88px 0 39px;
    text-align: center;
    gap: 70px;
}

.info-cont {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.info-cont span {
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #d9eaf4;
    border-radius: 50%;
    margin-bottom: 23px;
}

.info-cont span img {
    width: 34px;
    max-height: 34px;
}

.info-cont h6 {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--color-blue-dark);
    line-height: 1.15;
    margin-bottom: 13px;
}

.info-cont p,
.info-cont a {
    font-size: 1.08rem;
    color: var(--color-blue-dark);
    line-height: 1.22;
    font-weight: 400;
}

/* ── Mapa ─────────────────────────────────────────────────── */
.align-map {
    width: 90%;
    height: 510px;
    border-radius: var(--radius-md);
    background-color: var(--color-accent);
    position: relative;
    margin: 0 auto;
}

#map {
    width: 100%;
    height: 500px;
    position: absolute;
    bottom: 0;
    border-radius: var(--radius-md);
}

/* ── Formulario ───────────────────────────────────────────── */
.form-contact {
    width: min(60%, 760px);
    margin: 0 auto;
    padding: 39px 0 86px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.form-contact h2 {
    font-size: clamp(2.35rem, 3.2vw, 2.65rem);
    line-height: 1.12;
    font-weight: 700;
    color: var(--color-blue);
    text-align: center;
    margin: 0 0 25px;
}

.form-contact p {
    color: var(--color-blue-dark);
    line-height: 1.7;
    font-size: 1.08rem;
    font-weight: 500;
    text-align: center;
    width: min(122%, 930px);
    margin: 0 0 49px;
}

.form-contact__grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px 24px;
    margin-bottom: 22px;
}

.form-contact input,
.form-contact textarea {
    width: 100%;
    border: 2px solid #eef0f1;
    border-radius: 5px;
    font-family: var(--font-base);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-blue-dark);
    padding: 0 20px;
    outline: none;
    transition: border-color var(--transition-fast);
    background: var(--color-white);
    resize: none;  
}

.form-contact input {
    height: 51px;
}

.form-contact input:focus,
.form-contact textarea:focus { border-color: var(--color-blue); }

.form-contact input::placeholder,
.form-contact textarea::placeholder { color: var(--color-blue-dark); }

.form-contact textarea {
    height: 176px;
    padding: 17px 20px;
    resize: none;  
    margin-bottom: 23px;
}

.form-contact__trap {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.form-contact__status {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.form-contact__status--success {
    background-color: #e6f9f0;
    color: #1a7a4a;
    border: 1px solid #a3e6c7;
}

.form-contact__status--error {
    background-color: #fff4f5;
    color: #c0392b;
    border: 1px solid #f5b7b1;
}

.form-contact button[type="submit"] {
    align-self: center;
    width: 264px;
    height: 52px;
    background-color: var(--color-accent);
    color: var(--color-white);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.form-contact button[type="submit"]:hover { opacity: 0.85; }

.form-contact button[type="submit"]:disabled {
    cursor: wait;
    opacity: 0.72;
}

.form-contact__captcha-note {
    width: 60%;
    margin: 12px auto 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(7, 37, 56, 0.68);
}

.form-contact__captcha-note a {
    color: var(--color-blue);
    text-decoration: underline;
}

body[data-page="contacto"] .site-footer {
    padding: 25px 9.2%;
}

body[data-page="contacto"] .site-footer__inner {
    max-width: none;
}

body[data-page="contacto"] .site-footer__brand,
body[data-page="contacto"] .site-footer__links a {
    display: none;
}

body[data-page="contacto"] .site-footer__meta {
    width: 100%;
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 54px;
}

body[data-page="contacto"] .site-footer__meta::before {
    content: "2021 | LOEX";
    order: 2;
    color: var(--color-white);
    font-size: 0.86rem;
    line-height: 1.2;
}

body[data-page="contacto"] .site-footer__links {
    display: contents;
}

body[data-page="contacto"] .site-footer__link-button {
    order: 1;
}

body[data-page="contacto"] .site-footer__link-button,
body[data-page="contacto"] .site-footer__copy {
    color: var(--color-white);
    font-size: 0.86rem;
    line-height: 1.2;
}

body[data-page="contacto"] .site-footer__copy {
    order: 3;
    font-size: 0;
}

body[data-page="contacto"] .site-footer__copy::before {
    content: "Desarrollado por Upgrade DI© 2025";
    font-size: 0.86rem;
}

body[data-page="contacto"] .site-footer__social {
    order: 4;
    justify-self: end;
    gap: 22px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    body[data-page="contacto"] .site-header__inner {
        margin-top: 34px;
    }

    .align-info-contact { width: 90%; }
    .form-contact {
        width: 80%;
    }

    .form-contact p {
        width: 100%;
    }

    body[data-page="contacto"] .site-footer {
        padding-inline: 7%;
    }

    body[data-page="contacto"] .site-footer__meta {
        grid-template-columns: 1fr auto;
        gap: 16px 28px;
    }

    body[data-page="contacto"] .site-footer__social {
        grid-column: 2;
        grid-row: 1 / span 3;
    }
}

@media (max-width: 768px) {
    .img-contact {
        height: 300px;
        padding-bottom: 44px;
        border-radius: 0 0 14px 14px;
    }

    .align-info-contact {
        flex-direction: column;
        align-items: center;
        gap: 34px;
        padding: 50px 0 34px;
    }
    .info-cont { width: 100%; max-width: 320px; }
    .align-map { height: 410px; }
    #map { height: 400px; }
    .form-contact {
        width: 90%;
        padding: 36px 0 58px;
    }
    .form-contact h2 { margin: 0; }
    .form-contact button[type="submit"] { width: 100%; max-width: 320px; }
}

@media (max-width: 600px) {
    .form-contact__grid {
        grid-template-columns: 1fr;
    }

    body[data-page="contacto"] .site-footer {
        padding: 18px 6%;
    }

    body[data-page="contacto"] .site-footer__meta {
        display: flex;
        gap: 14px;
    }

    body[data-page="contacto"] .site-footer__social {
        justify-self: auto;
    }
}
