/* ==========================================================================
   De la Fuente · Agencia de Aduanas — sistema base
   Paleta del cliente + sistema editorial (Fraunces + Manrope).
   Técnicas: premium-editorial-navy, notch-card y svg-draw-in.
   ========================================================================== */

:root {
    /* Paleta entregada por el cliente */
    --c1: #E3F6F5;
    --c2: #A7E0DB;
    --c3: #5FB0C9;
    --c4: #3E6D9C;
    --c5: #2A2F63;

    /* Roles derivados */
    --ink: #161a3b;
    --navy: var(--c5);
    --navy-2: #23285a;
    --navy-3: #1a1e46;
    --navy-4: #12153a;
    --paper: #f3faf9;
    --muted: #535c83;
    --on-dark: #eef7f6;
    --on-dark-2: #c3c9e5;
    --on-dark-3: #9ba4cc;

    --line: rgba(42, 47, 99, .11);
    --line-strong: rgba(42, 47, 99, .2);
    --line-dark: rgba(255, 255, 255, .13);

    --shadow: 0 34px 70px -36px rgba(18, 21, 58, .55);
    --shadow-sm: 0 18px 40px -24px rgba(18, 21, 58, .5);
    --shadow-xs: 0 6px 18px -10px rgba(18, 21, 58, .3);
    --glow: 0 16px 32px -16px rgba(167, 224, 219, .95);
    --glow-navy: 0 16px 30px -16px rgba(42, 47, 99, .8);

    --maxw: 1200px;
    --gutter: clamp(20px, 4vw, 32px);
    --r: 18px;
    --r-lg: 26px;
    --r-sm: 12px;
    --header-h: 78px;

    --ease: cubic-bezier(.65, 0, .35, 1);
    --ease-out: cubic-bezier(.22, 1, .36, 1);

    --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;

    /* Isotipo sobre fondo claro */
    --marca-d: var(--c5);
    --marca-m: var(--c4);
    --marca-l: var(--c3);

    /* Color detrás de las notch-cards (lo redefine cada sección) */
    --bleed: #fff;

    /* Formas de muesca cóncava (notch-card) según la esquina que rellenan */
    --muesca-sup-izq: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M0 0h12C5.373 0 0 5.373 0 12V0z'/%3E%3C/svg%3E");
    --muesca-inf-izq: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M0 12h12C5.373 12 0 6.627 0 0v12z'/%3E%3C/svg%3E");
}

/* ---- Base ------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.62;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 560;
    line-height: 1.08;
    letter-spacing: -.015em;
    color: var(--ink);
}

h1 em, h2 em, h3 em {
    font-style: italic;
    font-weight: 480;
    color: var(--c4);
}

:focus-visible {
    outline: 2px solid var(--c3);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection { background: var(--c2); color: var(--navy); }

.df-skip {
    position: fixed;
    left: 14px;
    top: -80px;
    z-index: 3000;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    transition: top .2s var(--ease-out);
}
.df-skip:focus { top: 14px; }

.df-sr {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.df-icono { width: 20px; height: 20px; flex: none; }

/* ---- Layout ----------------------------------------------------------- */

