/* ============================================================
   Hero – Sección 1 home
   ============================================================ */
.hero-home,
.webinars-hero {
    display: flex;
    flex-direction: column;
}

.hero-home {
    position: relative;
    background-color: var(--color-white);
    align-items: center;
    gap: 0;
    padding: 80px 0 0;
    overflow-x: hidden;
    isolation: isolate;
    width: 100% !important;
    max-width: none !important;
    margin-bottom: 64px;
}

/* Decorativo de fondo — ruta relativa al CSS, sin PHP */
.hero-home::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 50%;
    width: 2768px;
    height: 450px;
    transform: translateX(-50%);
    background-image: url(../../images/hero-deco.svg);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% 1258px;
    pointer-events: none;
    z-index: 1;
}

/* Texto centrado — Figma: padding 32px, gap título→subtítulo 24px, subtítulo→botones 40px */
.hero-home__text-wrap {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 1200px;
    width: 100%;
    padding: 0 32px 64px;
}

/* Botones CTA: separación extra desde el subtítulo */
.hero-home__text-wrap .hero-home__actions.wp-block-buttons {
    margin-top: 16px;
    /* 24 + 16 = 40px total subtítulo→botones */
}

.hero-home__text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
    color: var(--color-black);
    width: 100%;
}

.hero-home__title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 7vw, 6rem);
    font-weight: 500;
    line-height: 1;
    color: var(--color-black);
    font-feature-settings: 'lnum' 1, 'pnum' 1;
    margin: 0;
}

.hero-home__subtitle {
    font-family: var(--font-primary);
    font-size: 15.6px;
    font-weight: 400;
    line-height: 25.2px;
    letter-spacing: 0.16px;
    color: var(--color-black);
    opacity: .86;
    max-width: 600px;
    margin: 0;
}

/* Botones del hero */
.hero-home__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Estilos de botón solo para uso fuera de Gutenberg (plain <a class="hero-home__btn">) */
.hero-home__btn:not(.wp-block-button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    border-radius: var(--radius);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--transition-fast);
    font-feature-settings: 'lnum' 1, 'pnum' 1;
    border: 1px solid transparent;
}

.hero-home__btn--filled:not(.wp-block-button) {
    background-color: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.hero-home__btn--filled:not(.wp-block-button):hover {
    background-color: var(--color-gray-800);
    border-color: var(--color-gray-800);
    color: var(--color-white);
}

.hero-home__btn--outline:not(.wp-block-button) {
    background-color: transparent;
    color: var(--color-black);
    border-color: var(--color-black);
}

.hero-home__btn--outline:not(.wp-block-button):hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

/* Imagen hero */
.hero-home__image-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 800px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-home__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    pointer-events: none;
}

/* Chips de categorías */
.hero-home__tags {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 1632px;
    padding: 32px 64px;
}

.hero-home__tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--color-yellow);
    padding: 8px 32px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-black);
    transition: filter var(--transition-fast), transform var(--transition-fast);
    white-space: nowrap;
}

.hero-home__tag:hover {
    filter: brightness(.93);
    color: var(--color-black);
}

/* Responsive hero */
/* ============================================================
   Overrides Gutenberg para el hero
   ============================================================ */
/* Cover block como imagen hero — full viewport width */
.hero-home .hero-home__image-wrap.wp-block-cover {
    min-height: 800px;
    /* Breakout full-width: rompe el contenedor padre */
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    align-items: flex-end;
    align-self: center;
    padding: 0 !important;
    box-sizing: border-box;
}

.hero-home .hero-home__image-wrap.wp-block-cover .wp-block-cover__inner-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Chips dentro del cover — wp:buttons alineado al fondo (solo desktop) */
/* Botones CTA del hero — resetear estilos Gutenberg */
/* El div.wp-block-button exterior no debe tener estilos visuales propios */
.hero-home .wp-block-button {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    outline: none !important;
}

.hero-home .hero-home__actions.wp-block-buttons .wp-block-button {
    width: auto !important;
    flex-shrink: 0;
}

