/* ════════════════════════════════════════════════════════════════════════════
   DRAGO · LANDING COMERCIAL (Views/Home/Index + Views/Home/Landing/*)
   ────────────────────────────────────────────────────────────────────────────
   Solo se carga en la landing. Todo vive bajo .dl (o body.dl-page para el lienzo),
   así que no puede alterar el panel ni otras páginas públicas.

   Fase 4: seis etapas (hero · reserva → cobro · herramientas · sistema · precios ·
   empezar) escritas MOBILE-FIRST: la regla base es el teléfono y las consultas
   min-width construyen tableta y escritorio. Teléfono y escritorio tienen
   composiciones distintas a propósito (pestañas compactas vs. columnas).

   Paleta derivada de la lámina oficial (docs/brand): deep slate #0F2B3D,
   icy blue #7DD3F7, teal gray #4F7C8B, silver #E8EDF4. Los tonos "strong" son las
   variantes profundas que cumplen AA sobre superficies claras.
   Tipografía: Manrope (UI y titulares), Instrument Serif itálica (acentos
   editoriales), Space Grotesk (cifras). Movimiento: solo transform/opacity.
   ════════════════════════════════════════════════════════════════════════════ */

body.dl-page {
    background: #f5f7fb;
}

body.dl-page::before,
body.dl-page::after {
    display: none;
}

.dl {
    /* Superficies */
    --dl-ink: #07121c;
    --dl-ink-2: #0b1a27;
    --dl-slate: #0f2b3d;
    --dl-paper: #f5f7fb;
    --dl-white: #ffffff;

    /* Marca y estados */
    --dl-ice: #7dd3f7;
    --dl-ice-soft: rgba(125, 211, 247, 0.14);
    --dl-ice-strong: #0b6c99;
    --dl-teal: #4f7c8b;
    --dl-mint: #3ccfb9;
    --dl-mint-strong: #0d7f73;
    --dl-amber: #f4bd5c;

    /* Texto */
    --dl-text: #0d1b26;
    --dl-text-2: #45566a;
    --dl-text-3: #5f6f82;
    --dl-on-dark: #eef4fa;
    --dl-on-dark-2: #a9bacb;
    --dl-on-dark-3: #8a9db0;

    /* Líneas, radios, sombras */
    --dl-line: rgba(15, 43, 61, 0.1);
    --dl-line-strong: rgba(15, 43, 61, 0.16);
    --dl-line-dark: rgba(173, 214, 240, 0.14);
    --dl-r-xl: 26px;
    --dl-r-lg: 20px;
    --dl-r: 14px;
    --dl-shadow-soft: 0 1px 2px rgba(7, 18, 28, 0.05), 0 14px 34px -16px rgba(7, 18, 28, 0.18);
    --dl-shadow-deep: 0 50px 90px -40px rgba(7, 18, 28, 0.55), 0 24px 44px -24px rgba(7, 18, 28, 0.35);

    /* Tipografía */
    --dl-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --dl-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
    --dl-num: "Space Grotesk", "Manrope", system-ui, sans-serif;

    /* Ritmo: más corto en teléfono (sin vacíos), amplio en escritorio */
    --dl-gutter: clamp(16px, 4vw, 40px);
    --dl-section: clamp(3.5rem, 2.25rem + 5vw, 7.5rem);
    --dl-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --dl-focus: var(--dl-ice-strong);

    color: var(--dl-text);
    font-family: var(--dl-font);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

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

/* Titulares: anula el Space Grotesk global de .public-shell h1..h4 solo dentro de .dl. */
.dl h1,
.dl h2,
.dl h3,
.dl h4 {
    color: inherit;
    font-family: var(--dl-font);
    margin: 0;
}

/* Resets con especificidad de UNA clase: ganan a Bootstrap (ul, p) y pierden ante cualquier
   componente declarado después. */
.dl :where(p, ul, ol, dl, dd, figure, blockquote) {
    margin: 0;
}

.dl :where(ul, ol) {
    padding: 0;
    list-style: none;
}

:where(.dl) a {
    color: inherit;
}

.dl :focus-visible {
    outline: 3px solid var(--dl-focus);
    outline-offset: 3px;
    border-radius: 8px;
}

.dl-dark,
.dl-deep {
    --dl-focus: var(--dl-ice);
}

.dl-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;
}

.dl-wrap {
    width: min(1200px, 100% - 2 * var(--dl-gutter));
    margin-inline: auto;
}

/* ── Tipografía editorial ─────────────────────────────────────────────────── */

.dl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--dl-num);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dl-teal);
}

.dl-eyebrow::before {
    content: "";
    width: 1.6rem;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.dl-dark .dl-eyebrow,
.dl-deep .dl-eyebrow {
    color: var(--dl-ice);
}

.dl-eyebrow__n {
    display: inline-grid;
    place-items: center;
    min-width: 2.1rem;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--dl-ice-strong);
    background: var(--dl-ice-soft);
    border: 1px solid rgba(11, 108, 153, 0.18);
}

.dl-dark .dl-eyebrow__n,
.dl-deep .dl-eyebrow__n {
    color: var(--dl-ice);
    background: rgba(125, 211, 247, 0.1);
    border-color: rgba(125, 211, 247, 0.28);
}

.dl-eyebrow:has(.dl-eyebrow__n)::before {
    display: none;
}

.dl .dl-h2 {
    font-size: clamp(1.85rem, 1.1rem + 3vw, 3.35rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.038em;
    text-wrap: balance;
}

.dl-h2 em,
.dl-hero__accent {
    font-family: var(--dl-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.012em;
}

.dl-h2 em {
    font-size: 1.07em;
    color: var(--dl-ice-strong);
}

.dl-dark .dl-h2 em,
.dl-deep .dl-h2 em {
    color: var(--dl-ice);
}

.dl-lead {
    max-width: 36em;
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.12rem);
    line-height: 1.6;
    color: var(--dl-text-2);
    text-wrap: pretty;
}

.dl-dark .dl-lead,
.dl-deep .dl-lead {
    color: var(--dl-on-dark-2);
}

.dl-sechead {
    display: grid;
    gap: 0.9rem;
    max-width: 52rem;
    margin-bottom: clamp(1.75rem, 1.2rem + 2.5vw, 3.5rem);
}

.dl-sechead--center {
    margin-inline: auto;
    justify-items: center;
    text-align: center;
}

@media (min-width: 992px) {
    .dl-sechead--split {
        max-width: none;
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
        align-items: end;
        column-gap: 4rem;
    }
}

.dl-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--dl-ice-strong);
}

.dl-dark .dl-kicker,
.dl-deep .dl-kicker {
    color: var(--dl-ice);
}

/* ── Botones ─────────────────────────────────────────────────────────────── */

.dl .dl-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 48px;
    padding: 0.7rem 1.3rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s var(--dl-ease), box-shadow 0.25s var(--dl-ease), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.dl .dl-btn .bi {
    transition: transform 0.25s var(--dl-ease);
}

.dl .dl-btn:hover .bi-arrow-right {
    transform: translateX(3px);
}

.dl .dl-btn:active {
    transform: translateY(1px) scale(0.99);
}

.dl .dl-btn--lg {
    min-height: 54px;
    padding: 0.85rem 1.6rem;
    font-size: 1.02rem;
}

.dl .dl-btn--block {
    width: 100%;
}

