/* ============================================================
   Contacto, formularios (familia «Contacto»): cabecera, imagen y
   formulario de Contact Form 7. Bloque «contact» con un modificador
   por variante: contact--home (Portada), contact--lms (LMS y, con
   contact--sol, Soluciones), contact--srv (Servicios), contact--dig
   (Digitalización), contact--acred (Asesoramiento, Oficina técnica),
   contact--av (Aula virtual), contact--ha (Herramientas de autor),
   contact--moodle (Moodle, vCampus, evolCampus) y contact--form
   (página de Contacto, sin cabecera).
   Las secciones de información (contact-info) y de ubicación
   (contact-location) de la página de Contacto son bloques aparte.
   ============================================================ */

.contact--home {
    background: var(--color-ink);
    padding: 128px 0;
}

:where(.contact--home) .contact__header {
    border-top: 1px solid var(--color-line);
    padding: 32px 24px;
}

:where(.contact--home, .contact--lms, .contact--dig, .contact--av, .contact--srv, .contact--ha, .contact--moodle, .contact--acred) .contact__title.wp-block-heading {
    font-weight: 500;
    letter-spacing: 0.56px;
    margin: 0;
    font-size: clamp(1.75rem, 3.5vw, 48px);
    line-height: 1.2;
    color: var(--color-white);
}

:where(.contact--home) .contact__title.wp-block-heading {
    font-size: 48px;
    line-height: normal;
    max-width: 672px;
}

:where(.contact--lms) .contact__title.wp-block-heading {
    font-size: 48px;
    line-height: 1.28;
    opacity: 0.86;
    max-width: 672px;
}

:where(.contact--dig) .contact__title.wp-block-heading,
:where(.contact--srv) .contact__title.wp-block-heading {
    color: #bababa;
    max-width: 900px;
}

:where(.contact--ha) .contact__title.wp-block-heading {
    color: #bababa;
}

:where(.contact--moodle) .contact__title.wp-block-heading {
    font-family: var(--font-primary);
    font-size: clamp(32px, 3.5vw, 48px);
    color: var(--color-ink);
    line-height: 1.25;
}

:where(.contact--acred) .contact__title.wp-block-heading {
    font-family: var(--font-primary);
    line-height: 1.25;
    color: var(--color-ink);
    flex: 0 0 auto;
    max-width: 900px;
    opacity: 0.86;
}

:where(.contact--home, .contact--lms, .contact--dig, .contact--av, .contact--srv, .contact--ha, .contact--moodle, .contact--acred) .contact__muted {
    color: #bababa;
}

:where(.contact--home) .contact__muted {
    display: block;
}

:where(.contact--dig) .contact__muted {
    color: var(--color-white);
}

:where(.contact--srv) .contact__muted,
:where(.contact--ha) .contact__muted {
    color: #ffffff;
}

:where(.contact--moodle) .contact__muted,
:where(.contact--acred) .contact__muted {
    color: var(--color-gray);
}

/* Body: imagen + formulario */
:where(.contact--home) .contact__body.wp-block-columns {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 96px !important;
    align-items: stretch;
    margin: 0 !important;
}

:where(.contact--lms) .contact__body.wp-block-columns {
    gap: 96px !important;
    align-items: stretch !important;
    margin: 0 !important;
}

:where(.contact--dig) .contact__body.wp-block-columns {
    gap: 96px !important;
    align-items: center !important;
    padding: 0 24px !important;
}

:where(.contact--av) .contact__body.wp-block-columns {
    gap: 96px !important;
    align-items: center !important;
    margin: 0 !important;
    max-width: none !important;
}

:where(.contact--ha) .contact__body.wp-block-columns,
:where(.contact--srv) .contact__body.wp-block-columns {
    gap: 96px !important;
    align-items: stretch !important;
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
}

:where(.contact--moodle) .contact__body.wp-block-columns {
    align-items: stretch;
    gap: 96px;
    margin: 0;
}