.hero-home .hero-home__btn.wp-block-button .wp-block-button__link {
    padding: 8px 24px;
    border-radius: var(--radius);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    font-feature-settings: 'lnum' 1, 'pnum' 1;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, gap 0.25s ease;
    width: auto !important;
    display: inline-flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
}

.hero-home .hero-home__btn.wp-block-button .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;
}

.hero-home .hero-home__btn.wp-block-button .wp-block-button__link:hover {
    text-decoration: none;
    gap: 24px;
}

.hero-home .hero-home__btn.wp-block-button .wp-block-button__link:hover::after {
    opacity: 1;
    max-width: 12px;
}

.hero-home .hero-home__btn--filled.wp-block-button .wp-block-button__link {
    background-color: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.hero-home .hero-home__btn--filled.wp-block-button .wp-block-button__link:hover {
    background-color: var(--color-yellow);
    border-color: var(--color-yellow);
    color: var(--color-black);
}

.hero-home .hero-home__btn--outline.wp-block-button .wp-block-button__link {
    background-color: transparent;
    color: var(--color-black);
    border-color: var(--color-black);
}

.hero-home .hero-home__btn--outline.wp-block-button .wp-block-button__link:hover {
    background-color: var(--color-yellow);
    border-color: var(--color-ink);
    color: var(--color-black);
}

/* Chips de categorías (wp:button con clase hero-home__tag) */
.hero-home .hero-home__tag.wp-block-button .wp-block-button__link {
    background-color: var(--color-yellow);
    color: var(--color-black);
    border: none;
    border-radius: var(--radius);
    padding: 8px 32px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    font-feature-settings: 'lnum' 1, 'pnum' 1;
    white-space: nowrap;
    transition: filter var(--transition-fast), transform var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    /* icon ↔ text */
}

/* Icono de categoría — ::before con ruta relativa al CSS */
.hero-home .hero-home__tag.wp-block-button .wp-block-button__link::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    flex-shrink: 0;
}

.hero-home .hero-home__tag--artes .wp-block-button__link::before {
    background-image: url('../../images/icon-cat-artes.svg');
}

.hero-home .hero-home__tag--deportes .wp-block-button__link::before {
    background-image: url('../../images/icon-cat-deportes.svg');
}

.hero-home .hero-home__tag--agraria .wp-block-button__link::before {
    background-image: url('../../images/icon-cat-agraria.svg');
}

.hero-home .hero-home__tag--comercio .wp-block-button__link::before {
    background-image: url('../../images/icon-cat-comercio.svg');
}

.hero-home .hero-home__tag--fp .wp-block-button__link::before {
    background-image: url('../../images/icon-cat-fp.svg');
}

.hero-home .hero-home__tag--micro .wp-block-button__link::before {
    background-image: url('../../images/icon-cat-micro.svg');
}

.hero-home .hero-home__tag--cert .wp-block-button__link::before {
    background-image: url('../../images/icon-cat-cert.svg');
}

.hero-home .hero-home__tag--esp .wp-block-button__link::before {
    background-image: url('../../images/icon-cat-esp.svg');
}

.hero-home .hero-home__tag--fp2 .wp-block-button__link::before {
    background-image: url('../../images/icon-cat-fp2.svg');
}

/* Flecha → al final de cada chip (gap 12px icon↔text + margin-left 4px = 16px text↔arrow) */
.hero-home .hero-home__tag.wp-block-button .wp-block-button__link::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 24px;
    background-image: url('../../images/icon-arrow-right.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    flex-shrink: 0;
    margin-left: 4px;
    /* total gap from text: 12+4 = 16px */
    transition: transform var(--transition-fast);
}

.hero-home .hero-home__tag.wp-block-button .wp-block-button__link:hover {
    background-color: var(--color-yellow);
    filter: brightness(.93);
    color: var(--color-black);
    text-decoration: none;
}

.hero-home .hero-home__tag.wp-block-button .wp-block-button__link:hover::after {
    transform: translateX(4px);
    width: 20px;
}