.dl .dl-btn--primary {
    color: #fff;
    background: linear-gradient(180deg, #17405a 0%, var(--dl-slate) 100%);
    border-color: rgba(7, 18, 28, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 24px -12px rgba(15, 43, 61, 0.7);
}

.dl .dl-btn--primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 4px rgba(125, 211, 247, 0.22), 0 16px 30px -14px rgba(15, 43, 61, 0.75);
}

/* Botón principal sobre superficies oscuras (secciones, tarjetas profundas y cierre). */
.dl-dark .dl-btn--primary,
.dl-deep .dl-btn--primary,
.dl .dl-final .dl-btn--primary {
    color: var(--dl-ink);
    background: linear-gradient(180deg, #a6e3fb 0%, var(--dl-ice) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 30px -12px rgba(125, 211, 247, 0.55);
}

.dl-dark .dl-btn--primary:hover,
.dl-deep .dl-btn--primary:hover,
.dl .dl-final .dl-btn--primary:hover {
    color: var(--dl-ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 0 4px rgba(125, 211, 247, 0.22), 0 18px 36px -12px rgba(125, 211, 247, 0.6);
}

.dl .dl-btn--ghost {
    color: var(--dl-text);
    background: rgba(255, 255, 255, 0.75);
    border-color: var(--dl-line-strong);
}

.dl .dl-btn--ghost:hover {
    color: var(--dl-text);
    background: #fff;
    border-color: rgba(15, 43, 61, 0.28);
}

.dl .dl-btn--ghost-dark {
    color: var(--dl-on-dark);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(173, 214, 240, 0.26);
}

.dl .dl-btn--ghost-dark:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(173, 214, 240, 0.45);
}

.dl .dl-btn--quiet {
    color: var(--dl-text-2);
    min-height: 44px;
    background: transparent;
    border-color: transparent;
    font-weight: 600;
}

.dl .dl-btn--quiet:hover {
    color: var(--dl-text);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ── Piezas compartidas ─────────────────────────────────────────────────── */

.dl-avatar {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-family: var(--dl-num);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--dl-slate);
    background: linear-gradient(140deg, #d9f1fd, #b9dcef);
}

.dl-avatar--brand {
    color: #fff;
    background: linear-gradient(140deg, #1d4f6c, var(--dl-slate));
}

.dl-checks {
    display: grid;
    gap: 0.55rem;
}

.dl-checks li {
    position: relative;
    padding-left: 1.7rem;
    line-height: 1.45;
}

.dl-checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    background: var(--dl-ice-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230b6c99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.4l2.6 2.5L12 5.4'/%3E%3C/svg%3E") center / 72% no-repeat;
}

.dl-dark .dl-checks li::before,
.dl-deep .dl-checks li::before {
    background: rgba(125, 211, 247, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%237dd3f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.4l2.6 2.5L12 5.4'/%3E%3C/svg%3E") center / 72% no-repeat;
}

/* Quién hace cada paso: el cliente, el negocio o el sistema. */
.dl-who {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    justify-self: start;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.dl-who::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.dl-who--client {
    color: var(--dl-ice);
    background: rgba(125, 211, 247, 0.12);
}

.dl-who--manual {
    color: var(--dl-amber);
    background: rgba(244, 189, 92, 0.14);
}

.dl-who--auto {
    color: var(--dl-mint);
    background: rgba(60, 207, 185, 0.14);
}

/* Segmentado (pestañas ARIA). Solo con JS: sin JS se ven todos los paneles, uno debajo de otro. */
.dl-seg {
    display: none;
}

.dl-js .dl-seg {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--dl-line-strong);
    box-shadow: var(--dl-shadow-soft);
}

.dl-seg__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.5rem 1.05rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--dl-text-2);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.dl-seg__tab:hover {
    color: var(--dl-text);
}

.dl-seg__tab[aria-selected="true"] {
    color: #fff;
    background: var(--dl-slate);
    box-shadow: 0 10px 22px -12px rgba(15, 43, 61, 0.8);
}

/* Panel con pestañas: solo el activo ocupa lugar. Las pestañas quedan ARRIBA del panel, así que lo
   que cambia de altura está debajo de lo que se mira: nada salta a la vista y no quedan franjas vacías
   cuando una captura es más baja que otra. (El recorrido de escritorio usa una celda compartida.) */
.dl-js [data-dl-tabs] [role="tabpanel"]:not(.is-active) {
    display: none;
}

@media (prefers-reduced-motion: no-preference) {
    .dl-js [data-dl-tabs] [role="tabpanel"].is-active {
        animation: dl-panel-in 0.35s var(--dl-ease);
    }
}

@keyframes dl-panel-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

[data-dl-tabs] [role="tabpanel"]:focus-visible {
    outline-offset: 6px;
}

/* ── Marco de captura (ventana del navegador) ─────────────────────────────── */

.dl-frame {
    position: relative;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(15, 43, 61, 0.12);
    box-shadow: var(--dl-shadow-deep);
    overflow: hidden;
    isolation: isolate;
}

/* En teléfono las capturas van sin barra de navegador: cada píxel es para la pantalla real. */
.dl-frame__bar {
    display: none;
    align-items: center;
    gap: 1rem;
    height: 34px;
    padding: 0 14px;
    background: linear-gradient(180deg, #f3f6fa, #eaeff5);
    border-bottom: 1px solid rgba(15, 43, 61, 0.08);
}

@media (min-width: 640px) {
    .dl-frame__bar {
        display: flex;
    }
}

.dl-frame__dots {
    display: inline-flex;
    gap: 6px;
}

.dl-frame__dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d3dbe4;
}

.dl-frame__url {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    margin-inline: auto;
    padding: 0.18rem 0.9rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(15, 43, 61, 0.08);
    font-family: var(--dl-num);
    font-size: 0.72rem;
    color: var(--dl-text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: translateX(-28px);
}

.dl-frame__url .bi {
    font-size: 0.62rem;
    color: var(--dl-mint-strong);
}

.dl-frame--dark {
    background: #0b141d;
    border-color: rgba(173, 214, 240, 0.16);
    box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.dl-frame--dark .dl-frame__bar {
    background: #0d1a26;
    border-bottom-color: rgba(173, 214, 240, 0.1);
}

.dl-frame--dark .dl-frame__dots i {
    background: #263849;
}

.dl-frame--dark .dl-frame__url {
    background: #112333;
    border-color: rgba(173, 214, 240, 0.1);
    color: var(--dl-on-dark-3);
}

.dl-frame--dark .dl-frame__url .bi {
    color: var(--dl-mint);
}

/* La captura en sí */
.dl-shot {
    position: relative;
    margin: 0;
}

.dl-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.dl-shot__zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(7, 18, 28, 0.78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: zoom-in;
    opacity: 0.92;
    transition: opacity 0.25s ease, transform 0.25s var(--dl-ease), background-color 0.25s ease;
}

.dl-shot__zoom:hover {
    opacity: 1;
    transform: translateY(-1px);
    background: rgba(7, 18, 28, 0.92);
}

.dl-shot__zoom:focus-visible {
    outline: 3px solid var(--dl-ice);
    outline-offset: 2px;
}

/* En teléfono el botón no tapa la captura: va en una franja propia, debajo. */
@media (max-width: 639.98px) {
    .dl-shot {
        display: grid;
    }

    .dl-shot__zoom {
        position: static;
        justify-self: end;
        min-height: 44px;
        margin: 8px;
    }
}

/* ═══════════════════════════════ 01 · HERO ═══════════════════════════════ */

.dl-hero {
    position: relative;
    padding: max(0.75rem, env(safe-area-inset-top)) 0 clamp(3rem, 1.5rem + 5vw, 6rem);
    overflow: hidden;
    isolation: isolate;
}

.dl-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(15, 43, 61, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 43, 61, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 20%, transparent 75%);
}

.dl-hero__glow {
    position: absolute;
    z-index: -1;
    right: -12%;
    top: 6%;
    width: min(980px, 95vw);
    aspect-ratio: 1.3;
    background:
        radial-gradient(closest-side, rgba(125, 211, 247, 0.4), transparent 70%),
        radial-gradient(closest-side at 30% 70%, rgba(60, 207, 185, 0.2), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}

.dl-hero__brandbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 56px;
    margin-bottom: clamp(1.25rem, 0.5rem + 3vw, 3.5rem);
}

.dl-hero__brand {
    display: inline-flex;
    border-radius: 10px;
}

.dl-hero__brand img {
    display: block;
    width: auto;
    height: clamp(34px, 30px + 1vw, 42px);
}

/* Índice del recorrido en teléfono/tableta (landing.js quita el atributo hidden). */
.dl-hero__index {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0 1rem 0 0.85rem;
    border: 1px solid var(--dl-line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--dl-text);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.dl-hero__index .bi {
    font-size: 1.1rem;
}

.dl-hero__inner {
    display: grid;
    gap: clamp(2rem, 1.5rem + 3vw, 4rem);
}

.dl-hero__copy {
    display: grid;
    gap: 1.1rem;
    max-width: 40rem;
}

.dl-hero__eyebrow {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--dl-text-2);
    text-wrap: balance;
}

.dl-hero__eyebrow::before {
    display: none;
}

.dl .dl-hero__title {
    font-size: clamp(2.35rem, 1.2rem + 5.6vw, 5.15rem);
    font-weight: 800;
    line-height: 0.99;
    letter-spacing: -0.048em;
    color: var(--dl-ink);
}

.dl-hero__line {
    display: block;
}

.dl-hero__accent {
    display: block;
    margin-top: 0.08em;
    padding-bottom: 0.08em;
    font-size: 1.08em;
    line-height: 1;
    background: linear-gradient(100deg, var(--dl-ice-strong) 0%, #1e8fc2 55%, var(--dl-mint-strong) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dl-hero__lead {
    max-width: 30rem;
    font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
    line-height: 1.55;
    color: var(--dl-text-2);
    text-wrap: pretty;
}

.dl-hero__actions {
    display: grid;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.dl-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.1rem;
    font-size: 0.86rem;
    color: var(--dl-text-2);
}

.dl-hero__facts li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.dl-hero__facts .bi {
    color: var(--dl-mint-strong);
    font-size: 1rem;
}

.dl-hero__stage {
    position: relative;
    min-width: 0;
}

.dl-hero__frame {
    border-radius: 22px;
    background: #f4f6fa;
    box-shadow: 0 30px 60px -30px rgba(7, 18, 28, 0.45);
    border-color: rgba(15, 43, 61, 0.08);
}

.dl-callout {
    display: none;
}

.dl-caption {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
    font-size: 0.78rem;
    color: var(--dl-text-3);
}

.dl-caption .bi {
    color: var(--dl-mint-strong);
}

.dl-hero__nextwrap {
    display: none;
}

.dl-hero__next {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 2.5rem;
    font-family: var(--dl-num);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dl-text-2);
    text-decoration: none;
}

.dl-hero__next:hover {
    color: var(--dl-ice-strong);
}

.dl-hero__next-line {
    width: 2.5rem;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

/* Dos botones lado a lado cuando caben cómodos. */
@media (min-width: 420px) {
    .dl-hero__actions {
        display: flex;
        flex-wrap: wrap;
    }

    .dl-hero__actions .dl-btn {
        flex: 1 1 0;
    }
}

@media (min-width: 640px) {
    .dl-hero__actions .dl-btn {
        flex: 0 0 auto;
    }

    .dl-hero__frame {
        border-radius: 16px;
        background: #fff;
        box-shadow: var(--dl-shadow-deep);
        border-color: rgba(15, 43, 61, 0.12);
    }

    .dl-hero__copy {
        gap: 1.35rem;
    }

    .dl-hero__eyebrow {
        font-size: 0.74rem;
        letter-spacing: 0.14em;
    }
}

@media (min-width: 1200px) {
    .dl-hero {
        padding-top: clamp(2rem, 1rem + 2vw, 3rem);
    }

    .dl-hero__index {
        display: none;
    }

    .dl-hero__inner {
        grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
        align-items: center;
        gap: 3rem;
    }

    .dl .dl-hero__title {
        font-size: clamp(3.4rem, 1.2rem + 3.3vw, 4.5rem);
    }

    .dl-hero__stage {
        padding-block: 2.5rem 1rem;
    }

    /* La captura sangra hacia el borde derecho: el producto real es el protagonista. */
    .dl-hero__frame {
        width: 900px;
        transform: perspective(2400px) rotateY(-7deg) rotateX(2deg);
        transform-origin: left center;
    }

    .dl-callout {
        position: absolute;
        z-index: 2;
        display: block;
        border-radius: 16px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 0 0 1px rgba(15, 43, 61, 0.08), 0 30px 50px -24px rgba(7, 18, 28, 0.55);
    }

    .dl-callout img {
        display: block;
        width: 100%;
        height: auto;
    }

    .dl-callout--alerta {
        width: 330px;
        right: -1.5rem;
        bottom: 3.5rem;
    }

    .dl-callout--kpi {
        width: 190px;
        left: -2.25rem;
        top: 1.25rem;
    }

    .dl-hero__nextwrap {
        display: block;
    }
}

/* ══════════════════════ 02 · DE LA RESERVA AL COBRO (oscuro) ═════════════════ */

.dl-dark {
    position: relative;
    color: var(--dl-on-dark);
    background: var(--dl-ink);
    isolation: isolate;
    overflow: hidden;
}

.dl-deep {
    color: var(--dl-on-dark);
}

.dl-flow,
.dl-pricing {
    padding: var(--dl-section) 0;
}

.dl-flow__light,
.dl-pricing__light {
    position: absolute;
    z-index: -1;
    inset: -20% 10% auto;
    height: 70%;
    background:
        radial-gradient(ellipse 50% 60% at 50% 0%, rgba(125, 211, 247, 0.2), transparent 70%),
        radial-gradient(ellipse 30% 40% at 85% 30%, rgba(60, 207, 185, 0.08), transparent 70%);
    pointer-events: none;
}

.dl-flow__grid {
    display: grid;
    gap: 1.1rem;
}

/* Pasos = pestañas. Teléfono: segmentado de tres, compacto, siempre a la vista arriba del panel. */
.dl-steps {
    display: none;
}

.dl-js .dl-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dl-line-dark);
}

.dl-steps__tab {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.15rem;
    min-width: 0;
    min-height: 60px;
    padding: 0.45rem 0.35rem;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--dl-on-dark-2);
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.dl-steps__n {
    font-family: var(--dl-num);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    opacity: 0.75;
}

.dl-steps__body {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.dl-steps__short {
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.15;
    text-wrap: balance;
}

.dl-steps__who,
.dl-steps__title,
.dl-steps__text {
    display: none;
}

.dl-steps__tab:hover {
    color: var(--dl-on-dark);
}

.dl-steps__tab[aria-selected="true"] {
    color: var(--dl-ink);
    background: var(--dl-ice);
    box-shadow: 0 10px 24px -12px rgba(125, 211, 247, 0.7);
}

.dl-flow__panels {
    display: grid;
    gap: 3rem;
    min-width: 0;
}

/* Columna flexible: los tres paneles comparten altura (la del más alto). La captura se centra en el
   espacio libre y "Siguiente" queda SIEMPRE abajo, en el mismo lugar: se puede tocar varias veces
   seguidas sin buscarlo. */
.dl-flowpanel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    border-radius: var(--dl-r-lg);
}

.dl-flowpanel > .dl-flowpanel__media {
    flex: 1 1 auto;
    align-content: center;
}

.dl .dl-flowpanel > .dl-flowpanel__next {
    margin-top: auto;
}

.dl-flowpanel__copy {
    display: grid;
    gap: 0.45rem;
}

.dl-flowpanel__copy h3 {
    font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: #fff;
    text-wrap: balance;
}

.dl-flowpanel__copy p {
    font-size: 0.97rem;
    line-height: 1.55;
    color: var(--dl-on-dark-2);
    overflow-wrap: anywhere;
}

.dl-flowpanel__media {
    position: relative;
    display: grid;
    min-width: 0;
}

.dl-flow__desk,
.dl-flow__inset {
    display: none;
}

.dl-flow__phone {
    justify-self: center;
    width: min(340px, 100%);
    border-radius: 24px;
    overflow: hidden;
    background: #f3f5f9;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.dl-flow__phone img,
.dl-flow__inset img {
    display: block;
    width: 100%;
    height: auto;
}

.dl-flow__main {
    border-radius: 18px;
}

.dl-flowpanel__note {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--dl-on-dark-3);
}

.dl-flowpanel__note .bi {
    flex-shrink: 0;
    color: var(--dl-mint);
}

.dl .dl-flowpanel__next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(173, 214, 240, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--dl-on-dark);
    font: inherit;
    font-size: 0.94rem;
    font-weight: 700;
    cursor: pointer;
}

.dl .dl-flowpanel__next:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(173, 214, 240, 0.45);
}

/* Tableta: el paso 1 ya puede mostrar la bandeja real con la pantalla del cliente encima. */
@media (min-width: 768px) {
    .dl-flowpanel--reserva .dl-flowpanel__media {
        padding-bottom: 2rem;
    }

    .dl-flow__desk {
        display: block;
        width: calc(100% - 2.5rem);
        margin-left: auto;
    }

    .dl-flowpanel--reserva .dl-flow__phone {
        position: absolute;
        z-index: 2;
        left: 0;
        bottom: 0;
        width: 210px;
        border-radius: 20px;
    }

    .dl-flowpanel--cobro .dl-flow__main {
        justify-self: center;
        width: min(100%, 640px);
    }

    .dl .dl-flowpanel > .dl-flowpanel__next {
        align-self: flex-start;
    }
}

/* Escritorio: pasos a la izquierda (con su texto), captura a la derecha. */
@media (min-width: 1100px) {
    .dl-js .dl-flow__grid {
        grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
        gap: 3rem;
        align-items: center;
    }

    .dl-js .dl-steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.5rem;
        padding: 0;
        border: 0;
        background: none;
    }

    .dl-steps__tab {
        grid-template-columns: 40px minmax(0, 1fr);
        align-items: start;
        justify-items: start;
        gap: 1rem;
        padding: 1.15rem 1.25rem;
        border-radius: 20px;
        text-align: left;
        opacity: 0.72;
    }

    .dl-steps__tab:hover {
        opacity: 1;
        background: rgba(255, 255, 255, 0.03);
    }

    .dl-steps__tab[aria-selected="true"] {
        opacity: 1;
        color: var(--dl-on-dark);
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(125, 211, 247, 0.32);
        box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.8);
    }

    .dl-steps__n {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid rgba(173, 214, 240, 0.3);
        font-size: 0.8rem;
        opacity: 1;
    }

    .dl-steps__tab[aria-selected="true"] .dl-steps__n {
        color: var(--dl-ink);
        background: var(--dl-ice);
        border-color: var(--dl-ice);
    }

    .dl-steps__short {
        display: none;
    }

    .dl-steps__who {
        display: inline-flex;
    }

    .dl-steps__title {
        display: block;
        font-size: 1.12rem;
        font-weight: 800;
        letter-spacing: -0.02em;
        line-height: 1.25;
        color: #fff;
        text-wrap: balance;
    }

    .dl-steps__text {
        display: block;
        font-size: 0.9rem;
        line-height: 1.55;
        color: var(--dl-on-dark-2);
    }

    .dl-js .dl-flowpanel__copy,
    .dl-js .dl-flowpanel__next {
        display: none;
    }

    /* Escritorio: los tres paneles en la MISMA celda (alturas igualadas por el encuadre de cada
       captura): la columna de pasos, centrada contra el panel, no se mueve al cambiar de paso. */
    .dl-js .dl-flow__grid .dl-flowpanel {
        grid-area: 1 / 1;
    }

    .dl-js .dl-flow__grid .dl-flowpanel:not(.is-active) {
        display: flex;
        visibility: hidden;
        opacity: 0;
    }

    .dl-flow__desk {
        width: calc(100% - 4rem);
    }

    .dl-flowpanel--reserva .dl-flowpanel__media {
        padding-bottom: 2.5rem;
    }

    .dl-flowpanel--reserva .dl-flow__phone {
        width: 250px;
        border-radius: 22px;
    }

    .dl-flowpanel--cobro .dl-flow__main {
        width: 80%;
    }

    .dl-flowpanel--numeros .dl-flowpanel__media {
        padding-bottom: 1.5rem;
    }

    .dl-flowpanel--numeros .dl-flow__main {
        width: calc(100% - 5rem);
    }

    .dl-flow__inset {
        position: absolute;
        z-index: 2;
        right: 0;
        bottom: 0;
        display: block;
        width: 210px;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
    }

    .dl-flowpanel__note {
        padding-left: 0.25rem;
    }
}