:where(.contact--acred) .contact__body.wp-block-columns {
    align-items: stretch !important;
    gap: 96px !important;
    margin: 0 !important;
}

:where(.contact--home) .contact__body.wp-block-columns > .wp-block-column {
    margin-inline-start: 0 !important;
}

:where(.contact--home) .contact__img-col.wp-block-column {
    flex: 0 0 auto !important;
    width: 55% !important;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

:where(.contact--lms) .contact__img-col.wp-block-column {
    padding: 24px;
    flex: 1 1 auto !important;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

:where(.contact--form) .contact__img-col.wp-block-column {
    flex: 0 0 auto !important;
    width: 50% !important;
    padding: 24px !important;
}

:where(.contact--dig) .contact__img-col.wp-block-column {
    flex: 1 0 0 !important;
    min-width: 0 !important;
    padding: 24px !important;
}

:where(.contact--av) .contact__img-col.wp-block-column {
    flex: 1 0 0 !important;
    padding: 24px !important;
    align-self: stretch !important;
    display: flex !important;
}

:where(.contact--ha) .contact__img-col.wp-block-column,
:where(.contact--srv) .contact__img-col.wp-block-column {
    flex: 1 0 0 !important;
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
}

:where(.contact--moodle) .contact__img-col.wp-block-column {
    flex: 1 0 0;
    min-width: 0;
    padding: 24px;
}

:where(.contact--acred) .contact__img-col.wp-block-column {
    flex: 1 0 0 !important;
    padding: 24px;
    display: flex;
}

.contact__cover.wp-block-cover {
    min-height: 0 !important;
    border-radius: var(--radius);
}

:where(.contact--home) .contact__cover.wp-block-cover {
    flex: 1;
    overflow: hidden;
    background-color: #2e2e2d !important;
}

:where(.contact--lms) .contact__cover.wp-block-cover {
    overflow: hidden;
    flex: 1;
    min-height: 480px !important;
}

:where(.contact--form) .contact__cover.wp-block-cover {
    border-radius: var(--radius) !important;
    overflow: hidden !important;
    min-height: 905px !important;
}

:where(.contact--dig) .contact__cover.wp-block-cover {
    border-radius: var(--radius) !important;
    overflow: hidden !important;
    aspect-ratio: 4 / 3 !important;
}

:where(.contact--ha) .contact__cover.wp-block-cover,
:where(.contact--srv) .contact__cover.wp-block-cover {
    border-radius: var(--radius) !important;
    overflow: hidden !important;
    flex: 1 !important;
    min-height: 480px !important;
}

:where(.contact--av) .contact__cover.wp-block-cover {
    min-height: 600px !important;
    width: 100% !important;
}

:where(.contact--moodle) .contact__cover.wp-block-cover {
    min-height: 600px !important;
    height: 100%;
}

:where(.contact--acred) .contact__cover.wp-block-cover {
    flex: 1;
    width: 100%;
    align-self: stretch;
}

:where(.contact--home) .contact__form-col {
    flex: 0 0 600px;
    padding: 64px 24px 64px 0;
    display: flex;
    align-items: center;
}

.contact:where(.contact--lms, .contact--dig, .contact--av, .contact--srv, .contact--ha, .contact--acred, .contact--moodle).wp-block-group {
    padding: 128px 0;
}

.contact--lms.wp-block-group,
.contact--dig.wp-block-group {
    display: flex;
    flex-direction: column;
    gap: 64px;
    background: var(--color-ink);
}

.contact--av.wp-block-group,
.contact--srv.wp-block-group,
.contact--ha.wp-block-group {
    display: flex;
    flex-direction: column;
    gap: 64px;
    background-color: var(--color-ink);
}

.contact--acred.wp-block-group {
    display: flex;
    flex-direction: column;
    gap: 64px;
    background: #fff;
}

.contact--moodle.wp-block-group {
    background: #fff;
}

:where(.contact--lms, .contact--dig, .contact--av, .contact--srv, .contact--ha, .contact--acred) .contact__header.wp-block-group {
    border-top: 1px solid var(--color-line);
    padding: 32px 24px;
}

:where(.contact--dig) .contact__header.wp-block-group {
    padding: 32px 24px !important;
}

:where(.contact--acred) .contact__header.wp-block-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    width: 100%;
}

:where(.contact--lms) .contact__form-col.wp-block-column {
    padding: 64px 0;
    padding-right: 24px;
}

:where(.contact--form) .contact__form-col.wp-block-column {
    flex: 1 0 0 !important;
    padding: 24px 48px 24px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
    justify-content: center !important;
}

:where(.contact--dig) .contact__form-col.wp-block-column {
    flex: 1 0 0 !important;
    min-width: 0 !important;
}

:where(.contact--av) .contact__form-col.wp-block-column {
    padding: 64px 0 !important;
}

:where(.contact--ha) .contact__form-col.wp-block-column,
:where(.contact--srv) .contact__form-col.wp-block-column {
    flex: 1 !important;
    padding: 64px 24px 64px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

:where(.contact--moodle) .contact__form-col.wp-block-column {
    flex: 0 0 600px;
    padding: 64px 24px 64px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

:where(.contact--acred) .contact__form-col.wp-block-column {
    flex: 0 0 600px !important;
    max-width: 600px !important;
    padding: 64px 24px 64px 0;
}

:where(.contact--home) .contact__form-col.wp-block-column {
    flex: 1 1 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    min-width: 0 !important;
    padding: 64px 9.7222% 64px 5.5556% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* Soluciones (contact--lms contact--sol): sobre fondo blanco; solo cambian los colores. */

.contact--sol.wp-block-group {
    background: var(--color-white);
}

.contact--sol .contact__title.wp-block-heading {
    color: var(--color-ink);
    opacity: 1;
}

.contact--sol .contact__muted {
    color: var(--color-gray);
}

@media (max-width: 768px) {
    .contact--home {
        padding: 64px 0;
    }

    :where(.contact--home) .contact__header {
        padding: 32px 16px;
    }

    :where(.contact--home, .contact--lms) .contact__title.wp-block-heading {
        font-size: 32px;
        max-width: 100%;
    }

    :where(.contact--home) .contact__body.wp-block-columns {
        flex-direction: column-reverse !important;
        gap: 0 !important;
    }

    :where(.contact--lms) .contact__body.wp-block-columns {
        flex-direction: column !important;
        gap: 32px !important;
    }

    :where(.contact--home) .contact__img-col.wp-block-column {
        flex: none !important;
        width: 100% !important;
        padding: 0 16px 32px;
    }

    :where(.contact--lms) .contact__img-col.wp-block-column {
        order: 2;
        padding: 0 16px;
        flex: none !important;
    }

    :where(.contact--acred) .contact__img-col.wp-block-column {
        min-height: 300px;
    }

    :where(.contact--home) .contact__cover.wp-block-cover {
        min-height: 0 !important;
        height: 281px !important;
    }

    :where(.contact--lms) .contact__cover.wp-block-cover {
        min-height: 281px !important;
        height: 281px;
    }

    :where(.contact--home) .contact__form-col {
        flex: none;
        width: 100%;
        padding: 32px 16px;
        box-sizing: border-box;
    }

    .contact--lms.wp-block-group {
        padding: 64px 0;
        gap: 32px;
    }

    :where(.contact--lms) .contact__header.wp-block-group {
        padding: 32px 16px;
    }

    /* Columnas → apiladas: formulario arriba, imagen abajo */

    :where(.contact--lms) .contact__form-col.wp-block-column {
        order: 1;
        padding: 32px 16px !important;
        padding-right: 16px !important;
    }

    /* Imagen fija 281px */
}

/* ── Info + CTA ── */
.contact-info.wp-block-group {
    border-top: 1px solid var(--color-line) !important;
    padding: 64px 24px !important;
}

.contact-info__cols.wp-block-columns {
    gap: 32px !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    margin: 0 !important;
    max-width: 1680px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.contact-info__col--heading.wp-block-column {
    flex: 0 0 672px !important;
}

.contact-info__heading.wp-block-heading {
    font-size: clamp(1.75rem, 3.5vw, 48px) !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.56px !important;
    color: var(--color-ink) !important;
    margin: 0 !important;
}

.contact-info__muted {
    color: var(--color-gray);
}

.contact-info__col--cta.wp-block-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
}

.contact-info__desc.wp-block-paragraph,
p.contact-info__desc {
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    letter-spacing: 0.22px !important;
    color: var(--color-gray-warm) !important;
    margin: 0 !important;
}

.contact-info__btns.wp-block-buttons {
    gap: 16px !important;
    margin: 0 !important;
}

.contact-info__cta .wp-block-button__link,
.contact-info__ghost .wp-block-button__link {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 24px !important;
    padding: 8px 24px !important;
    border-radius: var(--radius) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    overflow: hidden !important;
    transition: background 0.25s ease, color 0.25s ease, gap 0.25s ease !important;
}

.contact-info__cta .wp-block-button__link {
    background: var(--color-black) !important;
    color: var(--color-white) !important;
    border: none !important;
}

.contact-info__cta .wp-block-button__link::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Crect width='9.12' height='2.4' fill='white'/%3E%3Crect x='9.6001' y='12' width='9.12' height='2.4' transform='rotate(-90 9.6001 12)' fill='white'/%3E%3Crect x='0.47998' y='9.80859' width='9.12' height='2.4' transform='rotate(-45 0.47998 9.80859)' fill='white'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    opacity: 0;
    max-width: 0;
    transition: opacity 0.25s ease, max-width 0.25s ease;
}

.contact-info__cta .wp-block-button__link:hover {
    background: var(--color-yellow) !important;
    color: var(--color-black) !important;
    gap: 12px !important;
}

.contact-info__cta .wp-block-button__link:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Crect width='9.12' height='2.4' fill='black'/%3E%3Crect x='9.6001' y='12' width='9.12' height='2.4' transform='rotate(-90 9.6001 12)' fill='black'/%3E%3Crect x='0.47998' y='9.80859' width='9.12' height='2.4' transform='rotate(-45 0.47998 9.80859)' fill='black'/%3E%3C/svg%3E");
    opacity: 1;
    max-width: 12px;
}

.contact-info__ghost .wp-block-button__link {
    background: transparent !important;
    color: var(--color-black) !important;
    border: 1px solid var(--color-black) !important;
}

.contact-info__ghost .wp-block-button__link::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Crect width='9.12' height='2.4' fill='black'/%3E%3Crect x='9.6001' y='12' width='9.12' height='2.4' transform='rotate(-90 9.6001 12)' fill='black'/%3E%3Crect x='0.47998' y='9.80859' width='9.12' height='2.4' transform='rotate(-45 0.47998 9.80859)' fill='black'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    opacity: 0;
    max-width: 0;
    transition: opacity 0.25s ease, max-width 0.25s ease;
}

.contact-info__ghost .wp-block-button__link:hover {
    background: var(--color-yellow) !important;
    color: var(--color-black) !important;
    gap: 12px !important;
}

.contact-info__ghost .wp-block-button__link:hover::after {
    opacity: 1;
    max-width: 12px;
}

/* ── Formulario + Imagen ── */
.contact--form.wp-block-columns {
    gap: 96px !important;
    align-items: center !important;
    margin: 0 !important;
}

:where(.contact--form, .contact--dig, .contact--ha, .contact--srv) .contact__cover .wp-block-cover__background {
    opacity: 0 !important;
}

:where(.contact--ha) .contact__cover .wp-block-cover__background,
:where(.contact--srv) .contact__cover .wp-block-cover__background {
    opacity: 0.29 !important;
}

/* ── Ubicación ── */
.contact-location.wp-block-group {
    background: #fff !important;
    padding: 128px 0 !important;
    position: relative !important;
    overflow: clip !important;
}

.contact-location__inner.wp-block-columns {
    gap: 0 !important;
    align-items: flex-start !important;
    margin: 0 !important;
    justify-content: flex-end !important;
}

.contact-location__col--text.wp-block-column {
    flex: 0 0 auto !important;
    width: 580px !important;
    position: sticky !important;
    top: 0 !important;
    align-self: flex-start !important;
    padding: 96px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
    border-top: 1px solid var(--color-line) !important;
}

.contact-location__title.wp-block-heading {
    font-size: clamp(1.75rem, 3.5vw, 48px) !important;
    font-weight: 500 !important;
    line-height: 1.283 !important;
    letter-spacing: 0.56px !important;
    color: var(--color-ink) !important;
    margin: 0 !important;
}

.contact-location__address.wp-block-paragraph,
p.contact-location__address {
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    letter-spacing: 0.22px !important;
    color: var(--color-gray-warm) !important;
    margin: 0 !important;
    max-width: 727px !important;
}

.contact-location__col--map.wp-block-column {
    flex: 1 0 0 !important;
    min-width: 600px !important;
    max-width: 1200px !important;
    padding: 24px !important;
    height: 600px !important;
    display: flex !important;
    align-items: center !important;
}

.contact-location__col--map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--radius);
    display: block;
}