/* Wrapper de botones CTA */
.hero-home .hero-home__actions.wp-block-buttons {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Heading y párrafo del hero dentro de Gutenberg */
.hero-home .hero-home__title.wp-block-heading {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 7vw, 6rem);
    font-weight: 500;
    line-height: 1;
    color: var(--color-black);
    font-feature-settings: 'lnum' 1, 'pnum' 1;
    margin: 0;
    text-align: center;
}

.hero-home p.hero-home__subtitle {
    font-family: var(--font-primary);
    font-size: 15.6px;
    font-weight: 400;
    line-height: 25.2px;
    letter-spacing: 0.16px;
    color: var(--color-black);
    opacity: .86;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    margin-top: 16px;
    margin-bottom: 32px;
}

/* ============================================================
   Catalog – Hero (título + subtítulo)
   ============================================================ */
.catalog-hero.wp-block-group,
.blog-hero.wp-block-group {
    padding: 24px;
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.catalog-hero__title.wp-block-heading,
.blog-hero__title.wp-block-heading {
    font-size: clamp(2.5rem, 6vw, 80px);
    font-weight: 500;
    line-height: 1;
    color: var(--color-ink);
    margin: 0;
}

.catalog-hero__subtitle.wp-block-paragraph,
.blog-hero__subtitle.wp-block-paragraph {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.618;
    letter-spacing: 0.16px;
    color: rgba(0, 0, 0, 0.86);
    max-width: 600px;
    margin: 0;
}

/* ============================================================
   Image Break
   ============================================================ */
.image-break {
    padding: 24px;
    background: var(--color-white);
}

.image-break__cover {
    border-radius: var(--radius);
    overflow: hidden;
}

.image-break__cover .wp-block-cover__background {
    background: rgba(0, 0, 0, 0.29) !important;
    opacity: 1 !important;
}

/* ============================================================
   Responsive
   ============================================================ */
/* ============================================================
   LMS Hero — Título centrado + imagen full-width
   ============================================================ */
.lms-hero__text.wp-block-group {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 48px 32px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    box-sizing: border-box;
}

.lms-hero__title.wp-block-heading,
.sol-hero__title.wp-block-heading,
.qs-hero__title.wp-block-heading,
.ha-hero__title.wp-block-heading,
.faq-hero__title.wp-block-heading {
    font-weight: 500;
    margin: 0;
}

.lms-hero__title.wp-block-heading {
    font-size: clamp(48px, 6.5vw, 96px);
    line-height: 1;
    letter-spacing: -0.5px;
    color: #000;
    text-align: center;
    max-width: 1000px;
}

.lms-hero__desc,
.ha-hero__desc {
    font-size: 15.6px;
    font-weight: 400;
    letter-spacing: 0.16px;
    margin: 0;
}

.lms-hero__desc {
    line-height: 1.615;
    color: #000;
    opacity: 0.86;
    max-width: 600px !important;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.lms-hero__btns.wp-block-buttons {
    justify-content: center;
    gap: 16px;
}

.lms-hero__btn--primary .wp-block-button__link {
    background: var(--color-ink);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    padding: 8px 24px;
    font-variant-numeric: lining-nums proportional-nums;
    display: inline-flex;
    align-items: center;
    gap: 0;
    transition: background 0.25s ease, color 0.25s ease, gap 0.25s ease;
    overflow: hidden;
}

.lms-hero__btn--primary .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;
}

.lms-hero__btn--primary .wp-block-button__link:hover {
    background: var(--color-yellow);
    color: var(--color-ink);
    gap: 24px;
}

.lms-hero__btn--primary .wp-block-button__link:hover::after {
    opacity: 1;
    max-width: 12px;
}

.lms-hero__btn--ghost .wp-block-button__link {
    background: transparent;
    color: var(--color-ink);
    border: 1px solid var(--color-ink);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    padding: 8px 24px;
    font-variant-numeric: lining-nums proportional-nums;
    display: inline-flex;
    align-items: center;
    gap: 0;
    transition: background 0.25s ease, gap 0.25s ease;
    overflow: hidden;
}

.lms-hero__btn--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;
}

.lms-hero__btn--ghost .wp-block-button__link:hover {
    background: var(--color-yellow);
    gap: 24px;
}