.df-wrap {
    width: 100%;
    max-width: calc(var(--maxw) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.df-section {
    position: relative;
    padding-block: clamp(76px, 9vw, 116px);
}
.df-section.is-tight { padding-block: clamp(56px, 7vw, 84px); }
.df-section.is-paper { background: var(--paper); --bleed: var(--paper); }
.df-section.is-mint { background: var(--c1); --bleed: var(--c1); }
.df-section.is-dark {
    background: var(--navy);
    color: var(--on-dark);
    --bleed: var(--navy);
    isolation: isolate;
    overflow: hidden;
}
.df-section.is-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(90% 80% at 50% 0%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(90% 80% at 50% 0%, #000 20%, transparent 75%);
}
.df-section.is-dark::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 620px; height: 620px;
    right: -200px; top: -280px;
    background: radial-gradient(circle, rgba(95, 176, 201, .28), transparent 62%);
    pointer-events: none;
}

.df-head { max-width: 700px; margin-bottom: clamp(40px, 5vw, 60px); }
.df-head h2 { margin-top: 18px; font-size: clamp(2.05rem, 3.9vw, 3.15rem); }
.df-head p { margin-top: 18px; max-width: 58ch; color: var(--muted); font-size: 1.08rem; }
.df-head.is-center { margin-inline: auto; text-align: center; }
.df-head.is-center .df-eyebrow { justify-content: center; }
.df-head.is-center p { margin-inline: auto; }
.df-head.is-split {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: end;
}
.df-head.is-split h2 { max-width: 18ch; }
.df-head.is-split p { margin-top: 0; padding-bottom: 6px; }
.is-dark .df-head h2 { color: #fff; }
.is-dark .df-head p { color: var(--on-dark-2); }
.is-dark h2 em, .is-dark h3 em { color: var(--c2); }

/* ---- Eyebrow (obligatorio en cada sección) ---------------------------- */

.df-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .75em;
    font-family: var(--font-sans);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .22em;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--c4);
}
.df-eyebrow::before {
    content: "";
    flex: none;
    width: 28px;
    height: 1.5px;
    background: var(--c3);
}
.df-eyebrow.on-dark, .is-dark .df-eyebrow { color: var(--c2); }

/* ---- Botones y enlaces ------------------------------------------------ */

.df-btn {
    --btn-bg: var(--navy);
    --btn-fg: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6em;
    min-height: 52px;
    padding: 14px 26px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-sans);
    font-size: .97rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .005em;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .22s var(--ease-out), box-shadow .22s, background-color .22s, color .22s, border-color .22s;
}
.df-btn .df-icono { width: 18px; height: 18px; }
.df-btn .df-icono-mover { transition: transform .25s var(--ease-out); }
.df-btn:hover { transform: translateY(-2px); }
.df-btn:hover .df-icono-mover { transform: translateX(3px); }
.df-btn:active { transform: translateY(0); }