/* ═══════════════════════════ 03 · MÁS QUE UNA AGENDA ═══════════════════════ */

.dl-tools {
    padding: var(--dl-section) 0;
    background: #fff;
}

.dl-groups {
    display: grid;
    gap: 0.875rem;
}

.dl-group {
    position: relative;
    display: grid;
    align-content: start;
    gap: 1.1rem;
    min-width: 0;
    padding: clamp(1.25rem, 1rem + 1.2vw, 2rem);
    border-radius: var(--dl-r-xl);
    background: var(--dl-paper);
    border: 1px solid var(--dl-line);
    overflow: hidden;
}

.dl-group__head {
    display: grid;
    gap: 0.45rem;
}

.dl-group h3 {
    font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    text-wrap: balance;
}

.dl-group__head p {
    font-size: 0.97rem;
    line-height: 1.55;
    color: var(--dl-text-2);
}

.dl-group.dl-deep {
    border-color: transparent;
}

.dl-group.dl-deep .dl-group__head p {
    color: var(--dl-on-dark-2);
}

.dl-group--loyal {
    background:
        radial-gradient(ellipse 70% 60% at 100% 100%, rgba(125, 211, 247, 0.22), transparent 70%),
        radial-gradient(ellipse 40% 40% at 0% 0%, rgba(60, 207, 185, 0.12), transparent 70%),
        linear-gradient(165deg, #12354b 0%, var(--dl-slate) 50%, #081a26 100%);
}

.dl-group--web {
    background:
        radial-gradient(ellipse 70% 60% at 100% 0%, rgba(125, 211, 247, 0.25), transparent 70%),
        linear-gradient(165deg, #143a52, var(--dl-slate) 55%, #0a1d2a);
}

.dl-group--web .dl-checks {
    font-size: 0.94rem;
    color: var(--dl-on-dark-2);
}

.dl .dl-group__foot {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(173, 214, 240, 0.14);
    font-size: 0.86rem;
    color: var(--dl-on-dark-2);
}

.dl-group__foot .bi {
    font-size: 1.05rem;
    color: var(--dl-ice);
}

/* La tarjeta web empuja su pie al fondo cuando comparte fila con una tarjeta más alta. */
.dl-group--web {
    grid-template-rows: auto auto auto 1fr;
}

.dl-group--web .dl-group__foot {
    align-self: end;
}

/* Módulos: icono + nombre + UNA línea. Se leen de un vistazo, sin abrir nada. */
.dl-mods {
    display: grid;
    gap: 0.8rem;
}

.dl-mods li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--dl-text-2);
}