.lms-hero__btn--ghost .wp-block-button__link:hover::after {
    opacity: 1;
    max-width: 12px;
}

.lms-hero__image.wp-block-group {
    padding: 24px 24px;
}

.lms-hero__cover.wp-block-cover,
.sol-hero__cover.wp-block-cover,
.qs-hero__cover.wp-block-cover {
    border-radius: var(--radius);
    overflow: hidden;
}

.lms-hero__cover .wp-block-cover__background {
    background-color: rgba(0, 0, 0, 0.29) !important;
}

/* ============================================================
   LMS Contact — "Recibe asesoramiento profesional"
   ============================================================ */
.wp-block-group.lms-hero {
    background: var(--color-white);
}

/* ============================================================
   Sol Hero — Hero de la página Soluciones (split layout)
   ============================================================ */
.sol-hero.wp-block-group,
.qs-hero.wp-block-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

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

.sol-hero__text.wp-block-group {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 32px;
}

.sol-hero__title.wp-block-heading {
    font-size: clamp(2.5rem, 6vw, 80px);
    line-height: 1;
    color: var(--color-black);
    letter-spacing: -0.02em;
}

.sol-hero__desc.wp-block-paragraph,
p.sol-hero__desc,
.av-hero__desc.wp-block-paragraph,
p.av-hero__desc {
    font-size: 15.6px;
    line-height: 1.62;
    letter-spacing: 0.16px;
    max-width: 600px;
    margin: 0;
}

.sol-hero__desc.wp-block-paragraph,
p.sol-hero__desc {
    font-weight: 400;
    opacity: 0.86;
    color: var(--color-black);
}

.sol-hero__btns.wp-block-buttons {
    margin: 0;
}

.sol-hero__cta .wp-block-button__link,
.ha-hero__cta .wp-block-button__link,
.moodle-hero__cta .wp-block-button__link,
.acred-hero__cta .wp-block-button__link {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 24px;
    border-radius: var(--radius);
    text-decoration: none;
}

.sol-hero__cta .wp-block-button__link {
    background: var(--color-black);
    color: var(--color-white);
    line-height: 24px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0;
    transition: background 0.25s ease, color 0.25s ease, gap 0.25s ease;
    overflow: hidden;
}

.sol-hero__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='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;
}

.sol-hero__cta .wp-block-button__link:hover {
    background: var(--color-yellow);
    color: var(--color-ink);
    gap: 24px;
}

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

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

.sol-hero__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;
}

.sol-hero__ghost .wp-block-button__link:hover {
    background: var(--color-yellow);
    color: var(--color-black);
    gap: 24px;
}

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

.sol-hero__image.wp-block-group {
    flex: 1 0 0;
    min-width: 0;
    padding: 24px;
}

.sol-hero__cover .wp-block-cover__background {
    opacity: 0.29 !important;
}

.sol-hero__cover .wp-block-cover__image-background {
    border-radius: var(--radius);
}

/* ============================================================
   Media Queries
   ============================================================ */
/* --- (min-width: 769px) ---------------------------------------- */
@media (min-width: 769px) {
    .hero-home .wp-block-cover .hero-home__tags {
        width: 100%;
        max-width: 1632px;
        margin: 0 auto;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 32px 64px;
    }
}

/* ============================================================
   Quiénes somos – Hero Split
   ============================================================ */
.qs-hero.wp-block-group {
    min-height: 95vh;
}

.qs-hero__text.wp-block-group {
    flex: 1 0 0;
    min-width: 0;
    padding: 64px 48px;
    gap: 24px;
}

.qs-hero__title.wp-block-heading {
    font-size: clamp(2.5rem, 6vw, 80px);
    line-height: 1.0;
    color: var(--color-ink);
}

.qs-hero__subtitle.wp-block-paragraph,
p.qs-hero__subtitle {
    font-size: 15.6px;
    font-weight: 400;
    line-height: 1.62;
    letter-spacing: 0.16px;
    color: var(--color-ink);
    opacity: 0.86;
    max-width: 600px;
    margin: 0;
}

