/* ============================================================
   TopoApp — Carrusel de destacados del dashboard
   Temas: marca, oscuro, crema, verde, azul, violeta y personalizado
   (colores del admin en variables CSS, ver DestacadosService::estiloColores).
   Tipos: enriquecido, foto + texto y banner completo (imagen).
   ============================================================ */

.topo-dest {
    position: relative;
    margin: 0 0 1rem;
    /* Foto + texto se acomoda al ancho real del carrusel, no al de la pantalla */
    container-type: inline-size;
}

.topo-dest-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    border-radius: 20px;
    outline: none;
}
.topo-dest-track::-webkit-scrollbar { display: none; }

.topo-dest-slide {
    --dest-fg: #fff;
    --dest-muted: rgba(255, 255, 255, .86);
    --dest-tag-bg: rgba(255, 255, 255, .18);
    --dest-cta-bg: #fff;
    --dest-cta-fg: #B85522;
    --dest-art: rgba(255, 255, 255, .16);
    --dest-solid: #C85A1F;   /* color del panel donde se funde la foto */
    --dest-accent: #FFD2A8;  /* franjas junto a la foto */
    position: relative;
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 176px;
    padding: 24px 26px;
    overflow: hidden;
    border-radius: 20px;
    color: var(--dest-fg);
    scroll-snap-align: start;
    box-shadow: 0 10px 28px rgba(28, 29, 34, .12);
    isolation: isolate;
}
/* Brillo suave detrás del contenido */
.topo-dest-slide::before {
    content: "";
    position: absolute;
    right: -60px;
    top: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
}

