/* Avante · BE+DIGITAL — sistema editorial */
body.avante-bedigital-active {
  --abd-night: #06162f;
  --abd-night-2: #0b2850;
  --abd-ink: #0a1c36;
  --abd-text: #24344d;
  --abd-muted: #68778d;
  --abd-blue: #2d72ec;
  --abd-cyan: #59e0e8;
  --abd-paper: #f3f6fa;
  --abd-line: #dce5f0;
  --abd-white: #fff;
  --abd-radius: 22px;
  --abd-shell: 1160px;
  background: var(--abd-paper);
}

.abd,
.abd * { box-sizing: border-box; }
.abd { overflow: hidden; color: var(--abd-text); background: #fff; font-family: "DM Sans", "Inter", Arial, sans-serif; font-size: 16px; line-height: 1.65; }
.abd img { max-width: 100%; }
.abd a { color: inherit; text-decoration: none; }
.abd h1, .abd h2, .abd h3, .abd h4 { margin: 0; color: var(--abd-ink); font-family: "Manrope", "DM Sans", Arial, sans-serif; font-weight: 760; line-height: 1.08; letter-spacing: -.04em; }
.abd-shell { width: min(calc(100% - 48px), var(--abd-shell)); margin-inline: auto; }
.abd-preview { position: relative; z-index: 20; padding: 11px 24px; color: #493b00; border-bottom: 1px solid #e2cb6a; background: #fff4c9; text-align: center; font-size: 13px; }
.abd-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--abd-blue); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.abd-eyebrow span { width: 30px; height: 2px; background: currentColor; }

.abd-hero { position: relative; padding: clamp(76px, 9vw, 130px) 0 92px; overflow: hidden; color: #fff; background: radial-gradient(circle at 80% 15%, rgba(45,114,236,.28), transparent 30%), linear-gradient(130deg, var(--abd-night), var(--abd-night-2) 72%, #071c38); }
.abd-hero::after { content: ""; position: absolute; right: -130px; bottom: -270px; width: 620px; height: 620px; border: 1px solid rgba(89,224,232,.12); border-radius: 50%; box-shadow: 0 0 0 72px rgba(255,255,255,.018), 0 0 0 145px rgba(255,255,255,.012); }
.abd-hero__grid { position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(90deg, #000, transparent 85%); }
.abd-hero__layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 95px; align-items: end; }
.abd-hero .abd-eyebrow { color: var(--abd-cyan); }
.abd-hero h1 { color: #fff; font-size: clamp(58px, 8vw, 110px); letter-spacing: -.065em; }
.abd-hero h1 span { color: var(--abd-cyan); }
.abd-hero h2 { margin-top: 20px; color: rgba(255,255,255,.95); font-size: clamp(30px, 4.1vw, 56px); }
.abd-hero__intro { margin: 0 0 5px; padding-left: 26px; color: rgba(255,255,255,.68); border-left: 2px solid var(--abd-cyan); font-size: 17px; line-height: 1.65; }

.abd-topic-wrap { position: relative; z-index: 4; margin-top: -27px; }
.abd-topics { display: flex; gap: 7px; padding: 8px; overflow-x: auto; border: 1px solid var(--abd-line); border-radius: 999px; background: rgba(255,255,255,.96); box-shadow: 0 18px 50px rgba(6,22,47,.11); scrollbar-width: none; }
.abd-topics::-webkit-scrollbar { display: none; }
.abd-topics a { min-height: 38px; padding: 8px 17px; display: inline-flex; align-items: center; justify-content: center; flex: 1 0 auto; border-radius: 999px; color: var(--abd-muted); font-size: 12px; font-weight: 750; white-space: nowrap; transition: .2s ease; }
.abd-topics a:hover, .abd-topics a:focus-visible { color: var(--abd-blue); background: #edf4ff; outline: none; }
.abd-topics a.is-active { color: #fff; background: var(--abd-ink); }

.abd-featured { padding: 105px 0 118px; }
.abd-section-head { margin-bottom: 38px; display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.abd-section-head p { margin: 0 0 8px; color: var(--abd-blue); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.abd-section-head h2 { font-size: clamp(34px, 4.4vw, 56px); }
.abd-section-head > span { color: #dce4ef; font-family: "Manrope", Arial, sans-serif; font-size: clamp(42px, 7vw, 86px); font-weight: 800; letter-spacing: -.07em; line-height: .8; }

.abd-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--abd-line); border-radius: var(--abd-radius); background: #fff; box-shadow: 0 8px 26px rgba(7,27,56,.05); transition: transform .3s cubic-bezier(.2,.75,.25,1), border-color .25s, box-shadow .3s; }
.abd-card:hover, .abd-card:focus-within { border-color: #b8cef1; box-shadow: 0 24px 58px rgba(7,27,56,.13); transform: translateY(-7px); }
.abd-card__media { position: relative; aspect-ratio: 16 / 10; display: block; overflow: hidden; background: linear-gradient(135deg, #113e75, #071b38); }
.abd-card__media::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgba(4,18,39,.22)); pointer-events: none; }
.abd-card__media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .55s cubic-bezier(.2,.75,.25,1); }
.abd-card:hover .abd-card__media img { transform: scale(1.045); }
.abd-card__monogram { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.92); font: 800 clamp(42px, 8vw, 90px)/1 "Manrope", Arial, sans-serif; letter-spacing: -.08em; }
.abd-card__monogram span { color: var(--abd-cyan); }
.abd-card__body { padding: 24px 24px 25px; display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.abd-card__meta { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px 14px; color: #8190a4; font-size: 10px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.abd-card__meta a { color: var(--abd-blue); }
.abd-card h2 { font-size: clamp(21px, 2.3vw, 28px); }
.abd-card h2 a { background-image: linear-gradient(var(--abd-blue), var(--abd-blue)); background-position: 0 100%; background-repeat: no-repeat; background-size: 0 2px; transition: background-size .25s; }
.abd-card h2 a:hover, .abd-card h2 a:focus-visible { background-size: 100% 2px; outline: none; }
.abd-card__body > p { margin: 15px 0 24px; color: var(--abd-muted); font-size: 14px; }
.abd-text-link { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; color: var(--abd-blue)!important; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.abd-text-link span { transition: transform .2s; }
.abd-card:hover .abd-text-link span { transform: translate(3px,-3px); }

.abd-card--featured { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); min-height: 470px; }
.abd-card--featured .abd-card__media { height: 100%; aspect-ratio: auto; }
.abd-card--featured .abd-card__body { padding: clamp(35px, 5vw, 62px); justify-content: center; }
.abd-card--featured h2 { font-size: clamp(29px, 3.5vw, 45px); }
.abd-card--featured .abd-card__body > p { font-size: 15px; }

.abd-feed, .abd-related { padding: 112px 0 125px; color: #fff; background: radial-gradient(circle at 10% 8%, rgba(45,114,236,.2), transparent 26%), var(--abd-night); }
.abd-section-head--light h2 { color: #fff; }
.abd-section-head--light p { color: var(--abd-cyan); }
.abd-section-head--light > span { color: rgba(255,255,255,.1); }
.abd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.abd-grid .abd-card { color: var(--abd-text); }
.abd nav.navigation.pagination { margin-top: 58px; }
.abd .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.abd .page-numbers { min-width: 42px; height: 42px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 700; }
.abd .page-numbers.current, .abd .page-numbers:hover { color: var(--abd-night); border-color: var(--abd-cyan); background: var(--abd-cyan); }

.abd-cta { padding: 82px 0; color: #fff; background: linear-gradient(112deg, #2c6ee5, #1852c2 65%, #163e90); }
.abd-cta__layout { display: flex; align-items: center; justify-content: space-between; gap: 45px; }
.abd-cta .abd-eyebrow { color: rgba(255,255,255,.72); }
.abd-cta h2 { max-width: 780px; color: #fff; font-size: clamp(35px, 4.8vw, 62px); }
.abd-button { min-height: 54px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; flex: 0 0 auto; border-radius: 999px; color: var(--abd-night)!important; background: var(--abd-cyan); box-shadow: 0 16px 35px rgba(6,22,47,.18); font-size: 13px; font-weight: 800; transition: .2s; }
.abd-button:hover { transform: translateY(-3px); box-shadow: 0 20px 45px rgba(6,22,47,.25); }
.abd-empty { padding: 110px 0; text-align: center; }
.abd-empty h2 { font-size: 42px; }
.abd-empty p { color: var(--abd-muted); }

/* Archivo de categoría */
.abd-archive-hero { position: relative; padding: 90px 0 96px; color: #fff; background: radial-gradient(circle at 78% 8%, rgba(89,224,232,.17), transparent 28%), linear-gradient(130deg, var(--abd-night), #10335f); }
.abd-back { display: inline-flex; margin-bottom: 62px; color: rgba(255,255,255,.63)!important; font-size: 12px; font-weight: 700; }
.abd-archive-hero .abd-eyebrow { color: var(--abd-cyan); }
.abd-archive-hero h1 { max-width: 900px; color: #fff; font-size: clamp(48px, 7vw, 94px); }
.abd-archive-hero__intro { max-width: 680px; margin: 24px 0 0; color: rgba(255,255,255,.66); font-size: 17px; }
.abd-feed--archive { margin-top: -1px; padding-top: 92px; }

/* Artículo */
.avante-bedigital-single .page-header-wrap { display: none!important; }
.abd-progress { position: fixed; z-index: 9999; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; }
.abd-progress span { width: 100%; height: 100%; display: block; background: linear-gradient(90deg, var(--abd-blue), var(--abd-cyan)); transform: scaleX(0); transform-origin: left; }
.abd-article-hero { padding: 76px 0 70px; background: linear-gradient(180deg, #fff, #f6f8fb); }
.abd-breadcrumb { margin-bottom: 50px; display: flex; flex-wrap: wrap; gap: 9px; color: #8592a4; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.abd-breadcrumb a:hover { color: var(--abd-blue); }
.abd-article-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 24px; color: #77869a; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.abd-article-hero__meta span:first-child { color: var(--abd-blue); }
.abd-article-hero h1 { max-width: 1080px; font-size: clamp(46px, 6.3vw, 84px); }
.abd-article-hero__lead { max-width: 780px; margin: 28px 0 0; color: var(--abd-muted); font-size: 19px; line-height: 1.65; }
.abd-cover { position: relative; z-index: 2; margin-top: -1px; }
.abd-cover img { width: 100%; max-height: 640px; display: block; object-fit: cover; border-radius: 28px; box-shadow: 0 28px 75px rgba(7,27,56,.15); }
.abd-article-layout { padding: 96px 0 125px; display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 95px; justify-content: center; align-items: start; }
.abd-aside { position: sticky; top: 32px; }
.abd-toc { padding-left: 20px; border-left: 2px solid var(--abd-line); }
.abd-toc > p { margin: 0 0 16px; color: var(--abd-ink); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.abd-toc ol { margin: 0; padding: 0; list-style: none; }
.abd-toc li { margin: 0 0 11px; }
.abd-toc li.is-subsection { padding-left: 12px; }
.abd-toc a { display: block; color: #738196; font-size: 11px; font-weight: 650; line-height: 1.35; }
.abd-toc a:hover { color: var(--abd-blue); }
.abd-aside__back { margin-top: 28px; display: inline-flex; color: var(--abd-blue)!important; font-size: 11px; font-weight: 800; }
.abd-prose { min-width: 0; color: #3f4d61; font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 400; line-height: 1.82; }
.abd-prose > :first-child { margin-top: 0; }
.abd-prose > :last-child { margin-bottom: 0; }
.abd-prose :where(h2, h3, h4, h5, h6):not(.bedigital-related-courses *) { scroll-margin-top: 40px; color: var(--abd-ink)!important; font-family: "Jost", "DM Sans", Arial, sans-serif!important; font-weight: 700!important; letter-spacing: -.035em!important; }
.abd-prose h2:not(.bedigital-related-courses *) { margin: 2.1em 0 .75em!important; font-size: clamp(30px, 4vw, 44px)!important; line-height: 1.08!important; }
.abd-prose h3:not(.bedigital-related-courses *) { margin: 1.8em 0 .65em!important; font-size: 27px!important; line-height: 1.18!important; }
.abd-prose h4:not(.bedigital-related-courses *) { margin: 1.6em 0 .6em!important; font-size: 21px!important; line-height: 1.28!important; }
.abd-prose :where(h5, h6):not(.bedigital-related-courses *) { margin: 1.5em 0 .55em!important; font-size: 19px!important; line-height: 1.35!important; }
.abd-prose p:not(.bedigital-related-courses *),
.abd-prose li:not(.bedigital-related-courses *) { color: #3f4d61!important; font-family: Georgia, "Times New Roman", serif!important; font-size: 19px!important; line-height: 1.82!important; }
.abd-prose p:not(.bedigital-related-courses *) { margin: 0 0 1.25em!important; }
.abd-prose :where(p, li, blockquote, h2, h3, h4, h5, h6):not(.bedigital-related-courses *) :where(span, font) { color: inherit!important; font-family: inherit!important; font-size: inherit!important; line-height: inherit!important; letter-spacing: inherit!important; }
.abd-prose a { color: var(--abd-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.abd-prose strong { color: var(--abd-ink); }
.abd-prose :where(ul, ol):not(.bedigital-related-courses *) { margin: 1.4em 0!important; padding-left: 1.25em!important; }
.abd-prose li:not(.bedigital-related-courses *) { margin-bottom: .55em!important; padding-left: .25em!important; }
.abd-prose blockquote { margin: 2.1em 0; padding: 6px 0 6px 28px; color: var(--abd-ink); border-left: 3px solid var(--abd-cyan); font-size: 25px; font-style: normal; line-height: 1.45; }
.abd-prose figure, .abd-prose .wp-block-image { margin: 2.3em 0; }
.abd-prose img { height: auto; border-radius: 18px; }
.abd-prose figcaption { margin-top: 8px; color: #8390a2; font-family: "DM Sans", Arial, sans-serif; font-size: 11px; text-align: left; }
.abd-prose table { width: 100%; margin: 2em 0; border-collapse: collapse; font-family: "DM Sans", Arial, sans-serif; font-size: 14px; }
.abd-prose th, .abd-prose td { padding: 13px; border: 1px solid var(--abd-line); text-align: left; }
.abd-prose th { color: var(--abd-ink); background: var(--abd-paper); }
.abd-prose .elementor-widget-text-editor:not(.bedigital-related-courses *) { color: #3f4d61!important; font-family: Georgia, "Times New Roman", serif!important; font-size: 19px!important; line-height: 1.82!important; }
.abd-prose .elementor-section,
.abd-prose .e-con { width: 100%!important; max-width: none!important; padding-inline: 0!important; }
.abd-related { background: #0a1d39; }

[data-abd-reveal] { opacity: 0; transform: translateY(24px); }
[data-abd-reveal].is-visible { opacity: 1; transform: translateY(0); transition: opacity .65s ease, transform .65s ease; }

@media (max-width: 980px) {
  .abd-hero__layout { grid-template-columns: 1fr; gap: 38px; }
  .abd-hero__intro { max-width: 680px; }
  .abd-card--featured { grid-template-columns: 1fr; min-height: 0; }
  .abd-card--featured .abd-card__media { aspect-ratio: 16 / 9; }
  .abd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .abd-article-layout { grid-template-columns: 1fr; gap: 48px; padding-top: 72px; }
  .abd-aside { position: static; }
  .abd-toc { max-width: 680px; }
  .abd-prose { max-width: 760px; }
}

@media (max-width: 680px) {
  .abd-shell { width: min(calc(100% - 30px), var(--abd-shell)); }
  .abd-hero { padding: 70px 0 74px; }
  .abd-hero h1 { font-size: clamp(50px, 17vw, 72px); }
  .abd-hero h2 { font-size: 34px; }
  .abd-hero__intro { padding-left: 18px; font-size: 15px; }
  .abd-topic-wrap { width: 100%; margin-top: -24px; padding-left: 15px; }
  .abd-topics { border-radius: 24px 0 0 24px; }
  .abd-topics a { flex: 0 0 auto; }
  .abd-featured, .abd-feed, .abd-related { padding: 78px 0 88px; }
  .abd-section-head { margin-bottom: 28px; }
  .abd-section-head > span { display: none; }
  .abd-card--featured .abd-card__body { padding: 26px 22px 28px; }
  .abd-grid { grid-template-columns: 1fr; }
  .abd-cta { padding: 70px 0; }
  .abd-cta__layout { align-items: flex-start; flex-direction: column; }
  .abd-archive-hero { padding: 66px 0 75px; }
  .abd-back { margin-bottom: 42px; }
  .abd-archive-hero h1 { font-size: 48px; }
  .abd-article-hero { padding: 56px 0 52px; }
  .abd-breadcrumb { margin-bottom: 34px; }
  .abd-article-hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .abd-cover { width: 100%; }
  .abd-cover img { border-radius: 0; }
  .abd-article-layout { padding: 62px 0 84px; }
  .abd-prose { font-size: 18px; line-height: 1.75; }
  .abd-prose p:not(.bedigital-related-courses *),
  .abd-prose li:not(.bedigital-related-courses *) { font-size: 18px!important; line-height: 1.75!important; }
  .abd-prose h2:not(.bedigital-related-courses *) { font-size: 32px!important; }
  .abd-prose h3:not(.bedigital-related-courses *) { font-size: 24px!important; }
  .abd-prose blockquote { padding-left: 20px; font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .abd *, .abd *::before, .abd *::after { scroll-behavior: auto!important; animation-duration: .01ms!important; transition-duration: .01ms!important; }
  [data-abd-reveal] { opacity: 1; transform: none; }
}