.dl-mods li > .bi {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--dl-ice-soft);
    color: var(--dl-ice-strong);
    font-size: 1rem;
}

.dl-mods b {
    display: block;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--dl-text);
}

.dl-deep .dl-mods li {
    color: var(--dl-on-dark-2);
}

.dl-deep .dl-mods li > .bi {
    background: rgba(125, 211, 247, 0.12);
    color: var(--dl-ice);
}

.dl-deep .dl-mods b {
    color: #fff;
}

.dl-group__visual {
    margin: 0;
}

.dl-group__visual img {
    display: block;
    max-width: 100%;
    height: auto;
}

.dl-group__visual--card {
    justify-self: center;
    width: min(320px, 100%);
}

.dl-group__visual--card img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 30px 50px -26px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: rotate(-2deg);
}

.dl-group__visual--card figcaption {
    margin-top: 0.85rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--dl-on-dark-3);
}

.dl-group__visual--strip img {
    width: min(372px, 100%);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--dl-line), 0 16px 30px -22px rgba(7, 18, 28, 0.5);
}

.dl-group__visual--chip img {
    width: 206px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--dl-line), 0 16px 30px -22px rgba(7, 18, 28, 0.5);
}

.dl .dl-url {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    justify-self: start;
    max-width: 100%;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(173, 214, 240, 0.2);
    font-family: var(--dl-num);
    font-size: 0.86rem;
    color: var(--dl-on-dark);
    overflow-wrap: anywhere;
}

.dl-url .bi {
    font-size: 0.7rem;
    color: var(--dl-mint);
}