.contact-location__deco {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 315px;
    height: 315px;
    pointer-events: none;
    z-index: 0;
}

/* contact--dig (fondo oscuro) */

:where(.contact--dig, .contact--acred) .contact__desc.wp-block-paragraph {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.22px;
    max-width: 727px;
    margin: 0;
}

:where(.contact--dig) .contact__desc.wp-block-paragraph {
    color: #eee;
    align-self: flex-start;
}

:where(.contact--acred) .contact__desc.wp-block-paragraph {
    color: var(--color-gray-warm);
    flex: 0 1 727px;
    display: flex;
    justify-content: flex-start;
}

:where(.contact--dig, .contact--acred) p.contact__desc {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.22px;
    max-width: 727px;
    margin: 0;
}

:where(.contact--dig) p.contact__desc {
    color: #eee;
    align-self: flex-start;
}

:where(.contact--acred) p.contact__desc {
    color: var(--color-gray-warm);
    flex: 0 1 727px;
    display: flex;
    justify-content: flex-start;
}

:where(.contact--dig) .contact__cover .wp-block-cover__image-background {
    border-radius: var(--radius);
}

/* contact--av */

:where(.contact--av, .contact--ha) .contact__header-cols.wp-block-columns {
    justify-content: space-between !important;
    gap: 48px !important;
    margin: 0 !important;
    max-width: none !important;
}