.qs-hero__image.wp-block-group {
    flex: 1 0 0;
    min-width: 0;
    padding: 24px;
}

.qs-hero__cover .wp-block-cover__background {
    opacity: 0.29 !important;
}

.qs-hero__cover .wp-block-cover__image-background {
    border-radius: var(--radius);
}

@media (max-width: 1024px) {
    .sol-hero.wp-block-group {
        flex-direction: column;
    }

    .sol-hero__image.wp-block-group {
        width: 100%;
        padding: 0 24px 40px;
    }

    .sol-hero__cover.wp-block-cover {
        min-height: 400px !important;
    }
}

/* --- Home: tramo tablet (769–1280px) -----------------------------
   Las secciones de la home tenían su responsive solo a ≤768, que era
   donde el header pasaba a móvil. Al subir el header a 1280 este tramo
   se quedó descolgado y en tablet se rompen tres bloques: el titular
   escalonado de allin-home no cabe en una fila, el carrusel de marcas se
   queda sin ancho y la columna de texto de services-home se estrecha
   hasta partir el título letra a letra.
   Aquí se les adelanta el mismo tratamiento que ya tienen en móvil, pero
   conservando los tamaños de escritorio.                             */
@media (min-width: 769px) and (max-width: 1280px) {
    /* El patrón de puntos está dibujado para el hero con el header de
       escritorio; con el de dos filas queda pegado al buscador. Se retira
       igual que ≤768. */
    .hero-home::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .qs-hero.wp-block-group {
        flex-direction: column;
        min-height: auto;
    }

    .qs-hero__text.wp-block-group {
        padding: 48px 24px 32px;
    }

    .qs-hero__title.wp-block-heading,
    .sol-hero__title.wp-block-heading {
        font-size: 2.25rem;
        line-height: 1.1;
    }

    .qs-hero__image.wp-block-group {
        width: 100%;
        padding: 0 24px 40px;
    }

    .qs-hero__cover.wp-block-cover {
        min-height: 400px !important;
    }

    /* Contenedor principal */
    .hero-home {
        padding-top: 0;
    }

    .hero-home::before {
        display: none;
    }

    /* Bloque de texto */
    .hero-home__text-wrap {
        padding: 16px;
        width: 100%;
        gap: 16px;
    }

    .hero-home__text {
        align-items: flex-start;
        text-align: left;
        padding: 0;
        gap: 12px;
    }

    .hero-home__title,
    .hero-home__title.has-text-align-center {
        font-size: 48px;
        text-align: left !important;
    }

    .hero-home__subtitle,
    .hero-home__subtitle.has-text-align-center {
        text-align: left !important;
        max-width: 100%;
    }

    /* Botones CTA — columna, full-width */
    .hero-home__text-wrap .hero-home__actions.wp-block-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-top: 0;
        gap: 16px;
        padding: 0;
    }

    .hero-home .hero-home__actions.wp-block-buttons .wp-block-button,
    .hero-home .hero-home__actions.wp-block-buttons .wp-block-button .wp-block-button__link {
        width: 100% !important;
    }

    .hero-home a.wp-block-button__link.wp-element-button {
        justify-content: center;
    }

    .hero-home .hero-home__btn--filled.wp-block-button .wp-block-button__link {
        background: var(--color-ultra-black);
        margin-bottom: 16px;
    }

    .hero-home .hero-home__btn--filled.wp-block-button .wp-block-button__link:hover {
        background: var(--color-ultra-black);
        border-color: var(--color-ultra-black);
        color: var(--color-white);
        margin-bottom: 16px;
    }

    .hero-home .hero-home__btn--outline.wp-block-button .wp-block-button__link:hover {
        background: transparent;
        color: var(--color-ultra-black);
    }

    .hero-home .hero-home__btn--filled.wp-block-button .wp-block-button__link::after,
    .hero-home .hero-home__btn--outline.wp-block-button .wp-block-button__link::after {
        display: none;
    }

    .hero-home .hero-home__btn--outline.wp-block-button .wp-block-button__link {
        border-color: var(--color-ink);
    }

    /* Imagen hero */
    .hero-home__image-wrap,
    .hero-home .hero-home__image-wrap.wp-block-cover {
        min-height: 250px !important;
        height: 250px !important;
    }

    /* Chips — 2 filas con scroll horizontal */
    .hero-home .hero-home__tags,
    .hero-home .wp-block-cover .hero-home__tags,
    .hero-home .wp-block-buttons.hero-home__tags {
        display: grid !important;
        grid-template-rows: auto auto !important;
        grid-auto-flow: column !important;
        grid-auto-columns: max-content !important;
        flex-wrap: unset !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 12px 16px !important;
        gap: 12px !important;
        justify-content: start !important;
        max-width: 100%;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .hero-home .hero-home__tags::-webkit-scrollbar,
    .hero-home .wp-block-buttons.hero-home__tags::-webkit-scrollbar {
        display: none;
    }

    .hero-home__tag,
    .hero-home__tags .wp-block-button.hero-home__tag {
        padding: 8px 16px;
        font-size: 14px;
    }

    .lms-hero__text.wp-block-group {
        padding: 32px 16px;
        align-items: flex-start;
        gap: 12px;
    }

    .lms-hero__title.wp-block-heading {
        margin-bottom: 12px;
        font-size: 48px;
        text-align: left;
    }

    .lms-hero__desc {
        text-align: left;
        max-width: 100% !important;
        margin-top: 0;
        margin-bottom: 16px;
    }

    /* Botones apilados en columna, ancho completo */
    .lms-hero__btns.wp-block-buttons {
        flex-direction: column !important;
        gap: 16px;
        width: 100%;
    }

    .lms-hero__btn--primary,
    .lms-hero__btn--ghost {
        width: 100%;
    }

    .lms-hero__btn--primary .wp-block-button__link,
    .lms-hero__btn--ghost .wp-block-button__link {
        width: 100%;
        display: flex;
        align-items: center;
        box-sizing: border-box;
    }

    .lms-hero__btn--primary .wp-block-button__link {
        background: var(--color-yellow);
        color: var(--color-ink);
        justify-content: space-between;
        text-align: left;
        gap: 24px !important;
    }

    .lms-hero__btn--primary .wp-block-button__link::after {
        opacity: 1 !important;
        max-width: 12px !important;
    }

    .lms-hero__btn--ghost .wp-block-button__link {
        background: var(--color-yellow);
        justify-content: space-between;
        gap: 24px !important;
        text-align: left;
    }

    .lms-hero__btn--ghost .wp-block-button__link::after {
        opacity: 1 !important;
        max-width: 12px !important;
    }

    /* Imagen: altura fija 250px, padding lateral estrecho */
    .lms-hero__image.wp-block-group {
        padding: 0 8px 32px;
    }

    .lms-hero__cover.wp-block-cover {
        min-height: 250px !important;
        height: 250px;
    }

    .sol-hero__text.wp-block-group {
        padding: 40px 16px 24px;
    }

    .sol-hero__cta .wp-block-button__link {
        background: var(--color-yellow);
        color: var(--color-ink);
        justify-content: space-between;
        gap: 24px !important;
        width: 100%;
    }

    .sol-hero__cta .wp-block-button__link::after {
        opacity: 1 !important;
        max-width: 12px !important;
    }
}