.df-btn-aqua { --btn-bg: var(--c2); --btn-fg: var(--navy); box-shadow: var(--glow); }
.df-btn-aqua:hover { --btn-bg: #bfeae6; }
.df-btn-navy { box-shadow: var(--glow-navy); }
.df-btn-navy:hover { --btn-bg: var(--c4); }
.df-btn-ghost { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, .3); }
.df-btn-ghost:hover { --btn-bg: rgba(255, 255, 255, .08); border-color: #fff; }
.df-btn-outline { --btn-bg: transparent; --btn-fg: var(--navy); border-color: var(--line-strong); }
.df-btn-outline:hover { border-color: var(--navy); }
.df-btn-sm { min-height: 44px; padding: 11px 20px; font-size: .9rem; }
.df-btn-block { width: 100%; }
.df-btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.df-link {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding-bottom: 3px;
    border-bottom: 1.5px solid transparent;
    color: var(--c4);
    font-weight: 700;
    transition: gap .22s var(--ease-out), border-color .22s, color .22s;
}
.df-link .df-icono { width: 18px; height: 18px; }
.df-link:hover { gap: .8em; color: var(--navy); border-color: currentColor; }
.is-dark .df-link { color: var(--c2); }
.is-dark .df-link:hover { color: #fff; }

/* ---- Chips, píldoras y listas ------------------------------------------ */

.df-chip {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: 8px 14px;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: var(--on-dark);
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.2;
}
.df-chip .df-icono { width: 15px; height: 15px; color: var(--c2); }
.df-chip.on-light { background: #fff; border-color: var(--line); color: var(--ink); }
.df-chip.on-light .df-icono { color: var(--c4); }

.df-pill {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    padding: 9px 14px;
    border-radius: 11px;
    background: var(--navy);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}
.df-pill.is-aqua { background: var(--c2); color: var(--navy); }
.df-pill.is-mint { background: var(--c1); color: var(--navy); }
.df-pill.is-steel { background: var(--c4); color: #fff; }

.df-lista-check { display: grid; gap: 10px; }
.df-lista-check li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ink);
    font-size: .97rem;
    font-weight: 600;
}
.df-lista-check .df-icono {
    width: 22px; height: 22px;
    padding: 4px;
    border-radius: 50%;
    background: var(--c1);
    color: var(--c4);
    stroke-width: 2.4;
}

.df-monograma {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px; height: 46px;
    border-radius: 14px;
    background: linear-gradient(140deg, var(--navy), var(--c4));
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .02em;
}

/* ---- Cards ------------------------------------------------------------- */

.df-card {
    position: relative;
    padding: 30px 28px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: #fff;
    transition: transform .28s var(--ease-out), box-shadow .28s, border-color .28s;
}
.df-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: transparent; }
.df-card h3 { font-size: 1.35rem; color: var(--navy); }
.df-card p { margin-top: 10px; color: var(--muted); font-size: .98rem; }

.df-card-icono {
    display: grid;
    place-items: center;
    width: 54px; height: 54px;
    margin-bottom: 20px;
    border: 1px solid rgba(95, 176, 201, .35);
    border-radius: 15px;
    background: linear-gradient(140deg, var(--c1), #fff);
    color: var(--c4);
}
.df-card-icono .df-icono { width: 26px; height: 26px; }

/* ---- Notch card (pestaña recortada con esquinas cóncavas) --------------- */

.df-notch {
    --radius: 20px;
    --gap: 8px;
    --muesca: 14px;
    position: relative;
}
.df-notch-tab {
    position: absolute;
    z-index: 3;
    background: var(--bleed);
}
.df-notch-tab::before,
.df-notch-tab::after {
    content: "";
    position: absolute;
    width: var(--muesca);
    height: var(--muesca);
    background: var(--bleed);
    -webkit-mask: var(--forma) no-repeat;
    mask: var(--forma) no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}
/* Pestaña en la esquina inferior izquierda */
.df-notch-tab.is-bl {
    left: 0; bottom: 0;
    padding: var(--gap) var(--gap) 0 0;
    border-top-right-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
}
.df-notch-tab.is-bl::before { left: 0; bottom: 100%; --forma: var(--muesca-inf-izq); }
.df-notch-tab.is-bl::after { left: 100%; bottom: 0; --forma: var(--muesca-inf-izq); }
/* Pestaña en la esquina superior izquierda */
.df-notch-tab.is-tl {
    left: 0; top: 0;
    padding: 0 var(--gap) var(--gap) 0;
    border-bottom-right-radius: var(--radius);
    border-top-left-radius: var(--radius);
}
.df-notch-tab.is-tl::before { left: 0; top: 100%; --forma: var(--muesca-sup-izq); }
.df-notch-tab.is-tl::after { left: 100%; top: 0; --forma: var(--muesca-sup-izq); }

/* ---- Isotipo ----------------------------------------------------------- */

.df-marca .df-marca-d { fill: var(--marca-d); }
.df-marca .df-marca-m { fill: var(--marca-m); }
.df-marca .df-marca-l { fill: var(--marca-l); }

.df-marca-trazo path {
    stroke: currentColor;
    stroke-width: .45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---- Hero de páginas internas ------------------------------------------ */

.df-page-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(120% 150% at 88% -20%, #3d5196 0%, var(--navy) 44%, var(--navy-3) 100%);
    color: #fff;
}
.df-page-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 560px; height: 560px;
    right: -120px; top: -240px;
    background: radial-gradient(circle, rgba(95, 176, 201, .3), transparent 62%);
}
.df-page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, #000 30%, transparent);
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent);
}
.df-page-hero .df-wrap {
    position: relative;
    padding-block: clamp(56px, 8vw, 96px) clamp(56px, 7vw, 84px);
}
.df-page-hero h1 {
    max-width: 17ch;
    margin-top: 18px;
    color: #fff;
    font-size: clamp(2.45rem, 5.6vw, 4.2rem);
    line-height: 1.03;
    letter-spacing: -.02em;
}
.df-page-hero h1 em { color: var(--c2); }
.df-page-hero-bajada {
    max-width: 56ch;
    margin-top: 20px;
    color: var(--on-dark-2);
    font-size: 1.14rem;
}
.df-page-hero-marca {
    position: absolute;
    z-index: 0;
    right: max(-60px, calc((100vw - var(--maxw)) / 2 - 140px));
    top: 50%;
    height: 135%;
    width: auto;
    transform: translateY(-50%);
    color: rgba(167, 224, 219, .2);
    pointer-events: none;
}
.df-page-hero-marca path { stroke-width: .28; }
.df-page-hero-anclas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}
.df-page-hero-anclas .df-chip { transition: background-color .2s, border-color .2s; }
.df-page-hero-anclas .df-chip:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }
.df-page-hero-anclas .df-icono { width: 14px; height: 14px; }