:where(.contact--ha) .contact__header-cols.wp-block-columns {
    align-items: flex-start !important;
}

:where(.contact--av) .contact__title-col.wp-block-column {
    flex: 1 0 0 !important;
}

:where(.contact--ha) .contact__title-col.wp-block-column {
    flex: 1 0 0 !important;
    max-width: 650px !important;
}

:where(.contact--moodle) .contact__title-col.wp-block-column {
    flex: 0 0 auto;
    max-width: 579px;
}

:where(.contact--av) .contact__desc-col.wp-block-column {
    flex: 0 0 auto !important;
    max-width: 727px !important;
    margin-left: 2rem;
    align-self: flex-end !important;
}

:where(.contact--ha) .contact__desc-col.wp-block-column {
    flex: 0 0 727px !important;
    max-width: 727px !important;
}

:where(.contact--moodle) .contact__desc-col.wp-block-column {
    flex: 1 0 0;
    max-width: 727px;
    display: flex;
    align-items: flex-start;
    padding-top: 1rem;
}

:where(.contact--av, .contact--ha, .contact--moodle) .contact__desc {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.22px;
    margin: 0;
}

:where(.contact--av) .contact__desc {
    font-weight: 400;
    color: #eee;
}

:where(.contact--ha) .contact__desc {
    font-weight: 400;
    color: #eeeeee;
}