/* ============================================================
   Aula Virtual – Hero
   ============================================================ */
.av-hero.wp-block-columns,
.ha-hero.wp-block-columns {
    background: var(--color-white);
    min-height: 100svh;
}

.av-hero.wp-block-columns {
    align-items: center;
    gap: 0;
}

.av-hero__col--text.wp-block-column,
.ha-hero__col--text.wp-block-column {
    flex: 1 0 0 !important;
    padding: 32px !important;
}

.av-hero__col--text.wp-block-column {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 32px !important;
}

.av-hero__title.wp-block-heading {
    font-size: clamp(2.5rem, 5.5vw, 80px);
    font-weight: 500;
    line-height: 1.0;
    color: var(--color-black);
    margin: 0 !important;
}

.av-hero__desc.wp-block-paragraph,
p.av-hero__desc {
    color: rgba(0, 0, 0, 0.86);
}

.av-hero__btns.wp-block-buttons {
    margin: 0 !important;
}

.av-hero__cta .wp-block-button__link {
    background: var(--color-black);
    color: var(--color-white);
    border-radius: var(--radius);
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    border: none;
    text-decoration: none;
}

.av-hero__cta .wp-block-button__link:hover {
    background: #333;
}

.av-hero__col--image.wp-block-column,
.ha-hero__col--image.wp-block-column {
    flex: 1 0 0 !important;
    padding: 24px !important;
}

