/*
 * Dicarina · sistema visual 2026 (header, footer y portada).
 * Prefijo dx- para no chocar con Bootstrap/Landrick ni con main.css, que siguen cargando las páginas internas.
 */
:root {
    --dx-yellow: #EAD400;
    --dx-yellow-soft: #FBF6CC;
    --dx-charcoal: #37424A;
    --dx-charcoal-deep: #2B343B;
    --dx-ink: #1E252B;
    --dx-muted: #5A6670;
    --dx-line: #E3E7EA;
    --dx-soft: #F5F6F7;
    --dx-white: #FFFFFF;

    --dx-font: "Manrope", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --dx-s1: 8px; --dx-s2: 16px; --dx-s3: 24px; --dx-s4: 32px; --dx-s5: 48px; --dx-s6: 64px; --dx-s7: 88px;
    --dx-radius: 10px;
    --dx-ease: 200ms cubic-bezier(.2, .7, .2, 1);
    --dx-wrap: 1240px;
    --dx-header-h: 80px;
}

/* ---------- Base (solo portada; las páginas internas conservan su tipografía) ---------- */
body.dx-lean {
    margin: 0;
    font: 400 16px/1.6 var(--dx-font);
    color: var(--dx-ink);
    background: var(--dx-white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.dx-lean *, body.dx-lean *::before, body.dx-lean *::after { box-sizing: border-box; }
body.dx-lean img, body.dx-lean video { max-width: 100%; }

.dx-wrap { width: 100%; max-width: var(--dx-wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.dx-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dx-skip { position: absolute; left: 12px; top: -48px; z-index: 200; padding: 10px 16px; background: var(--dx-ink); color: var(--dx-white); border-radius: 6px; font: 600 14px var(--dx-font); text-decoration: none; }
.dx-skip:focus { top: 12px; color: var(--dx-white); }

.dx-topbar, .dx-header, .dx-footer, .dx-help, #dx-main .dx-section, .dx-hero { font-family: var(--dx-font); }
.dx-topbar ul, .dx-header ul, .dx-footer ul, .dx-section ul { list-style: none; margin: 0; padding: 0; }
.dx-header a, .dx-topbar a, .dx-footer a, .dx-section a, .dx-hero a { text-decoration: none; }
:where(.dx-topbar, .dx-header, .dx-footer, .dx-section, .dx-hero, .dx-help) :focus-visible { outline: 2px solid var(--dx-yellow); outline-offset: 3px; border-radius: 4px; }

/* ---------- Barra superior ---------- */
.dx-topbar { background: var(--dx-charcoal-deep); color: #C9D0D5; font-size: 13px; }
.dx-topbar__in { display: flex; align-items: center; justify-content: flex-end; gap: var(--dx-s3); min-height: 34px; }
.dx-social { display: flex; gap: 6px; }
.dx-social a, .dx-lang { display: inline-flex; align-items: center; gap: 6px; color: #C9D0D5; transition: color var(--dx-ease); }
.dx-social a { width: 28px; height: 28px; justify-content: center; }
.dx-social a:hover, .dx-lang:hover { color: var(--dx-yellow); }
.dx-lang { font-weight: 500; letter-spacing: .01em; }

/* ---------- Header ---------- */
.dx-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--dx-white);
    border-bottom: 1px solid transparent;
    transition: box-shadow var(--dx-ease), border-color var(--dx-ease);
}
.dx-header.is-scrolled { box-shadow: 0 1px 0 rgba(30, 37, 43, .06), 0 6px 18px -12px rgba(30, 37, 43, .22); border-bottom-color: var(--dx-line); }
.dx-header__in { display: flex; align-items: center; justify-content: space-between; gap: var(--dx-s3); height: var(--dx-header-h); }
.dx-logo { display: block; flex: none; line-height: 0; }
.dx-logo img { width: 168px; height: auto; aspect-ratio: 420 / 80; }

.dx-nav ul { display: flex; align-items: center; gap: clamp(4px, 1.2vw, 14px); }
.dx-nav a {
    position: relative; display: block; padding: 10px 10px;
    color: var(--dx-ink); font-size: 15px; font-weight: 600; letter-spacing: .005em;
    transition: color var(--dx-ease);
}
.dx-nav a::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 3px; border-radius: 2px;
    background: var(--dx-yellow); transform: scaleX(0); transform-origin: left; transition: transform var(--dx-ease);
}
.dx-nav a:hover { color: var(--dx-ink); }
.dx-nav a:hover::after, .dx-nav a[aria-current="page"]::after { transform: scaleX(1); }

.dx-burger { display: none; width: 44px; height: 44px; margin-right: -8px; border: 0; background: none; border-radius: 8px; cursor: pointer; align-items: center; justify-content: center; }
.dx-burger__bars, .dx-burger__bars::before, .dx-burger__bars::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--dx-ink); transition: transform var(--dx-ease), opacity var(--dx-ease); }
.dx-burger__bars { position: relative; }
.dx-burger__bars::before, .dx-burger__bars::after { content: ""; position: absolute; left: 0; }
.dx-burger__bars::before { top: -7px; } .dx-burger__bars::after { top: 7px; }
.dx-header.is-open .dx-burger__bars { background: transparent; }
.dx-header.is-open .dx-burger__bars::before { transform: translateY(7px) rotate(45deg); }
.dx-header.is-open .dx-burger__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
    :root { --dx-header-h: 68px; }
    .dx-logo img { width: 144px; }
    .dx-burger { display: inline-flex; }
    .dx-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--dx-white); border-top: 1px solid var(--dx-line);
        box-shadow: 0 18px 30px -18px rgba(30, 37, 43, .35);
        max-height: calc(100dvh - var(--dx-header-h)); overflow-y: auto;
        visibility: hidden; opacity: 0; transform: translateY(-6px);
        transition: opacity var(--dx-ease), transform var(--dx-ease), visibility 0s linear 200ms;
    }
    .dx-header.is-open .dx-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
    .dx-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--dx-s1) clamp(16px, 4vw, 32px) var(--dx-s2); }
    .dx-nav li + li { border-top: 1px solid var(--dx-line); }
    .dx-nav a { padding: 14px 4px; font-size: 16px; }
    .dx-nav a::after { left: 0; right: auto; width: 3px; top: 12px; bottom: 12px; height: auto; transform: scaleY(0); transform-origin: top; }
    .dx-nav a:hover::after, .dx-nav a[aria-current="page"]::after { transform: scaleY(1); }
    .dx-nav a[aria-current="page"], .dx-nav a:hover { padding-left: 14px; }
    .dx-nav a { transition: color var(--dx-ease), padding var(--dx-ease); }
}

