
/* Archivo Brunton — Formularios */

.ab-form-page {
    background: #f4efe5;
    color: #172a25;
}

.ab-form-container {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

.ab-form-hero {
    padding: 86px 0 66px;
    border-bottom: 1px solid rgba(41, 51, 47, .18);
}

.ab-form-kicker {
    margin: 0 0 12px;
    color: #a6783a;
    font-family: Arial, sans-serif;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.ab-form-hero h1 {
    margin: 0 0 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4rem, 7vw, 7rem);
    font-weight: 400;
    line-height: .9;
    letter-spacing: -.04em;
    text-transform: uppercase;
}

.ab-form-lead {
    max-width: 780px;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.72;
}

.ab-form-content {
    padding: 82px 0 110px;
}

.ab-form-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(520px, 1.2fr);
    gap: 86px;
    align-items: start;
}

.ab-form-intro {
    position: sticky;
    top: 28px;
}

.ab-form-intro h2 {
    max-width: 560px;
    margin: 10px 0 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 4.4vw, 4.5rem);
    font-weight: 400;
    line-height: .98;
}

.ab-form-intro > p {
    max-width: 590px;
    font-size: 1.02rem;
    line-height: 1.72;
}

.ab-form-intro a {
    color: inherit;
    text-underline-offset: 3px;
}

.ab-form-contact-card {
    margin-top: 30px;
    padding: 22px 24px;
    border-left: 3px solid #a6783a;
    background: #e9decc;
}

.ab-form-contact-card span {
    display: block;
    margin-bottom: 6px;
    font-family: Arial, sans-serif;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ab-form-contact-card a {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    text-decoration: none;
}

.ab-form-tech-note {
    margin-top: 24px;
    padding: 20px 22px;
    border: 1px solid rgba(41, 51, 47, .16);
    font-size: .9rem;
    line-height: 1.65;
}

.ab-form {
    padding: 38px;
    border: 1px solid rgba(41, 51, 47, .18);
    background: rgba(255,255,255,.4);
}

.ab-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ab-field {
    margin-bottom: 22px;
}

.ab-field label {
    display: block;
    margin-bottom: 8px;
    font-family: Arial, sans-serif;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ab-field label span {
    color: #a6783a;
}

.ab-field input[type="text"],
.ab-field input[type="email"],
.ab-field input[type="file"],
.ab-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(41, 51, 47, .28);
    border-radius: 0;
    background: #fbf8f1;
    color: #172a25;
    font: inherit;
}

.ab-field input[type="text"],
.ab-field input[type="email"] {
    min-height: 50px;
    padding: 10px 13px;
}

.ab-field input[type="file"] {
    padding: 13px;
}

.ab-field textarea {
    min-height: 190px;
    padding: 13px;
    resize: vertical;
}

.ab-field input:focus,
.ab-field textarea:focus {
    outline: 2px solid rgba(166,120,58,.45);
    outline-offset: 1px;
    border-color: #a6783a;
}

.ab-field small {
    display: block;
    margin-top: 8px;
    color: rgba(23,42,37,.72);
    font-size: .82rem;
    line-height: 1.55;
}

.ab-form-privacy {
    margin: 6px 0 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(41, 51, 47, .16);
}

.ab-form-privacy label {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin-bottom: 14px;
    font-size: .9rem;
    line-height: 1.5;
}

.ab-form-privacy input[type="checkbox"] {
    margin-top: 3px;
    flex: 0 0 auto;
}

.ab-form-privacy a {
    color: inherit;
    text-underline-offset: 3px;
}

.ab-form-privacy p {
    margin: 16px 0 0;
    color: rgba(23,42,37,.75);
    font-size: .79rem;
    line-height: 1.6;
}

.ab-form-submit {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid #172a25;
    background: #172a25;
    color: #f4efe5;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ab-form-submit:hover,
.ab-form-submit:focus-visible {
    background: #a6783a;
    border-color: #a6783a;
}

.ab-form-notice {
    margin: 0 0 32px;
    padding: 17px 20px;
    border-left: 4px solid;
    font-size: .95rem;
    line-height: 1.55;
}

.ab-form-notice--success {
    border-color: #4e735f;
    background: #dfe9e2;
}

.ab-form-notice--error {
    border-color: #9d5346;
    background: #efdfdc;
}

.ab-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 960px) {
    .ab-form-grid {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .ab-form-intro {
        position: static;
    }

    .ab-form-intro h2 {
        max-width: 760px;
    }
}

@media (max-width: 640px) {
    .ab-form-container {
        width: min(100% - 32px, 1280px);
    }

    .ab-form-hero {
        padding: 64px 0 50px;
    }

    .ab-form-hero h1 {
        font-size: clamp(3.4rem, 16vw, 5rem);
    }

    .ab-form-content {
        padding: 58px 0 76px;
    }

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

    .ab-form {
        padding: 24px 18px;
    }

    .ab-form-intro h2 {
        font-size: clamp(2.6rem, 12vw, 3.9rem);
    }

    .ab-form-submit {
        width: 100%;
        justify-content: center;
    }
}


/* ============================================================
   FORMULARIOS · REFINAMIENTO v1.1
   ============================================================ */

/* Evita el título duplicado que muestra la plantilla genérica de WordPress. */
.ab-contact-page .entry-header,
.ab-contact-page .page-header,
.ab-contact-page main > header:not(.site-header),
.ab-contribution-page .entry-header,
.ab-contribution-page .page-header,
.ab-contribution-page main > header:not(.site-header) {
    display: none !important;
}

.ab-form-hero {
    padding-top: 74px;
    padding-bottom: 58px;
}

.ab-form-hero h1 {
    max-width: 980px;
    font-size: clamp(3.7rem, 6.1vw, 6.25rem);
    text-transform: none;
    line-height: .94;
}

.ab-form-lead {
    max-width: 860px;
    font-size: 1.12rem;
}

.ab-form-content {
    padding-top: 72px;
}

.ab-form-grid {
    grid-template-columns: minmax(320px, .78fr) minmax(560px, 1.22fr);
    gap: 72px;
}

.ab-form-intro h2 {
    font-size: clamp(2.65rem, 3.8vw, 3.8rem);
    line-height: 1;
}

.ab-form-intro > p {
    max-width: 560px;
    font-size: 1.03rem;
    line-height: 1.74;
}

.ab-form {
    padding: 36px 38px 38px;
}

.ab-form-contact-card {
    max-width: 360px;
}

.ab-form-privacy p {
    max-width: 760px;
}

@media (max-width: 960px) {
    .ab-form-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }
}

@media (max-width: 640px) {
    .ab-form-hero h1 {
        font-size: clamp(3.1rem, 14vw, 4.5rem);
    }
}


/* ============================================================
   FORMULARIOS · v1.3 · APORTACIÓN MULTIARCHIVO
   ============================================================ */

.ab-field-help {
    margin: 0 0 14px;
    color: rgba(23,42,37,.76);
    font-size: .9rem;
    line-height: 1.6;
}

.ab-attachment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
    margin-bottom: 12px;
}

.ab-attachment {
    display: block;
    padding: 13px 14px 14px;
    border: 1px solid rgba(41,51,47,.22);
    background: #fbf8f1;
}

.ab-attachment > span {
    display: block;
    margin-bottom: 8px;
    font-family: Arial, sans-serif;
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ab-attachment input[type="file"] {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: .82rem;
}

.ab-form-grid--contribution .ab-form-intro h2 {
    max-width: 590px;
}

@media (max-width: 640px) {
    .ab-attachment-grid {
        grid-template-columns: 1fr;
    }
}