.av-hero__cover.wp-block-cover,
.contact-hero__cover.wp-block-cover {
    border-radius: var(--radius) !important;
    overflow: hidden !important;
}

.av-hero__cover.wp-block-cover {
    min-height: 905px !important;
    aspect-ratio: auto !important;
}

/* ============================================================
   Contact page
   ============================================================ */
/* ── Hero ── */
.contact-hero.wp-block-group {
    background: var(--color-yellow) !important;
    padding: 24px !important;
    gap: 16px !important;
    min-height: 611px !important;
    box-sizing: border-box !important;
}

.contact-hero__cover.wp-block-cover {
    flex: 1 0 0 !important;
    width: 100% !important;
    align-self: stretch !important;
}

.contact-hero__cover .wp-block-cover__background {
    opacity: 0.29 !important;
}

.contact-hero__cover.wp-block-cover,
.contact-hero__cover.wp-block-cover .wp-block-cover__image-background {
    border-radius: var(--radius) !important;
}

.contact-hero__title.wp-block-heading {
    font-size: clamp(2.5rem, 5.5vw, 80px) !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    color: #000 !important;
    margin: 0 !important;
}

.contact-hero__subtitle.wp-block-paragraph,
p.contact-hero__subtitle {
    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;
}

/* ============================================================
   Herramienta de Autor – Hero (texto + imagen)
   ============================================================ */
.ha-hero.wp-block-columns {
    align-items: center !important;
}

.ha-hero__col--text.wp-block-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
}

.ha-hero__title.wp-block-heading {
    font-size: clamp(2.5rem, 5.5vw, 80px);
    line-height: 1;
    color: var(--color-black);
}

.ha-hero__desc {
    line-height: 25.2px;
    color: rgba(27,27,26,0.86);
    max-width: 600px;
}

.ha-hero__btns.wp-block-buttons {
    margin: 0;
}

.ha-hero__cta .wp-block-button__link {
    background: var(--color-black) !important;
    color: var(--color-white) !important;
    border-color: var(--color-black) !important;
    line-height: 24px;
}

.ha-hero__col--image.wp-block-column {
    display: flex !important;
    align-items: center !important;
}

.ha-hero__cover.wp-block-cover,
.moodle-hero__cover.wp-block-cover,
.acred-hero__cover.wp-block-cover {
    border-radius: var(--radius);
    min-height: 905px !important;
}

.ha-hero__cover.wp-block-cover {
    width: 100% !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-hero__title.wp-block-heading { font-size: 48px !important; }
}

/* =============================================================
   MOODLE LMS
   ============================================================= */
/* ─── Hero ──────────────────────────────────────────────────── */
.moodle-hero.wp-block-columns,
.acred-hero.wp-block-columns {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0;
}

.moodle-hero__col--text.wp-block-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 32px;
    max-width: 864px;
}

.moodle-hero__title.wp-block-heading {
    font-family: var(--font-primary);
    font-size: clamp(48px, 6vw, 96px);
    font-weight: 500;
    line-height: 1;
    color: var(--color-ink);
    margin: 0;
}

.moodle-hero__desc {
    font-size: 16px;
    color: rgba(27, 27, 26, 0.86);
    line-height: 1.6;
    letter-spacing: 0.16px;
    max-width: 600px;
    margin: 0;
}

.moodle-hero__btns.wp-block-buttons {
    margin: 0;
}

