/*
 * Cobros en moneda extranjera — Crédito y cobranza. Landing tipo artículo: cada sección lleva su figura.
 * Concepto: "el tablero de una casa de cambio". Las seis monedas que muestra Evidence son fichas de paleta (split-flap):
 * al elegir una, la moneda del cobro gira a su lugar como en un tablero de cambio. Verde = la moneda del cobro; azul =
 * el documento por cobrar (MXN); violeta = el complemento de pagos; dorado = la moneda elegida y las acciones.
 * Las secciones claras llevan el guilloché tenue de un billete. Sin importes ni tipos de cambio calculados: la página
 * no promete conversión automática.
 * El hero es el registro de un cobro: los radios van al inicio de la figura y el CSS los lee con ~ (sin JS ni :has).
 * Sin líneas sobre la tarjeta.
 * Display Antonio (condensada de tablero), cuerpo Inter, cifras tabulares.
 * Movimiento: al cargar, la foto se acerca; al elegir moneda, la paleta gira y el mensaje entra. Al hacer scroll, la
 * moneda elegida se marca en el registro, la factura y el cobro se acercan, los pasos suben y los orígenes bajan, solo
 * donde el navegador lo soporta y sin movimiento reducido.
 */
[data-function-layout="moneda-extranjera"] {
    --mo-ink: #041f49;
    --mo-ink-2: #0d2a55;
    --mo-gold: #fac63f;
    --mo-gold-2: #efb81f;
    --mo-fx: #0d6e5c;
    --mo-fx-tint: #dcf1ea;
    --mo-doc: #2f5fb3;
    --mo-doc-tint: #e3ecfb;
    --mo-rep: #5b3fb0;
    --mo-rep-tint: #ebe6fa;
    --mo-paper: #f1f5f3;
    --mo-rule: #dfe6e3;
    --mo-line: #c3ccc8;
    --mo-muted: #4a5260;
    --mo-text: #1f2937;
    --mo-display: "Antonio", "Barlow Condensed", ui-sans-serif, sans-serif;
    --mo-ease: cubic-bezier(.2, .7, .2, 1);
}
[data-function-layout="moneda-extranjera"] .cv-hero-title,
[data-function-layout="moneda-extranjera"] .cv-section-title,
[data-function-layout="moneda-extranjera"] .cv-form-title { font-family: var(--mo-display); font-weight: 700; letter-spacing: 0; }
[data-function-layout="moneda-extranjera"] .cv-section-title { font-size: clamp(2.1rem, 3.3vw, 3rem); line-height: 1.05; }
[data-function-layout="moneda-extranjera"] .mo-narrow { max-width: 50rem; }