.dl-url b {
    color: var(--dl-ice);
}

/* Teléfono: tarjetas más compactas (la sección es la de más contenido: se lee de un vistazo). */
@media (max-width: 559.98px) {
    .dl-group {
        gap: 0.95rem;
        padding: 1.15rem 1.1rem 1.25rem;
        border-radius: 22px;
    }

    .dl-mods {
        gap: 0.7rem;
    }

    .dl-mods li {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 0.7rem;
        font-size: 0.9rem;
    }

    .dl-mods li > .bi {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        font-size: 0.92rem;
    }

    .dl-group__visual--card {
        width: min(270px, 100%);
    }

    .dl-group__visual--card figcaption {
        margin-top: 0.6rem;
    }
}

@media (min-width: 768px) {
    .dl-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .dl-group--loyal {
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
        grid-template-areas:
            "head visual"
            "mods visual";
        column-gap: 2rem;
    }

    .dl-group--loyal .dl-group__head {
        grid-area: head;
    }

    .dl-group--loyal .dl-mods {
        grid-area: mods;
    }

    .dl-group--loyal .dl-group__visual {
        grid-area: visual;
        align-self: center;
    }
}

@media (min-width: 1100px) {
    .dl-groups {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 1.1rem;
    }

    .dl-group {
        grid-column: span 4;
    }

    .dl-group--loyal {
        grid-column: span 7;
    }

    .dl-group--web {
        grid-column: span 5;
    }
}

/* ═══════════════════════════ 04 · CONOCÉ EL SISTEMA ════════════════════════ */

.dl-system {
    padding: var(--dl-section) 0;
    background: var(--dl-paper);
    border-top: 1px solid var(--dl-line);
}

.dl-viewer {
    display: grid;
    gap: 1.1rem;
    max-width: 1040px;
    margin-inline: auto;
}

/* Teléfono: cuatro pestañas en 2 × 2, todas visibles (sin scroll horizontal). */
.dl-js .dl-viewer__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 18px;
}

.dl-viewer__tabs .dl-seg__tab {
    border-radius: 14px;
}

.dl-viewer__panels {
    display: grid;
    gap: 2.5rem;
    min-width: 0;
}

.dl-viewer__panel {
    display: grid;
    align-content: start;
    gap: 0.8rem;
    min-width: 0;
    margin: 0;
    border-radius: var(--dl-r-lg);
}

.dl-viewer__panel .dl-frame {
    border-radius: 18px;
    box-shadow: 0 34px 70px -40px rgba(7, 18, 28, 0.55);
}

.dl-viewer__note {
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    color: var(--dl-text-2);
    text-wrap: balance;
}

@media (min-width: 560px) {
    .dl-js .dl-viewer__tabs {
        display: inline-flex;
        justify-self: center;
        border-radius: 999px;
    }

    .dl-viewer__tabs .dl-seg__tab {
        border-radius: 999px;
    }
}

/* ═════════════════════════════ 05 · PRECIOS ═══════════════════════════════ */

.dl-pricing__light {
    inset: -10% 0 auto;
}

.dl-pricing__from {
    font-size: 0.98rem;
    color: var(--dl-on-dark-2);
}

.dl-pricing__from strong {
    font-family: var(--dl-num);
    color: var(--dl-on-dark);
}

/* Teléfono: UNA columna → cantidad, forma de pago, WhatsApp (una fila cerrada), precio, qué incluye
   y crear cuenta. TODOS los controles quedan arriba del precio: cuando el recibo crece (desglose,
   nota del plan anual) solo se mueve lo de abajo, nunca el control que se está tocando.
   Los dos bloques (controles y recibo) se funden con display: contents. */
.dl-calc {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    max-width: 560px;
    margin-inline: auto;
    padding: 1.1rem;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--dl-line-dark);
    box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.7);
}

.dl-calc__controls,
.dl-receipt {
    display: contents;
}

.dl-seats { order: 1; }
.dl-cycle { order: 2; }
.dl-wa { order: 3; }
.dl-ticket { order: 4; }
.dl-receipt__incl { order: 5; }
.dl-receipt__cta { order: 6; }

.dl-calc fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.dl-calc__q {
    margin: 0 0 0.85rem;
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--dl-on-dark);
    text-wrap: balance;
}

.dl-calc__hint {
    margin-top: 0.7rem;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--dl-on-dark-3);
}

.dl-calc__hint a {
    color: var(--dl-ice);
    font-weight: 700;
    text-underline-offset: 3px;
}

/* Colaboradores: un solo control (− / +) con la cifra grande al centro. */
.dl-seats__stepper {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--dl-line-dark);
}

.dl-seats__count {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.15rem 0.5rem;
    text-align: center;
}

.dl-seats__count b {
    font-family: var(--dl-num);
    font-size: clamp(2.6rem, 2rem + 2.5vw, 3.6rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
    color: #fff;
}

.dl-seats__count span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dl-on-dark-2);
}

.dl-seats__step {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: 1px solid rgba(173, 214, 240, 0.26);
    background: rgba(255, 255, 255, 0.05);
    color: var(--dl-on-dark);
    font-size: 1.25rem;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s var(--dl-ease);
}

.dl-seats__step[data-dl-step="-1"] {
    grid-column: 1;
    grid-row: 1;
}

.dl-seats__step[data-dl-step="1"] {
    grid-column: 3;
    grid-row: 1;
}

.dl-seats__step:hover:not(:disabled) {
    background: rgba(125, 211, 247, 0.14);
    border-color: var(--dl-ice);
}

.dl-seats__step:active:not(:disabled) {
    transform: scale(0.94);
}

.dl-seats__step:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Ciclo: segmentado con radios reales. */
.dl .dl-cycle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 4px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dl-line-dark);
}

.dl-cycle label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 0.5rem;
    min-height: 48px;
    padding: 0.35rem 0.75rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.94rem;
    text-align: center;
    color: var(--dl-on-dark-2);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dl-cycle input:checked + label {
    color: var(--dl-ink);
    background: var(--dl-ice);
}

.dl-cycle input:focus-visible + label,
.dl-wa__opts input:focus-visible + label {
    outline: 3px solid var(--dl-ice);
    outline-offset: 2px;
}

.dl-cycle__tag {
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
    color: var(--dl-ink);
    background: var(--dl-mint);
}

/* Precio: "ticket" claro. En teléfono es una tarjeta blanca dentro de la calculadora oscura. */
.dl-ticket {
    display: grid;
    gap: 0.55rem;
    padding: 1.25rem 1.25rem 1.1rem;
    border-radius: 20px;
    background: #fff;
    color: var(--dl-text);
    --dl-focus: var(--dl-ice-strong);
}

.dl-ticket__label {
    font-family: var(--dl-num);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dl-text-3);
}

.dl-ticket__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.6rem;
}

.dl-ticket__amount {
    font-family: var(--dl-num);
    font-size: clamp(2.5rem, 1.9rem + 3vw, 4rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
    color: var(--dl-ink);
}

.dl-ticket__unit {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dl-text-3);
}

.dl-ticket__sub {
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--dl-text-2);
}

.dl-ticket__sub strong {
    color: var(--dl-mint-strong);
}

.dl-ticket__lines {
    display: grid;
    margin-top: 0.25rem;
    padding: 0.2rem 0;
    border-top: 1px dashed var(--dl-line-strong);
    border-bottom: 1px dashed var(--dl-line-strong);
}

.dl-ticket__lines li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    font-size: 0.88rem;
    color: var(--dl-text-2);
}

.dl-ticket__lines b {
    font-family: var(--dl-num);
    font-weight: 600;
    color: var(--dl-text);
    white-space: nowrap;
}

.dl-ticket__lines .is-total {
    border-top: 1px solid var(--dl-line);
    font-weight: 800;
    color: var(--dl-text);
}

.dl-ticket__note {
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: rgba(11, 108, 153, 0.06);
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--dl-text-2);
}

/* Complemento de WhatsApp: una fila que se despliega (el resumen ya dice qué es y desde cuánto). */
.dl-wa {
    border-radius: 18px;
    border: 1px solid var(--dl-line-dark);
    background: rgba(255, 255, 255, 0.03);
}