/* ---------- Botones y enlaces ---------- */
.dx-btn {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 48px; padding: 12px 22px; border-radius: 8px;
    font: 700 15px/1 var(--dx-font); letter-spacing: .01em;
    transition: background-color var(--dx-ease), color var(--dx-ease), border-color var(--dx-ease), transform var(--dx-ease);
}
.dx-btn svg { transition: transform var(--dx-ease); }
.dx-btn:hover svg { transform: translateX(3px); }
.dx-btn--ghost { color: var(--dx-white); border: 1.5px solid rgba(255, 255, 255, .75); background: rgba(30, 37, 43, .12); }
.dx-btn--ghost:hover { color: var(--dx-ink); background: var(--dx-yellow); border-color: var(--dx-yellow); }

.dx-link { display: inline-flex; align-items: center; gap: 6px; color: var(--dx-charcoal); font-weight: 700; font-size: 15px; border-bottom: 2px solid var(--dx-yellow); padding-bottom: 2px; transition: color var(--dx-ease), gap var(--dx-ease); }
.dx-link:hover { color: var(--dx-ink); gap: 9px; }

/* ---------- Hero ---------- */
.dx-hero {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; align-items: center;
    height: clamp(560px, calc(100svh - var(--dx-header-h) - 34px), 720px);
    background: var(--dx-charcoal-deep);
    color: var(--dx-white);
}
.dx-hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.dx-hero__shade {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(22, 28, 33, .78) 0%, rgba(22, 28, 33, .55) 45%, rgba(22, 28, 33, .1) 80%),
        linear-gradient(0deg, rgba(22, 28, 33, .35) 0%, rgba(22, 28, 33, 0) 35%);
}
.dx-hero__content { display: grid; gap: var(--dx-s3); justify-items: start; }
.dx-hero__title {
    margin: 0; max-width: 15ch;
    font: 800 clamp(38px, 5.4vw, 68px)/1.04 var(--dx-font); letter-spacing: -.025em; color: var(--dx-white);
    text-wrap: balance;
}
.dx-hero__title::before { content: ""; display: block; width: 56px; height: 5px; margin-bottom: var(--dx-s3); border-radius: 3px; background: var(--dx-yellow); }
.dx-hero__text { margin: 0; max-width: 54ch; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; color: rgba(255, 255, 255, .9); }
.dx-hero__content > * { animation: dx-rise 700ms cubic-bezier(.2, .7, .2, 1) both; }
.dx-hero__content > :nth-child(2) { animation-delay: 90ms; }
.dx-hero__content > :nth-child(3) { animation-delay: 180ms; }
@keyframes dx-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.dx-hero__toggle {
    position: absolute; left: max(clamp(16px, 4vw, 32px), calc((100% - var(--dx-wrap)) / 2 + 32px)); bottom: clamp(16px, 3vw, 28px);
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; background: rgba(22, 28, 33, .35); color: var(--dx-white);
    cursor: pointer; transition: background-color var(--dx-ease), border-color var(--dx-ease);
}
.dx-hero__toggle:hover { background: rgba(22, 28, 33, .6); border-color: var(--dx-white); }
.dx-hero__toggle .dx-i-play { display: none; }
.dx-hero__toggle.is-paused .dx-i-play { display: block; }
.dx-hero__toggle.is-paused .dx-i-pause { display: none; }