/* ---------- Superficies ---------- */
/* El guilloché tenue de un billete, para las secciones claras. */
[data-function-layout="moneda-extranjera"] .mo-paper {
    background-color: var(--mo-paper);
    background-image:
        repeating-radial-gradient(circle at 100% 0, transparent 0 22px, rgb(13 110 92 / .07) 22px 23px),
        repeating-radial-gradient(circle at 0 100%, transparent 0 22px, rgb(4 31 73 / .05) 22px 23px);
}
[data-function-layout="moneda-extranjera"] .mo-navy { background: var(--mo-ink); color: #fff; }
[data-function-layout="moneda-extranjera"] .mo-navy .cv-section-title { color: #fff; }
[data-function-layout="moneda-extranjera"] .mo-split { display: grid; gap: 2.5rem 4rem; align-items: center; }
[data-function-layout="moneda-extranjera"] .mo-lead { max-width: 42rem; margin-top: 1.25rem; color: var(--mo-text); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.75; }

/* ---------- Hero ---------- */
[data-function-layout="moneda-extranjera"] #inicio { background: linear-gradient(155deg, #041f49 0%, #0a2c5c 70%, #0f3870 100%); color: #fff; }
[data-function-layout="moneda-extranjera"] #inicio .function-hero__media img { object-position: 65% 50%; }
[data-function-layout="moneda-extranjera"] #inicio .function-hero__overlay {
    background:
        linear-gradient(180deg, transparent 65%, rgb(4 31 73 / .7) 100%),
        linear-gradient(90deg, rgb(4 31 73 / .97) 0%, rgb(4 31 73 / .9) 42%, rgb(10 44 92 / .72) 70%, rgb(15 56 112 / .55) 100%);
}
[data-function-layout="moneda-extranjera"] .rh-hero-layout { position: relative; z-index: 1; align-items: center; }
[data-function-layout="moneda-extranjera"] #inicio .cv-hero-title { max-width: 12ch; color: #fff; font-size: clamp(2.8rem, 5vw, 4.6rem); line-height: 1; }
[data-function-layout="moneda-extranjera"] #inicio .cv-hero-description { max-width: 34rem; margin-top: 1.5rem; color: rgb(255 255 255 / .86); font-size: 1.02rem; }
[data-function-layout="moneda-extranjera"] .mo-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
[data-function-layout="moneda-extranjera"] #inicio .cv-primary-button { border-color: var(--mo-gold); background: var(--mo-gold); color: var(--mo-ink); box-shadow: 0 14px 30px rgb(0 0 0 / .3); }
[data-function-layout="moneda-extranjera"] #inicio .cv-primary-button:hover,
[data-function-layout="moneda-extranjera"] #inicio .cv-primary-button:focus-visible { background: #ffd666; }
[data-function-layout="moneda-extranjera"] #inicio .cv-secondary-button { border-color: rgb(255 255 255 / .7); background: transparent; color: #fff; }
[data-function-layout="moneda-extranjera"] #inicio .cv-secondary-button:hover,
[data-function-layout="moneda-extranjera"] #inicio .cv-secondary-button:focus-visible { background: #fff; color: var(--mo-ink); }
[data-function-layout="moneda-extranjera"] #inicio .cv-primary-button:focus-visible,
[data-function-layout="moneda-extranjera"] #inicio .cv-secondary-button:focus-visible { outline: 3px solid var(--mo-gold); outline-offset: 3px; }

/* El registro de cobro. */
[data-function-layout="moneda-extranjera"] .mo-cobro { position: relative; justify-self: center; width: 100%; max-width: 36rem; min-width: 0; margin: 0; overflow: hidden; border-radius: .6rem; background: #fff; box-shadow: 0 24px 50px rgb(0 0 0 / .35); color: var(--mo-text); font-variant-numeric: tabular-nums; }
[data-function-layout="moneda-extranjera"] .mo-cobro .cv-icon { width: 15px; height: 15px; flex-basis: 15px; flex-shrink: 0; }
[data-function-layout="moneda-extranjera"] .mo-cobro p { margin: 0; }
[data-function-layout="moneda-extranjera"] .mo-input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
[data-function-layout="moneda-extranjera"] .mo-cobro__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .85rem 1rem; background: var(--mo-ink); color: #fff; }
[data-function-layout="moneda-extranjera"] .mo-cobro .mo-cobro__title { display: flex; align-items: center; gap: .45rem; font-family: var(--mo-display); font-size: 1.3rem; font-weight: 700; }
[data-function-layout="moneda-extranjera"] .mo-cobro__title .cv-icon { color: var(--mo-gold); }
[data-function-layout="moneda-extranjera"] .mo-cobro .mo-cobro__tag { padding: .15rem .55rem; border-radius: .3rem; background: rgb(255 255 255 / .12); font-size: .7rem; font-weight: 700; }

/* El tablero: seis fichas de paleta y la moneda elegida en grande. */
[data-function-layout="moneda-extranjera"] .mo-pick { display: grid; gap: .5rem; margin: .8rem 1rem 0; padding: .75rem; border-radius: .5rem; background: var(--mo-ink-2); }
[data-function-layout="moneda-extranjera"] .mo-pick .mo-pick__label { color: rgb(255 255 255 / .75); font-size: .68rem; font-weight: 700; }
[data-function-layout="moneda-extranjera"] .mo-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .3rem; }
[data-function-layout="moneda-extranjera"] .mo-tile { padding: .5rem 0; border-radius: .3rem; background: linear-gradient(180deg, #1c3a68 0 50%, #15315c 50% 100%); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .3); color: #fff; cursor: pointer; font-family: var(--mo-display); font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; text-align: center; transition: background .2s, color .2s; }
[data-function-layout="moneda-extranjera"] .mo-tile:hover { background: linear-gradient(180deg, #27497d 0 50%, #1f416f 50% 100%); }
[data-function-layout="moneda-extranjera"] .mo-flap { display: grid; min-height: 4.4rem; padding: .55rem .8rem; border-radius: .4rem; background: linear-gradient(180deg, #0a2147 0 50%, #071a3a 50% 100%); perspective: 420px; }
[data-function-layout="moneda-extranjera"] .mo-flap__v { display: none; align-items: baseline; gap: .8rem; transform-origin: 50% 0; }
[data-function-layout="moneda-extranjera"] .mo-flap__v b { color: var(--mo-gold); font-family: var(--mo-display); font-size: 2.7rem; font-weight: 700; letter-spacing: .05em; line-height: 1; }
[data-function-layout="moneda-extranjera"] .mo-flap__v small { color: rgb(255 255 255 / .85); font-size: .85rem; font-weight: 600; }

[data-function-layout="moneda-extranjera"] .mo-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; margin: .7rem 1rem 0; }
[data-function-layout="moneda-extranjera"] .mo-field { min-width: 0; padding: .4rem .6rem; border-radius: .3rem; background: var(--mo-paper); box-shadow: inset 3px 0 0 var(--mo-fx); }
[data-function-layout="moneda-extranjera"] .mo-fields .mo-field--wide { grid-column: 1 / -1; }
[data-function-layout="moneda-extranjera"] .mo-field dt { color: var(--mo-muted); font-size: .62rem; font-weight: 700; }
[data-function-layout="moneda-extranjera"] .mo-field dd { margin: .1rem 0 0; color: var(--mo-ink); font-size: .84rem; font-weight: 700; line-height: 1.3; }
[data-function-layout="moneda-extranjera"] .mo-fields .mo-field--doc { background: var(--mo-doc-tint); box-shadow: inset 3px 0 0 var(--mo-doc); }
[data-function-layout="moneda-extranjera"] .mo-fields .mo-field--doc dd { color: var(--mo-doc); }

[data-function-layout="moneda-extranjera"] .mo-rep { margin: .7rem 1rem 0; padding: .6rem .75rem; border-radius: .45rem; background: var(--mo-rep-tint); }
[data-function-layout="moneda-extranjera"] .mo-rep .mo-rep__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem; color: var(--mo-rep); font-size: .76rem; font-weight: 800; }
[data-function-layout="moneda-extranjera"] .mo-rep__row > span:first-child { display: flex; align-items: center; gap: .4rem; }
[data-function-layout="moneda-extranjera"] .mo-rep__currency { display: flex; align-items: center; gap: .4rem; color: var(--mo-muted); font-weight: 700; }
[data-function-layout="moneda-extranjera"] .mo-rep__v { display: none; padding: .05rem .45rem; border-radius: .25rem; background: var(--mo-rep); color: #fff; font-family: var(--mo-display); font-size: .95rem; letter-spacing: .04em; }
[data-function-layout="moneda-extranjera"] .mo-cobro .mo-rep__note { min-height: 2.8em; margin-top: .35rem; color: var(--mo-ink); font-size: .74rem; font-weight: 600; line-height: 1.4; }
[data-function-layout="moneda-extranjera"] .mo-s { display: none; }
[data-function-layout="moneda-extranjera"] .mo-cobro figcaption { padding: .5rem 1rem .8rem; color: var(--mo-muted); font-size: .66rem; line-height: 1.4; }

/* La moneda elegida: su ficha, su paleta, la moneda de pago y su mensaje. */
[data-function-layout="moneda-extranjera"] #mo-c-0:checked ~ .mo-pick .mo-tile--0,
[data-function-layout="moneda-extranjera"] #mo-c-1:checked ~ .mo-pick .mo-tile--1,
[data-function-layout="moneda-extranjera"] #mo-c-2:checked ~ .mo-pick .mo-tile--2,
[data-function-layout="moneda-extranjera"] #mo-c-3:checked ~ .mo-pick .mo-tile--3,
[data-function-layout="moneda-extranjera"] #mo-c-4:checked ~ .mo-pick .mo-tile--4,
[data-function-layout="moneda-extranjera"] #mo-c-5:checked ~ .mo-pick .mo-tile--5 { background: linear-gradient(180deg, var(--mo-gold) 0 50%, var(--mo-gold-2) 50% 100%); color: var(--mo-ink); }
[data-function-layout="moneda-extranjera"] #mo-c-0:checked ~ .mo-pick .mo-flap__v--0,
[data-function-layout="moneda-extranjera"] #mo-c-1:checked ~ .mo-pick .mo-flap__v--1,
[data-function-layout="moneda-extranjera"] #mo-c-2:checked ~ .mo-pick .mo-flap__v--2,
[data-function-layout="moneda-extranjera"] #mo-c-3:checked ~ .mo-pick .mo-flap__v--3,
[data-function-layout="moneda-extranjera"] #mo-c-4:checked ~ .mo-pick .mo-flap__v--4,
[data-function-layout="moneda-extranjera"] #mo-c-5:checked ~ .mo-pick .mo-flap__v--5 { display: flex; }
[data-function-layout="moneda-extranjera"] #mo-c-0:checked ~ .mo-rep .mo-rep__v--0,
[data-function-layout="moneda-extranjera"] #mo-c-1:checked ~ .mo-rep .mo-rep__v--1,
[data-function-layout="moneda-extranjera"] #mo-c-2:checked ~ .mo-rep .mo-rep__v--2,
[data-function-layout="moneda-extranjera"] #mo-c-3:checked ~ .mo-rep .mo-rep__v--3,
[data-function-layout="moneda-extranjera"] #mo-c-4:checked ~ .mo-rep .mo-rep__v--4,
[data-function-layout="moneda-extranjera"] #mo-c-5:checked ~ .mo-rep .mo-rep__v--5 { display: inline-block; }
[data-function-layout="moneda-extranjera"] #mo-c-0:checked ~ .mo-rep .mo-s--0,
[data-function-layout="moneda-extranjera"] #mo-c-1:checked ~ .mo-rep .mo-s--1,
[data-function-layout="moneda-extranjera"] #mo-c-2:checked ~ .mo-rep .mo-s--2,
[data-function-layout="moneda-extranjera"] #mo-c-3:checked ~ .mo-rep .mo-s--3,
[data-function-layout="moneda-extranjera"] #mo-c-4:checked ~ .mo-rep .mo-s--4,
[data-function-layout="moneda-extranjera"] #mo-c-5:checked ~ .mo-rep .mo-s--5 { display: inline; }
[data-function-layout="moneda-extranjera"] #mo-c-0:focus-visible ~ .mo-pick .mo-tile--0,
[data-function-layout="moneda-extranjera"] #mo-c-1:focus-visible ~ .mo-pick .mo-tile--1,
[data-function-layout="moneda-extranjera"] #mo-c-2:focus-visible ~ .mo-pick .mo-tile--2,
[data-function-layout="moneda-extranjera"] #mo-c-3:focus-visible ~ .mo-pick .mo-tile--3,
[data-function-layout="moneda-extranjera"] #mo-c-4:focus-visible ~ .mo-pick .mo-tile--4,
[data-function-layout="moneda-extranjera"] #mo-c-5:focus-visible ~ .mo-pick .mo-tile--5 { outline: 3px solid var(--mo-gold); outline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
    [data-function-layout="moneda-extranjera"] #inicio .function-hero__media img { animation: mo-zoom 18s ease-out both; }
    /* Al elegir moneda, la paleta gira a su lugar y el mensaje entra. */
    [data-function-layout="moneda-extranjera"] .mo-flap__v { animation: mo-flip .5s var(--mo-ease) backwards; }
    [data-function-layout="moneda-extranjera"] .mo-s { animation: mo-tick .3s var(--mo-ease) backwards; }
}

/* ---------- 1. Del selector al registro del cobro ---------- */
[data-function-layout="moneda-extranjera"] .mo-record { display: grid; grid-template-columns: minmax(0, 1fr) 2rem minmax(0, 1.15fr); align-items: center; gap: .5rem; margin: 0; padding: 1.3rem; border-radius: .6rem; background: var(--mo-paper); }
[data-function-layout="moneda-extranjera"] .mo-record p { margin: 0; }
[data-function-layout="moneda-extranjera"] .mo-record__list,
[data-function-layout="moneda-extranjera"] .mo-record__card { display: grid; gap: .35rem; }
[data-function-layout="moneda-extranjera"] .mo-record .mo-record__head { display: flex; align-items: center; gap: .4rem; margin-bottom: .2rem; color: var(--mo-muted); font-size: .8rem; font-weight: 700; }
[data-function-layout="moneda-extranjera"] .mo-record__head .cv-icon { width: 16px; height: 16px; flex-basis: 16px; color: var(--mo-fx); }
[data-function-layout="moneda-extranjera"] .mo-record .mo-record__cur { display: flex; align-items: center; gap: .6rem; padding: .3rem .4rem; border-radius: .4rem; color: var(--mo-muted); font-size: .84rem; font-weight: 600; }
[data-function-layout="moneda-extranjera"] .mo-record__cur b { flex: 0 0 3.2rem; padding: .25rem 0; border-radius: .3rem; background: linear-gradient(180deg, #1c3a68 0 50%, #15315c 50% 100%); color: #fff; font-family: var(--mo-display); font-size: 1rem; letter-spacing: .04em; text-align: center; }
[data-function-layout="moneda-extranjera"] .mo-record .mo-record__cur--on { background: #fff; box-shadow: inset 0 0 0 1.5px var(--mo-fx); color: var(--mo-ink); }
[data-function-layout="moneda-extranjera"] .mo-record__cur--on b { background: linear-gradient(180deg, var(--mo-gold) 0 50%, var(--mo-gold-2) 50% 100%); color: var(--mo-ink); }
[data-function-layout="moneda-extranjera"] .mo-record__go { display: grid; place-items: center; color: var(--mo-fx); font-style: normal; }
[data-function-layout="moneda-extranjera"] .mo-record__go .cv-icon { width: 22px; height: 22px; flex-basis: 22px; }
[data-function-layout="moneda-extranjera"] .mo-record__card { padding: 1rem; border-radius: .5rem; background: #fff; box-shadow: inset 0 3px 0 var(--mo-fx), 0 12px 28px rgb(4 31 73 / .08); }
[data-function-layout="moneda-extranjera"] .mo-record .mo-record__item { display: flex; align-items: center; gap: .5rem; padding: .35rem .5rem; border-radius: .3rem; color: var(--mo-ink); font-size: .95rem; font-weight: 600; }
[data-function-layout="moneda-extranjera"] .mo-record__item .cv-icon { width: 15px; height: 15px; flex-basis: 15px; color: var(--mo-fx); }
[data-function-layout="moneda-extranjera"] .mo-record .mo-record__item--on { background: var(--mo-fx-tint); color: var(--mo-fx); font-family: var(--mo-display); font-size: 1.15rem; font-weight: 700; }

/* ---------- 4. La factura en MXN, el cobro en USD y el complemento ---------- */
[data-function-layout="moneda-extranjera"] .mo-bridge { display: grid; gap: .9rem; margin: 0; padding: 1.3rem; border-radius: .6rem; background: #fff; box-shadow: 0 1px 0 var(--mo-rule), 0 14px 34px rgb(4 31 73 / .08); }
[data-function-layout="moneda-extranjera"] .mo-bridge p { margin: 0; }
[data-function-layout="moneda-extranjera"] .mo-bridge__pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .6rem; }
[data-function-layout="moneda-extranjera"] .mo-bridge__card { display: grid; gap: .3rem; padding: .9rem; border-radius: .5rem; }
[data-function-layout="moneda-extranjera"] .mo-bridge__card--doc { background: var(--mo-doc-tint); box-shadow: inset 0 0 0 1.5px var(--mo-doc); }
[data-function-layout="moneda-extranjera"] .mo-bridge__card--pay { background: var(--mo-fx-tint); box-shadow: inset 0 0 0 1.5px var(--mo-fx); }
[data-function-layout="moneda-extranjera"] .mo-bridge .mo-bridge__label { display: flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 800; }
[data-function-layout="moneda-extranjera"] .mo-bridge__label .cv-icon { width: 15px; height: 15px; flex-basis: 15px; flex-shrink: 0; }
[data-function-layout="moneda-extranjera"] .mo-bridge__card--doc .mo-bridge__label { color: var(--mo-doc); }
[data-function-layout="moneda-extranjera"] .mo-bridge__card--pay .mo-bridge__label { color: var(--mo-fx); }
[data-function-layout="moneda-extranjera"] .mo-bridge .mo-bridge__name { color: var(--mo-ink); font-size: .92rem; font-weight: 700; }
[data-function-layout="moneda-extranjera"] .mo-bridge .mo-bridge__code { display: grid; color: var(--mo-ink); font-family: var(--mo-display); font-size: 2.4rem; font-weight: 700; letter-spacing: .04em; line-height: 1; }
[data-function-layout="moneda-extranjera"] .mo-bridge__code small { color: var(--mo-muted); font-family: Inter, sans-serif; font-size: .66rem; font-weight: 700; letter-spacing: 0; }
[data-function-layout="moneda-extranjera"] .mo-bridge .mo-bridge__diff { display: grid; justify-items: center; gap: .3rem; max-width: 6rem; color: var(--mo-muted); font-size: .72rem; font-weight: 700; text-align: center; }
[data-function-layout="moneda-extranjera"] .mo-bridge__diff .cv-icon { box-sizing: content-box; width: 20px; height: 20px; padding: .55rem; border-radius: 50%; background: var(--mo-gold); color: var(--mo-ink); }
[data-function-layout="moneda-extranjera"] .mo-bridge__rep { padding: .9rem; border-radius: .5rem; background: var(--mo-rep-tint); }
[data-function-layout="moneda-extranjera"] .mo-bridge__rep .mo-bridge__label { color: var(--mo-rep); }
[data-function-layout="moneda-extranjera"] .mo-bridge__rep dl { display: grid; gap: .35rem; margin: .55rem 0 0; }
[data-function-layout="moneda-extranjera"] .mo-bridge__rep dl > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .6rem; padding: .45rem .6rem; border-radius: .3rem; background: #fff; }
[data-function-layout="moneda-extranjera"] .mo-bridge__rep dt { color: var(--mo-muted); font-size: .8rem; font-weight: 700; }
[data-function-layout="moneda-extranjera"] .mo-bridge__rep dd { margin: 0; color: var(--mo-ink); font-size: .9rem; font-weight: 700; }
[data-function-layout="moneda-extranjera"] .mo-callout { grid-column: 1 / -1; padding: 1.1rem 1.2rem; border-radius: .5rem; background: #fff; box-shadow: inset 4px 0 0 var(--mo-gold); }
[data-function-layout="moneda-extranjera"] .mo-callout .mo-callout__title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .45rem; color: var(--mo-ink); font-family: var(--mo-display); font-size: 1.4rem; font-weight: 700; }
[data-function-layout="moneda-extranjera"] .mo-callout__title .cv-icon { width: 18px; height: 18px; flex-basis: 18px; flex-shrink: 0; color: var(--mo-fx); }
[data-function-layout="moneda-extranjera"] .mo-callout p:not(.mo-callout__title) { max-width: 60rem; margin: 0; color: var(--mo-text); font-size: 1rem; line-height: 1.6; }

/* ---------- 6. Tres orígenes, una consulta ---------- */
[data-function-layout="moneda-extranjera"] .mo-merge { display: grid; gap: 1rem; margin: 0; padding: 1.3rem; border-radius: .6rem; background: var(--mo-paper); }
[data-function-layout="moneda-extranjera"] .mo-merge p { margin: 0; }
[data-function-layout="moneda-extranjera"] .mo-merge__sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
[data-function-layout="moneda-extranjera"] .mo-merge .mo-merge__source { position: relative; display: grid; align-content: start; gap: .2rem; padding: .8rem; border-radius: .45rem; background: #fff; box-shadow: inset 0 3px 0 var(--mo-ink); color: var(--mo-muted); font-size: .8rem; font-weight: 600; line-height: 1.35; }
[data-function-layout="moneda-extranjera"] .mo-merge__source:nth-child(2) { box-shadow: inset 0 3px 0 var(--mo-doc); }
[data-function-layout="moneda-extranjera"] .mo-merge__source:nth-child(3) { box-shadow: inset 0 3px 0 var(--mo-fx); }
/* El tramo que baja de cada origen a Crédito y cobranza. */
[data-function-layout="moneda-extranjera"] .mo-merge__source::after { content: ""; position: absolute; bottom: -1rem; left: 50%; height: 1rem; border-left: 2px dashed var(--mo-line); }
[data-function-layout="moneda-extranjera"] .mo-merge__source > span { display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: .2rem; border-radius: .4rem; background: var(--mo-paper); color: var(--mo-ink); }
[data-function-layout="moneda-extranjera"] .mo-merge__source .cv-icon { width: 16px; height: 16px; flex-basis: 16px; }
[data-function-layout="moneda-extranjera"] .mo-merge__source b { color: var(--mo-ink); font-family: var(--mo-display); font-size: 1.15rem; font-weight: 700; }
[data-function-layout="moneda-extranjera"] .mo-merge .mo-merge__target { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); align-items: center; gap: 0 .8rem; padding: .9rem 1rem; border-radius: .5rem; background: var(--mo-ink); color: rgb(255 255 255 / .8); font-size: .84rem; font-weight: 600; }
[data-function-layout="moneda-extranjera"] .mo-merge__target > span { display: grid; grid-row: span 2; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .45rem; background: var(--mo-gold); color: var(--mo-ink); }
[data-function-layout="moneda-extranjera"] .mo-merge__target .cv-icon { width: 18px; height: 18px; flex-basis: 18px; }
[data-function-layout="moneda-extranjera"] .mo-merge__target b { color: #fff; font-family: var(--mo-display); font-size: 1.3rem; font-weight: 700; }

/* ---------- 2. Problemas ---------- */
[data-function-layout="moneda-extranjera"] .mo-benefits { display: grid; gap: 1.5rem 3rem; margin: 2.25rem 0 0; padding: 0; list-style: none; }
[data-function-layout="moneda-extranjera"] .mo-benefits li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; align-items: start; padding-top: 1.25rem; border-top: 3px solid var(--mo-fx); }
[data-function-layout="moneda-extranjera"] .mo-benefits__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .45rem; background: var(--mo-fx-tint); color: var(--mo-fx); }
[data-function-layout="moneda-extranjera"] .mo-benefits__icon .cv-icon { width: 22px; height: 22px; flex-basis: 22px; }
[data-function-layout="moneda-extranjera"] .mo-benefits p { margin: .3rem 0 0; color: var(--mo-ink); font-size: 1.125rem; font-weight: 600; line-height: 1.5; }

/* ---------- 3. Tabla de capacidades ---------- */
[data-function-layout="moneda-extranjera"] .mo-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
[data-function-layout="moneda-extranjera"] .mo-table--data { margin-top: 1.6rem; }
[data-function-layout="moneda-extranjera"] .mo-table thead th { padding: .8rem 1rem; border-bottom: 3px solid var(--mo-rule); color: var(--mo-muted); font-size: .95rem; font-weight: 700; text-align: left; }
[data-function-layout="moneda-extranjera"] .mo-table--data thead th:first-child { width: 34%; }
[data-function-layout="moneda-extranjera"] .mo-table tbody th,
[data-function-layout="moneda-extranjera"] .mo-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--mo-rule); font-size: 1.02rem; line-height: 1.5; text-align: left; vertical-align: top; }
[data-function-layout="moneda-extranjera"] .mo-table tbody th { color: var(--mo-ink); font-family: var(--mo-display); font-size: 1.3rem; font-weight: 700; }
[data-function-layout="moneda-extranjera"] .mo-table td { color: var(--mo-muted); font-weight: 500; }
[data-function-layout="moneda-extranjera"] .mo-table__icon { display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-right: .6rem; border-radius: .4rem; background: var(--mo-ink); color: var(--mo-gold); vertical-align: -.45rem; }
[data-function-layout="moneda-extranjera"] .mo-table__icon .cv-icon { width: 16px; height: 16px; flex-basis: 16px; }

/* ---------- 5. Los pasos ---------- */
[data-function-layout="moneda-extranjera"] .mo-steps { display: grid; gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
[data-function-layout="moneda-extranjera"] .mo-steps li { display: grid; align-content: start; gap: .55rem; padding: 1.1rem 1.2rem; border-radius: .5rem; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .18); }
[data-function-layout="moneda-extranjera"] .mo-steps__head { display: flex; align-items: center; justify-content: space-between; margin: 0; }
[data-function-layout="moneda-extranjera"] .mo-steps__head i { color: var(--mo-gold); font-family: var(--mo-display); font-size: 2.2rem; font-style: normal; font-weight: 700; line-height: 1; }
[data-function-layout="moneda-extranjera"] .mo-steps__icon { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: .4rem; background: var(--mo-gold); color: var(--mo-ink); }
[data-function-layout="moneda-extranjera"] .mo-steps__icon .cv-icon { width: 17px; height: 17px; flex-basis: 17px; }
[data-function-layout="moneda-extranjera"] .mo-steps b { color: #fff; font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
[data-function-layout="moneda-extranjera"] .mo-steps__result { margin: 0; padding: .55rem .7rem; border-radius: .35rem; background: rgb(255 255 255 / .08); box-shadow: inset 3px 0 0 var(--mo-gold); color: #fff; font-size: .94rem; line-height: 1.45; }
[data-function-layout="moneda-extranjera"] .mo-steps__result small { display: block; color: rgb(255 255 255 / .7); font-size: .78rem; font-weight: 700; }

/* ---------- 7. Contenido relacionado ---------- */
[data-function-layout="moneda-extranjera"] .mo-related { display: grid; gap: .8rem; margin-top: 1.6rem; }
[data-function-layout="moneda-extranjera"] .mo-related__link { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: .55rem; background: #fff; box-shadow: inset 0 0 0 1.5px var(--mo-ink); color: var(--mo-ink); text-decoration: none; transition: box-shadow .2s; }
[data-function-layout="moneda-extranjera"] .mo-related__link:hover { box-shadow: inset 0 0 0 2.5px var(--mo-ink); }
[data-function-layout="moneda-extranjera"] .mo-related__link:focus-visible { outline: 3px solid var(--mo-ink); outline-offset: 3px; }
[data-function-layout="moneda-extranjera"] .mo-related__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .45rem; background: var(--mo-fx-tint); color: var(--mo-fx); }
[data-function-layout="moneda-extranjera"] .mo-related__icon .cv-icon { width: 22px; height: 22px; flex-basis: 22px; }
[data-function-layout="moneda-extranjera"] .mo-related__link b { display: block; font-family: var(--mo-display); font-size: 1.3rem; font-weight: 700; }
[data-function-layout="moneda-extranjera"] .mo-related__link small { display: block; margin-top: .2rem; color: var(--mo-muted); font-size: .92rem; font-weight: 500; line-height: 1.45; }
[data-function-layout="moneda-extranjera"] .mo-related__go .cv-icon { width: 20px; height: 20px; flex-basis: 20px; }

/* ---------- Entradas al hacer scroll: una distinta por figura ---------- */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        /* Lo que conserva el cobro entra renglón por renglón. */
        [data-function-layout="moneda-extranjera"] .mo-record__item { animation: mo-from-left linear both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
        /* La factura y el cobro se acercan desde los lados. */
        [data-function-layout="moneda-extranjera"] .mo-bridge__card--doc { animation: mo-from-left linear both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
        [data-function-layout="moneda-extranjera"] .mo-bridge__card--pay { animation: mo-from-right linear both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
        [data-function-layout="moneda-extranjera"] .mo-bridge__rep dl > div { animation: mo-rise linear both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
        /* Los pasos suben. */
        [data-function-layout="moneda-extranjera"] .mo-steps li { animation: mo-rise linear both; animation-timeline: view(); animation-range: entry 5% cover 25%; }
        /* Los orígenes bajan a la consulta. */
        [data-function-layout="moneda-extranjera"] .mo-merge__source { animation: mo-down linear both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
    }
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
    [data-function-layout="moneda-extranjera"] .mo-benefits,
    [data-function-layout="moneda-extranjera"] .mo-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    [data-function-layout="moneda-extranjera"] .mo-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    [data-function-layout="moneda-extranjera"] .rh-hero-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    [data-function-layout="moneda-extranjera"] .mo-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    [data-function-layout="moneda-extranjera"] .mo-related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    [data-function-layout="moneda-extranjera"] .mo-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
    [data-function-layout="moneda-extranjera"] #inicio .function-hero__overlay { background: linear-gradient(180deg, rgb(4 31 73 / .95) 0%, rgb(4 31 73 / .86) 50%, rgb(10 44 92 / .7) 100%); }
    [data-function-layout="moneda-extranjera"] #inicio .cv-hero-title { max-width: none; }
}
@media (max-width: 767px) {
    [data-function-layout="moneda-extranjera"] .mo-hero__actions > * { width: 100%; }
    [data-function-layout="moneda-extranjera"] .mo-cobro__top { padding-right: .7rem; padding-left: .7rem; }
    [data-function-layout="moneda-extranjera"] .mo-pick,
    [data-function-layout="moneda-extranjera"] .mo-fields,
    [data-function-layout="moneda-extranjera"] .mo-rep { margin-right: .7rem; margin-left: .7rem; }
    [data-function-layout="moneda-extranjera"] .mo-pick { padding: .55rem; }
    [data-function-layout="moneda-extranjera"] .mo-tiles { gap: .2rem; }
    [data-function-layout="moneda-extranjera"] .mo-tile { font-size: .9rem; }
    [data-function-layout="moneda-extranjera"] .mo-flap { min-height: 3.6rem; }
    [data-function-layout="moneda-extranjera"] .mo-flap__v b { font-size: 2.1rem; }
    [data-function-layout="moneda-extranjera"] .mo-flap__v small { font-size: .76rem; }
    [data-function-layout="moneda-extranjera"] .mo-field dd { font-size: .78rem; }
    [data-function-layout="moneda-extranjera"] .mo-record,
    [data-function-layout="moneda-extranjera"] .mo-bridge,
    [data-function-layout="moneda-extranjera"] .mo-merge { padding: 1rem; }
    [data-function-layout="moneda-extranjera"] .mo-record { grid-template-columns: minmax(0, 1fr); }
    [data-function-layout="moneda-extranjera"] .mo-record__go { transform: rotate(90deg); }
    [data-function-layout="moneda-extranjera"] .mo-bridge__pair { grid-template-columns: minmax(0, 1fr); }
    [data-function-layout="moneda-extranjera"] .mo-bridge .mo-bridge__diff { grid-auto-flow: column; align-items: center; justify-content: center; gap: .6rem; max-width: none; }
    [data-function-layout="moneda-extranjera"] .mo-bridge__diff .cv-icon { transform: rotate(90deg); }
    [data-function-layout="moneda-extranjera"] .mo-bridge__rep dl > div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
    [data-function-layout="moneda-extranjera"] .mo-merge__sources { grid-template-columns: minmax(0, 1fr); }
    [data-function-layout="moneda-extranjera"] .mo-merge__source::after { display: none; }
    [data-function-layout="moneda-extranjera"] .mo-merge__sources .mo-merge__source:last-child::after { display: block; }
    [data-function-layout="moneda-extranjera"] .mo-table--data thead { display: none; }
    [data-function-layout="moneda-extranjera"] .mo-table--data,
    [data-function-layout="moneda-extranjera"] .mo-table--data tbody,
    [data-function-layout="moneda-extranjera"] .mo-table--data tr,
    [data-function-layout="moneda-extranjera"] .mo-table--data tbody th,
    [data-function-layout="moneda-extranjera"] .mo-table--data td { display: block; width: 100%; }
    [data-function-layout="moneda-extranjera"] .mo-table--data tr { padding: .75rem .25rem; border-bottom: 1px solid var(--mo-rule); }
    [data-function-layout="moneda-extranjera"] .mo-table--data tbody th,
    [data-function-layout="moneda-extranjera"] .mo-table--data td { padding: .3rem 0; border: 0; }
    [data-function-layout="moneda-extranjera"] .mo-related__link { grid-template-columns: 3rem minmax(0, 1fr); }
    [data-function-layout="moneda-extranjera"] .mo-related__go { display: none; }
}

@keyframes mo-zoom { from { transform: scale(1.08); } }
@keyframes mo-flip { from { opacity: .3; transform: rotateX(-90deg); } }
@keyframes mo-tick { from { opacity: 0; transform: translateY(-.35rem); } }
@keyframes mo-rise { from { opacity: 0; transform: translateY(1rem); } }
@keyframes mo-down { from { opacity: 0; transform: translateY(-.8rem); } }
@keyframes mo-from-left { from { opacity: 0; transform: translateX(-1.5rem); } }
@keyframes mo-from-right { from { opacity: 0; transform: translateX(1.5rem); } }