.dl-wa summary {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 62px;
    padding: 0.65rem 0.9rem;
    border-radius: 18px;
    cursor: pointer;
    list-style: none;
}

.dl-wa summary::-webkit-details-marker {
    display: none;
}

.dl-wa summary > .bi-whatsapp {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(60, 207, 185, 0.14);
    color: var(--dl-mint);
    font-size: 1.05rem;
}

.dl-wa__sum {
    display: grid;
    min-width: 0;
    line-height: 1.3;
}

.dl-wa__sum b {
    font-size: 0.95rem;
    color: var(--dl-on-dark);
}

.dl-wa__sum > span {
    font-size: 0.82rem;
    color: var(--dl-on-dark-3);
}

.dl-wa__sum strong {
    font-family: var(--dl-num);
    color: var(--dl-on-dark);
}

.dl-wa__chev {
    color: var(--dl-on-dark-2);
    transition: transform 0.3s var(--dl-ease);
}

.dl-wa[open] .dl-wa__chev {
    transform: rotate(180deg);
}

.dl-calc .dl-wa__body {
    padding: 0 0.9rem 0.9rem;
}

.dl-wa__opts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.dl-wa__opts label {
    display: grid;
    gap: 2px;
    min-height: 58px;
    padding: 0.6rem 0.8rem;
    border-radius: 14px;
    border: 1px solid var(--dl-line-dark);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.dl-wa__opts label b {
    font-size: 0.88rem;
    color: var(--dl-on-dark);
}

.dl-wa__opts label span {
    font-size: 0.76rem;
    color: var(--dl-on-dark-3);
}

.dl-wa__opts label:hover {
    border-color: rgba(173, 214, 240, 0.35);
}

.dl-wa__opts input:checked + label {
    background: rgba(60, 207, 185, 0.1);
    border-color: var(--dl-mint);
    box-shadow: inset 0 0 0 1px var(--dl-mint);
}

.dl-receipt__incl {
    display: grid;
    gap: 0.7rem;
    padding: 0.25rem 0.25rem 0;
}

.dl-receipt__incl > p {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dl-on-dark-3);
}

.dl-receipt__incl .dl-checks {
    font-size: 0.92rem;
    color: var(--dl-on-dark-2);
}

.dl-receipt__cta {
    display: grid;
    gap: 0.25rem;
}

.dl .dl-receipt__cta .dl-btn--quiet {
    color: var(--dl-on-dark-2);
}

.dl-receipt__fine {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: center;
    color: var(--dl-on-dark-3);
}

.dl-calc--empty {
    gap: 1.5rem;
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    max-width: 760px;
}

.dl-calc--empty h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.dl-calc--empty p {
    color: var(--dl-on-dark-2);
}

.dl-calc__empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Escritorio: controles a la izquierda (oscuro) y recibo claro a la derecha. */
@media (min-width: 992px) {
    .dl-calc {
        display: grid;
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
        gap: 0;
        max-width: none;
        padding: 0;
        border-radius: 30px;
        overflow: hidden;
    }

    .dl-calc__controls {
        display: grid;
        align-content: center;
        gap: 1.75rem;
        padding: 2.5rem;
    }

    .dl-receipt {
        display: grid;
        align-content: start;
        gap: 1.4rem;
        padding: 2.5rem;
        background: #fff;
        color: var(--dl-text);
        --dl-focus: var(--dl-ice-strong);
    }

    .dl-ticket {
        padding: 0;
        border-radius: 0;
    }

    .dl .dl-cycle {
        display: inline-grid;
        justify-self: start;
        grid-template-columns: auto auto;
        border-radius: 999px;
    }

    .dl-cycle label {
        padding-inline: 1.2rem;
        border-radius: 999px;
    }

    .dl-receipt__incl {
        padding: 0;
    }

    .dl-receipt__incl > p {
        color: var(--dl-text-3);
    }

    .dl-receipt__incl .dl-checks {
        color: var(--dl-text-2);
    }

    .dl-dark .dl-receipt .dl-checks li::before {
        background: var(--dl-ice-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230b6c99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.4l2.6 2.5L12 5.4'/%3E%3C/svg%3E") center / 72% no-repeat;
    }

    .dl .dl-receipt .dl-btn--primary {
        color: #fff;
        background: linear-gradient(180deg, #17405a 0%, var(--dl-slate) 100%);
        border-color: rgba(7, 18, 28, 0.6);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 26px -12px rgba(15, 43, 61, 0.7);
    }

    .dl .dl-receipt .dl-btn--primary:hover {
        color: #fff;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 4px rgba(11, 108, 153, 0.18), 0 16px 30px -14px rgba(15, 43, 61, 0.75);
    }

    .dl .dl-receipt__cta .dl-btn--quiet {
        color: var(--dl-text-2);
    }

    .dl-receipt__fine {
        color: var(--dl-text-3);
    }

    .dl-calc--empty {
        grid-template-columns: 1fr;
        margin-inline: auto;
        padding: 2.5rem;
    }
}

/* ══════════════════════════ 06 · EMPEZAR (FAQ + cierre) ═══════════════════ */

.dl-start {
    padding: var(--dl-section) 0;
    background: #fff;
}

.dl-faq {
    display: grid;
    gap: 1.5rem;
}

.dl-faq__head {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

.dl-faq__head a {
    color: var(--dl-ice-strong);
    font-weight: 700;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.dl-faq__list {
    border-top: 1px solid var(--dl-line);
}

.dl-qa {
    border-bottom: 1px solid var(--dl-line);
}

.dl-qa summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 60px;
    padding: 0.95rem 0;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: var(--dl-text);
    cursor: pointer;
    list-style: none;
}

.dl-qa summary::-webkit-details-marker {
    display: none;
}

.dl-qa summary .bi {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--dl-line-strong);
    color: var(--dl-text-2);
    transition: transform 0.35s var(--dl-ease), background-color 0.3s ease, color 0.3s ease;
}

.dl-qa summary:hover .bi {
    color: var(--dl-ice-strong);
    border-color: rgba(11, 108, 153, 0.35);
}

.dl-qa[open] summary .bi {
    transform: rotate(45deg);
    color: #fff;
    background: var(--dl-slate);
    border-color: var(--dl-slate);
}

.dl-qa p {
    max-width: 44rem;
    padding: 0 2.5rem 1.2rem 0;
    line-height: 1.6;
    color: var(--dl-text-2);
}

.dl-founder {
    display: grid;
    gap: 1rem;
    padding: clamp(1.25rem, 1rem + 1.2vw, 2rem);
    border-radius: var(--dl-r-xl);
    background: var(--dl-paper);
    border: 1px solid var(--dl-line);
}

.dl-founder__video video {
    display: block;
    width: 100%;
    border-radius: var(--dl-r-lg);
    background: var(--dl-ink);
}

.dl-founder__quote p {
    font-family: var(--dl-serif);
    font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--dl-ink);
}

.dl-founder__sign {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.88rem;
    color: var(--dl-text-3);
}

.dl-founder__sign b {
    display: block;
    color: var(--dl-text);
    font-size: 0.98rem;
}

/* Cierre: una frase y una acción principal. */
.dl-final {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 1.2rem;
    margin-top: clamp(2.5rem, 1.5rem + 4vw, 5rem);
    padding: clamp(2.25rem, 1.5rem + 4vw, 5rem) clamp(1.25rem, 1rem + 3vw, 4rem);
    border-radius: 30px;
    text-align: center;
    color: var(--dl-on-dark);
    background:
        radial-gradient(ellipse 60% 70% at 50% 0%, rgba(125, 211, 247, 0.28), transparent 70%),
        radial-gradient(ellipse 40% 50% at 100% 100%, rgba(60, 207, 185, 0.12), transparent 70%),
        var(--dl-ink);
    overflow: hidden;
    isolation: isolate;
    --dl-focus: var(--dl-ice);
}

.dl-final__mark {
    width: clamp(60px, 50px + 3vw, 84px);
    height: auto;
    filter: drop-shadow(0 18px 30px rgba(125, 211, 247, 0.35));
}

.dl .dl-final__title {
    max-width: 17em;
    color: #fff;
}

.dl-final__title em {
    display: block;
    color: var(--dl-ice);
}

.dl-final__actions {
    display: grid;
    gap: 0.6rem;
    width: min(100%, 360px);
    margin-top: 0.4rem;
}

.dl-final__fine {
    font-size: 0.86rem;
    color: var(--dl-on-dark-3);
    text-wrap: balance;
}

@media (min-width: 560px) {
    .dl-final__actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
    }
}