@media (max-width: 767px) {
    .dx-hero { height: auto; min-height: min(78svh, 600px); align-items: flex-end; padding-block: var(--dx-s6) var(--dx-s6); }
    .dx-hero__video { object-position: 70% 50%; }
    .dx-hero__shade { background: linear-gradient(0deg, rgba(22, 28, 33, .82) 0%, rgba(22, 28, 33, .55) 45%, rgba(22, 28, 33, .15) 100%); }
    .dx-hero__content { gap: var(--dx-s2); }
    .dx-hero__title::before { width: 44px; height: 4px; margin-bottom: var(--dx-s2); }
    .dx-hero__toggle { left: auto; right: 16px; }
}

/* ---------- Secciones ---------- */
.dx-section { padding-block: clamp(56px, 7vw, 92px); }
.dx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--dx-s2); flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.dx-head__title {
    position: relative; margin: 0; padding-left: 20px;
    font: 800 clamp(28px, 3.1vw, 42px)/1.15 var(--dx-font); letter-spacing: -.02em; color: var(--dx-ink);
    text-wrap: balance;
}
.dx-head__title::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 5px; border-radius: 3px; background: var(--dx-yellow); }

/* Campaña */
/* Campaña: fondo gris claro liso; el arte (fondo blanco) va en un marco blanco hundido, con sombra interior. */
.dx-campaign { padding-block: 24px; background: #F6F6F6; }
.dx-campaign__art {
    margin: 0 auto; width: min(100%, 270px); padding: 19px;
    background: var(--dx-white); border-radius: 18px;
    box-shadow:
        inset 6px 6px 14px rgba(55, 66, 74, .16),
        inset -6px -6px 14px rgba(255, 255, 255, .9),
        0 0 0 1px rgba(55, 66, 74, .05);
}
.dx-campaign__art video { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--dx-white); }