:where(.contact--moodle) .contact__desc {
    color: var(--color-gray-warm);
}

/* Body: imagen + formulario */

@media (max-width: 1024px) {
    .contact-info.wp-block-group {
        padding: 48px 16px !important;
    }

    .contact-info__cols.wp-block-columns {
        flex-direction: column !important;
    }

    .contact-info__col--heading.wp-block-column {
        flex: none !important;
    }

    .contact--form.wp-block-columns {
        flex-direction: column !important;
    }

    :where(.contact--form) .contact__img-col.wp-block-column {
        flex: none !important;
        width: 100% !important;
    }

    :where(.contact--form) .contact__form-col.wp-block-column {
        flex: none !important;
        width: 100% !important;
    }

    :where(.contact--form) .contact__cover.wp-block-cover {
        min-height: 400px !important;
    }

    .contact-location.wp-block-columns {
        flex-direction: column !important;
    }

    .contact-location__col--text.wp-block-column {
        flex: none !important;
        width: 100% !important;
        position: static !important;
    }

    .contact-location__col--map.wp-block-column {
        flex: none !important;
        width: 100% !important;
    }
}

/* contact--srv: el cuerpo (imagen y formulario) es el de contact--ha */

/* contact--ha */

:where(.contact--moodle) .contact__header.wp-block-columns {
    align-items: flex-start;
    justify-content: space-between;
    border-top: 1px solid var(--color-line);
    padding: 32px 24px;
    margin: 0 0 64px;
    gap: 48px;
}