@media (min-width: 992px) {
    .dl-faq {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        grid-template-areas:
            "head list"
            "founder list";
        align-items: start;
        column-gap: 5rem;
        row-gap: 2rem;
    }

    .dl-faq__head {
        grid-area: head;
    }

    .dl-faq__list {
        grid-area: list;
    }

    .dl-founder {
        grid-area: founder;
    }

    .dl-qa summary {
        min-height: 68px;
        font-size: 1.06rem;
    }
}

/* ═══════════════════════════════ Visor de capturas ════════════════════════ */

.dl-lightbox {
    width: min(1400px, 100vw - 24px);
    max-width: none;
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 0;
    border: 1px solid rgba(173, 214, 240, 0.2);
    border-radius: 18px;
    background: #0b141d;
    color: var(--dl-on-dark);
    overflow: hidden;
}

.dl-lightbox::backdrop {
    background: rgba(4, 10, 16, 0.82);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.dl-lightbox[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    animation: dl-pop 0.3s var(--dl-ease);
}

.dl-lightbox__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    border-bottom: 1px solid rgba(173, 214, 240, 0.12);
}

.dl-lightbox__hint {
    margin: 0;
    font-size: 0.82rem;
    color: var(--dl-on-dark-3);
}

.dl-lightbox__close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

.dl-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.dl-lightbox__close:focus-visible {
    outline: 3px solid var(--dl-ice);
    outline-offset: 2px;
}

.dl-lightbox__body {
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
}

.dl-lightbox__body img {
    display: block;
    width: 100%;
    height: auto;
}

/* En pantallas angostas la captura se ve a su tamaño real y se recorre con el dedo. */
@media (max-width: 899.98px) {
    .dl-lightbox__body img {
        width: auto;
        max-width: none;
    }
}

@media (min-width: 900px) {
    .dl-lightbox__hint {
        visibility: hidden;
    }
}

/* ═════════════════════════════ Movimiento ════════════════════════════════ */

@keyframes dl-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

@keyframes dl-frame-in {
    from { opacity: 0; transform: perspective(2400px) rotateY(-14deg) rotateX(6deg) translateY(30px); }
    to { opacity: 1; transform: perspective(2400px) rotateY(-7deg) rotateX(2deg); }
}

