/* CAMPUS NIKA · Estadísticas personales */
.estadisticas .ns-main.est-main { max-width: 1240px; padding-bottom: 90px; }

/* ---------- HERO ---------- */
.est-hero { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(22px, 3vw, 34px); color: #fff; isolation: isolate;
  background: linear-gradient(125deg, #0b1535 0%, #1e1b4b 52%, #3b0764 100%); box-shadow: 0 30px 60px -34px rgba(99, 102, 241, .85); }
.est-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .09) 50%, transparent 65%); background-size: 250% 100%; animation: estBrillo 7s linear infinite; }
@keyframes estBrillo { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.est-orbe { position: absolute; z-index: -1; border-radius: 50%; filter: blur(34px); opacity: .55; animation: estFlota 14s ease-in-out infinite; }
.est-orbe.o1 { width: 220px; height: 220px; background: #0ea5e9; left: -50px; top: -70px; }
.est-orbe.o2 { width: 260px; height: 260px; background: #a855f7; right: -60px; top: 20px; animation-delay: -5s; }
.est-orbe.o3 { width: 180px; height: 180px; background: #ec4899; left: 42%; bottom: -90px; animation-delay: -9s; opacity: .4; }
@keyframes estFlota { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(24px, -16px) scale(1.08); } 66% { transform: translate(-18px, 14px) scale(.94); } }
.est-hero-txt small { text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .7rem; color: #a5b4fc; }
.est-hero-txt h2 { margin: 4px 0 6px; font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.01em; animation: estEntra .7s cubic-bezier(.22, 1, .36, 1) both; }
.est-hero-txt p { margin: 0; color: #cbd5e1; font-weight: 600; max-width: 62ch; animation: estEntra .7s .1s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes estEntra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.est-big { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: 22px; }
.est-b { position: relative; padding: 16px 16px 14px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; gap: 2px; transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s, background .3s; animation: estEntra .6s cubic-bezier(.22, 1, .36, 1) both; }
.est-b:nth-child(2) { animation-delay: .08s; } .est-b:nth-child(3) { animation-delay: .16s; } .est-b:nth-child(4) { animation-delay: .24s; }
.est-b:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .14); box-shadow: 0 20px 32px -18px var(--c); }
.est-b b { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; text-shadow: 0 0 22px var(--c); }
.est-b small { font-weight: 700; color: #cbd5e1; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.est-bi { position: absolute; right: 12px; top: 10px; font-size: 1.5rem; animation: estLat 3s ease-in-out infinite; }
@keyframes estLat { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.18) rotate(-8deg); } }

/* ---------- NAVEGACIÓN DE SECCIONES ---------- */
.est-nav { position: sticky; top: 64px; z-index: 30; display: flex; gap: 6px; padding: 6px; margin: 18px 0 6px; border-radius: 16px; overflow-x: auto; width: fit-content; max-width: 100%;
  background: color-mix(in srgb, var(--card-bg, #fff) 86%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--border, #e2e8f0); box-shadow: 0 12px 26px -20px rgba(15, 23, 42, .6); }
.est-nav button { border: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; font-size: .84rem; padding: 9px 15px; border-radius: 11px; cursor: pointer; white-space: nowrap; opacity: .72; transition: background .25s, opacity .25s, transform .2s, box-shadow .25s; }
.est-nav button:hover { opacity: 1; transform: translateY(-1px); }
.est-nav button.on { color: #fff; opacity: 1; background: linear-gradient(135deg, #0284c7, #6366f1 60%, #a855f7); box-shadow: 0 10px 18px -10px #6366f1; }

/* ---------- SECCIONES ---------- */
.est-sec { margin-top: 26px; scroll-margin-top: 130px; }
.est-tit small { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .68rem; color: #6366f1; }
.est-tit h3 { margin: 2px 0 14px; font-size: 1.25rem; font-weight: 800; }
.est-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.est-g-const { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 900px) { .est-grid2, .est-g-const { grid-template-columns: minmax(0, 1fr); } .est-nav { top: 56px; } }
.est-card { position: relative; padding: 20px; border-radius: 22px; overflow: hidden; background: var(--card-bg, #fff); border: 1px solid var(--border, #e2e8f0);
  box-shadow: 0 20px 36px -30px rgba(15, 23, 42, .7); transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s; }
.est-card:hover { transform: translateY(-3px); box-shadow: 0 26px 40px -28px rgba(99, 102, 241, .65); }
.est-card h4 { margin: 0 0 4px; font-size: 1rem; font-weight: 800; }
.est-card .est-nota { margin: 0 0 14px; font-size: .78rem; opacity: .68; font-weight: 600; }
.est-vacio { margin: 8px 0; padding: 18px; border-radius: 14px; text-align: center; font-weight: 700; font-size: .86rem; opacity: .75; background: rgba(148, 163, 184, .12); border: 1px dashed rgba(148, 163, 184, .5); }

/* aparición al hacer scroll */
.est-rev { opacity: 0; transform: translateY(22px); }
.est-rev.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .7s cubic-bezier(.22, 1, .36, 1); }
.est-sk { height: 140px; border-radius: 16px; background: linear-gradient(90deg, rgba(148, 163, 184, .14) 20%, rgba(148, 163, 184, .3) 50%, rgba(148, 163, 184, .14) 80%); background-size: 220% 100%; animation: estSk 1.3s linear infinite; }
@keyframes estSk { to { background-position: -220% 0; } }

/* ---------- RADAR ---------- */
.est-radar-w { display: grid; place-items: center; }
.est-radar-w svg { width: 100%; max-width: 330px; height: auto; overflow: visible; }
.est-rd-grid { fill: none; stroke: rgba(148, 163, 184, .4); stroke-width: 1; }
.est-rd-eje { stroke: rgba(148, 163, 184, .35); stroke-width: 1; }
.est-rd-t { fill: #6366f1; fill-opacity: .22; stroke: #6366f1; stroke-width: 2.4; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; transform-origin: 50% 50%; transform: scale(.4); opacity: 0; }
.est-rd-a { fill: #10b981; fill-opacity: .2; stroke: #10b981; stroke-width: 2.4; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; transform-origin: 50% 50%; transform: scale(.4); opacity: 0; }
.in .est-rd-t, .in .est-rd-a { animation: estRadar 1.3s .15s cubic-bezier(.22, 1, .36, 1) forwards; }
.in .est-rd-a { animation-delay: .4s; }
@keyframes estRadar { to { stroke-dashoffset: 0; transform: none; opacity: 1; } }
.est-rd-p { transition: r .2s; cursor: default; } .est-rd-p:hover { r: 7; }
.est-rd-lbl { font-size: 11px; font-weight: 800; fill: currentColor; }
.est-leyenda { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; font-size: .76rem; font-weight: 700; }
.est-leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.est-insight { margin: 12px 0 0; padding: 11px 13px; border-radius: 13px; font-size: .82rem; font-weight: 700; background: rgba(245, 158, 11, .13); border: 1px solid rgba(245, 158, 11, .4); }

/* ---------- OLVIDO ---------- */
.est-ol { display: flex; flex-direction: column; gap: 9px; }
.est-ol-f { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--c) 8%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); transition: transform .25s, box-shadow .25s; }
.est-ol-f:hover { transform: translateX(4px); box-shadow: 0 12px 20px -16px var(--c); }
.est-ol-f b { font-size: .88rem; display: block; } .est-ol-f small { font-size: .72rem; font-weight: 700; color: var(--c); }
.est-ol-b { height: 8px; border-radius: 8px; background: rgba(148, 163, 184, .25); overflow: hidden; }
.est-ol-b i { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--c); transition: width 1s cubic-bezier(.22, 1, .36, 1); }
.est-ol-d { font-weight: 800; font-size: .76rem; opacity: .8; white-space: nowrap; }
.est-ol-h { margin: 14px 0 8px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; opacity: .6; }
.est-pulso { animation: estPulso 1.8s ease-in-out infinite; }
@keyframes estPulso { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 45%, transparent); } 50% { box-shadow: 0 0 0 7px transparent; } }

/* ---------- LECTURA ---------- */
.est-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 16px; }
.est-k { position: relative; padding: 16px; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; gap: 3px; transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s;
  background: color-mix(in srgb, var(--c) 9%, var(--card-bg, #fff)); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--border, #e2e8f0)); opacity: 0; transform: translateY(18px); }
.est-k.in { opacity: 1; transform: none; transition: opacity .6s ease var(--d, 0s), transform .7s cubic-bezier(.22, 1, .36, 1) var(--d, 0s); }
.est-k.in:hover { transform: translateY(-5px); box-shadow: 0 20px 30px -20px var(--c); }
.est-k .i { position: absolute; right: 12px; top: 10px; font-size: 1.5rem; animation: estLat 3.2s ease-in-out infinite; }
.est-k small { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; opacity: .7; padding-right: 32px; }
.est-k b { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.est-k em { font-style: normal; font-size: .76rem; font-weight: 700; opacity: .72; }
.est-aro { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(148, 163, 184, .28) 0); transition: --p 1s; }
.est-aro::after { content: ''; grid-area: 1/1; width: 48px; height: 48px; border-radius: 50%; background: var(--card-bg, #fff); }
.est-aro span { grid-area: 1/1; z-index: 1; font-weight: 800; font-size: .8rem; }
.est-k.ok .est-aro { animation: estPulso 2s ease-in-out infinite; }

.est-cols { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; height: 170px; margin-top: 8px; }
.est-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; position: relative; }
.est-col i { display: block; width: 100%; max-width: 26px; height: 0; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #38bdf8, #6366f1); transition: height 1s cubic-bezier(.22, 1, .36, 1) var(--d, 0s); }
.est-col.hoy i { background: linear-gradient(180deg, #fb923c, #ef4444); }
.est-col.ok i { background: linear-gradient(180deg, #4ade80, #16a34a); }
.est-col span { font-size: .62rem; font-weight: 800; opacity: .6; } .est-col em { font-style: normal; font-size: .62rem; font-weight: 800; opacity: .8; min-height: 12px; }
.est-meta-l { position: absolute; left: 0; right: 0; border-top: 2px dashed rgba(34, 197, 94, .6); pointer-events: none; }

.est-pdfs { display: flex; flex-direction: column; gap: 10px; max-height: 330px; overflow: auto; padding-right: 4px; }
.est-pdf { padding: 11px 13px; border-radius: 14px; background: rgba(148, 163, 184, .1); border: 1px solid rgba(148, 163, 184, .28); transition: transform .25s, background .25s; }
.est-pdf:hover { transform: translateX(4px); background: rgba(99, 102, 241, .1); }
.est-pdf b { display: block; font-size: .84rem; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.est-pdf .bar { height: 7px; border-radius: 7px; background: rgba(148, 163, 184, .28); overflow: hidden; } .est-pdf .bar i { display: block; height: 100%; width: 0; border-radius: 7px; background: linear-gradient(90deg, #38bdf8, #a855f7); transition: width 1s cubic-bezier(.22, 1, .36, 1); }
.est-pdf .m { display: flex; justify-content: space-between; margin-top: 6px; font-size: .72rem; font-weight: 700; opacity: .75; }

/* ---------- CONSTANCIA ---------- */
.est-mapa-w { overflow-x: auto; padding-bottom: 6px; }
.est-mapa { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 5px; width: max-content; }
.est-mapa i { width: 19px; height: 19px; border-radius: 6px; background: rgba(148, 163, 184, .2); transform: scale(0); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1) var(--d, 0s), box-shadow .2s; }
.in .est-mapa i { transform: scale(1); }
.est-mapa i:hover { transform: scale(1.35) !important; box-shadow: 0 6px 12px -4px rgba(15, 23, 42, .5); z-index: 2; position: relative; }
.est-mapa i.l1 { background: #bae6fd; } .est-mapa i.l2 { background: #7dd3fc; } .est-mapa i.l3 { background: #38bdf8; } .est-mapa i.l4 { background: linear-gradient(135deg, #6366f1, #a855f7); }
.est-mapa i.hoy { outline: 2px solid #f59e0b; outline-offset: 1px; }
.est-esc { display: flex; align-items: center; gap: 5px; margin-top: 12px; font-size: .72rem; font-weight: 700; opacity: .75; } .est-esc i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.est-hechos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.est-hechos div { padding: 10px; border-radius: 13px; background: rgba(148, 163, 184, .1); text-align: center; } .est-hechos b { display: block; font-size: 1.1rem; } .est-hechos small { font-size: .68rem; font-weight: 700; opacity: .7; }

.est-dona-w { display: grid; place-items: center; }
.est-dona-w svg { width: 100%; max-width: 230px; transform: rotate(-90deg); }
.est-dn { fill: none; stroke-width: 26; stroke-linecap: butt; stroke-dasharray: 0 999; transition: stroke-dasharray 1.1s cubic-bezier(.22, 1, .36, 1) var(--d, 0s); cursor: default; }
.est-dn:hover { stroke-width: 31; }
.est-dona-c { position: relative; margin-top: -148px; height: 148px; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; } .est-dona-c b { font-size: 1.5rem; } .est-dona-c small { font-weight: 700; opacity: .65; font-size: .72rem; }
.est-dleg { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; width: 100%; } .est-dleg div { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; } .est-dleg i { width: 11px; height: 11px; border-radius: 4px; } .est-dleg span { margin-left: auto; opacity: .75; }

/* ---------- temas ---------- */
body.dark-mode .est-nav, body.tema-premium .est-nav { background: color-mix(in srgb, #0f172a 86%, transparent); }
body.dark-mode .est-aro::after, body.tema-premium .est-aro::after { background: #0f172a; }
body.dark-mode .est-card, body.tema-premium .est-card { box-shadow: 0 20px 36px -26px rgba(0, 0, 0, .8); }
body.dark-mode .est-mapa i.l1, body.tema-premium .est-mapa i.l1 { background: #0c4a6e; } body.dark-mode .est-mapa i.l2, body.tema-premium .est-mapa i.l2 { background: #0369a1; }
body.dark-mode .est-mapa i.l3, body.tema-premium .est-mapa i.l3 { background: #0ea5e9; }
body.dark-mode .est-tit small, body.tema-premium .est-tit small { color: #a5b4fc; }

@media (max-width: 640px) {
  .est-hero { border-radius: 22px; } .est-big { grid-template-columns: repeat(2, 1fr); gap: 10px; } .est-b { padding: 13px 12px; }
  .est-cols { gap: 3px; } .est-col em { display: none; } .est-ol-f { grid-template-columns: 1fr auto; } .est-ol-b { grid-column: 1 / -1; order: 3; }
  .est-hechos { grid-template-columns: 1fr; } .est-mapa i { width: 15px; height: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .est-hero::after, .est-orbe, .est-bi, .est-k .i, .est-pulso, .est-sk, .est-k.ok .est-aro { animation: none !important; }
  .est-rev, .est-k { opacity: 1; transform: none; } .est-rd-t, .est-rd-a { animation: none !important; stroke-dashoffset: 0; transform: none; opacity: 1; }
  .est-mapa i { transform: scale(1); transition: none; } .est-hero-txt h2, .est-hero-txt p, .est-b { animation: none !important; }
}

/* ============================================================
   NIKA INSTRUCTORA
   ============================================================ */
.est-guia { display: none; position: relative; margin-top: 18px; padding: 18px 20px 18px 8px; border-radius: 26px; align-items: center; gap: 8px; isolation: isolate; overflow: visible;
  background: linear-gradient(120deg, color-mix(in srgb, #6366f1 10%, var(--card-bg, #fff)), color-mix(in srgb, #06b6d4 10%, var(--card-bg, #fff)));
  border: 1px solid color-mix(in srgb, #6366f1 32%, var(--border, #e2e8f0)); box-shadow: 0 24px 44px -32px rgba(99, 102, 241, .8); }
.est-guia.on { display: flex; animation: egEntra .7s cubic-bezier(.22, 1.2, .36, 1) both; }
@keyframes egEntra { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.eg-orbe { position: absolute; left: 20px; top: 50%; width: 130px; height: 130px; margin-top: -65px; border-radius: 50%; z-index: -1; background: radial-gradient(circle, rgba(34, 211, 238, .45), transparent 68%); animation: egOrbe 3.6s ease-in-out infinite; }
@keyframes egOrbe { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.18); opacity: 1; } }
.eg-robot { position: relative; flex: 0 0 auto; width: 132px; cursor: pointer; transition: width .4s cubic-bezier(.22, 1, .36, 1); }
.eg-robot svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 10px 16px rgba(2, 20, 50, .38)); }
.eg-robot:hover svg { animation: egSacude .6s ease; }
@keyframes egSacude { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg) scale(1.04); } 75% { transform: rotate(4deg) scale(1.04); } }
.ne-todo { animation: neFlota 3.6s ease-in-out infinite; transform-origin: 100px 210px; }
.ne-sombra { animation: neSombra 3.6s ease-in-out infinite; transform-origin: 100px 218px; }
.ne-ojos { transform: translate(var(--ex, 0px), var(--ey, 0px)); transition: transform .12s ease-out; }
.ne-ojo { transform-box: fill-box; transform-origin: 50% 100%; animation: neParpadeo 5s infinite; }
.ne-cruz { animation: neLate 1.6s ease-in-out infinite; transform-origin: 100px 190px; }
.ne-brazo-s { transform-origin: 138px 136px; } .ne-brazo-q { transform-origin: 62px 136px; animation: neRespira 3.6s ease-in-out infinite; }
.eg-robot.saluda .ne-brazo-s { animation: neSaluda .7s ease-in-out 3; }
.eg-robot.habla .ne-boca { transform-box: fill-box; transform-origin: 50% 40%; animation: neHabla .28s ease-in-out infinite; }
.eg-robot.feliz .ne-ojo { animation: neFeliz .7s ease-in-out; }
.eg-robot.feliz .ne-todo { animation: neSalto .7s ease-in-out; }
@keyframes neFlota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes neSombra { 0%, 100% { transform: scale(1); opacity: .35; } 50% { transform: scale(.82); opacity: .22; } }
@keyframes neParpadeo { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
@keyframes neLate { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
@keyframes neRespira { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(2.5deg); } }
@keyframes neSaluda { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(-135deg); } }
@keyframes neHabla { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.7) scaleX(.9); } }
@keyframes neFeliz { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25, .55); } }
@keyframes neSalto { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px); } }
.eg-burbuja { position: relative; flex: 1; min-width: 0; padding: 16px 40px 14px 20px; border-radius: 20px; background: var(--card-bg, #fff); border: 1px solid color-mix(in srgb, #6366f1 28%, var(--border, #e2e8f0));
  box-shadow: 0 14px 28px -20px rgba(15, 23, 42, .55); color: var(--text-main, #0f172a); }
.eg-burbuja::before { content: ''; position: absolute; left: -9px; top: 46px; width: 18px; height: 18px; background: inherit; border-left: 1px solid color-mix(in srgb, #6366f1 28%, var(--border, #e2e8f0)); border-bottom: 1px solid color-mix(in srgb, #6366f1 28%, var(--border, #e2e8f0)); transform: rotate(45deg); }
.eg-nombre { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: #6366f1; margin-bottom: 4px; }
.eg-txt { margin: 0; min-height: 3.1em; font-size: 1rem; line-height: 1.5; font-weight: 600; }
.eg-txt b { font-weight: 800; color: #4f46e5; }
.eg-acc { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.eg-acc button, .eg-rep { font: inherit; font-weight: 800; font-size: .8rem; border-radius: 11px; padding: 8px 14px; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.eg-sig { border: 0; color: #fff; background: linear-gradient(135deg, #0284c7, #6366f1 60%, #a855f7); box-shadow: 0 10px 18px -10px #6366f1; }
.eg-sig:hover { transform: translateY(-2px); box-shadow: 0 14px 22px -10px #6366f1; } .eg-sig:active { transform: scale(.96); }
.eg-ant, .eg-skip { border: 1px solid var(--border, #cbd5e1); background: transparent; color: inherit; opacity: .85; } .eg-ant:hover, .eg-skip:hover { background: rgba(99, 102, 241, .12); }
.est-guia:not(.tour) .eg-skip, .est-guia:not(.tour) .eg-puntos { display: none; }
.eg-puntos { display: inline-flex; gap: 6px; margin-left: auto; } .eg-punto { width: 8px; height: 8px; border-radius: 8px; background: rgba(148, 163, 184, .5); transition: width .3s, background .3s; } .eg-punto.on { width: 22px; background: linear-gradient(90deg, #0ea5e9, #a855f7); }
.eg-x { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 9px; border: 0; background: transparent; color: inherit; opacity: .55; cursor: pointer; font-size: .8rem; transition: background .2s, opacity .2s; } .eg-x:hover { opacity: 1; background: rgba(148, 163, 184, .25); }
.eg-rep { margin-top: 10px; border: 0; background: none; color: #6366f1; font-size: .74rem; padding: 2px 0; text-decoration: underline; } .eg-rep:hover { color: #a855f7; }
.est-guia.tour .eg-rep { display: none; }
.est-guia.chica { padding: 8px; width: fit-content; } .est-guia.chica .eg-burbuja, .est-guia.chica .eg-orbe { display: none; } .est-guia.chica .eg-robot { width: 62px; }
@media (max-width: 700px) { .est-guia.on { flex-direction: column; align-items: stretch; padding: 14px; } .eg-robot { width: 96px; margin: 0 auto; } .eg-burbuja { padding: 14px 36px 12px 14px; } .eg-burbuja::before { left: 50%; top: -9px; margin-left: -9px; border-left: 1px solid color-mix(in srgb, #6366f1 28%, var(--border, #e2e8f0)); border-top: 1px solid color-mix(in srgb, #6366f1 28%, var(--border, #e2e8f0)); border-bottom: 0; } .est-guia.chica { margin-left: auto; margin-right: auto; } }

/* tips de Nika por sección */
.est-tip { display: none; align-items: center; gap: 10px; margin: -4px 0 14px; padding: 9px 14px 9px 10px; width: fit-content; max-width: 100%; border-radius: 16px; font-size: .84rem; font-weight: 600; line-height: 1.4;
  background: color-mix(in srgb, #06b6d4 11%, var(--card-bg, #fff)); border: 1px solid color-mix(in srgb, #06b6d4 34%, var(--border, #e2e8f0)); }
.est-tip.on { display: flex; animation: estEntra .6s cubic-bezier(.22, 1, .36, 1) both; }
.est-tip b { color: #0e7490; font-weight: 800; }
.eg-cab { flex: 0 0 auto; width: 36px; height: 26px; animation: neFlota 3.2s ease-in-out infinite; } .eg-cab svg { width: 100%; height: 100%; }
.eg-mojo { transform-box: fill-box; transform-origin: 50% 100%; animation: neParpadeo 5s infinite; }

/* ============================================================
   NAVEGACIÓN MEJORADA
   ============================================================ */
.est-nav { position: sticky; top: calc(var(--est-top, 64px) + 8px); z-index: 30; overflow: hidden; padding: 6px 6px 9px; gap: 2px; margin-top: 18px; scrollbar-width: none; }
.est-nav::-webkit-scrollbar { display: none; }
.est-nav button { position: relative; z-index: 1; background: transparent !important; box-shadow: none !important; transition: color .3s, opacity .3s, transform .2s; }
.est-nav button.on { color: #fff; }
.est-pill { position: absolute; left: 0; top: 6px; bottom: 9px; width: 0; border-radius: 11px; z-index: 0; opacity: 0; background: linear-gradient(135deg, #0284c7, #6366f1 60%, #a855f7); box-shadow: 0 10px 18px -10px #6366f1; transition: transform .45s cubic-bezier(.34, 1.3, .64, 1), width .45s cubic-bezier(.34, 1.3, .64, 1), opacity .3s; }
.est-pill.on { opacity: 1; }
.est-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #22d3ee, #6366f1, #ec4899); transition: transform .15s linear; }
.est-nav button.alerta::after { content: ''; position: absolute; right: 5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); animation: estAlerta 1.8s ease-out infinite; }
@keyframes estAlerta { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); } 100% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); } }
.est-nav button.eg-llama { animation: egLlama 1s ease-in-out infinite; }
@keyframes egLlama { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.est-nav button.eg-llama:not(.on) { color: #6366f1; opacity: 1; background: rgba(99, 102, 241, .16) !important; }
.est-sec { scroll-margin-top: calc(var(--est-top, 64px) + 78px); }
.est-sec.est-foco .est-tit h3 { animation: estFoco 1.6s ease; }
@keyframes estFoco { 0%, 100% { text-shadow: none; } 30% { text-shadow: 0 0 22px rgba(99, 102, 241, .75); color: #6366f1; } }
.est-top { position: fixed; right: 22px; bottom: 150px; z-index: 40; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.25rem; font-weight: 800; color: #fff; opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  background: linear-gradient(135deg, #0284c7, #6366f1 60%, #a855f7); box-shadow: 0 14px 24px -10px #6366f1; transition: opacity .3s, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.est-top.on { opacity: 1; transform: none; pointer-events: auto; } .est-top:hover { transform: translateY(-3px) scale(1.06); } .est-top:active { transform: scale(.92); }

/* ============================================================
   CONTRASTE EN LOS 3 MODOS (claro · oscuro · premium)
   ============================================================ */
body.dark-mode .est-guia, body.tema-premium .est-guia { background: linear-gradient(120deg, rgba(99, 102, 241, .2), rgba(6, 182, 212, .12)), #0f172a; border-color: rgba(129, 140, 248, .45); box-shadow: 0 24px 44px -30px rgba(0, 0, 0, .9); }
body.dark-mode .eg-burbuja, body.tema-premium .eg-burbuja { background: #111c33; color: #e2e8f0; border-color: rgba(129, 140, 248, .4); }
body.dark-mode .eg-burbuja::before, body.tema-premium .eg-burbuja::before { border-color: rgba(129, 140, 248, .4); }
body.dark-mode .eg-txt b, body.tema-premium .eg-txt b { color: #a5b4fc; } body.dark-mode .eg-nombre, body.tema-premium .eg-nombre, body.dark-mode .eg-rep, body.tema-premium .eg-rep { color: #a5b4fc; }
body.dark-mode .eg-ant, body.dark-mode .eg-skip, body.tema-premium .eg-ant, body.tema-premium .eg-skip { border-color: rgba(148, 163, 184, .4); color: #e2e8f0; }
body.dark-mode .est-tip, body.tema-premium .est-tip { background: rgba(6, 182, 212, .12); border-color: rgba(34, 211, 238, .4); color: #e2e8f0; } body.dark-mode .est-tip b, body.tema-premium .est-tip b { color: #67e8f9; }
body.dark-mode .est-card, body.tema-premium .est-card { background: #111c33; border-color: rgba(129, 140, 248, .28); color: #e2e8f0; }
body.dark-mode .est-card .est-nota, body.tema-premium .est-card .est-nota { opacity: .8; }
body.dark-mode .est-vacio, body.tema-premium .est-vacio { background: rgba(148, 163, 184, .1); border-color: rgba(148, 163, 184, .4); color: #cbd5e1; }
body.dark-mode .est-k, body.tema-premium .est-k { background: color-mix(in srgb, var(--c) 16%, #111c33); border-color: color-mix(in srgb, var(--c) 45%, transparent); color: #f1f5f9; }
body.dark-mode .est-nav, body.tema-premium .est-nav { background: rgba(15, 23, 42, .88); border-color: rgba(129, 140, 248, .35); color: #e2e8f0; }
body.dark-mode .est-nav button:not(.on), body.tema-premium .est-nav button:not(.on) { color: #cbd5e1; opacity: .9; }
body.dark-mode .est-tit h3, body.tema-premium .est-tit h3 { color: #f1f5f9; }
body.dark-mode .est-radar-w, body.tema-premium .est-radar-w { color: #e2e8f0; } body.dark-mode .est-rd-grid, body.tema-premium .est-rd-grid { stroke: rgba(148, 163, 184, .35); }
body.dark-mode .est-ol-f b, body.tema-premium .est-ol-f b { color: #f1f5f9; }
body.dark-mode .est-pdf, body.tema-premium .est-pdf { background: rgba(148, 163, 184, .1); border-color: rgba(148, 163, 184, .3); }
body.dark-mode .est-hechos div, body.tema-premium .est-hechos div { background: rgba(148, 163, 184, .12); }
body.dark-mode .est-mapa i, body.tema-premium .est-mapa i { background: rgba(148, 163, 184, .16); }
body.dark-mode .est-mapa i.l1, body.tema-premium .est-mapa i.l1 { background: #0c4a6e; } body.dark-mode .est-mapa i.l2, body.tema-premium .est-mapa i.l2 { background: #0369a1; } body.dark-mode .est-mapa i.l3, body.tema-premium .est-mapa i.l3 { background: #0ea5e9; } body.dark-mode .est-mapa i.l4, body.tema-premium .est-mapa i.l4 { background: linear-gradient(135deg, #6366f1, #a855f7); }
body.tema-premium .est-guia { background: linear-gradient(120deg, rgba(168, 85, 247, .26), rgba(34, 211, 238, .14)), #0b1022; border-color: rgba(192, 132, 252, .55); }
body.tema-premium .est-card { background: #0e1429; border-color: rgba(192, 132, 252, .3); box-shadow: 0 0 0 1px rgba(192, 132, 252, .06), 0 20px 36px -26px rgba(0, 0, 0, .9); }
body.tema-premium .est-card:hover { box-shadow: 0 0 22px -6px rgba(168, 85, 247, .55); }
body.tema-premium .est-nav { border-color: rgba(192, 132, 252, .45); }
@media (prefers-reduced-motion: reduce) { .est-guia.on, .eg-orbe, .ne-todo, .ne-sombra, .ne-ojo, .ne-cruz, .ne-brazo-q, .eg-cab, .eg-mojo, .est-nav button.eg-llama, .est-nav button.alerta::after, .est-tip.on { animation: none !important; } .est-pill, .est-top, .est-prog { transition: none; } }

/* ============================================================
   NIKA INSTRUCTORA · versión con color (va primero en la página)
   ============================================================ */
.est-guia { margin-top: 0; padding: 26px 24px 22px 14px; overflow: hidden; color: #fff; border: 0;
  background: linear-gradient(115deg, #06b6d4 0%, #3b82f6 28%, #7c3aed 58%, #ec4899 100%); background-size: 220% 220%;
  box-shadow: 0 30px 56px -28px rgba(99, 102, 241, .95), 0 0 0 1px rgba(255, 255, 255, .28) inset; }
.est-guia.on { animation: egEntra .7s cubic-bezier(.22, 1.2, .36, 1) both, egFondo 10s ease-in-out infinite; }
@keyframes egFondo { 0%, 100% { background-position: 0% 40%; } 50% { background-position: 100% 60%; } }
.est-guia::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .75;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .85) 0 1.5px, transparent 2.5px), radial-gradient(circle, rgba(255, 255, 255, .55) 0 1px, transparent 2px), radial-gradient(circle, rgba(255, 255, 255, .7) 0 2px, transparent 3px);
  background-size: 110px 110px, 70px 70px, 170px 170px; background-position: 0 0, 30px 40px, 60px 10px; animation: egChispas 22s linear infinite; }
@keyframes egChispas { to { background-position: 110px -220px, -40px -180px, 230px -340px; } }
.est-guia::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .22) 50%, transparent 62%); background-size: 260% 100%; animation: estBrillo 6s linear infinite; }
.eg-orbe { left: 26px; width: 170px; height: 170px; margin-top: -85px; background: radial-gradient(circle, rgba(255, 255, 255, .55), rgba(255, 255, 255, .0) 68%); z-index: 0; }
.eg-robot { z-index: 1; }
.eg-burbuja { z-index: 1; border: 0; color: #0f172a; background: rgba(255, 255, 255, .97); box-shadow: 0 18px 34px -16px rgba(30, 27, 75, .65), 0 0 0 3px rgba(255, 255, 255, .35); }
.eg-burbuja::before { border: 0; background: rgba(255, 255, 255, .97); box-shadow: -3px 3px 0 -1px rgba(255, 255, 255, .35); }
.eg-nombre { background: linear-gradient(90deg, #0891b2, #6366f1, #db2777); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: .72rem; }
.eg-txt { color: #1e1b4b; font-size: 1.05rem; }
.eg-txt b { background: linear-gradient(90deg, #4f46e5, #c026d3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eg-sig { background: linear-gradient(135deg, #06b6d4, #6366f1 55%, #ec4899); box-shadow: 0 12px 20px -10px #6366f1; }
.eg-ant, .eg-skip { color: #4338ca; border-color: rgba(99, 102, 241, .35); }
.eg-punto.on { background: linear-gradient(90deg, #06b6d4, #ec4899); }
.eg-rep { color: #4f46e5; }
.est-guia.chica { padding: 10px; } .est-guia.chica .eg-robot { width: 66px; }
.est-guia ~ .est-hero { margin-top: 18px; }
@media (max-width: 700px) { .est-guia.on { padding: 18px 14px 14px; } }
body.dark-mode .est-guia, body.tema-premium .est-guia { background: linear-gradient(115deg, #0891b2 0%, #2563eb 28%, #7c3aed 58%, #db2777 100%); background-size: 220% 220%; border: 0; box-shadow: 0 30px 56px -28px rgba(99, 102, 241, .9), 0 0 0 1px rgba(255, 255, 255, .22) inset; }
body.dark-mode .eg-burbuja, body.tema-premium .eg-burbuja { background: rgba(15, 23, 42, .9); color: #e2e8f0; border: 0; backdrop-filter: blur(8px); box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .8), 0 0 0 2px rgba(255, 255, 255, .22); }
body.dark-mode .eg-burbuja::before, body.tema-premium .eg-burbuja::before { background: rgba(15, 23, 42, .9); border: 0; box-shadow: -2px 2px 0 -1px rgba(255, 255, 255, .22); }
body.dark-mode .eg-txt, body.tema-premium .eg-txt { color: #f1f5f9; }
body.dark-mode .eg-nombre, body.tema-premium .eg-nombre { background: linear-gradient(90deg, #67e8f9, #a5b4fc, #f9a8d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.dark-mode .eg-txt b, body.tema-premium .eg-txt b { background: linear-gradient(90deg, #67e8f9, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.dark-mode .eg-ant, body.dark-mode .eg-skip, body.tema-premium .eg-ant, body.tema-premium .eg-skip { color: #e2e8f0; border-color: rgba(148, 163, 184, .45); }
body.dark-mode .eg-rep, body.tema-premium .eg-rep { color: #a5b4fc; }
@media (prefers-reduced-motion: reduce) { .est-guia.on { animation: none !important; } .est-guia::before, .est-guia::after { animation: none !important; } }

/* ============================================================
   CELULAR Y TABLET
   ============================================================ */
.est-nav { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.est-nav button { flex: 0 0 auto; scroll-snap-align: center; }
@media (max-width: 900px) {
  .estadisticas .ns-top { padding: 8px 12px !important; gap: 8px !important; flex-wrap: nowrap !important; }
  .estadisticas .ns-top h1 { font-size: 1rem !important; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
  .estadisticas .ns-top h1 small { display: none !important; }
  .estadisticas .ns-top .ns-acc { gap: 6px !important; flex-wrap: nowrap !important; flex: 0 0 auto; }
  .estadisticas .ns-top .pl-btn { padding: 7px 10px; }
  .estadisticas .est-main { padding-left: 12px; padding-right: 12px; }
  .est-hero { padding: 20px 16px; }
  .est-orbe.o2 { right: -120px; }
}
@media (max-width: 520px) {
  .est-nav { width: 100%; border-radius: 14px; }
  .est-nav button { padding: 9px 12px; font-size: .78rem; }
  .est-card { padding: 16px 14px; border-radius: 18px; }
  .est-tip { font-size: .8rem; }
  .est-tit h3 { font-size: 1.1rem; }
  .est-top { right: 14px; bottom: 120px; }
  .eg-acc button { flex: 1 1 auto; }
  .est-radar-w svg { max-width: 300px; }
  .est-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .est-k { padding: 12px; } .est-k b { font-size: 1.35rem; } .est-k small { padding-right: 24px; font-size: .64rem; }
  .est-cols { gap: 2px; } .est-col i { max-width: 16px; }
}
@media (min-width: 701px) and (max-width: 1024px) {
  .est-big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .est-g-const { grid-template-columns: minmax(0, 1fr); }
}