.moodle-hero__cta .wp-block-button__link {
    background: var(--color-ink);
    color: #fff;
    border: none;
    font-family: var(--font-primary);
    min-width: 200px;
    text-align: center;
}

.moodle-hero__cta .wp-block-button__link:hover {
    background: #3a3a39;
    color: #fff;
}

.moodle-hero__col--image.wp-block-column,
.acred-hero__col--image.wp-block-column {
    flex: 1 0 0;
    padding: 24px;
    min-width: 0;
}

.moodle-hero__cover.wp-block-cover {
    width: 100%;
}

@media (max-width: 768px) {
    .moodle-hero.wp-block-columns {
        flex-direction: column;
    }

    .moodle-hero__col--text.wp-block-column,
    .moodle-hero__col--image.wp-block-column {
        max-width: 100%;
        padding: 24px;
    }

    .moodle-hero__cover.wp-block-cover {
        min-height: 400px !important;
    }
}

/* =============================================================
   ACREDITACIONES / ASESORAMIENTO
   ============================================================= */
/* ─── Hero ──────────────────────────────────────────────────── */

.acred-hero__col--text.wp-block-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 32px;
}

.acred-hero__title.wp-block-heading {
    font-family: var(--font-primary);
    font-size: clamp(36px, 4.6vw, 80px);
    font-weight: 500;
    line-height: 1;
    color: var(--color-ink);
    margin: 0;
}

.acred-hero__desc {
    font-size: 15.6px;
    color: rgba(27, 27, 26, 0.86);
    line-height: 1.62;
    letter-spacing: 0.16px;
    max-width: 600px;
    margin: 0;
}

.acred-hero__btns.wp-block-buttons {
    margin: 0;
}

.acred-hero__cta .wp-block-button__link {
    background: var(--color-ink);
    color: #fff;
    border: none;
    font-family: var(--font-primary);
}

.acred-hero__cta .wp-block-button__link:hover {
    background: #3a3a39;
    color: #fff;
}

.acred-hero__cover.wp-block-cover {
    width: 100%;
}

@media (max-width: 768px) {
    .acred-hero.wp-block-columns {
        flex-direction: column;
    }

    .acred-hero__col--text.wp-block-column,
    .acred-hero__col--image.wp-block-column {
        max-width: 100%;
        padding: 24px;
    }

    .acred-hero__cover.wp-block-cover {
        min-height: 400px !important;
    }
}

/* ─── FAQ – Hero ─────────────────────────────────────────────── */
.faq-hero.wp-block-group {
    background-color: var(--color-yellow);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Gutenberg envuelve los hijos del grupo en .__inner-container, así que el
   flex+gap debe aplicarse AHÍ para que la separación de 16px afecte de verdad a
   imagen, título y subtítulo (si no, quedan pegados porque tienen margin:0). */
.faq-hero.wp-block-group > .wp-block-group__inner-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.faq-hero__cover.wp-block-cover {
    min-height: 300px !important;
    border-radius: var(--radius);
    width: 100%;
}

.faq-hero__title.wp-block-heading {
    font-family: var(--font-primary);
    font-size: clamp(48px, 5.5vw, 80px);
    line-height: 1;
    color: var(--color-ink);
    font-feature-settings: 'lnum' 1, 'pnum' 1;
}

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

@media (max-width: 768px) {
    .faq-hero__cover.wp-block-cover {
        min-height: 200px !important;
    }

    .faq-hero__title.wp-block-heading {
        font-size: clamp(36px, 8vw, 56px);
    }
}

/* ─── Webinars – Hero ────────────────────────────────────────── */
.webinars-hero {
    padding: 24px;
    background: var(--color-white);
    gap: 16px;
    max-width: 1440px;
    margin: 0;
    width: 100%;
}

.webinars-hero__title {
    font-size: clamp(2.5rem, 6vw, 80px);
    font-weight: 500;
    line-height: 1;
    color: var(--color-ink);
    margin: 0;
}

.webinars-hero__subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.618;
    letter-spacing: 0.16px;
    color: rgba(0, 0, 0, 0.86);
    max-width: 600px;
    margin: 0;
}