@keyframes dl-pop {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

@keyframes dl-bump {
    0% { transform: none; }
    35% { transform: translateY(-3px); }
    100% { transform: none; }
}

@keyframes dl-sheet-up {
    from { transform: translateY(40px); opacity: 0.4; }
    to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
    /* Entrada del hero: CSS puro, una vez. El H1 (LCP) y la captura no esperan a nadie. */
    .dl-hero__copy > :not(.dl-hero__title) {
        animation: dl-rise 0.6s var(--dl-ease) both;
    }

    .dl-hero__copy > :nth-child(3) { animation-delay: 0.06s; }
    .dl-hero__copy > :nth-child(4) { animation-delay: 0.12s; }
    .dl-hero__copy > :nth-child(5) { animation-delay: 0.18s; }

    @media (min-width: 1200px) {
        .dl-callout--kpi { animation: dl-pop 0.6s var(--dl-ease) 0.7s both; }
        .dl-callout--alerta { animation: dl-pop 0.6s var(--dl-ease) 0.95s both; }

        .dl-hero__frame {
            animation: dl-frame-in 1.1s var(--dl-ease) both;
        }
    }

    /* Revelado al hacer scroll: corto y suave; solo si el JS está activo (si no, todo queda visible). */
    .dl-js [data-dl-reveal] {
        opacity: 0;
        transform: translateY(14px);
        transition: opacity 0.55s var(--dl-ease), transform 0.6s var(--dl-ease);
    }

    .dl-js [data-dl-reveal].is-in {
        opacity: 1;
        transform: none;
    }

    .dl-ticket__amount.is-bump {
        animation: dl-bump 0.4s var(--dl-ease);
    }

    .dl-qa[open] p {
        animation: dl-rise 0.35s var(--dl-ease);
    }

    .dl-sheet[open] {
        animation: dl-sheet-up 0.35s var(--dl-ease);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dl *,
    .dl *::before,
    .dl *::after {
        animation: none !important;
        transition-duration: 0.001ms !important;
    }
}

/* Anclas: sin navbar fijo arriba, la sección llega al borde superior. */
.dl section[id] {
    scroll-margin-top: 0;
}

/* ═══════════════════════════ GUÍA DEL RECORRIDO ════════════════════════════
   Escritorio (≥ 1200 px): índice editorial fijo a la derecha (compacto con números; crece con el
   puntero o el foco y anuncia el capítulo al cambiar). Teléfono/tableta: botón "Índice" en el hero
   + píldora discreta que aparece al desplazarse hacia arriba; ambos abren la hoja con el índice.
   El progreso de lectura (--dl-tour-p, 0 a 1) lo fija landing.js en la raíz .dl. */

.dl-tour {
    display: none;
}

@media (min-width: 1200px) {
    /* El contenido deja libre el carril de la guía. */
    .dl-wrap {
        width: min(1200px, 100% - 2 * (var(--dl-gutter) + 64px));
    }

    .dl-tour {
        position: fixed;
        z-index: 1030;
        top: 50%;
        right: 18px;
        display: grid;
        /* La columna NO crece con las etiquetas (ocultas pero presentes): se queda en el ancho del riel. */
        grid-template-columns: minmax(0, 1fr);
        gap: 0.85rem;
        width: 62px;
        padding: 0.95rem 0.5rem 0.75rem;
        border-radius: 24px;
        color: var(--dl-text);
        background: rgba(255, 255, 255, 0.74);
        -webkit-backdrop-filter: blur(18px) saturate(1.4);
        backdrop-filter: blur(18px) saturate(1.4);
        border: 1px solid rgba(15, 43, 61, 0.1);
        box-shadow: 0 24px 50px -26px rgba(7, 18, 28, 0.4);
        transform: translateY(-50%);
        transition: width 0.4s var(--dl-ease), background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
        --dl-focus: var(--dl-ice-strong);
    }

    .dl-tour.is-on-dark {
        color: var(--dl-on-dark);
        background: rgba(9, 22, 33, 0.72);
        border-color: rgba(173, 214, 240, 0.16);
        box-shadow: 0 24px 50px -26px rgba(0, 0, 0, 0.7);
        --dl-focus: var(--dl-ice);
    }

    .dl-tour:hover,
    .dl-tour:focus-within {
        width: 236px;
        background: rgba(255, 255, 255, 0.95);
    }

    .dl-tour.is-on-dark:hover,
    .dl-tour.is-on-dark:focus-within {
        background: rgba(9, 22, 33, 0.94);
    }

    .dl-tour__head {
        display: grid;
        justify-items: center;
        gap: 0.1rem;
        white-space: nowrap;
    }

    .dl-tour__kicker {
        display: none;
        font-family: var(--dl-num);
        font-size: 0.66rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        opacity: 0.6;
    }

    .dl-tour__head b {
        font-family: var(--dl-num);
        font-size: 1.05rem;
        font-weight: 700;
        line-height: 1;
    }

    .dl-tour__head small {
        font-size: 0.66rem;
        font-weight: 500;
        opacity: 0.55;
    }

    .dl-tour__track {
        display: block;
        height: 2px;
        margin-inline: 0.35rem;
        border-radius: 2px;
        background: rgba(127, 147, 167, 0.25);
        overflow: hidden;
    }

    .dl-tour__fill {
        display: block;
        height: 100%;
        background: linear-gradient(90deg, var(--dl-ice-strong), var(--dl-mint));
        transform: scaleX(var(--dl-tour-p, 0));
        transform-origin: left center;
    }

    .dl-tour.is-on-dark .dl-tour__fill {
        background: linear-gradient(90deg, var(--dl-ice), var(--dl-mint));
    }

    .dl-tour__list {
        display: grid;
        gap: 2px;
    }

    .dl-tour__link {
        position: relative;
        display: flex;
        align-items: center;
        gap: 0.7rem;
        min-height: 36px;
        padding: 0 0 0 6px;
        border-radius: 12px;
        color: inherit;
        text-decoration: none;
        white-space: nowrap;
        transition: background-color 0.25s ease;
    }

    .dl-tour__link:hover {
        background: rgba(127, 147, 167, 0.12);
    }

    .dl-tour__n {
        display: grid;
        place-items: center;
        flex-shrink: 0;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        font-family: var(--dl-num);
        font-size: 0.74rem;
        font-weight: 500;
        opacity: 0.62;
        transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease, transform 0.35s var(--dl-ease);
    }

    .dl-tour__label {
        min-width: 0;
        overflow: hidden;
        font-size: 0.88rem;
        font-weight: 700;
        opacity: 0;
        transition: opacity 0.25s ease;
    }

    .dl-tour:hover .dl-tour__label,
    .dl-tour:focus-within .dl-tour__label {
        opacity: 0.8;
        transition-delay: 0.12s;
    }

    .dl-tour__link[aria-current="true"] .dl-tour__n {
        opacity: 1;
        color: #fff;
        background: var(--dl-slate);
        transform: scale(1.06);
    }

    .dl-tour.is-on-dark .dl-tour__link[aria-current="true"] .dl-tour__n {
        color: var(--dl-ink);
        background: var(--dl-ice);
    }

    .dl-tour:hover .dl-tour__link[aria-current="true"] .dl-tour__label,
    .dl-tour:focus-within .dl-tour__link[aria-current="true"] .dl-tour__label {
        opacity: 1;
    }

    /* Al entrar a un capítulo, su nombre aparece un momento junto a la guía (sin abrirla). */
    .dl-tour__link[aria-current="true"]::after {
        content: attr(data-dl-tour-name);
        position: absolute;
        right: calc(100% + 18px);
        top: 50%;
        padding: 0.4rem 0.8rem;
        border-radius: 999px;
        font-size: 0.82rem;
        font-weight: 800;
        color: #fff;
        background: var(--dl-slate);
        box-shadow: 0 14px 30px -14px rgba(7, 18, 28, 0.6);
        opacity: 0;
        transform: translate(8px, -50%);
        pointer-events: none;
        transition: opacity 0.35s ease, transform 0.45s var(--dl-ease);
    }

    .dl-tour.is-on-dark .dl-tour__link[aria-current="true"]::after {
        color: var(--dl-ink);
        background: var(--dl-ice);
    }

    .dl-tour.is-announcing:not(:hover):not(:focus-within) .dl-tour__link[aria-current="true"]::after {
        opacity: 1;
        transform: translate(0, -50%);
    }

    .dl-tour__access {
        display: grid;
        gap: 0.35rem;
        padding-top: 0.7rem;
        border-top: 1px solid rgba(127, 147, 167, 0.22);
    }

    .dl-tour__btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        min-height: 40px;
        border-radius: 999px;
        color: inherit;
        font-size: 0.86rem;
        font-weight: 800;
        text-decoration: none;
        white-space: nowrap;
        border: 1px solid rgba(127, 147, 167, 0.3);
        overflow: hidden;
        transition: background-color 0.25s ease, border-color 0.25s ease;
    }

    .dl-tour__btn:hover {
        color: inherit;
        border-color: rgba(127, 147, 167, 0.6);
    }

    .dl .dl-tour__btn--primary {
        color: #fff;
        background: var(--dl-slate);
        border-color: var(--dl-slate);
    }

    .dl .dl-tour__btn--primary:hover {
        color: #fff;
        background: #17405a;
    }

    .dl .dl-tour.is-on-dark .dl-tour__btn--primary {
        color: var(--dl-ink);
        background: var(--dl-ice);
        border-color: var(--dl-ice);
    }

    .dl-tour__btn-text {
        display: none;
    }

    .dl-tour:hover .dl-tour__btn-text,
    .dl-tour:focus-within .dl-tour__btn-text,
    .dl-tour:hover .dl-tour__kicker,
    .dl-tour:focus-within .dl-tour__kicker {
        display: inline;
    }
}

/* Píldora móvil: pequeña, arriba a la derecha, dentro del área segura. Aparece SOLO al desplazarse
   hacia arriba (o con foco de teclado) y se esconde al seguir leyendo hacia abajo: nunca tapa el texto
   mientras se lee ni compite con los botones de acción. */
.dl-mnav {
    position: fixed;
    z-index: 1030;
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    right: calc(env(safe-area-inset-right, 0px) + 10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(-100% - 16px));
    transition: transform 0.35s var(--dl-ease), opacity 0.25s ease, visibility 0s linear 0.35s;
    --dl-focus: var(--dl-ice);
}

.dl-mnav.is-visible,
.dl-mnav:focus-within {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: transform 0.35s var(--dl-ease), opacity 0.25s ease, visibility 0s;
}

.dl-mnav__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    max-width: min(72vw, 270px);
    min-height: 46px;
    padding: 4px 14px 4px 4px;
    border: 1px solid rgba(173, 214, 240, 0.2);
    border-radius: 999px;
    background: rgba(7, 18, 28, 0.84);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    color: var(--dl-on-dark);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.dl-mnav__ring {
    position: relative;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: conic-gradient(var(--dl-ice) calc(var(--dl-tour-p, 0) * 360deg), rgba(173, 214, 240, 0.18) 0);
}

.dl-mnav__ring::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #0b1a27;
}

.dl-mnav__ring span {
    position: relative;
    font-family: var(--dl-num);
    font-size: 0.72rem;
    font-weight: 700;
}

.dl-mnav__label {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dl-mnav__btn .bi {
    color: var(--dl-ice);
}

@media (min-width: 1200px) {
    .dl-mnav {
        display: none;
    }
}

/* Hoja con el índice (teléfono y tableta). */
.dl-sheet {
    width: min(560px, 100vw);
    max-width: none;
    max-height: min(88dvh, 760px);
    margin: auto auto 0;
    padding: 0;
    border: 0;
    border-radius: 26px 26px 0 0;
    color: var(--dl-text);
    background: #fff;
    overflow: auto;
    overscroll-behavior: contain;
}

.dl-sheet::backdrop {
    background: rgba(4, 10, 16, 0.6);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.dl-sheet__head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0.85rem 0.6rem 1.35rem;
    background: rgba(255, 255, 255, 0.96);
}

.dl .dl-sheet__title {
    font-family: var(--dl-num);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dl-teal);
}

.dl-sheet__close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--dl-paper);
    color: var(--dl-text);
    cursor: pointer;
}

.dl-sheet__list {
    display: grid;
    padding: 0 0.75rem;
}

.dl-sheet__list a {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    min-height: 58px;
    padding: 0.4rem 0.6rem;
    border-radius: 14px;
    color: var(--dl-text);
    text-decoration: none;
}

.dl-sheet__list a:hover {
    background: var(--dl-paper);
}

.dl-sheet__list .dl-tour__n {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--dl-line-strong);
    font-family: var(--dl-num);
    font-size: 0.78rem;
    color: var(--dl-text-3);
}

.dl-sheet__list b {
    display: block;
    font-size: 0.98rem;
}

.dl-sheet__list small {
    display: block;
    font-size: 0.82rem;
    color: var(--dl-text-3);
}

.dl-sheet__list a[aria-current="true"] {
    background: var(--dl-ice-soft);
}

.dl-sheet__list a[aria-current="true"] .dl-tour__n {
    color: #fff;
    background: var(--dl-slate);
    border-color: var(--dl-slate);
}

.dl-sheet__access {
    display: grid;
    gap: 0.5rem;
    padding: 1rem 1.35rem max(1.25rem, env(safe-area-inset-bottom));
}