/* Compromiso: 3×3 en escritorio (principal 2×2, dos al lado, tres abajo); 2 columnas en tablet; 1 en móvil */
.dx-mosaic { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(170px, 16vw, 230px); }
.dx-mosaic__item:first-child { grid-column: span 2; grid-row: span 2; }
.dx-mosaic__item a { position: relative; display: block; height: 100%; overflow: hidden; border-radius: var(--dx-radius); background: var(--dx-soft); }
.dx-mosaic__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms cubic-bezier(.2, .7, .2, 1); }
.dx-mosaic__item a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22, 28, 33, .78) 0%, rgba(22, 28, 33, .12) 55%, rgba(22, 28, 33, 0) 75%); }
.dx-mosaic__caption {
    position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px;
    color: var(--dx-white); font-weight: 700; font-size: 15px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.dx-mosaic__item:first-child .dx-mosaic__caption { font-size: clamp(17px, 1.6vw, 22px); left: 24px; right: 24px; bottom: 22px; }
.dx-mosaic__item a:hover img { transform: scale(1.035); }
.dx-mosaic__item a:hover .dx-mosaic__caption { text-decoration: underline; text-decoration-color: var(--dx-yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 1023px) {
    .dx-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(160px, 28vw, 240px); }
    .dx-mosaic__item:first-child { grid-column: span 2; grid-row: span 1; }
    .dx-mosaic__item:nth-child(6) { grid-column: span 2; }
}
@media (max-width: 559px) {
    .dx-mosaic { gap: 8px; grid-auto-rows: clamp(128px, 38vw, 180px); }
    .dx-mosaic__item:first-child { grid-row: span 2; }
    .dx-mosaic__caption { left: 12px; right: 12px; bottom: 10px; font-size: 13px; -webkit-line-clamp: 2; }
    .dx-mosaic__item:first-child .dx-mosaic__caption { left: 16px; right: 16px; bottom: 14px; font-size: 16px; }
}

/* Actualidad */
.dx-news { background: var(--dx-soft); }
.dx-cards { display: grid; gap: clamp(16px, 2vw, 28px); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1023px) { .dx-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .dx-cards { grid-template-columns: 1fr; } }
.dx-card__link {
    display: flex; flex-direction: column; height: 100%;
    background: var(--dx-white); border: 1px solid var(--dx-line); border-radius: var(--dx-radius); overflow: hidden;
    color: var(--dx-ink);
    transition: box-shadow var(--dx-ease), transform var(--dx-ease), border-color var(--dx-ease);
}
.dx-card__link:hover { color: var(--dx-ink); transform: translateY(-3px); border-color: #D5DADE; box-shadow: 0 14px 30px -18px rgba(30, 37, 43, .35); }
.dx-card__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--dx-line); }
.dx-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; }
.dx-card__meta { color: var(--dx-muted); font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.dx-card__title { font-size: 17px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.dx-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; color: var(--dx-charcoal); font-weight: 700; font-size: 14px; }
.dx-card__more svg { color: #B9A700; transition: transform var(--dx-ease); }
.dx-card__link:hover .dx-card__more svg { transform: translateX(3px); }

/* ---------- Footer ---------- */
.dx-footer { background: var(--dx-charcoal); color: #D5DBDF; font-size: 15px; line-height: 1.7; border-top: 10px solid #fff; } /* separa el footer de un bloque anterior del mismo color */
.dx-footer__grid { display: grid; gap: var(--dx-s5) var(--dx-s4); grid-template-columns: 1.4fr 1fr 1.2fr .8fr; padding-block: clamp(56px, 6vw, 80px); }
.dx-footer__brand img { width: 168px; height: auto; aspect-ratio: 420 / 80; }
.dx-footer__brand p { margin: var(--dx-s3) 0 0; max-width: 36ch; color: #C3CBD0; }
.dx-footer__title { margin: 0 0 var(--dx-s2); color: var(--dx-white); font: 700 13px/1.4 var(--dx-font); letter-spacing: .12em; text-transform: uppercase; }
.dx-footer__title::after { content: ""; display: block; width: 24px; height: 3px; margin-top: 10px; border-radius: 2px; background: var(--dx-yellow); }
.dx-footer__links { display: grid; gap: 6px; }
.dx-footer a { color: #D5DBDF; transition: color var(--dx-ease); }
.dx-footer a:hover { color: var(--dx-yellow); }
.dx-footer address { margin: 0; font-style: normal; color: #C3CBD0; }
.dx-footer address strong { color: var(--dx-white); font-weight: 600; }
.dx-footer__social { display: flex; gap: 10px; }
.dx-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); }
.dx-footer__social a:hover { border-color: var(--dx-yellow); }
.dx-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 18px; font-size: 13px; color: #AEB7BD; }
@media (max-width: 1023px) { .dx-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) {
    .dx-footer__grid { grid-template-columns: 1fr; gap: var(--dx-s4); }
    .dx-footer__bottom { padding-bottom: 104px; } /* espacio para el botón de servicio al cliente */
}

/* ---------- Servicio al cliente ---------- */
.dx-help {
    position: fixed; z-index: 90;
    right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
    display: flex; flex-direction: column; align-items: center; width: 112px;
    text-decoration: none; transition: opacity var(--dx-ease), transform var(--dx-ease);
}
.dx-help__art { position: relative; display: block; width: 100%; aspect-ratio: 500 / 620; }
.dx-help__art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.dx-help__frame { opacity: 0; }
.dx-help__frame.is-active { opacity: 1; }
.dx-help__label {
    margin-top: -6px; padding: 5px 10px; border-radius: 99px;
    background: var(--dx-white); color: var(--dx-ink); box-shadow: 0 4px 14px -6px rgba(30, 37, 43, .4);
    font: 700 12px/1.2 var(--dx-font); white-space: nowrap;
}
.dx-help:hover { transform: translateY(-2px); }
@media (max-width: 767px) {
    .dx-help { width: 76px; }
    .dx-help__label { display: none; }
}

/* ---------- Páginas internas con el layout actual ---------- */
body:not(.dx-lean) .dx-header { font-family: var(--dx-font); }
body:not(.dx-lean) .dx-header h1, body:not(.dx-lean) .dx-footer h2 { font-family: var(--dx-font); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
    .dx-hero__content > * { animation: none; }
    .dx-topbar *, .dx-header *, .dx-section *, .dx-footer *, .dx-help, .dx-help * { transition: none !important; }
    .dx-mosaic__item a:hover img, .dx-card__link:hover { transform: none; }
}

/* =====================================================================
 * Páginas internas (vista previa): cabecera, migas, texto, títulos, artículo y galería.
 * Los sets propios de cada página tienen su CSS en /css/v2/<página>.css.
 * ===================================================================== */
.dx-pagehero, .dx-pagehead, .dx-titlesec, .dx-prosesec, .dx-band, .dx-article, .dx-related { font-family: var(--dx-font); }
.dx-pagehero *, .dx-pagehead *, .dx-titlesec *, .dx-prosesec *, .dx-band *, .dx-article *, .dx-section * { box-sizing: border-box; }

/* Cabecera con foto */
.dx-pagehero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(300px, 34vw, 440px); background: var(--dx-charcoal-deep); color: var(--dx-white); }
.dx-pagehero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.dx-pagehero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(22, 28, 33, .82) 0%, rgba(22, 28, 33, .4) 55%, rgba(22, 28, 33, .15) 100%); }
.dx-pagehero__in { display: grid; gap: var(--dx-s2); padding-block: var(--dx-s6) clamp(36px, 4.5vw, 56px); }
.dx-pagehero__title { margin: 0; max-width: 20ch; font: 800 clamp(34px, 4.6vw, 58px)/1.06 var(--dx-font); letter-spacing: -.025em; color: var(--dx-white); text-wrap: balance; }
.dx-pagehero__title::before { content: ""; display: block; width: 52px; height: 5px; margin-bottom: var(--dx-s2); border-radius: 3px; background: var(--dx-yellow); }

/* Cabecera clara (sin foto) */
.dx-pagehead { background: var(--dx-soft); border-bottom: 1px solid var(--dx-line); padding-block: clamp(28px, 4vw, 48px); }
.dx-pagehead .dx-wrap { display: grid; gap: 12px; }
.dx-pagehead__title { margin: 0; max-width: 24ch; font: 800 clamp(30px, 3.8vw, 48px)/1.1 var(--dx-font); letter-spacing: -.02em; color: var(--dx-ink); text-wrap: balance; }

/* Migas */
.dx-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.dx-crumbs li { display: inline-flex; align-items: center; color: var(--dx-muted); }
.dx-crumbs li + li::before { content: "/"; margin: 0 10px; color: #AEB6BC; font-weight: 400; }
.dx-crumbs a { color: var(--dx-muted); text-decoration: none; transition: color var(--dx-ease); }
.dx-crumbs a:hover { color: var(--dx-ink); text-decoration: underline; text-decoration-color: var(--dx-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.dx-crumbs [aria-current] { color: var(--dx-ink); }
.dx-pagehero .dx-crumbs li, .dx-pagehero .dx-crumbs a, .dx-pagehero .dx-crumbs [aria-current] { color: rgba(255, 255, 255, .85); }
.dx-pagehero .dx-crumbs li + li::before { color: rgba(255, 255, 255, .5); }

/* Títulos de sección y texto */
.dx-titlesec { padding-top: clamp(48px, 6vw, 80px); padding-bottom: 8px; }
.dx-titlesec + .dx-prosesec { padding-top: 12px; }
.dx-lead { margin: 14px 0 0; max-width: 68ch; color: var(--dx-muted); font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; }
.dx-prosesec { padding-block: clamp(20px, 3vw, 36px); }
.dx-prose { max-width: 74ch; color: #33404A; font-size: 17px; line-height: 1.75; }
/* En las páginas internas el texto ocupa todo el ancho del contenido (alineado con títulos y secciones);
   en el artículo se mantiene la columna de lectura de 74ch. */
.dx-prosesec .dx-prose { max-width: none; font-size: clamp(17px, 1.25vw, 18px); }
.dx-article__body .dx-prose { max-width: 74ch; }
.dx-lead { max-width: none; }
.dx-prose > :first-child { margin-top: 0; }
.dx-prose > :last-child { margin-bottom: 0; }
.dx-prose p { margin: 0 0 1.1em; text-align: left; }
.dx-prose h2, .dx-prose h3, .dx-prose h4 { margin: 1.6em 0 .5em; color: var(--dx-ink); font-family: var(--dx-font); font-weight: 800; letter-spacing: -.015em; line-height: 1.25; }
.dx-prose h2 { font-size: clamp(26px, 2.6vw, 34px); }
.dx-prose h3 { font-size: clamp(21px, 2vw, 26px); }
.dx-prose h4 { font-size: 19px; }
.dx-prose strong { color: var(--dx-ink); font-weight: 700; }
.dx-prose em { font-style: italic; }
.dx-prose a { color: var(--dx-charcoal); font-weight: 600; text-decoration: underline; text-decoration-color: var(--dx-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.dx-prose ul, .dx-prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.dx-prose li { margin-bottom: .45em; padding-left: .2em; }
.dx-prose ul li::marker { color: #C9B500; }
.dx-prose blockquote { margin: 1.6em 0; padding: 20px 24px; border-left: 4px solid var(--dx-yellow); border-radius: 0 var(--dx-radius) var(--dx-radius) 0; background: var(--dx-soft); }
.dx-prose blockquote p { margin: 0; color: var(--dx-ink); font-size: 19px; font-weight: 600; line-height: 1.55; }
.dx-prose img { max-width: 100%; height: auto; border-radius: var(--dx-radius); }

/* Franja destacada (fondo_alterno) */
.dx-band { background: var(--dx-charcoal); color: var(--dx-white); padding-block: clamp(40px, 5vw, 64px); text-align: center; }
.dx-band__in { max-width: 920px; }
.dx-band__in > * { margin: 0 auto; color: var(--dx-white); font: 700 clamp(20px, 2.2vw, 28px)/1.4 var(--dx-font); letter-spacing: -.01em; text-wrap: balance; }
.dx-band__in > * + * { margin-top: .6em; }
.dx-band__in em { color: var(--dx-yellow); font-style: normal; }
.dx-band__in strong { color: var(--dx-white); }

/* Artículo */
.dx-article__date { margin: 0; color: var(--dx-muted); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.dx-article__head .dx-lead { margin-top: 4px; }
.dx-article__figure { margin-block: clamp(28px, 4vw, 48px) 0; }
.dx-article__figure img { display: block; max-width: 100%; max-height: 640px; width: auto; height: auto; margin-inline: auto; border-radius: 12px; box-shadow: 0 18px 40px -28px rgba(30, 37, 43, .45); }
.dx-article__body { padding-block: clamp(16px, 3vw, 32px) clamp(24px, 4vw, 48px); }
.dx-article__body .dx-prose { margin-inline: auto; }
.dx-article__body .dx-wrap { max-width: calc(74ch + 64px); }

/* Galería */
.dx-gallery { padding-top: 0; }
.dx-gallery .dx-head__title { margin-bottom: 24px; }
.dx-gallery__grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.dx-gallery__grid a { display: block; overflow: hidden; border-radius: var(--dx-radius); background: var(--dx-soft); }
.dx-gallery__grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 400ms cubic-bezier(.2, .7, .2, 1); }
.dx-gallery__grid a:hover img { transform: scale(1.04); }

/* Otras acciones */
.dx-related { background: var(--dx-soft); }

@media (prefers-reduced-motion: reduce) {
    .dx-gallery__grid a:hover img { transform: none; }
}

/* Capa en movimiento de la cabecera (capa_dinamica_1): se repite y se desplaza muy lento, como antes. */
.dx-pagehero__layer { position: absolute; inset: 0; z-index: -2; background-repeat: repeat; background-size: auto 100%; animation: dx-layer-left 200s linear infinite; }
.dx-pagehero__layer--izquierda { animation-name: dx-layer-right; }
.dx-pagehero__layer--abajo { background-size: 100% auto; animation-name: dx-layer-down; }
.dx-pagehero__layer--arriba { background-size: 100% auto; animation-name: dx-layer-up; }
@keyframes dx-layer-left { to { background-position: -4000px 0; } }
@keyframes dx-layer-right { to { background-position: 4000px 0; } }
@keyframes dx-layer-down { to { background-position: 0 4000px; } }
@keyframes dx-layer-up { to { background-position: 0 -4000px; } }
@media (prefers-reduced-motion: reduce) { .dx-pagehero__layer { animation: none; } }