/* ── Temas ─────────────────────────────────────────────────── */
.topo-dest--marca   { background: linear-gradient(120deg, #C85A1F 0%, #D96A2B 45%, #F29B55 100%); }
.topo-dest--oscuro  {
    background:
        radial-gradient(circle at 88% 20%, rgba(217, 106, 43, .38) 0%, rgba(217, 106, 43, 0) 45%),
        linear-gradient(120deg, #17181C 0%, #232429 100%);
    --dest-cta-bg: #D96A2B;
    --dest-cta-fg: #fff;
    --dest-art: rgba(217, 106, 43, .20);
    --dest-solid: #1B1C21;
    --dest-accent: #D96A2B;
}
.topo-dest--oscuro .topo-dest-tag { color: #FFB57A; background: rgba(217, 106, 43, .18); }
.topo-dest--crema   {
    background: linear-gradient(120deg, #FFFAF5 0%, #FBEDE2 100%);
    --dest-fg: #1C1D22;
    --dest-muted: #5B6270;
    --dest-tag-bg: rgba(217, 106, 43, .12);
    --dest-cta-bg: #D96A2B;
    --dest-cta-fg: #fff;
    --dest-art: rgba(217, 106, 43, .12);
    --dest-solid: #FDF3EA;
    --dest-accent: #D96A2B;
    box-shadow: 0 1px 2px rgba(15, 15, 15, .04), inset 0 0 0 1px rgba(217, 106, 43, .16);
}
.topo-dest--crema .topo-dest-tag { color: #B85522; }
.topo-dest--crema .topo-dest-icon { color: #D96A2B; }
.topo-dest--crema::before { background: radial-gradient(circle, rgba(245, 160, 90, .28) 0%, rgba(245, 160, 90, 0) 70%); }
.topo-dest--verde   { background: linear-gradient(120deg, #0B6B5E 0%, #0F8A6F 50%, #22B07D 100%); --dest-cta-fg: #0B6B5E; --dest-solid: #0D7A66; --dest-accent: #8FF0C4; }
.topo-dest--azul    { background: linear-gradient(120deg, #1E3A8A 0%, #2856C9 55%, #4C82F0 100%); --dest-cta-fg: #1E3A8A; --dest-solid: #2349A8; --dest-accent: #7FB0FF; }
.topo-dest--violeta { background: linear-gradient(120deg, #4C1D95 0%, #6D32D9 55%, #9B5CF0 100%); --dest-cta-fg: #4C1D95; --dest-solid: #5B25B5; --dest-accent: #CDA8FF; }
/* Personalizado: el panel se funde suavemente hacia el acento */
.topo-dest--personalizado {
    background: linear-gradient(120deg, var(--dest-solid) 0%, var(--dest-solid) 45%, color-mix(in srgb, var(--dest-solid) 80%, var(--dest-accent)) 100%);
    --dest-tag-bg: color-mix(in srgb, var(--dest-accent) 24%, transparent);
    --dest-art: color-mix(in srgb, var(--dest-accent) 22%, transparent);
}
.topo-dest--personalizado .topo-dest-icon { color: var(--dest-accent); }
.topo-dest--personalizado .topo-dest-ring { border-color: color-mix(in srgb, var(--dest-accent) 45%, transparent); }
.topo-dest--personalizado::before { background: radial-gradient(circle, color-mix(in srgb, var(--dest-accent) 30%, transparent) 0%, transparent 70%); }

/* ── Contenido ─────────────────────────────────────────────── */
.topo-dest-body {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}
.topo-dest-tag {
    display: inline-flex;
    align-items: center;
    padding: .22rem .65rem;
    margin-bottom: .55rem;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--dest-fg);
    background: var(--dest-tag-bg);
    border-radius: 999px;
}
.topo-dest-title {
    margin: 0 0 .35rem;
    font-size: clamp(1.05rem, 2.3vw, 1.42rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -.01em;
    color: var(--dest-fg);
    max-width: 560px;
}
.topo-dest-text {
    margin: 0 0 .9rem;
    font-size: .9rem;
    line-height: 1.45;
    color: var(--dest-muted);
    max-width: 520px;
}
.topo-dest-cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.05rem;
    font-size: .85rem;
    font-weight: 700;
    color: var(--dest-cta-fg);
    background: var(--dest-cta-bg);
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .14);
    transition: transform .15s ease, box-shadow .15s ease;
}
/* Toda la tarjeta es clicable */
.topo-dest-cta::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.topo-dest-slide:hover .topo-dest-cta { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0, 0, 0, .18); color: var(--dest-cta-fg); }
.topo-dest-cta i { transition: transform .15s ease; }
.topo-dest-slide:hover .topo-dest-cta i { transform: translateX(3px); }

/* ── Ilustración con ícono ─────────────────────────────────── */
.topo-dest-art {
    position: relative;
    flex-shrink: 0;
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
    margin-right: 6px;
}
.topo-dest-icon {
    position: relative;
    z-index: 1;
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    font-size: 2.5rem;
    color: #fff;
    background: var(--dest-art);
    backdrop-filter: blur(6px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
    transform: rotate(-6deg);
}
.topo-dest-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 255, 255, .28);
}
.topo-dest--crema .topo-dest-ring { border-color: rgba(217, 106, 43, .28); }
.topo-dest-ring--1 { inset: 0; }
.topo-dest-ring--2 { inset: -16px; opacity: .5; }

/* ── Tipo imagen ───────────────────────────────────────────── */
.topo-dest--imagen {
    padding: 0;
    background: #F3F3F5;
}
.topo-dest--imagen::before { display: none; }
.topo-dest-img-link, .topo-dest--imagen picture { display: block; width: 100%; height: 100%; }
.topo-dest--imagen img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 176px;
    object-fit: cover;
}

/* ── Controles ─────────────────────────────────────────────── */
.topo-dest-nav {
    position: absolute;
    top: calc(50% - 18px);
    z-index: 2;
    width: 36px;
    height: 36px;
    display: none;
    place-items: center;
    padding: 0;
    color: #1C1D22;
    background: rgba(255, 255, 255, .92);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
    opacity: 0;
    transition: opacity .15s ease;
}
.topo-dest-nav--prev { left: 10px; }
.topo-dest-nav--next { right: 10px; }
@media (hover: hover) and (min-width: 768px) {
    .topo-dest-nav { display: grid; }
    /* Espacio para las flechas: no tapan el texto ni el ícono */
    .topo-dest-slide:not(.topo-dest--imagen) { padding-left: 60px; padding-right: 60px; }
    .topo-dest:hover .topo-dest-nav, .topo-dest-nav:focus-visible { opacity: 1; }
}

.topo-dest-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}
.topo-dest-dots { display: flex; align-items: center; gap: 6px; }
.topo-dest-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(28, 29, 34, .2);
    transition: width .25s ease, background .25s ease;
}
.topo-dest-dot.is-active { width: 22px; background: #D96A2B; }
.topo-dest-pause {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    padding: 0;
    font-size: .8rem;
    color: #5B6270;
    background: transparent;
    border: 1px solid rgba(28, 29, 34, .14);
    border-radius: 50%;
}
.topo-dest-pause:hover { color: #D96A2B; border-color: #D96A2B; }

/* ── Tipo foto + texto ──────────────────────────────────────
   La foto entra por la derecha con corte diagonal; el texto es
   real (nítido, editable y legible por lectores de pantalla). */
.topo-dest-slide.topo-dest--foto {
    min-height: 200px;
    padding-right: calc(50% + 24px);
}
.topo-dest--foto::before { display: none; }
/* Todo el slide es clicable, no solo la columna de texto */
.topo-dest--foto .topo-dest-body { position: static; }
.topo-dest--foto .topo-dest-title {
    font-size: clamp(1.15rem, 2.9cqi, 1.8rem);
    line-height: 1.12;
    letter-spacing: -.02em;
}
.topo-dest--foto .topo-dest-tag { background: var(--dest-accent); color: var(--dest-accent-fg, var(--dest-solid)); }
.topo-dest-foto {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 50%;
    z-index: -1;
    overflow: hidden;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
    background: var(--dest-solid);
}
.topo-dest-foto picture { display: block; width: 100%; height: 100%; }
.topo-dest-foto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.topo-dest--foto:hover .topo-dest-foto img { transform: scale(1.045); }
/* Sombra suave en el corte para que la foto se asiente en el panel */
.topo-dest-foto::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, 0) 32%);
    pointer-events: none;
}
.topo-dest-foto-accent {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    z-index: -1;
    overflow: visible;
    pointer-events: none;
}
.topo-dest-foto-accent polygon { fill: var(--dest-accent); }
.topo-dest-foto-accent--2 { opacity: .8; }
.topo-dest-foto-accent--3 { opacity: .5; }

/* ── Celular ───────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .topo-dest-slide { min-height: 168px; padding: 20px 18px; gap: 10px; align-items: flex-start; }
    .topo-dest-art { width: 64px; height: 64px; margin: 0; }
    .topo-dest-icon { width: 56px; height: 56px; border-radius: 18px; font-size: 1.6rem; }
    .topo-dest-ring--2 { display: none; }
    .topo-dest-text { font-size: .84rem; }
    .topo-dest--imagen img { min-height: 168px; }
}

/* Carrusel angosto (celular, tableta, vista previa del admin): la foto se funde
   con el panel a la derecha y el texto conserva todo el ancho que necesita */
@container (max-width: 640px) {
    .topo-dest-slide.topo-dest--foto { min-height: 190px; padding: 20px 18px; align-items: center; }
    .topo-dest--foto .topo-dest-body { max-width: 55%; }
    .topo-dest--foto .topo-dest-title { font-size: 1.08rem; }
    .topo-dest--foto .topo-dest-text {
        font-size: .84rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    /* Mismo corte diagonal con franjas que en escritorio. La foto se desvanece hacia el panel
       (máscara) en vez de pintarse con un color fijo: así no queda borde con ningún tema */
    .topo-dest-foto {
        left: 57%;
        clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
        -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .15) 0%, #000 42%);
        mask-image: linear-gradient(90deg, rgba(0, 0, 0, .15) 0%, #000 42%);
    }
    .topo-dest-foto::after { display: none; }
    .topo-dest-foto-accent { left: 57%; width: 43%; }
    /* La franja inferior caería sobre el botón en pantallas angostas */
    .topo-dest-foto-accent--3 { display: none; }
}

/* Celular: banner compacto. Título hasta 3 líneas y texto hasta 2 y los puntos
   flotan dentro del banner, así ocupa cerca de la mitad del alto sin perder nitidez */
@container (max-width: 520px) {
    .topo-dest-track, .topo-dest-slide { border-radius: 16px; }
    .topo-dest-slide:not(.topo-dest--imagen) { min-height: 0; padding: 14px 16px; gap: 10px; align-items: center; }
    .topo-dest-slide.topo-dest--foto { min-height: 148px; padding: 14px 16px; }
    .topo-dest--foto .topo-dest-body { max-width: 58%; }
    .topo-dest-tag { margin-bottom: .35rem; padding: .14rem .5rem; font-size: .58rem; letter-spacing: .06em; }
    .topo-dest-title, .topo-dest--foto .topo-dest-title {
        margin-bottom: .2rem;
        font-size: 1rem;
        line-height: 1.18;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .topo-dest-text, .topo-dest--foto .topo-dest-text {
        margin-bottom: .55rem;
        font-size: .76rem;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .topo-dest-cta { gap: .3rem; padding: .34rem .8rem; font-size: .74rem; box-shadow: 0 4px 10px rgba(0, 0, 0, .14); }
    .topo-dest-cta::after { border-radius: 16px; }
    .topo-dest-art { width: 52px; height: 52px; margin: 0 0 0 auto; }
    .topo-dest-icon { width: 44px; height: 44px; border-radius: 14px; font-size: 1.25rem; }
    .topo-dest-ring--2 { display: none; }

    .topo-dest-controls {
        position: absolute;
        right: 10px;
        bottom: 8px;
        z-index: 2;
        gap: 6px;
        margin: 0;
        padding: 3px 4px 3px 8px;
        background: rgba(15, 15, 20, .34);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border-radius: 999px;
    }
    .topo-dest-dots { gap: 4px; }
    .topo-dest-dot { width: 5px; height: 5px; background: rgba(255, 255, 255, .55); }
    .topo-dest-dot.is-active { width: 14px; background: #fff; }
    .topo-dest-pause { width: 20px; height: 20px; font-size: .62rem; color: #fff; border-color: rgba(255, 255, 255, .45); }
    .topo-dest-pause:hover { color: #fff; border-color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
    .topo-dest-track { scroll-behavior: auto; }
    .topo-dest-cta, .topo-dest-cta i, .topo-dest-dot, .topo-dest-foto img { transition: none; }
    .topo-dest--foto:hover .topo-dest-foto img { transform: none; }
}

/* ============================================================
   Artículos de destacados (panel lateral / hoja inferior)
   ============================================================ */
button.topo-dest-cta { border: 0; cursor: pointer; font-family: inherit; }
button.topo-dest-img-link { padding: 0; border: 0; background: none; cursor: pointer; }

.topo-art.offcanvas { --bs-offcanvas-width: 520px; --bs-offcanvas-height: 92vh; border: 0; background: #fff; display: flex; flex-direction: column; box-shadow: -24px 0 60px rgba(17, 12, 8, .18); }
.topo-art.offcanvas-bottom { border-radius: 22px 22px 0 0; box-shadow: 0 -18px 50px rgba(17, 12, 8, .22); overflow: hidden; }
.topo-art-agarre { display: none; justify-content: center; padding: 8px 0 2px; flex-shrink: 0; touch-action: none; }
.topo-art-agarre span { width: 42px; height: 5px; border-radius: 999px; background: #d6d3d1; }
.topo-art.offcanvas-bottom .topo-art-agarre { display: flex; position: absolute; top: 0; left: 0; right: 0; z-index: 4; }
.topo-art.offcanvas-bottom .topo-art-agarre span { background: rgba(255, 255, 255, .85); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.topo-art-progreso { position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 5; }
.topo-art-progreso span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #D96A2B, #F5A05A); border-radius: 0 3px 3px 0; transition: width .1s linear; }
.topo-art-cerrar {
    position: absolute; top: 14px; right: 14px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; border: 0;
    display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #1c1917; box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .15s;
}
.topo-art-cerrar:hover { transform: rotate(90deg); }
.topo-art-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

.topo-art-hero {
    position: relative; height: 220px; overflow: hidden; display: grid; place-items: center;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .25), transparent 45%),
                linear-gradient(135deg, var(--art-color, #D96A2B), color-mix(in srgb, var(--art-color, #D96A2B) 55%, #1c1208));
}
.topo-art-hero.has-img { background: #f5f5f4; }
.topo-art-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.topo-art-hero.has-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, rgba(255, 255, 255, .9)); }
.topo-art-hero-icon { position: relative; width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; font-size: 2.4rem; color: #fff; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(4px); animation: topoArtFlota 4s ease-in-out infinite; }
.topo-art-hero-ring { position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); }
.topo-art-hero-ring--2 { width: 340px; height: 340px; border-color: rgba(255, 255, 255, .12); }
@keyframes topoArtFlota { 50% { transform: translateY(-6px) rotate(-3deg); } }

.topo-art-content { position: relative; padding: 0 28px 28px; margin-top: -22px; }
.topo-art-cat {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff;
    color: var(--art-color, #D96A2B); font-size: .76rem; font-weight: 800; letter-spacing: .02em; box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
}
.topo-art-title { margin: 14px 0 8px; font-size: 1.6rem; font-weight: 900; line-height: 1.2; letter-spacing: -.02em; color: #1c1917; }
.topo-art-lead { margin: 0 0 14px; font-size: 1.02rem; line-height: 1.55; color: #57534e; }
.topo-art-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid #f0eeec; font-size: .78rem; color: #78716c; }
.topo-art-meta span { display: inline-flex; align-items: center; gap: 5px; }
.topo-art-autor { font-weight: 700; color: #44403c; }
.topo-art-autor img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

.topo-art-texto { font-size: .98rem; line-height: 1.72; color: #292524; }
.topo-art-texto > * + * { margin-top: .9em; }
.topo-art-texto p { margin: 0; }
.topo-art-texto > * + p, .topo-art-texto blockquote > * + p { margin-top: .9em; }
.topo-art-texto blockquote > * + p { margin-top: .55em; }
.topo-art-texto h3 { margin: 1.4em 0 .4em; font-size: 1.15rem; font-weight: 800; color: #1c1917; letter-spacing: -.01em; }
.topo-art-texto h4 { margin: 1.2em 0 .3em; font-size: 1rem; font-weight: 800; color: #1c1917; }
.topo-art-texto ul, .topo-art-texto ol { margin: 0; padding-left: 1.3em; }
.topo-art-texto li + li { margin-top: .35em; }
.topo-art-texto ol { counter-reset: paso; list-style: none; padding-left: 0; }
.topo-art-texto ol > li { position: relative; padding-left: 40px; min-height: 28px; counter-increment: paso; }
.topo-art-texto ol > li::before {
    content: counter(paso); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center; background: #fff3ea; color: #C2410C; font-weight: 800; font-size: .82rem;
}
.topo-art-texto strong { color: #1c1917; }
.topo-art-texto mark { background: #fef3c7; padding: 0 .2em; border-radius: 4px; }
.topo-art-texto a { color: #C2410C; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: rgba(194, 65, 12, .3); }
.topo-art-texto a:hover { text-decoration-color: currentColor; }
.topo-art-texto a[data-interno]::after { content: "\F135"; font-family: "bootstrap-icons"; font-size: .8em; margin-left: 3px; text-decoration: none; display: inline-block; }
.topo-art-texto hr { border: 0; height: 1px; background: #e7e5e4; margin: 1.5em 0; }
.topo-art-texto blockquote { margin: 1.2em 0; padding: 14px 16px 14px 46px; position: relative; border-radius: 14px; background: #fafaf9; border: 1px solid #f0eeec; color: #44403c; }
.topo-art-texto blockquote::before { content: "\F6B0"; font-family: "bootstrap-icons"; position: absolute; left: 16px; top: 13px; font-size: 1.05rem; color: #a8a29e; }
.topo-art-texto blockquote.tip { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.topo-art-texto blockquote.tip::before { content: "\F468"; color: #16a34a; }
.topo-art-texto blockquote.aviso { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.topo-art-texto blockquote.aviso::before { content: "\F33A"; color: #d97706; }
.topo-art-texto blockquote.nota { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.topo-art-texto blockquote.nota::before { content: "\F430"; color: #2563eb; }
.topo-art-texto blockquote > * + * { margin-top: .55em; }
.topo-art-texto blockquote ul, .topo-art-texto blockquote ol { margin: 0; }
/* Recuadros de aprendizaje: llevan una etiqueta sobre el borde */
.topo-art-texto blockquote.objetivo, .topo-art-texto blockquote.ejemplo, .topo-art-texto blockquote.mision, .topo-art-texto blockquote.resumen { margin-top: 1.9em; padding-top: 20px; border-radius: 16px; }
.topo-art-texto blockquote.objetivo::after, .topo-art-texto blockquote.ejemplo::after, .topo-art-texto blockquote.mision::after, .topo-art-texto blockquote.resumen::after {
    position: absolute; top: -11px; left: 14px; padding: 3px 11px; border-radius: 99px; font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #fff; line-height: 1.4; }
.topo-art-texto blockquote.objetivo::before, .topo-art-texto blockquote.ejemplo::before, .topo-art-texto blockquote.mision::before, .topo-art-texto blockquote.resumen::before { top: 19px; }

.topo-art-texto blockquote.objetivo { background: #ecfdf5; border-color: #a7f3d0; color: #064e3b; }
.topo-art-texto blockquote.objetivo::before { content: "\F1DE"; color: #0D7A66; }
.topo-art-texto blockquote.objetivo::after { content: "Lo que vas a lograr"; background: #0D7A66; }
.topo-art-texto blockquote.objetivo strong { color: #064e3b; }

.topo-art-texto blockquote.ejemplo { background: #faf5ff; border: 1.5px dashed #d8b4fe; color: #3b0764; font-variant-numeric: tabular-nums; }
.topo-art-texto blockquote.ejemplo::before { content: "\F1E0"; color: #7C3AED; }
.topo-art-texto blockquote.ejemplo::after { content: "Ejemplo con números"; background: #7C3AED; }
.topo-art-texto blockquote.ejemplo strong { color: #6d28d9; }
.topo-art-texto blockquote.ejemplo li + li { margin-top: .3em; }

.topo-art-texto blockquote.mision { background: linear-gradient(135deg, #fff7ed, #ffedd5); border: 1.5px solid #fdba74; color: #7c2d12; box-shadow: 0 10px 24px rgba(217, 106, 43, .14); }
.topo-art-texto blockquote.mision::before { content: "\F3CB"; color: #D96A2B; animation: topoMisionOndea 2.8s ease-in-out infinite; transform-origin: 20% 90%; }
.topo-art-texto blockquote.mision::after { content: "Misión de hoy · 15 min"; background: linear-gradient(135deg, #E8803F, #C2410C); }
.topo-art-texto blockquote.mision strong { color: #9a3412; }

.topo-art-texto blockquote.resumen { background: #1c1917; border-color: #1c1917; color: #e7e5e4; }
.topo-art-texto blockquote.resumen::before { content: "\F473"; color: #FBBF24; }
.topo-art-texto blockquote.resumen::after { content: "En resumen"; background: #FBBF24; color: #1c1917; }
.topo-art-texto blockquote.resumen strong, .topo-art-texto blockquote.resumen a { color: #fff; }
.topo-art-texto blockquote.resumen ul { list-style: none; padding-left: 0; }
.topo-art-texto blockquote.resumen ul > li { position: relative; padding-left: 24px; }
.topo-art-texto blockquote.resumen ul > li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; color: #4ade80; font-weight: 700; }
@keyframes topoMisionOndea { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-10deg); } }


.topo-art-pie {
    flex-shrink: 0; display: flex; gap: 10px; align-items: center; padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid #f0eeec; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
}
.topo-art-cta {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px; border-radius: 14px;
    background: linear-gradient(135deg, #D96A2B, #C2410C); color: #fff !important; font-weight: 800; text-decoration: none;
    box-shadow: 0 10px 24px rgba(217, 106, 43, .3); transition: transform .15s, box-shadow .15s;
}
.topo-art-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(217, 106, 43, .38); }
.topo-art-cta i { transition: transform .15s; }
.topo-art-cta:hover i { transform: translateX(3px); }
.topo-art-listo { padding: 13px 16px; border-radius: 14px; border: 1px solid #e7e5e4; background: #fff; color: #57534e; font-weight: 700; }
.topo-art-pie > .topo-art-listo:only-child { flex: 1; background: #1c1917; color: #fff; border-color: #1c1917; }

@media (max-width: 767.98px) {
    .topo-art-hero { height: 180px; }
    .topo-art-content { padding: 0 20px 22px; }
    .topo-art-title { font-size: 1.35rem; }
    .topo-art-cerrar { top: 16px; right: 12px; width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) { .topo-art-hero-icon { animation: none; } }
/* Por encima de los avisos flotantes de la app (actualización, toasts) */
.topo-art.offcanvas { z-index: 1100; }
/* Botón para volver a la biblioteca de la Academia */
.topo-art-volver {
    position: absolute; top: 14px; left: 14px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
    border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #1c1917; font-weight: 700; font-size: .84rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.topo-art-volver:hover { color: #C2410C; }
.topo-art.offcanvas-bottom .topo-art-volver { top: 18px; }

/* ── Academia: quiz, final del artículo y celebraciones ── */
/* ── Quiz ───────────────────────────────────────────────── */
.topo-quiz { margin: 30px 0 0; padding: 20px; border-radius: 22px; background: radial-gradient(420px 160px at 100% 0%, rgba(124, 58, 237, .12), transparent 70%), linear-gradient(180deg, #faf5ff, #fff 60%); border: 1px solid #e9d5ff; box-shadow: 0 14px 34px rgba(91, 33, 182, .08); }
.topo-quiz-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.topo-quiz-icono { flex-shrink: 0; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, #8B5CF6, #6D28D9); color: #fff; font-size: 1.25rem; box-shadow: 0 8px 18px rgba(109, 40, 217, .3); }
.topo-quiz-head strong { display: block; color: #1c1917; font-size: 1.02rem; }
.topo-quiz-head div span { display: block; font-size: .8rem; color: #6b21a8; }
.topo-quiz-premio { margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 99px; background: #fff; border: 1px solid #ddd6fe; color: #6d28d9; font-weight: 800; font-size: .82rem; }
.topo-quiz-avance { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.topo-quiz-barra { flex: 1; height: 8px; border-radius: 99px; background: #ede9fe; overflow: hidden; }
.topo-quiz-barra span { display: block; width: 0; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #8B5CF6, #D96A2B); transition: width .45s cubic-bezier(.2, .9, .3, 1); }
.topo-quiz-avance small { flex-shrink: 0; font-size: .76rem; font-weight: 800; color: #6b21a8; font-variant-numeric: tabular-nums; }

.topo-quiz-pregunta { margin: 0 0 14px; padding: 16px; border: 1px solid #ede9fe; border-radius: 18px; background: #fff; scroll-margin: 80px; transition: border-color .2s, box-shadow .2s; }
.topo-quiz-pregunta.is-respondida { border-color: #c4b5fd; }
.topo-quiz-pregunta.is-bien { border-color: #86efac; box-shadow: 0 0 0 3px rgba(22, 163, 74, .08); }
.topo-quiz-pregunta.is-mal { border-color: #fca5a5; box-shadow: 0 0 0 3px rgba(220, 38, 38, .06); }
.topo-quiz-pregunta legend { float: left; width: 100%; margin: 0 0 12px; padding: 0; }
.topo-quiz-pregunta legend + * { clear: both; }
.topo-quiz-num { display: block; margin-bottom: 4px; font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #7C3AED; }
.topo-quiz-enunciado { display: block; font-size: .98rem; font-weight: 800; line-height: 1.4; color: #1c1917; }
.topo-quiz-opciones { display: grid; gap: 8px; }
.topo-quiz-opcion { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 12px; border-radius: 14px; border: 1.5px solid #e7e5e4; background: #fff; text-align: left; font-size: .9rem; line-height: 1.35; color: #292524; transition: border-color .15s, background .15s, transform .12s, box-shadow .15s; }
.topo-quiz-opcion:hover:not(:disabled) { border-color: #c4b5fd; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(124, 58, 237, .08); }
.topo-quiz-opcion:active:not(:disabled) { transform: scale(.99); }
.topo-quiz-letra { flex-shrink: 0; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #f5f5f4; font-weight: 800; font-size: .8rem; color: #57534e; transition: all .15s; }
.topo-quiz-texto { flex: 1; min-width: 0; }
.topo-quiz-marca { flex-shrink: 0; font-size: 1.15rem; }
.topo-quiz-opcion.is-elegida { border-color: #7C3AED; background: #f5f3ff; }
.topo-quiz-opcion.is-elegida .topo-quiz-letra { background: #7C3AED; color: #fff; transform: scale(1.06); }
.topo-quiz-opcion.is-correcta { border-color: #16a34a; background: #f0fdf4; color: #14532d; }
.topo-quiz-opcion.is-correcta .topo-quiz-letra { background: #16a34a; color: #fff; }
.topo-quiz-opcion.is-correcta .topo-quiz-marca { color: #16a34a; animation: topoQuizMarca .4s cubic-bezier(.3, 1.6, .5, 1); }
.topo-quiz-opcion.is-incorrecta { border-color: #dc2626; background: #fef2f2; color: #7f1d1d; animation: topoSacudir .35s; }
.topo-quiz-opcion.is-incorrecta .topo-quiz-letra { background: #dc2626; color: #fff; }
.topo-quiz-opcion.is-incorrecta .topo-quiz-marca { color: #dc2626; }
.topo-quiz-opcion:disabled { cursor: default; }
.is-calificado .topo-quiz-opcion:not(.is-correcta):not(.is-incorrecta) { opacity: .55; }

.topo-quiz-explica { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; font-size: .86rem; line-height: 1.5; color: #44403c; background: #fafaf9; border: 1px solid #f0eeec; animation: topoQuizEntra .35s ease both; }
.topo-quiz-explica strong { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; font-size: .84rem; }
.is-bien .topo-quiz-explica { background: #f0fdf4; border-color: #bbf7d0; }
.is-bien .topo-quiz-explica strong { color: #15803d; }
.is-mal .topo-quiz-explica { background: #fffbeb; border-color: #fde68a; }
.is-mal .topo-quiz-explica strong { color: #b45309; }

.topo-quiz-enviar { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 12px; border: 0; border-radius: 15px; background: #d6d3d1; color: #fff; font-weight: 800; font-size: .95rem; transition: background .2s, box-shadow .2s, transform .12s; scroll-margin: 80px; }
.topo-quiz-enviar.is-listo { background: linear-gradient(135deg, #8B5CF6, #6D28D9); box-shadow: 0 12px 26px rgba(109, 40, 217, .3); animation: topoQuizListo .5s ease; }
.topo-quiz-enviar:active:not(:disabled) { transform: scale(.98); }
.topo-quiz-enviar:disabled { cursor: not-allowed; }

.topo-quiz-resultado { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: #f5f3ff; border: 1px solid #ddd6fe; animation: topoQuizEntra .45s ease both; }
.topo-quiz-resultado.is-perfecto { background: linear-gradient(135deg, #fef9c3, #dcfce7); border-color: #bbf7d0; }
.topo-quiz-puntaje { flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: baseline; justify-content: center; padding-top: 16px; gap: 1px; background: #fff; box-shadow: inset 0 0 0 4px #7C3AED; font-size: .9rem; font-weight: 800; color: #6b21a8; }
.is-perfecto .topo-quiz-puntaje { box-shadow: inset 0 0 0 4px #16a34a; color: #15803d; }
.topo-quiz-puntaje b { font-size: 1.5rem; }
.topo-quiz-resultado-txt { flex: 1; min-width: 0; }
.topo-quiz-resultado-txt strong { display: block; font-size: 1.02rem; color: #1c1917; }
.topo-quiz-resultado-txt small { display: block; margin-top: 2px; font-size: .8rem; color: #57534e; line-height: 1.4; }
.topo-quiz-ganados { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 99px; background: #1c1917; color: #fff; font-weight: 800; font-size: .86rem; }
.topo-quiz-hecho { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 14px; border-radius: 14px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; font-weight: 700; font-size: .9rem; }
@media (max-width: 420px) {
    .topo-quiz { padding: 16px 14px; }
    .topo-quiz-pregunta { padding: 14px 12px; }
    .topo-quiz-resultado { flex-wrap: wrap; }
}
@keyframes topoQuizEntra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes topoQuizMarca { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes topoQuizListo { 0% { transform: scale(1); } 40% { transform: scale(1.03); } 100% { transform: scale(1); } }
.topo-art-fin { display: flex; align-items: center; gap: 12px; margin: 24px 0 0; padding: 14px 16px; border-radius: 16px; border: 1.5px dashed #fed7aa; background: #fff7ed; color: #9a3412; font-size: .9rem; }
.topo-art-fin-icono { flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: #D96A2B; font-size: 1.1rem; }
.topo-art-fin.is-hecho { border-style: solid; border-color: #bbf7d0; background: #f0fdf4; color: #14532d; }
.topo-art-fin.is-hecho .topo-art-fin-icono { color: #16a34a; }
.topo-art-fin.is-celebrando { animation: topoLogro .6s ease; }
@keyframes topoLogro { 40% { transform: scale(1.04); } }
.topo-topos-chip { position: absolute; left: 50%; bottom: 96px; z-index: 6; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 999px;
    background: #1c1917; color: #fff; font-weight: 800; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); animation: topoChip 2.2s ease forwards; pointer-events: none; }
.topo-topos-chip i { color: #fbbf24; }
@keyframes topoChip { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.8); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 25% { transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -40px); } }
.topo-logro { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; padding: 20px; background: rgba(28, 25, 23, .55); backdrop-filter: blur(3px); animation: manEntraLogro .25s ease both; }
@keyframes manEntraLogro { from { opacity: 0; } to { opacity: 1; } }
.topo-logro-caja { width: 100%; max-width: 360px; padding: 24px 20px 20px; border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 30px 70px rgba(0, 0, 0, .3); animation: topoLogroCaja .45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes topoLogroCaja { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.topo-logro-caja h3 { margin: 0 0 14px; font-size: 1.3rem; font-weight: 900; color: #1c1917; }
.topo-logro-item { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 12px; border-radius: 16px; background: #fafaf9; text-align: left; }
.topo-logro-item--nivel { background: linear-gradient(135deg, #fff7ed, #fef3c7); }
.topo-logro-icono { --c: #D96A2B; flex-shrink: 0; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: var(--c); box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 35%, transparent); }
.topo-logro-item small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #a8a29e; }
.topo-logro-item strong { display: block; color: #1c1917; }
.topo-logro-item span:not(.topo-logro-icono) { font-size: .8rem; color: #78716c; }
.topo-logro-ok { width: 100%; margin-top: 6px; padding: 12px; border: 0; border-radius: 14px; background: #D96A2B; color: #fff; font-weight: 800; }
.topo-confeti { position: fixed; inset: 0; z-index: 3000; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .topo-topos-chip, .topo-logro-caja, .topo-art-fin.is-celebrando, .topo-quiz-opcion.is-incorrecta, .topo-quiz-explica, .topo-quiz-resultado, .topo-quiz-enviar.is-listo, .topo-art-texto blockquote.mision::before { animation: none; } }
.topo-logro-icono.has-img { background: transparent; box-shadow: none; }
.topo-logro-icono img { width: 100%; height: 100%; object-fit: contain; }
.topo-logro-mascota { display: block; width: 120px; height: 120px; object-fit: contain; margin: -70px auto 4px; filter: drop-shadow(0 12px 20px rgba(0,0,0,.2)); }
.topo-art-moneda { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: .78rem; color: #78716c; } .topo-art-moneda i { color: #D96A2B; }
/* Recuadros por país (lecciones de Emprende: trámites y datos locales) */
.topo-art-texto blockquote.pais-gt, .topo-art-texto blockquote.pais-sv, .topo-art-texto blockquote.pais-hn { margin-top: 1.7em; padding-top: 20px; background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid var(--pais); color: #1e293b; }
.topo-art-texto blockquote.pais-gt { --pais: #4997D0; } .topo-art-texto blockquote.pais-sv { --pais: #0F47AF; } .topo-art-texto blockquote.pais-hn { --pais: #00BCE4; }
.topo-art-texto blockquote.pais-gt::before, .topo-art-texto blockquote.pais-sv::before, .topo-art-texto blockquote.pais-hn::before { content: "\F3E8"; color: var(--pais); top: 19px; }
.topo-art-texto blockquote.pais-gt::after, .topo-art-texto blockquote.pais-sv::after, .topo-art-texto blockquote.pais-hn::after { position: absolute; top: -11px; left: 14px; padding: 3px 11px; border-radius: 99px; font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #fff; background: var(--pais); }
.topo-art-texto blockquote.pais-gt::after { content: "🇬🇹 En Guatemala"; } .topo-art-texto blockquote.pais-sv::after { content: "🇸🇻 En El Salvador"; } .topo-art-texto blockquote.pais-hn::after { content: "🇭🇳 En Honduras"; }

/* Imágenes ilustrativas dentro del artículo: siempre 16:9 y al ancho del texto */
.topo-art-texto .art-figura { margin: 1.4em 0; }
.topo-art-texto .art-figura img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: #f5f5f4; border: 1px solid #f0eeec; }
.topo-art-texto .art-figura figcaption { margin-top: 8px; font-size: .8rem; color: #78716c; text-align: center; line-height: 1.4; }

/* ── Quiz paso a paso (assets/js/quiz-pasos.js) ── */
.topo-quiz.is-pasos { padding: 16px; margin-top: 24px; }
.topo-quiz.is-pasos .topo-quiz-head { margin-bottom: 10px; }
.topo-quiz.is-pasos .topo-quiz-icono { width: 40px; height: 40px; border-radius: 13px; font-size: 1.1rem; }
.topo-quiz.is-pasos .topo-quiz-avance { margin-bottom: 10px; }
.topo-quiz.is-pasos .topo-quiz-pregunta { display: none; margin: 0 0 10px; padding: 14px; }
.topo-quiz.is-pasos .topo-quiz-pregunta.tq-activa { display: block; }
.topo-quiz.is-pasos .topo-quiz-pregunta legend { margin-bottom: 10px; }
.topo-quiz.is-pasos .topo-quiz-opciones { gap: 6px; }
.topo-quiz.is-pasos .topo-quiz-opcion { padding: 9px 11px; }
.topo-quiz.is-pasos .topo-quiz-letra { width: 28px; height: 28px; }
.topo-quiz.is-pasos .topo-quiz-resultado { margin: 0 0 10px; padding: 12px 14px; }
.topo-quiz.is-pasos .topo-quiz-puntaje { width: 54px; height: 54px; padding-top: 12px; }
.tq-entra-der { animation: tqDer .34s cubic-bezier(.2, .9, .3, 1) both; }
.tq-entra-izq { animation: tqIzq .34s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes tqDer { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes tqIzq { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.tq-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.tq-ant, .tq-sig { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 6px 8px; border-radius: 10px; font-weight: 800; font-size: .82rem; color: #6d28d9; transition: background .15s, opacity .15s; }
.tq-ant:hover:not(:disabled), .tq-sig:hover:not(:disabled) { background: #f5f3ff; }
.tq-ant:disabled, .tq-sig:disabled { opacity: .3; cursor: default; }
.tq-sig[hidden] { display: none; }
.tq-puntos { display: flex; align-items: center; gap: 6px; }
.tq-punto { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; background: #ddd6fe; transition: width .3s cubic-bezier(.2, .9, .3, 1), background .25s; }
.tq-punto:disabled { cursor: default; }
.tq-punto.is-hecho { background: #a78bfa; }
.tq-punto.is-actual { width: 28px; background: #7C3AED; }
.tq-punto.is-bien { background: #16a34a; }
.tq-punto.is-mal { background: #dc2626; }
.tq-punto.is-actual.is-bien, .tq-punto.is-actual.is-mal { box-shadow: 0 0 0 3px rgba(124, 58, 237, .18); }
.tq-oculto { display: none !important; }
.topo-quiz.is-pasos .topo-quiz-enviar:not(.tq-oculto) { animation: tqSube .35s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes tqSube { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.topo-quiz.is-pasos .topo-quiz-opcion.is-elegida,
.topo-quiz.is-pasos .topo-quiz-opcion:has(input:checked) { animation: tqElige .28s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tqElige { 50% { transform: scale(1.025); } }
@media (prefers-reduced-motion: reduce) {
    .tq-entra-der, .tq-entra-izq, .topo-quiz.is-pasos .topo-quiz-enviar, .topo-quiz.is-pasos .topo-quiz-opcion { animation: none !important; }
}

/* ============================================================
   Versión compacta (v1.93.1): banner más delgado para dejar espacio
   a la operación. Título y texto a 2 líneas como máximo, el botón al
   lado del texto en pantallas anchas y los puntos dentro del banner.
   ============================================================ */
.topo-dest { margin-bottom: .85rem; }
.topo-dest .topo-dest-slide:not(.topo-dest--imagen) { min-height: 0; padding-top: 14px; padding-bottom: 14px; gap: 14px; }
.topo-dest .topo-dest-slide.topo-dest--foto { min-height: 128px; padding: 16px calc(40% + 20px) 16px 26px; }
.topo-dest-tag { margin-bottom: .32rem; padding: .16rem .55rem; font-size: .6rem; }
.topo-dest-title, .topo-dest--foto .topo-dest-title {
    margin-bottom: .2rem;
    font-size: clamp(1rem, 2cqi, 1.28rem);
    line-height: 1.18;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.topo-dest-text, .topo-dest--foto .topo-dest-text {
    margin: 0;
    font-size: .84rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.topo-dest-cta { padding: .42rem .95rem; font-size: .8rem; white-space: nowrap; }
/* Texto y botón en la misma fila: el banner gana ancho en vez de alto */
.topo-dest-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 18px;
    align-items: end;
}
.topo-dest-body > .topo-dest-tag { grid-column: 1 / -1; justify-self: start; }
.topo-dest-body > .topo-dest-title { grid-column: 1 / -1; max-width: none; }
.topo-dest-body > .topo-dest-text { grid-column: 1; max-width: none; }
.topo-dest-body > .topo-dest-cta { grid-column: 2; }
.topo-dest-body > .topo-dest-title + .topo-dest-cta { grid-column: 1; justify-self: start; margin-top: .35rem; }
/* Foto más angosta: más espacio para el mensaje */
.topo-dest-foto { left: 60%; }
.topo-dest-foto-accent { left: 60%; width: 40%; }
.topo-dest-foto-accent--3 { display: none; }
.topo-dest-art { width: 84px; height: 84px; margin-right: 0; }
.topo-dest-icon { width: 60px; height: 60px; border-radius: 18px; font-size: 1.6rem; }
.topo-dest-ring--2 { display: none; }
.topo-dest--imagen img { min-height: 0; max-height: 160px; }

/* Puntos y pausa flotan dentro del banner en todos los tamaños */
.topo-dest-controls {
    position: absolute;
    right: 12px;
    bottom: 10px;
    z-index: 2;
    gap: 6px;
    margin: 0;
    padding: 3px 4px 3px 8px;
    background: rgba(15, 15, 20, .34);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 999px;
}
.topo-dest-dots { gap: 4px; }
.topo-dest-dot { width: 5px; height: 5px; background: rgba(255, 255, 255, .55); }
.topo-dest-dot.is-active { width: 14px; background: #fff; }
.topo-dest-pause { width: 20px; height: 20px; font-size: .62rem; color: #fff; border-color: rgba(255, 255, 255, .45); }
.topo-dest-pause:hover { color: #fff; border-color: #fff; }

@media (hover: hover) and (min-width: 768px) {
    .topo-dest .topo-dest-slide.topo-dest--foto { padding-left: 56px; }
    .topo-dest-nav { width: 32px; height: 32px; top: calc(50% - 16px); }
}

/* Tableta y vista angosta: el botón vuelve debajo del texto */
@container (max-width: 760px) {
    .topo-dest-body { display: block; }
    .topo-dest-text, .topo-dest--foto .topo-dest-text { margin-bottom: .5rem; }
    .topo-dest .topo-dest-slide.topo-dest--foto { padding-right: calc(38% + 14px); }
    .topo-dest-foto, .topo-dest-foto-accent { left: 62%; }
    .topo-dest-foto-accent { width: 38%; }
}

/* Celular */
@container (max-width: 520px) {
    .topo-dest .topo-dest-slide:not(.topo-dest--imagen) { padding: 12px 14px; gap: 10px; }
    .topo-dest .topo-dest-slide.topo-dest--foto { min-height: 0; padding: 13px calc(36% + 6px) 13px 15px; }
    .topo-dest--foto .topo-dest-body { max-width: none; }
    .topo-dest-tag { display: none; }
    .topo-dest-title, .topo-dest--foto .topo-dest-title { font-size: .96rem; line-height: 1.16; }
    .topo-dest-text, .topo-dest--foto .topo-dest-text { font-size: .74rem; line-height: 1.32; margin-bottom: .45rem; }
    .topo-dest-cta { padding: .3rem .75rem; font-size: .72rem; }
    .topo-dest-foto, .topo-dest-foto-accent { left: 64%; }
    .topo-dest-foto-accent { width: 36%; }
    .topo-dest-art { width: 48px; height: 48px; margin: 0 0 0 auto; }
    .topo-dest-icon { width: 42px; height: 42px; border-radius: 13px; font-size: 1.2rem; }
    .topo-dest-controls { right: 8px; bottom: 7px; }
    .topo-dest--imagen img { max-height: 140px; }
}
