.contact-hero {
    padding: 6rem 0 4rem;
    color: #0B2545;
    background:
        linear-gradient(135deg, rgba(248, 250, 252, 0.96) 0%, rgba(214, 230, 242, 0.88) 100%),
        url("https://images.unsplash.com/photo-1456513080510-7bf3a84b82f8?auto=format&fit=crop&w=1600&q=85") center/cover;
}

.contact-hero h1 {
    color: #0B2545;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
}

.contact-hero p {
    color: rgba(11, 37, 69, 0.76);
    max-width: 760px;
    font-size: 1.12rem;
    line-height: 1.8;
}

.contact-layout {
    margin-top: -2.5rem;
    position: relative;
    z-index: 2;
}

.contact-card {
    padding: clamp(1.35rem, 3vw, 2.2rem);
}

.contact-card-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-card h2 {
    font-size: 1.75rem;
    margin-bottom: 0.7rem;
}

.collaboration-block {
    margin-bottom: 1.6rem;
}

.collaboration-title {
    color: #16242E;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.collaboration-list {
    color: #6B6B63;
    margin: 0;
    padding-left: 1.35rem;
    line-height: 1.75;
}

.contact-form-title {
    color: #16242E;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.form-label {
        color: #0B2545;
        font-weight: 800;
        font-size: 0.88rem;
        margin-bottom: 0.45rem;
    }

    .form-control,
    .form-select {
        border: 1px solid var(--pro-border);
        border-radius: 14px;
        padding: 0.86rem 1rem;
        color: #0B2545;
        font-weight: 600;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

textarea.form-control {
    min-height: 140px;
}

.form-control:focus,
.form-select:focus {
    border-color: #134074;
    box-shadow: 0 0 0 4px rgba(141, 169, 196, 0.24);
}

.btn-submit {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: #134074;
    color: #fff;
    font-weight: 800;
    padding: 0.95rem 1.2rem;
    box-shadow: 0 12px 24px rgba(19, 64, 116, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    background: #0B2545;
    box-shadow: 0 16px 30px rgba(11, 37, 69, 0.20);
}

.contact-info-panel {
    height: 100%;
    padding: clamp(1.35rem, 3vw, 2.2rem);
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 10%, rgba(255,255,255,0.2), transparent 30%),
        linear-gradient(135deg, #134074 0%, #0B2545 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-info-panel h2,
.contact-info-panel h3 {
    color: #ffffff;
}

.contact-info-panel .section-kicker {
    color: rgba(255, 255, 255, 0.9) !important;
}

.contact-info-panel > h2 {
    color: #ffffff !important;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.info-item:last-child {
    border-bottom: 0;
}

.info-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 1.2rem;
}

.info-item h3 {
    font-family: "Inter", sans-serif;
    font-size: 0.98rem;
    font-weight: 800;
    margin-bottom: 0.15rem;
}

.info-item p {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0;
    line-height: 1.6;
}

.contact-note {
    margin-top: 1.5rem;
    padding: 1.1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

@media (max-width: 767.98px) {
    .contact-card-heading {
        flex-direction: column;
    }
}

/* Paleta institucional BLMP */
.contact-hero {
    padding: clamp(4rem, 6vw, 6rem) 0;
    color: #16242E;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 55%, rgba(22, 36, 46, 0.10) 100%),
        repeating-linear-gradient(90deg, transparent 0 76px, rgba(22, 36, 46, 0.035) 76px 92px, transparent 92px 138px),
        url("https://images.unsplash.com/photo-1456513080510-7bf3a84b82f8?auto=format&fit=crop&w=1600&q=85") center/cover;
}

.contact-hero .section-kicker,
.contact-hero .text-white-50,
.contact-hero .text-white-75 {
    color: #C49A3A !important;
}

.contact-hero h1 {
    color: #16242E;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(3rem, 5vw, 4.8rem);
    font-weight: 700;
}

.contact-hero p {
    color: #6B6B63 !important;
}

.contact-layout {
    overflow-x: hidden;
}

.contact-card {
    border: 1px solid #E5E5E5 !important;
    border-radius: 0 !important;
    background: #FFFFFF !important;
    box-shadow: 0 10px 24px rgba(22, 36, 46, 0.07) !important;
}

.contact-card h2,
.contact-info-panel h2,
.contact-info-panel h3 {
    color: #16242E !important;
    font-family: "Playfair Display", Georgia, serif;
}

.contact-card .text-muted {
    color: #6B6B63 !important;
}

.form-control,
.form-select {
    border-color: #E5E5E5;
    border-radius: 4px;
    color: #16242E;
}

.form-control:focus,
.form-select:focus {
    border-color: #C49A3A;
    box-shadow: 0 0 0 3px rgba(196, 154, 58, 0.18);
}

.btn-submit {
    border-radius: 4px;
    background: #16242E;
    color: #FFFFFF;
    box-shadow: none;
}

.btn-submit:hover {
    background: #A57D25;
    box-shadow: none;
}

.contact-info-panel {
    border: 1px solid #E5E5E5;
    border-left: 4px solid #C49A3A;
    border-radius: 0;
    background: #FFFFFF;
    color: #16242E;
    box-shadow: 0 10px 24px rgba(22, 36, 46, 0.07);
}

.contact-info-panel .section-kicker,
.contact-info-panel .text-white-50 {
    color: #C49A3A !important;
}

.contact-info-panel > p,
.contact-info-panel p,
.info-item p {
    color: #6B6B63 !important;
}

.info-item {
    border-bottom-color: #E5E5E5;
}

.info-icon {
    border-radius: 50%;
    background: rgba(196, 154, 58, 0.12);
    color: #C49A3A;
}

.info-item h3 {
    font-family: "Playfair Display", Georgia, serif;
    color: #16242E;
}

.contact-note {
    border-left: 3px solid #66704A;
    border-radius: 0;
    background: rgba(102, 112, 74, 0.10);
    color: #6B6B63;
}

.contact-info-panel a,
.contact-info-panel .text-white {
    color: #C49A3A !important;
}

.contact-hero h1,
.contact-hero p {
    color: var(--contact-hero-text, #16242e) !important;
    font-family: var(--contact-hero-font, inherit);
}

.contact-hero.is-space-compacto { padding: 2rem 0; }
.contact-hero.is-space-amplio { padding: 7rem 0; }
.contact-hero.is-order-centrado { text-align: center; }
.contact-hero.is-order-imagen_texto { text-align: right; }
.contact-hero.is-order-centrado p { margin-left: auto; margin-right: auto; }
.contact-hero.is-order-imagen_texto p { margin-left: auto; margin-right: 0; }

[data-contact-section] {
    background: var(--contact-bg) !important;
    color: var(--contact-text);
}

[data-contact-section] h2,
[data-contact-section] h3,
[data-contact-section] p,
[data-contact-section] .text-muted,
[data-contact-section] .contact-note {
    color: var(--contact-text) !important;
}

[data-contact-section] h2,
[data-contact-section] h3 {
    font-family: var(--contact-font, 'Playfair Display', Georgia, serif);
}

[data-contact-section] .btn-submit {
    background: var(--contact-button);
    white-space: normal;
    overflow-wrap: anywhere;
}

[data-contact-section] .btn-soft,
[data-contact-section] a,
[data-contact-section] .text-white {
    color: var(--contact-accent) !important;
    border-color: var(--contact-accent);
}

.contact-info-panel[data-contact-section] { border-left-color: var(--contact-accent); }
[data-contact-section] .info-icon { color: var(--contact-accent); }
[data-contact-section] .contact-note { border-left-color: var(--contact-accent); }
[data-contact-section][data-contact-spacing="compacto"] { padding: 1rem; }
[data-contact-section][data-contact-spacing="amplio"] { padding: 3rem; }
[data-contact-alignment="centro"] .contact-card-heading { justify-content: center; }
[data-contact-alignment="derecha"] .contact-card-heading { justify-content: flex-end; }
[data-contact-alignment="centro"] .info-item { flex-direction: column; align-items: center; }
[data-contact-alignment="derecha"] .info-item { flex-direction: row-reverse; }
.contact-layout [data-contact-column][hidden] { display: none !important; }
.contact-layout .row:has(> [data-contact-column][hidden]) > [data-contact-column]:not([hidden]) { width: 100%; }

#contactParticipationForm [hidden] { display: none !important; }
.contact-motive { margin-bottom: 1.5rem; }
.contact-motive .form-label { display: block; }
.contact-motive-options,
.contact-collaborator-grid,
.contact-submit-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.contact-motive-options button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.75rem;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.contact-motive-options button[aria-pressed="true"] {
    border-color: var(--contact-accent, #c49a3a);
    background: color-mix(in srgb, var(--contact-accent, #c49a3a) 14%, transparent);
}
.contact-motive-options button:focus-visible {
    outline: 2px solid var(--contact-accent, #c49a3a);
    outline-offset: 2px;
}
.contact-collaborator-grid { margin-bottom: 1.25rem; }
.contact-input-field { min-width: 0; }
.contact-input-field .form-label { display: block; }
.contact-input-field input,
.contact-input-field select,
.contact-input-field textarea { width: 100%; font-family: inherit; }
.contact-input-field input,
.contact-input-field select { min-height: 48px; }
.contact-required,
.contact-field-error { color: #b42318; }
.contact-field-error { font-size: 0.82rem; margin-top: 0.35rem; }
.contact-field-error:empty { display: none; }
.contact-input-field .is-invalid { border-color: #b42318; }
.contact-input-field .is-invalid:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12); }
.contact-select-wrap { position: relative; }
.contact-select-wrap select { appearance: none; padding-right: 2.75rem; background-image: none; }
.contact-select-wrap > i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.contact-success {
    margin-top: 1.25rem;
    padding: 0.9rem 1rem;
    border: 1px solid #b7dfc7;
    border-radius: 4px;
    background: #eaf7ef;
    color: #22633d;
}
.contact-submit-actions { margin-top: 1.5rem; align-items: stretch; }
.contact-submit-actions > div { display: flex; min-width: 0; }
.contact-submit-actions .btn-submit,
.contact-submit-actions .btn-soft { width: 100%; min-height: 48px; }
@media (max-width: 575.98px) {
    .contact-motive-options,
    .contact-collaborator-grid,
    .contact-submit-actions { grid-template-columns: minmax(0, 1fr); }
}
