
.hp, .hd-miplan{ --hp-ease:cubic-bezier(.22,1,.36,1); --hp-grafito:linear-gradient(160deg, #151c25, #090b0f); padding-bottom:96px; }
.hp-tablero{ position:relative; overflow:hidden; display:grid; grid-template-columns:minmax(0, 1.1fr) minmax(0, 1fr); gap:18px; align-items:center; padding:20px 22px; border-radius:var(--radius); color:#fff;
  background:radial-gradient(460px 240px at 22% 100%, rgba(242,200,59,.18), transparent 70%), var(--hp-grafito); border:1px solid rgba(242,200,59,.4); box-shadow:0 18px 44px rgba(9,11,15,.24);
  animation:hpEntra .7s var(--hp-ease) both; }
@keyframes hpEntra{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:none; } }
.hp-velo{ display:flex; flex-direction:column; align-items:center; gap:4px; }
.hp-velo svg{ width:100%; max-width:330px; height:auto; overflow:visible; }
.hp-pista, .hp-zona, .hp-valor{ fill:none; stroke-width:17; stroke-linecap:round; }
.hp-pista{ stroke:rgba(255,255,255,.1); }
.hp-zona{ stroke:rgba(255,255,255,.2); stroke-width:27; stroke-linecap:butt; transition:stroke .5s; }
.hp-valor{ stroke:#f2c83b; filter:drop-shadow(0 0 8px rgba(242,200,59,.6)); transition:stroke-dashoffset 1.2s var(--hp-ease); }
.hp-marca{ fill:#fff; font-size:14px; font-weight:800; text-anchor:middle; font-family:inherit; }
.hp-aguja{ transform-origin:130px 130px; transform:rotate(0deg); transition:transform 1.3s cubic-bezier(.3,1.45,.45,1); }
.hp-aguja line{ stroke:#fff; stroke-width:5; stroke-linecap:round; }
.hp-aguja circle{ fill:#f2c83b; stroke:#090b0f; stroke-width:3; }
.hp-lectura{ margin-top:-6px; text-align:center; }
.hp-lectura b{ display:block; font-size:clamp(38px, 5vw, 50px); font-weight:800; letter-spacing:-.03em; line-height:1; color:#fff; font-variant-numeric:tabular-nums; }
.hp-lectura span{ display:block; margin-top:4px; font-size:14.5px; font-weight:700; color:rgba(255,255,255,.75); }
.hp-estado{ margin:8px 0 0; padding:7px 14px; border-radius:20px; font-size:14px; font-weight:800; color:#f2c83b; background:rgba(242,200,59,.12); border:1px solid rgba(242,200,59,.4); transition:all .5s; text-align:center; }
.hp-en-meta .hp-zona{ stroke:#7ee2a5; }
.hp-en-meta .hp-estado{ color:#0a0c10; background:#7ee2a5; border-color:#7ee2a5; }
.hp-lado{ display:flex; flex-direction:column; gap:10px; }
.hp-dato{ display:flex; flex-direction:column; gap:2px; padding:12px 16px; border-radius:14px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); }
.hp-dato span{ font-size:13px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:rgba(255,255,255,.72); line-height:1.3; }
.hp-dato b{ font-size:clamp(24px, 2.6vw, 30px); font-weight:800; letter-spacing:-.02em; line-height:1.15; color:#f2c83b; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.hp-dato--cambia{ animation:hpCambia .9s ease-out; }
@keyframes hpCambia{ 0%{ background:rgba(242,200,59,.3); border-color:#f2c83b; } 100%{ background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.14); } }
.hp-cols{ display:flex; flex-direction:column; gap:8px; }
.hp-cols-caja{ position:relative; height:210px; border-bottom:2px solid rgba(255,255,255,.5); }
.hp-cols-b{ position:absolute; inset:0; display:flex; align-items:flex-end; gap:3px; }
.hp-cols-b i{ flex:1; min-width:0; height:6%; border-radius:4px 4px 0 0; background:linear-gradient(180deg, #fff3b0, #f2c83b 30%, #d9a900 75%, #b89214); transition:height .8s var(--hp-ease) calc(var(--n) * 26ms), opacity .4s; }
.hp-cols--vacio .hp-cols-b i{ opacity:.22; }
.hp-cols-linea{ position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; }
.hp-cols-linea polyline{ fill:none; stroke:#fff; stroke-width:2.5; stroke-linejoin:round; stroke-linecap:round; vector-effect:non-scaling-stroke; stroke-dasharray:1; stroke-dashoffset:1; }
.hp-cols-linea polyline.hp-dibuja{ animation:hpDibuja 1.6s var(--hp-ease) .5s forwards; }
@keyframes hpDibuja{ to{ stroke-dashoffset:0; } }
.hp-cols-marca{ position:absolute; left:0; right:0; height:0; border-top:2px dashed rgba(255,255,255,.55); z-index:1; transition:bottom .8s var(--hp-ease); }
.hp-cols-marca--1{ border-top-color:#7ee2a5; }
.hp-cols-marca em{ position:absolute; left:6px; top:-22px; padding:1px 8px; border-radius:10px; font-style:normal; font-size:13px; font-weight:800; color:#0a0c10; background:#fff; }
.hp-cols-marca--1 em{ background:#7ee2a5; }
.hp-cols-eje{ display:flex; justify-content:space-between; font-size:13px; font-weight:700; color:rgba(255,255,255,.72); }
.hp-cols-eje span:nth-child(2){ text-align:center; } .hp-cols-eje span:last-child{ text-align:right; }
.hp-cols-eje b{ display:block; font-size:19px; color:#fff; font-variant-numeric:tabular-nums; }
.hp-cols .hp-estado{ align-self:flex-start; }
.hp .hd-fichas{ grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); }
.hp .hd-ficha.hp-repetida, .hp .hp-sin-fichas{ display:none; }
.hp .hd-paso .hd-avance{ display:none; }
.hp-camino{ padding:12px 16px; border-radius:var(--radius); background:var(--surface); border:1px solid var(--border); box-shadow:var(--shadow); }
.hp-via{ position:relative; height:8px; margin:44px 0 22px; border-radius:8px; background:var(--surface-2); }
.hp-via-on{ position:absolute; left:6%; top:0; bottom:0; width:0; border-radius:8px; background:linear-gradient(90deg, #f2c83b, #d9a900); transition:width 1s var(--hp-ease); }
.hp-parada{ position:absolute; top:50%; width:32px; height:32px; margin:-16px 0 0 -16px; border-radius:50%; display:grid; place-items:center; background:var(--surface); border:2.5px solid var(--border-strong); color:var(--text-2); transition:all .4s; }
.hp-parada b{ font-size:15px; font-weight:800; }
.hp-parada--ahora{ border-color:#d9a900; color:var(--text); box-shadow:0 0 0 5px rgba(217,169,0,.18); }
.hp-parada--lista{ border-color:transparent; color:#0a0c10; background:linear-gradient(135deg, #ffe14a, #e8c028 48%, #c9a014); }
.hp-kapito{ position:absolute; top:50%; width:46px; height:46px; margin:-62px 0 0 -23px; object-fit:contain; transition:left 1s cubic-bezier(.4,0,.2,1); }
.hp-kapito--salta{ animation:hpSalta .6s cubic-bezier(.3,1.5,.5,1); }
@keyframes hpSalta{ 35%{ transform:translateY(-10px) scale(1.08); } 100%{ transform:none; } }
.hp-chispas{ position:absolute; left:50%; top:50%; width:0; height:0; pointer-events:none; }
.hp-chispas i{ position:absolute; left:-3px; top:-3px; width:6px; height:6px; border-radius:50%; background:#d9a900; animation:hpChispa .6s ease-out both; }
@keyframes hpChispa{ 0%{ opacity:1; transform:rotate(var(--a)) translateY(0); } 100%{ opacity:0; transform:rotate(var(--a)) translateY(-30px) scale(.4); } }
.hp-leyenda{ display:flex; align-items:center; gap:12px; margin:0; }
.hp-leyenda > span:last-child{ display:flex; flex-direction:column; gap:1px; min-width:0; }
.hp-leyenda b{ font-size:13px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--kap-gold-text, #8c6a00); }
.hp-leyenda b + span{ font-size:16px; font-weight:800; line-height:1.3; color:var(--text); }
.hp-medalla{ flex:none; width:44px; animation:hpCae .9s cubic-bezier(.3,1.3,.5,1) .5s both; }
@keyframes hpCae{ 0%{ opacity:0; transform:translateY(-70px) rotate(-20deg); } 60%{ opacity:1; transform:translateY(0) rotate(6deg); } 80%{ transform:translateY(-8px); } 100%{ opacity:1; transform:none; } }
.hp-medalla svg, .hp-nivel-m svg{ display:block; width:100%; height:auto; }
.hp-cinta{ fill:#15354b; } .hp-oro{ fill:#d9a900; } .hp-oro-2{ fill:#f2c83b; }
.hp-visto{ fill:none; stroke:#0a0c10; stroke-width:5; stroke-linecap:round; stroke-linejoin:round; }
.hp-camino--fin{ border-color:#d9a900; }
.hp .hd-fin{ gap:14px; }
.hp-rev{ display:flex; flex-direction:column; gap:14px; }
.hp-rev-tit{ margin:0 0 -4px; font-size:13px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:var(--kap-gold-text, #8c6a00); }
.hp-giros{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; }
.hp-giros--1{ grid-template-columns:minmax(0, 1fr); }
.hp-giro{ position:relative; display:block; height:140px; padding:0; border:0; background:none; font:inherit; text-align:center; perspective:900px; cursor:pointer; }
.hp-cara{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; padding:10px; border-radius:18px; backface-visibility:hidden; -webkit-backface-visibility:hidden; transition:transform 1s cubic-bezier(.4,.1,.2,1.15); }
.hp-cara small{ font-size:13px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.hp-cara b{ font-size:clamp(32px, 5vw, 44px); font-weight:800; letter-spacing:-.03em; line-height:1.05; font-variant-numeric:tabular-nums; }
.hp-cara em{ font-style:normal; font-size:14.5px; font-weight:700; line-height:1.25; }
.hp-cara--hoy{ color:#15171a; background:#f6f7f9; border:1.5px solid #e4e7ec; }
.hp-cara--hoy small, .hp-cara--hoy em{ color:#59606b; }
.hp-cara--meta{ color:#fff; background:radial-gradient(220px 120px at 50% 0, rgba(242,200,59,.26), transparent 70%), var(--hp-grafito); border:1.5px solid #f2c83b; transform:rotateY(180deg); }
.hp-cara--meta small, .hp-cara--meta b{ color:#f2c83b; } .hp-cara--meta em{ color:rgba(255,255,255,.8); }
.hp-giro--vuelta .hp-cara--hoy{ transform:rotateY(-180deg); }
.hp-giro--vuelta .hp-cara--meta, .hp-giro--ya .hp-cara--meta{ transform:rotateY(0deg); }
.hp-giro--ya{ cursor:default; } .hp-giro--ya .hp-cara--meta small{ color:#7ee2a5; }
.hp-suena{ overflow:hidden; display:flex; flex-direction:column; gap:10px; padding:16px 16px 14px; border-radius:18px; color:#fff; background:radial-gradient(380px 200px at 50% 62%, rgba(242,200,59,.2), transparent 70%), var(--hp-grafito); border:1px solid rgba(242,200,59,.4); }
.hp-suena h4{ margin:0; font-size:19px; font-weight:800; letter-spacing:-.01em; color:#fff; }
.hp-suena > p{ margin:-6px 0 0; font-size:15px; line-height:1.45; color:rgba(255,255,255,.8); }
.hp-carr{ position:relative; height:176px; perspective:1100px; touch-action:pan-y; cursor:grab; user-select:none; -webkit-user-select:none; }
.hp-carr-pista{ position:absolute; inset:0; }
.hp-tarjeta{ position:absolute; left:50%; top:50%; width:214px; height:136px; margin:-68px 0 0 -107px; display:grid; place-items:center;
  transform:translateX(calc(var(--d) * 104px)) scale(calc(1 - var(--a) * .2)) rotateY(calc(var(--d) * -24deg)); opacity:calc(1 - var(--a) * .2); z-index:calc(10 - var(--a));
  transition:transform .8s var(--hp-ease), opacity .6s; }
.hp-tarjeta--lejos{ opacity:0; pointer-events:none; }
.hp-tarjeta img{ display:block; max-width:214px; max-height:136px; width:auto; height:auto; border-radius:10px; box-shadow:0 14px 26px rgba(0,0,0,.55); pointer-events:none; -webkit-user-drag:none; }
.hp-tarjeta--frente img{ box-shadow:0 16px 30px rgba(0,0,0,.6), 0 0 26px rgba(242,200,59,.5); }
.hp-carr-nombre{ display:flex; flex-direction:column; align-items:center; gap:1px; margin:0 !important; text-align:center; min-height:46px; }
.hp-carr-nombre b{ font-size:17px; font-weight:800; line-height:1.25; color:#fff; }
.hp-carr-nombre span{ font-size:14px; font-weight:700; color:#f2c83b; }
.hp-carr-acc{ display:flex; align-items:center; justify-content:center; gap:12px; }
.hp-carr-b{ min-height:44px; padding:8px 16px; border-radius:22px; border:1px solid rgba(255,255,255,.3); background:rgba(255,255,255,.07); color:#fff; font:inherit; font-size:14.5px; font-weight:800; cursor:pointer; transition:background .2s, border-color .2s; }
.hp-carr-b:hover{ background:rgba(242,200,59,.18); border-color:#f2c83b; }
.hp-carr-cuenta{ min-width:74px; text-align:center; font-size:14px; font-weight:700; color:rgba(255,255,255,.75); font-variant-numeric:tabular-nums; }
.hp-aviso{ margin:0 !important; font-size:13px !important; line-height:1.45; color:rgba(255,255,255,.7) !important; text-align:center; }
.hp-logros{ display:grid; grid-template-columns:auto minmax(0, 1fr); gap:18px 28px; align-items:center; padding:22px 24px; border-radius:var(--radius); background:var(--surface); border:1px solid var(--border); box-shadow:var(--shadow); }
.hp-logros-anillo{ position:relative; width:156px; height:156px; }
.hp-logros-anillo svg{ width:100%; height:100%; transform:rotate(-90deg); }
.hp-anillo-f{ fill:none; stroke:var(--surface-2); stroke-width:12; }
.hp-anillo-v{ fill:none; stroke:#d9a900; stroke-width:12; stroke-linecap:round; transition:stroke-dashoffset 1.5s var(--hp-ease) .2s; }
.hp-logros-anillo div{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; }
.hp-logros-anillo b{ font-size:44px; font-weight:800; line-height:1; letter-spacing:-.03em; color:var(--text); white-space:nowrap; font-variant-numeric:tabular-nums; }
.hp-logros-anillo small{ font-size:17px; font-weight:700; letter-spacing:0; color:var(--text-2); }
.hp-logros-anillo div > span{ font-size:13px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--kap-gold-text, #8c6a00); }
.hp-niveles{ display:flex; flex-direction:column; gap:14px; min-width:0; }
.hp-nivel{ display:grid; grid-template-columns:150px minmax(0, 1fr) 72px 30px; gap:14px; align-items:center; }
.hp-nivel-t{ font-size:16px; font-weight:800; color:var(--text); }
.hp-nivel-barra{ height:14px; border-radius:14px; background:var(--surface-2); overflow:hidden; }
.hp-nivel-barra i{ display:block; height:100%; width:0; border-radius:14px; background:linear-gradient(90deg, #f2c83b, #d9a900); transition:width 1.2s var(--hp-ease) calc(var(--n) * 180ms + 300ms); }
.hp-nivel b{ font-size:16px; font-weight:800; text-align:right; color:var(--text); font-variant-numeric:tabular-nums; white-space:nowrap; }
.hp-nivel-m{ width:30px; height:38px; }
.hp-logros-acc{ grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:center; gap:10px 12px; padding-top:16px; border-top:1px solid var(--border); }
.hp-logros-acc p{ flex:1 1 260px; margin:0; font-size:15px; line-height:1.45; color:var(--text-2); }
.hp-logros-acc .btn{ gap:8px; } .hp-logros-acc svg{ width:20px; height:20px; flex:none; }
.hp-logros-copiar svg{ fill:none; stroke:currentColor; stroke-width:2.3; stroke-linecap:round; stroke-linejoin:round; }
@media (max-width: 900px){
  .hp-tablero{ grid-template-columns:minmax(0, 1fr); gap:12px; padding:16px 14px; }
  .hp-velo svg{ max-width:260px; }
  .hp-lado{ display:grid; grid-template-columns:repeat(auto-fit, minmax(128px, 1fr)); gap:8px; }
  .hp-dato{ padding:10px 12px; } .hp-dato b{ font-size:22px; }
  .hp-cols-caja{ height:160px; }
}
@media (max-width: 640px){
  .hp, .hd-miplan{ padding-bottom:150px; }
  .hp-logros{ grid-template-columns:minmax(0, 1fr); justify-items:center; padding:18px 14px; }
  .hp-niveles{ width:100%; }
  .hp-logros-anillo b{ font-size:30px; } .hp-logros-anillo small{ font-size:14px; }
  .hp-nivel{ grid-template-columns:minmax(0, 1fr) 64px 26px; gap:6px 10px; }
  .hp-nivel-t{ grid-column:1 / -1; font-size:15px; }
  .hp-nivel-m{ width:26px; height:33px; }
  .hp-logros-acc .btn{ flex:1 1 100%; justify-content:center; }
  .hp-giros{ gap:8px; } .hp-giro{ height:132px; }
  .hp-carr{ height:150px; }
  .hp-tarjeta{ width:172px; height:110px; margin:-55px 0 0 -86px; transform:translateX(calc(var(--d) * 74px)) scale(calc(1 - var(--a) * .2)) rotateY(calc(var(--d) * -24deg)); }
  .hp-carr-b{ padding:8px 12px; font-size:14px; }
  .hp-tarjeta img{ max-width:172px; max-height:110px; }
}
@media (prefers-reduced-motion: reduce){
  .hp [class^="hp-"], .hd-miplan [class^="hp-"]{ animation:none !important; transition:none !important; }
  .hp-cols-linea polyline{ stroke-dashoffset:0; }
}
