/* ================================================================ Bolsímetro · portada viva */

/* Tu Bolsímetro */
.dt-zona { margin: 18px 0 8px; }
.dt-zona__carga { min-height: 120px; border-radius: 20px; background: linear-gradient(90deg, var(--dh-surface-2), var(--dh-surface), var(--dh-surface-2)); background-size: 200% 100%; animation: dt-brillo 1.4s infinite; display: grid; place-items: center; color: var(--dh-muted); font-weight: 700; }
@keyframes dt-brillo { to { background-position: -200% 0; } }
.dt-zona__elegir { padding: 20px; border-radius: 20px; border: 2px dashed color-mix(in srgb, var(--dh-brand) 45%, transparent); background: color-mix(in srgb, var(--dh-brand) 6%, var(--dh-surface)); }
.dt-zona__kicker { margin: 0 0 4px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--dh-brand-ink); }
.dt-zona__tit { margin: 0 0 6px; font-size: 1.4rem; }
.dt-zona__form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 10px; }
.dt-zona__form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; }
.dt-zona__cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dt-zona__cambiar { border: 0; background: none; color: var(--dh-brand-ink); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: underline; }
.dt-zona__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.dt-zona__c { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; background: var(--dh-surface); border: 1px solid var(--dh-border); box-shadow: var(--dh-shadow); color: var(--dh-ink) !important; text-decoration: none !important; transition: transform .2s, box-shadow .2s; animation: dt-entra .45s ease both; }
.dt-zona__c:nth-child(2) { animation-delay: .08s; }
.dt-zona__c:nth-child(3) { animation-delay: .16s; }
.dt-zona__c:hover { transform: translateY(-3px); box-shadow: var(--dh-shadow-hover); }
.dt-zona__l { font-size: 14px; font-weight: 700; color: var(--dh-ink-2); }
.dt-zona__v { font-size: 30px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.dt-zona__v small { font-size: 14px; font-weight: 500; color: var(--dh-muted); letter-spacing: 0; }
.dt-zona__s { font-size: 13px; color: var(--dh-ink-2); }
.dt-zona__cuenta { font-weight: 800; color: var(--dh-brand-ink); }
@keyframes dt-entra { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 700px) { .dt-zona__form { grid-template-columns: minmax(0, 1fr); } }

/* Historias */
.dt-hist { position: relative; margin: 22px 0; border-radius: 22px; overflow: hidden; background: var(--dh-hero-1); color: #fff; min-height: 300px; user-select: none; }
.dt-hist__cab { position: absolute; left: 16px; right: 16px; top: 12px; z-index: 2; }
.dt-hist__t { font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #c9d7ea; }
.dt-hist__barras { display: flex; gap: 4px; margin-top: 8px; }
.dt-hist__barra { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.dt-hist__barra i { display: block; height: 100%; width: 0; background: #fff; }
.dt-hist__s { padding: 62px 64px 26px; min-height: 300px; display: flex; flex-direction: column; justify-content: center; animation: dt-hist-in .35s ease; }
@keyframes dt-hist-in { from { opacity: 0; transform: scale(.98); } }
.dt-hist__s--gas { background: radial-gradient(120% 120% at 100% 0, #1c5cab 0, transparent 60%); }
.dt-hist__s--luz { background: radial-gradient(120% 120% at 100% 0, #8a5f00 0, transparent 60%); }
.dt-hist__s--termo { background: radial-gradient(120% 120% at 100% 0, #9a3a33 0, transparent 60%); }
.dt-hist__s--divisa { background: radial-gradient(120% 120% at 100% 0, #0f6b4e 0, transparent 60%); }
.dt-hist__s--reto { background: radial-gradient(120% 120% at 100% 0, #5a3fb5 0, transparent 60%); }
.dt-hist__ico { font-size: 34px; }
.dt-hist__tit { margin: 8px 0 0; font-size: 17px; font-weight: 700; color: #c9d7ea; }
.dt-hist__cifra { margin: 2px 0; font-size: clamp(2.4rem, 7vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.dt-hist__sub { margin: 0; font-size: 18px; font-weight: 700; }
.dt-hist__pie { margin: 6px 0 0; font-size: 14px; color: #c9d7ea; }
.dt-hist__cuenta { margin: 8px 0 0; font-weight: 800; color: #ffd166; }
.dt-hist__cta { align-self: flex-start; margin-top: 14px; padding: 9px 16px; border-radius: 999px; background: #fff; color: #0b1a2e !important; font-weight: 800; font-size: 14px; text-decoration: none !important; }
.dt-hist__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 24px; cursor: pointer; }
.dt-hist__nav:hover { background: rgba(255, 255, 255, .22); }
.dt-hist__nav--prev { left: 10px; }
.dt-hist__nav--sig { right: 10px; }
@media (max-width: 600px) { .dt-hist__s { padding: 60px 22px 64px; } .dt-hist__nav { top: auto; bottom: 14px; transform: none; width: 34px; height: 34px; } }

/* Tu mapa de España */
.dt-prog { margin: 30px 0; padding: 22px; border-radius: 22px; background: var(--dh-surface); border: 1px solid var(--dh-border); box-shadow: var(--dh-shadow); }
.dt-prog__cab { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.dt-prog__kicker { margin: 0 0 4px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--dh-brand-ink); }
.dt-prog__tit { margin: 0; font-size: 1.45rem; }
.dt-prog__sub { margin: 4px 0 0; color: var(--dh-ink-2); font-size: 14px; }
.dt-prog__stats { display: flex; gap: 8px; flex-wrap: wrap; }
.dt-prog__stat { display: flex; flex-direction: column; align-items: center; padding: 8px 12px; border-radius: 14px; background: var(--dh-surface-2); min-width: 92px; font-size: 18px; }
.dt-prog__stat b { font-size: 22px; font-variant-numeric: tabular-nums; }
.dt-prog__stat small { font-size: 11px; color: var(--dh-muted); text-align: center; }
.dt-prog__barra { height: 10px; border-radius: 999px; background: var(--dh-surface-2); margin: 16px 0; overflow: hidden; box-shadow: inset 0 0 0 1px var(--dh-border); }
.dt-prog__barra i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--dh-brand); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.dt-prog__mapa { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; max-width: 620px; margin: 0 auto; }
.dt-prog__t { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; font-size: 11px; font-weight: 800; text-decoration: none !important; background: var(--dh-surface-2); color: var(--dh-muted) !important; border: 1px dashed var(--dh-grid); transition: transform .15s; }
.dt-prog__t:hover { transform: scale(1.12); border-style: solid; border-color: var(--dh-brand); color: var(--dh-brand-ink) !important; }
.dt-prog__t.is-visto { background: var(--dh-brand); color: #fff !important; border: 0; box-shadow: 0 0 0 2px color-mix(in srgb, var(--dh-brand) 25%, transparent); }
.dt-prog__insignias { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; justify-content: center; }
.dt-ins { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--dh-surface-2); color: var(--dh-muted); filter: grayscale(1); opacity: .65; }
.dt-ins small { font-weight: 500; font-size: 11px; }
.dt-ins.is-ganada { filter: none; opacity: 1; color: var(--dh-ink); background: color-mix(in srgb, #ffd166 30%, var(--dh-surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #e0a800 40%, transparent); }

/* Feed «Sigue descubriendo» */
.dt-feed { margin: 32px 0 8px; }
.dt-feed__sub { color: var(--dh-ink-2); margin-top: -6px; }
.dt-feed__lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.dt-fc { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; background: var(--dh-surface); border: 1px solid var(--dh-border); box-shadow: var(--dh-shadow); color: var(--dh-ink) !important; text-decoration: none !important; }
.dt-fc--nueva { animation: dt-entra .5s ease both; }
a.dt-fc { transition: transform .2s, box-shadow .2s; }
a.dt-fc:hover { transform: translateY(-3px); box-shadow: var(--dh-shadow-hover); }
.dt-fc__k { margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--dh-brand-ink); }
.dt-fc__p { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; }
.dt-fc__cifra { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.dt-fc__cifra small { font-size: 14px; color: var(--dh-muted); font-weight: 500; letter-spacing: 0; }
.dt-fc p { margin: 0; }
.dt-fc__cta { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 14px; }
.dt-fc__ico { font-size: 30px; }
.dt-fc--tool { background: color-mix(in srgb, var(--dh-brand) 7%, var(--dh-surface)); }
.dt-fc--cita { background: var(--dh-hero-1); color: #fff !important; }
.dt-fc--cita .dt-fc__k { color: #ffd166; }
.dt-fc--cita a { color: #fff; }
.dt-fc--noticia { padding: 0; overflow: hidden; }
.dt-fc--noticia img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dt-fc--noticia .dt-fc__k, .dt-fc--noticia .dt-fc__p { padding: 0 16px; }
.dt-fc--noticia .dt-fc__p { padding-bottom: 16px; }
.dt-fc--duelo { border: 2px solid color-mix(in srgb, var(--dh-brand) 35%, var(--dh-border)); }
.dt-duelo__ops { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 6px 0; }
.dt-duelo__ops span { color: var(--dh-muted); font-weight: 700; }
.dt-duelo__ops button { padding: 14px 8px; border-radius: 14px; border: 2px solid var(--dh-border); background: var(--dh-surface-2); color: var(--dh-ink); font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; transition: transform .1s, border-color .15s; }
.dt-duelo__ops button:hover:not(:disabled) { border-color: var(--dh-brand); transform: translateY(-1px); }
.dt-duelo__ops button.is-bien { border-color: var(--dh-div-b2); background: color-mix(in srgb, var(--dh-div-b2) 16%, var(--dh-surface)); }
.dt-duelo__ops button.is-mal { opacity: .55; }
.dt-duelo__res { font-size: 14px; animation: dt-entra .3s ease; }
.dt-duelo__res p { margin: 0 0 4px; }
.dt-feed__fin { text-align: center; padding: 24px 0; color: var(--dh-muted); }
.dt-feed__carga::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border-radius: 50%; border: 2px solid var(--dh-grid); border-top-color: var(--dh-brand); animation: dt-gira .8s linear infinite; }
@keyframes dt-gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dt-zona__c, .dt-fc--nueva, .dt-hist__s, .dt-zona__carga { animation: none !important; } }
.dt-hist__s[hidden] { display: none !important; }
.dt-zona__form input, .dt-zona__form select { min-height: 44px; padding: 8px 12px; font-size: 15px; }
.dt-feed__mas { font-size: 16px; padding: 12px 22px; }
.dt-zona__mas { grid-column: 1 / -1; border-top: 1px dashed var(--dh-border); padding-top: 8px; }
.dt-zona__mas summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--dh-brand); padding: 4px 0; }
.dt-zona__mas[open] { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.dt-zona__mas[open] summary { grid-column: 1 / -1; }
.dt-zona__mas input, .dt-zona__mas select { width: 100%; }
.dt-zona__v--txt { font-size: 1.15rem !important; line-height: 1.3; }
.dt-zona__cambiar { white-space: nowrap; flex: none; }