.df-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6em;
    margin-bottom: 26px;
    color: var(--on-dark-3);
    font-size: .85rem;
    font-weight: 600;
}
.df-crumbs a { transition: color .15s; }
.df-crumbs a:hover { color: #fff; }
.df-crumbs [aria-current] { color: var(--on-dark); }

/* ---- Banda CTA --------------------------------------------------------- */

.df-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: clamp(40px, 6vw, 68px) clamp(28px, 5vw, 64px);
    border-radius: 30px;
    background: linear-gradient(118deg, var(--navy) 0%, #323d7c 58%, var(--c4) 135%);
    color: #fff;
    box-shadow: var(--shadow);
}
.df-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 20px 20px;
    mask-image: linear-gradient(100deg, transparent 30%, #000);
    -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000);
}
.df-cta::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -140px; right: -80px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(167, 224, 219, .34), transparent 62%);
}
.df-cta h2 { max-width: 19ch; margin-top: 16px; color: #fff; font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
.df-cta h2 em { color: var(--c2); }
.df-cta p { max-width: 46ch; margin-top: 14px; color: var(--on-dark-2); font-size: 1.05rem; }
.df-cta-acciones { display: flex; flex-wrap: wrap; gap: 14px; flex: none; }

/* ---- Capitular editorial ------------------------------------------------ */

.df-capitular::first-letter {
    float: left;
    margin: .06em .1em 0 0;
    color: var(--c4);
    font-family: var(--font-serif);
    font-size: 3.7em;
    font-weight: 600;
    line-height: .82;
}

/* ---- Ilustraciones de línea (Inicio y Servicios) ----------------------- */

.df-ilustra { overflow: visible; }
.df-ilustra * { stroke: var(--c2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.df-ilustra .df-ilustra-tenue { stroke-opacity: .45; stroke-width: 1.2; }
.df-ilustra .df-ilustra-a { fill: rgba(167, 224, 219, .22); }
.df-ilustra .df-ilustra-b { fill: rgba(95, 176, 201, .26); }
.df-ilustra .df-ilustra-c { fill: rgba(62, 109, 156, .55); }
.df-ilustra .df-ilustra-casco { fill: rgba(62, 109, 156, .45); }
.df-ilustra .df-ilustra-sol { fill: rgba(167, 224, 219, .16); stroke-opacity: .6; }
.df-ilustra .df-ilustra-globo { fill: rgba(95, 176, 201, .12); }
.df-ilustra .df-ilustra-avion { fill: rgba(167, 224, 219, .35); stroke-width: .8; }
.df-ilustra .df-ilustra-punto { fill: var(--c2); stroke: none; }

/* ---- Por qué elegirnos (parcial compartido) ---------------------------- */

.df-razones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.df-razon { position: relative; padding-top: 30px; }
.df-razon::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--c3), rgba(255, 255, 255, .12));
    transform-origin: left;
}
.js .df-razon::before { transform: scaleX(0); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * .14s); }
.js .df-razones.in .df-razon::before { transform: scaleX(1); }
.js .df-razon > * { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * .14s + .25s); }
.js .df-razones.in .df-razon > * { opacity: 1; transform: none; }
.df-razon > * { display: block; }
.df-razon-num { color: var(--c3); font-family: var(--font-serif); font-size: .95rem; letter-spacing: .06em; }
.df-razon .df-razon-icono {
    display: grid;
    place-items: center;
    width: 50px; height: 50px;
    margin-top: 18px;
    border: 1px solid rgba(167, 224, 219, .22);
    border-radius: 15px;
    background: rgba(167, 224, 219, .09);
    color: var(--c2);
}
.df-razon-icono .df-icono { width: 24px; height: 24px; }
.df-razon h3 { margin-top: 20px; color: #fff; font-size: 1.32rem; }
.df-razon p { margin-top: 10px; color: var(--on-dark-2); font-size: .96rem; }

/* ---- Formularios base -------------------------------------------------- */

.df-campo { display: grid; align-content: start; gap: 8px; }
.df-campo label, .df-etiqueta {
    color: var(--ink);
    font-size: .86rem;
    font-weight: 700;
}
.df-campo label small { color: var(--muted); font-weight: 600; }

.df-input {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1.5px solid var(--line-strong);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font-size: 1rem;
    transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.df-input::placeholder { color: #8a92b4; }
.df-input:hover { border-color: rgba(42, 47, 99, .32); }
.df-input:focus {
    outline: none;
    border-color: var(--c3);
    box-shadow: 0 0 0 4px rgba(95, 176, 201, .18);
}
.df-input.is-error { border-color: #c2413a; }
.df-input.is-error:focus { box-shadow: 0 0 0 4px rgba(194, 65, 58, .14); }
textarea.df-input { min-height: 150px; resize: vertical; line-height: 1.55; }
select.df-input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E6D9C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    cursor: pointer;
}
.df-error {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #b23a33;
    font-size: .84rem;
    font-weight: 600;
}
.df-error .df-icono { width: 15px; height: 15px; }

/* ---- Movimiento: aparición al hacer scroll ----------------------------- */
/* Anima "translate" (no "transform") para no pisar los hover de las cards. */

.js .reveal { opacity: 0; }
.js .reveal.in { animation: dfSubir .9s var(--ease-out) var(--rd, 0s) both; }
@keyframes dfSubir {
    from { opacity: 0; translate: 0 26px; }
    to { opacity: 1; translate: none; }
}

/* ---- svg-draw-in: trazos que se dibujan solos -------------------------- */

.js [data-draw] .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js [data-draw].in .draw {
    animation: dfTrazo var(--dur, 1.2s) var(--ease) forwards;
    animation-delay: var(--d, 0s);
}
@keyframes dfTrazo { to { stroke-dashoffset: 0; } }

.js [data-draw] .pop { transform: scale(0); transform-box: fill-box; transform-origin: center; }
.js [data-draw].in .pop {
    animation: dfPop .55s cubic-bezier(.34, 1.56, .64, 1) forwards;
    animation-delay: var(--d, 0s);
}
@keyframes dfPop { to { transform: scale(1); } }

.js [data-draw] .fill-in { opacity: 0; }
.js [data-draw].in .fill-in {
    animation: dfAparecer .7s ease forwards;
    animation-delay: var(--d, 0s);
}
@keyframes dfAparecer { to { opacity: 1; } }

/* Rellenos que aparecen después de que se dibuja su contorno */
.js [data-draw] .relleno { fill-opacity: 0; }
.js [data-draw].in .relleno {
    animation: dfTrazo var(--dur, 1.2s) var(--ease) forwards, dfRelleno .7s ease forwards;
    animation-delay: var(--d, 0s), calc(var(--d, 0s) + var(--dur, 1.2s) * .6);
}
@keyframes dfRelleno { to { fill-opacity: 1; } }

/* Lista cuyos separadores se dibujan y cuyo texto sube escalonado */
.df-forma { position: relative; }
.df-forma::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    border-bottom: 1px dashed var(--line-strong);
    transform-origin: left;
}
.js .df-forma::after {
    transform: scaleX(0);
    transition: transform .9s var(--ease);
    transition-delay: calc(var(--i, 0) * .1s);
}
.js .df-forma .df-forma-texto {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .55s ease, transform .55s var(--ease-out);
    transition-delay: calc(var(--i, 0) * .1s + .12s);
}
.js .in > .df-forma::after, .js .df-forma.in::after { transform: scaleX(1); }
.js .in > .df-forma .df-forma-texto, .js .df-forma.in .df-forma-texto { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; }
    .js .reveal.in { animation: none; }
    .js [data-draw] .draw { stroke-dashoffset: 0; animation: none !important; }
    .js [data-draw] .pop { transform: none; animation: none !important; }
    .js [data-draw] .fill-in { opacity: 1; animation: none !important; }
    .js [data-draw] .relleno { fill-opacity: 1; stroke-dashoffset: 0; animation: none !important; }
    .js .df-forma::after { transform: none; transition: none; }
    .js .df-forma .df-forma-texto { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* ---- Página de error --------------------------------------------------- */

.df-error-pagina .df-wrap { padding-block: clamp(80px, 12vw, 150px); }
.df-error-acciones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---- Utilidades -------------------------------------------------------- */

.df-solo-movil { display: none !important; }