@media (max-width: 1024px) {
    :where(.contact--moodle) .contact__body.wp-block-columns {
        flex-direction: column;
        gap: 32px;
    }

    :where(.contact--moodle) .contact__form-col.wp-block-column {
        flex: 1 0 0;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    :where(.contact--moodle) .contact__header.wp-block-columns {
        flex-direction: column;
        gap: 16px;
    }
}

/* contact--acred */

@media (max-width: 768px) {
    :where(.contact--acred) .contact__body.wp-block-columns {
        flex-direction: column !important;
        gap: 48px !important;
    }

    :where(.contact--acred) .contact__form-col.wp-block-column {
        flex: 1 1 auto !important;
        max-width: 100% !important;
        padding: 0 24px 64px;
    }

    :where(.contact--acred) .contact__header.wp-block-group {
        flex-direction: column;
    }
}

/* ============================================================
   Secciones «imagen + formulario» — medidas unificadas
   ============================================================
   Estas secciones nacieron con una clase por página y cada una
   acabó con medidas distintas (imagen de 480 / 600 px, en
   proporción 4:3 o estirada; columna del formulario fija, flexible
   o automática). Este bloque es la ÚNICA fuente de verdad de su
   tamaño y sobrescribe a propósito lo que declaren los bloques por
   página, que se conservan solo para lo que es propio de cada una
   (colores, opacidad del overlay, tipografías).

   Medida de referencia — Figma «Cumlaude-editable», nodo 1:7046
   (sección de contacto de Herramienta de Autor), frame de 1728 px:

     ┌─────────────────────────────┬─────────────────────────────┐
     │ Imagen  x=0    w=864 (50 %) │ Formulario x=960  w=600     │
     └─────────────────────────────┴─────────────────────────────┘
       └ padding 24 → foto 816       └ 96 izq.      168 der. ┘

     - Las dos columnas al 50 % exacto (864 de 1728).
     - Columna de la imagen: 24 px alrededor → foto de 816 px.
     - Columna del formulario: 96 px de hueco a la izquierda y 168 px
       de aire a la derecha, que dejan los 600 px del formulario
       (el mismo max-width que ya tiene .cl-form).
     - La altura la marca el formulario y la imagen se estira a ella
       (en el diseño, 571 px); 480 px es solo el suelo.

   Los dos paddings laterales del formulario van en % del contenedor
   (96/1728 = 5,5556 %; 168/1728 = 9,7222 %) para que la proporción del
   diseño se mantenga a cualquier ancho, en vez de comerse el
   formulario en pantallas medianas. Con box-sizing: border-box global
   (línea 126) quedan dentro del 50 %.

   El hueco entre columnas es ese padding izquierdo, no un gap: así el
   50 % se reparte exacto como en el diseño.

   Va al final del archivo para ganar en la cascada. Si añades otra
   variante de este tipo, suma su modificador a estas listas en vez de
   darle medidas propias.

   FUERA a propósito: contact--form (página de Contacto), donde el
   formulario es el contenido principal y usa su propia medida.
   ------------------------------------------------------------ */

/* Fila: dos columnas al 50 %, a la misma altura */
:where(.contact--home, .contact--lms, .contact--ha, .contact--srv, .contact--av, .contact--dig, .contact--moodle, .contact--acred) .contact__body.wp-block-columns {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}

/* Columna de la imagen: 50 % con 24 px alrededor (Figma: 864 → foto 816) */
:where(.contact--home, .contact--lms, .contact--ha, .contact--srv, .contact--av, .contact--dig, .contact--moodle, .contact--acred) .contact__img-col.wp-block-column {
    flex: 1 1 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    min-width: 0 !important;
    align-self: stretch !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 24px !important;
}

/* Imagen: se estira a la altura de la fila (Figma: 571 px), radio 10 px */
:where(.contact--home, .contact--lms, .contact--ha, .contact--srv, .contact--av, .contact--dig, .contact--moodle, .contact--acred) .contact__cover.wp-block-cover {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 480px !important;
    aspect-ratio: auto !important;
    align-self: stretch !important;
    border-radius: var(--radius) !important;
    overflow: hidden !important;
}

/* Columna del formulario: 50 %, con el hueco de 96 px a la izquierda
   y 168 px de aire a la derecha → los 600 px del formulario */
:where(.contact--lms, .contact--ha, .contact--srv, .contact--av, .contact--dig, .contact--moodle, .contact--acred) .contact__form-col.wp-block-column {
    flex: 1 1 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    min-width: 0 !important;
    padding: 64px 9.7222% 64px 5.5556% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* El formulario se queda en sus 600 px y alineado a la izquierda de la
   columna, como en el diseño (.cl-form ya trae el max-width). */
:where(.contact--home, .contact--lms, .contact--ha, .contact--srv, .contact--av, .contact--dig, .contact--moodle, .contact--acred) .contact__form-col.wp-block-column > * {
    width: 100%;
    max-width: 600px;
    margin-left: 0;
    margin-right: auto;
}

/* ─── Apilado en móvil: formulario arriba, imagen abajo ─── */
@media (max-width: 768px) {
    :where(.contact--home, .contact--lms, .contact--ha, .contact--srv, .contact--av, .contact--dig, .contact--moodle, .contact--acred) .contact__body.wp-block-columns {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        gap: 32px !important;
    }

    :where(.contact--home, .contact--lms, .contact--ha, .contact--srv, .contact--av, .contact--dig, .contact--moodle, .contact--acred) .contact__form-col.wp-block-column {
        order: 1;
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 32px 16px !important;
    }

    :where(.contact--home, .contact--lms, .contact--ha, .contact--srv, .contact--av, .contact--dig, .contact--moodle, .contact--acred) .contact__img-col.wp-block-column {
        order: 2;
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0 !important;
        padding: 0 16px 32px !important;
    }

    :where(.contact--home, .contact--lms, .contact--ha, .contact--srv, .contact--av, .contact--dig, .contact--moodle, .contact--acred) .contact__cover.wp-block-cover {
        flex: none !important;
        height: 281px !important;
        min-height: 281px !important;
    }
}
