/* ═══════════════════════════════════════════════════════════════════
   IronQx — «Tu día» en el inicio (js/52-home-hoy.js)
   Dos secciones (Entreno, Comidas) con cabecera y estado a la derecha;
   las comidas son una línea del día en columnas iguales, no píldoras
   sueltas. Jerarquía de tipo: rótulo pequeño y tenue → título blanco
   grande → detalle gris. Misma familia visual que el ranking.
   ═══════════════════════════════════════════════════════════════════ */
.hy-card {
  position: relative; overflow: hidden; margin: 0 0 14px; padding: 18px 16px 14px; border-radius: 24px;
  background: radial-gradient(90% 80% at 100% 0%, rgba(201,168,76,.11), transparent 60%),
              linear-gradient(165deg, rgba(255,255,255,.055), rgba(255,255,255,.012) 55%), var(--bg2);
  border: 1px solid rgba(201,168,76,.2);
  box-shadow: 0 18px 44px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
  animation: hy-in .5s cubic-bezier(.22,1,.36,1) both;
}
.hy-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(242,203,104,.5), transparent); }
@keyframes hy-in { from { opacity: 0; transform: translateY(8px); } }
.hy-card.is-static { animation: none; }
.hy-card .iq-ic { width: 16px; height: 16px; }

/* Cabecera */
.hy-head { display: flex; align-items: center; gap: 14px; }
.hy-head-copy { flex: 1; min-width: 0; }
.hy-kicker { display: block; font: 400 9px/1.2 var(--iq-brand, Inter); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.hy-head h3 { margin: 7px 0 0; font: 800 20px/1.15 Inter, sans-serif; letter-spacing: -.025em; color: #fff; }
.hy-head p { margin: 6px 0 0; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--gold3); }

.hy-ring { position: relative; flex: 0 0 64px; width: 64px; height: 64px; }
.hy-ring > svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hy-ring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.hy-ring-bg { stroke: rgba(255,255,255,.08); }
.hy-ring-fg { stroke: var(--gold); transition: stroke-dasharray .8s cubic-bezier(.22,1,.36,1); filter: drop-shadow(0 0 4px rgba(201,168,76,.45)); }
.hy-ring.is-full .hy-ring-fg { stroke: var(--green); filter: drop-shadow(0 0 5px rgba(46,171,101,.5)); }
.hy-ring > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 1px; font: 800 18px/1 'Barlow Condensed', sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.hy-ring > span small { font-size: 10px; color: var(--txt2); }
.hy-ring.is-full > span { color: var(--green); }
.hy-ring.is-full .iq-ic { width: 22px; height: 22px; }

/* Secciones */
.hy-rows { display: grid; margin-top: 16px; border-top: 1px solid rgba(255,255,255,.07); }
.hy-sec { padding: 14px 2px 12px; }
.hy-sec + .hy-sec { border-top: 1px solid rgba(255,255,255,.07); }
.hy-sec-hd { display: flex; align-items: center; gap: 8px; }
.hy-sec-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; color: var(--gold3); background: rgba(201,168,76,.1); }
.hy-sec-ic .iq-ic { width: 14px; height: 14px; }
.hy-sec.is-done .hy-sec-ic { color: var(--green); background: var(--green-bg); }
.hy-sec-lbl { flex: 1; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--txt2); }
.hy-st { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; font: 700 11px/1 Inter, sans-serif; color: var(--txt2); background: rgba(255,255,255,.05); }
.hy-st .iq-ic { width: 12px; height: 12px; }
.hy-st.is-ok { color: var(--green); background: var(--green-bg); }
.hy-st.is-due { color: var(--gold3); background: rgba(201,168,76,.12); }
.hy-count { font: 600 14px/1 'Barlow Condensed', sans-serif; color: var(--muted); font-variant-numeric: tabular-nums; }
.hy-count b { font-size: 24px; font-weight: 800; color: #fff; }

.hy-sec-bd { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.hy-txt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.hy-txt b { font: 800 17px/1.2 Inter, sans-serif; letter-spacing: -.015em; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hy-txt em { font-style: normal; font-size: 12.5px; color: var(--txt2); }

.hy-btn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--grad-gold); color: #120e04; font: 800 13px/1 Inter, sans-serif; cursor: pointer; box-shadow: 0 8px 18px rgba(201,168,76,.22); transition: transform .15s; }
.hy-btn:active { transform: scale(.97); }
.hy-btn .iq-ic { width: 15px; height: 15px; }
.hy-btn.is-ghost { background: rgba(255,255,255,.05); color: var(--txt); box-shadow: none; border: 1px solid rgba(255,255,255,.1); }
.hy-btn.is-wide { display: flex; width: 100%; margin-top: 14px; }

/* Línea del día: columnas iguales unidas por una pista */
.hy-tl { position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); margin: 14px 0 0; padding: 0; list-style: none; }
.hy-tl::before { content: ""; position: absolute; top: 15px; left: calc(50% / var(--n, 5)); right: calc(50% / var(--n, 5)); height: 2px; border-radius: 2px; background: rgba(255,255,255,.08); }
.hy-tl li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0 2px; text-align: center; }
.hy-tl-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  color: var(--muted); background: var(--bg2); border: 1.5px solid rgba(255,255,255,.14); }
.hy-tl-dot .iq-ic { width: 14px !important; height: 14px !important; }
.hy-tl b { font-size: 11px; font-weight: 700; line-height: 1.2; color: var(--txt2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hy-tl small { font: 600 10.5px/1 'Barlow Condensed', sans-serif; letter-spacing: .04em; color: var(--muted); font-variant-numeric: tabular-nums; }
.hy-tl li.is-ok .hy-tl-dot { color: #08130d; background: var(--green); border-color: var(--green); box-shadow: 0 0 10px rgba(46,171,101,.35); }
.hy-tl li.is-ok b { color: var(--txt); }
.hy-tl li.is-now .hy-tl-dot { color: #120e04; background: var(--gold); border-color: var(--gold); animation: hy-pulse 1.8s ease-in-out infinite; }
.hy-tl li.is-now b, .hy-tl li.is-now small { color: var(--gold3); }
.hy-tl li.is-soon .hy-tl-dot { color: var(--gold3); border-color: rgba(201,168,76,.55); }
.hy-tl li.is-miss .hy-tl-dot { color: #ff9d9d; background: rgba(221,68,68,.14); border-color: rgba(221,68,68,.5); }
.hy-tl li.is-miss b { color: rgba(236,238,244,.55); }
.hy-tl li.is-skip { opacity: .45; }
@keyframes hy-pulse { 50% { box-shadow: 0 0 0 5px rgba(201,168,76,.18); } }

.hy-empty { margin: 14px 2px 2px; font-size: 13px; color: var(--txt2); }

@media (max-width: 360px) {
  .hy-tl b { font-size: 10px; }
  .hy-tl-dot { width: 28px; height: 28px; }
  .hy-tl::before { top: 13px; }
}
@media (prefers-reduced-motion: reduce) { .hy-card, .hy-tl li.is-now .hy-tl-dot { animation: none; } }
