/* BolsaHoy · Calendario de resultados (assets/earnings-agenda.js).
   Bloque azul de la app con tarjetas de cristal claro: se ve igual en tema
   claro y oscuro y coincide con la imagen de historia que se descarga. */
.eca-host { display: block; }
.calendar-wrap.eca-host { min-height: 0 !important; }
.eca {
  --eca-ink: #ffffff;
  --eca-soft: rgba(226, 239, 255, .78);
  --eca-line: rgba(190, 224, 255, .26);
  --eca-glass: rgba(255, 255, 255, .09);
  --eca-glass-2: rgba(255, 255, 255, .14);
  --eca-pre: #ffd36b;
  --eca-post: #a5b4fc;
  --eca-tbd: #cbd5e1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 26px 28px 28px;
  border: 1px solid rgba(190, 224, 255, .28);
  border-radius: 28px;
  color: var(--eca-ink);
  font-family: Poppins, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(70% 55% at 92% 0%, rgba(56, 148, 255, .55), transparent 70%),
    radial-gradient(60% 50% at 0% 70%, rgba(31, 128, 255, .32), transparent 70%),
    linear-gradient(160deg, #0b4aa3 0%, #0a3478 52%, #082a63 100%);
  box-shadow: 0 24px 60px rgba(3, 18, 48, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.eca *, .eca *::before, .eca *::after { box-sizing: border-box; }
:where(.eca) button { font-family: inherit; line-height: inherit; }
.eca a { color: inherit; text-decoration: none; }

/* Cabecera */
.eca-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.eca-brand { display: grid; gap: 6px; min-width: 0; }
.eca-brand__logo { display: block; width: 150px; height: auto; filter: brightness(0) invert(1); }
.eca-brand h2 { margin: 0; color: #fff; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.eca-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eca-modes { display: inline-flex; gap: 3px; padding: 4px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(4, 22, 56, .32); }
.eca-mode { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--eca-soft); font-size: 13px; font-weight: 700; cursor: pointer; transition: background .18s ease, color .18s ease; }
.eca-mode:hover { color: #fff; }
.eca-mode.is-on { background: #fff; color: #0b3a78; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.eca-download { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: #fff; color: #0b3a78; font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 10, 40, .25); transition: transform .18s ease, opacity .18s ease; }
.eca-download svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.eca-download:hover:not(:disabled) { transform: translateY(-1px); }
.eca-download:disabled { opacity: .55; cursor: default; }
.eca-download.is-busy svg { animation: eca-bounce .9s ease-in-out infinite; }
@keyframes eca-bounce { 50% { transform: translateY(3px); } }
.eca-mode:focus-visible, .eca-download:focus-visible, .eca-step:focus-visible, .eca-now:focus-visible,
.eca-item:focus-visible, .eca-row:focus-visible, .eca-more:focus-visible, .eca-cell__date:focus-visible,
.eca-cell__logo:focus-visible, .eca-cell__more:focus-visible, .eca-heat__d:focus-visible, .eca-qmonth__title:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Barra de periodo */
.eca-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 18px 0 16px; }
.eca-step { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
.eca-step svg, .eca-qmonth__title svg, .eca-row__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.eca-step:hover { background: rgba(255, 255, 255, .2); }
.eca-range { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; background: linear-gradient(180deg, #3a9bff, #1f6fe0); color: #fff; font-size: 16px; font-weight: 700; box-shadow: 0 6px 16px rgba(0, 20, 60, .25); }
.eca-range svg, .eca-day__cal svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.eca-now { min-height: 32px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: transparent; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.eca-now[hidden] { display: none; }
.eca-meta { margin-left: auto; color: var(--eca-soft); font-size: 12px; font-weight: 600; }

.eca-body { position: relative; transition: opacity .2s ease; }
.eca-body.is-busy { opacity: .55; pointer-events: none; }
.eca-loading { display: flex; justify-content: center; gap: 8px; padding: 60px 0; }
.eca-loading span { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: eca-pulse 1s ease-in-out infinite; }
.eca-loading span:nth-child(2) { animation-delay: .15s; }
.eca-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes eca-pulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
.eca-empty { padding: 40px 16px; border: 1px dashed var(--eca-line); border-radius: 20px; color: var(--eca-soft); font-size: 14px; font-weight: 600; text-align: center; }
.eca-retry { margin-left: 8px; min-height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; color: #0b3a78; font-weight: 800; cursor: pointer; }
.eca-holiday { margin: 6px 0 2px; color: var(--eca-soft); font-size: 13px; font-weight: 600; }
.eca-day__note { margin: 10px 2px 0; color: rgba(226, 239, 255, .62); font-size: 11px; font-weight: 600; }

/* Moneda del logo: círculo blanco; la imagen ya llega dibujada y completa. */
.eca-coin { position: relative; display: inline-block; flex: none; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 3px 10px rgba(0, 12, 40, .28); overflow: hidden; }
.eca-coin:not(.is-ready)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(255, 255, 255, 0) 30%, rgba(31, 128, 255, .18) 50%, rgba(255, 255, 255, 0) 70%); background-size: 220% 100%; animation: eca-shine 1.2s linear infinite; }
@keyframes eca-shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.eca-coin img { display: block; width: 100%; height: 100%; border-radius: 50%; }

/* Etiquetas de sesión */
.eca-slot__label { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.eca-slot__label em { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: var(--eca-soft); font-size: 11px; font-style: normal; }
.eca-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--eca-tbd); }
.eca-slot--pre .eca-dot, .eca-list--pre .eca-dot { background: var(--eca-pre); box-shadow: 0 0 0 3px rgba(255, 211, 107, .22); }
.eca-slot--post .eca-dot, .eca-list--post .eca-dot { background: var(--eca-post); box-shadow: 0 0 0 3px rgba(165, 180, 252, .25); }
.eca-l-short { display: none; }
.eca-none { color: rgba(226, 239, 255, .5); font-size: 12px; font-weight: 600; white-space: nowrap; }
.eca-cell__quiet { align-self: center; color: rgba(226, 239, 255, .55); font-size: 11px; font-weight: 600; text-align: center; }

/* Empresa (chip) */
.eca-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.eca-item { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 48px; padding: 6px 10px 6px 6px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; background: rgba(255, 255, 255, .07); transition: background .16s ease, border-color .16s ease, transform .16s ease; }
a.eca-item:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); transform: translateY(-1px); }
.eca-item__txt { display: grid; min-width: 0; line-height: 1.15; }
.eca-item__txt b { overflow: hidden; color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.eca-item__txt small { color: var(--eca-soft); font-size: 11px; font-weight: 600; white-space: nowrap; }
.eca-more { min-height: 48px; padding: 0 14px; border: 1px dashed rgba(255, 255, 255, .45); border-radius: 999px; background: transparent; color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; }
.eca-more:hover { background: rgba(255, 255, 255, .12); }

/* Semana */
.eca-week { display: grid; gap: 12px; }
.eca-day { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 0 18px; padding: 16px 18px; border: 1px solid var(--eca-line); border-radius: 22px; background: var(--eca-glass); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.eca-day.is-today { border-color: rgba(255, 255, 255, .6); background: var(--eca-glass-2); }
.eca-day__head { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-content: start; gap: 2px 8px; grid-row: 1 / span 3; padding-top: 2px; }
.eca-day__cal { grid-row: 1 / span 2; color: #9fd0ff; padding-top: 3px; }
.eca-day__name { color: #fff; font-size: 17px; font-weight: 800; line-height: 1.15; }
.eca-day__date { grid-column: 2; color: var(--eca-soft); font-size: 13px; font-weight: 600; }
.eca-day__count { grid-column: 2; justify-self: start; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 12px; font-weight: 700; }
.eca-day__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.eca-day__cols .eca-slot + .eca-slot { padding-left: 16px; border-left: 1px solid var(--eca-line); }
.eca-slot--tbd { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--eca-line); }
.eca-slot--tbd .eca-items { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.eca-day.is-empty .eca-holiday { align-self: center; }

/* Hoy */
.eca-today { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.eca-list { padding: 14px; border: 1px solid var(--eca-line); border-radius: 22px; background: var(--eca-glass); }
.eca-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 20px; align-items: center; gap: 11px; min-height: 56px; padding: 7px 8px; border-radius: 16px; transition: background .16s ease; }
.eca-row + .eca-row { border-top: 1px solid rgba(190, 224, 255, .14); }
a.eca-row:hover { background: rgba(255, 255, 255, .1); }
.eca-row .eca-coin { width: 40px; height: 40px; }
.eca-row__name { display: grid; min-width: 0; line-height: 1.2; }
.eca-row__name b { overflow: hidden; font-size: 14px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.eca-row__name small { overflow: hidden; color: var(--eca-soft); font-size: 11.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.eca-row__eps { color: var(--eca-soft); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.eca-row__eps b { color: #fff; font-weight: 700; }
.eca-row__go { color: rgba(255, 255, 255, .7); }

/* Mes */
.eca-month__dow, .eca-month__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.eca-month__dow { margin-bottom: 8px; }
.eca-month__dow span { color: var(--eca-soft); font-size: 12px; font-weight: 800; text-align: center; text-transform: uppercase; letter-spacing: .08em; }
.eca-cell { display: grid; grid-template-rows: auto 1fr; min-height: 132px; padding: 10px; border: 1px solid var(--eca-line); border-radius: 18px; background: var(--eca-glass); }
.eca-cell.is-out { border-color: transparent; background: transparent; }
.eca-cell.is-quiet { background: rgba(255, 255, 255, .035); }
.eca-cell.is-past { opacity: .78; }
.eca-cell.is-today { border-color: rgba(255, 255, 255, .75); background: rgba(58, 155, 255, .3); opacity: 1; }
.eca-cell__date { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 0; border: 0; background: none; color: #fff; text-align: left; cursor: pointer; }
.eca-cell__date b { font-size: 18px; font-weight: 800; }
.eca-cell__date small { color: var(--eca-soft); font-size: 11px; font-weight: 700; }
.eca-cell__date:hover small { color: #fff; text-decoration: underline; }
.eca-cell__logos { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 5px; margin-top: 9px; }
.eca-cell__logo { display: inline-flex; border-radius: 50%; transition: transform .16s ease; }
.eca-cell__logo:hover { transform: scale(1.08); }
.eca-cell__logos .eca-coin { width: 30px; height: 30px; }
.eca-cell__more { min-width: 30px; height: 30px; padding: 0 6px; border: 1px dashed rgba(255, 255, 255, .5); border-radius: 999px; background: transparent; color: #fff; font-size: 11px; font-weight: 800; cursor: pointer; }

/* Trimestre */
.eca-quarter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.eca-qmonth { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--eca-line); border-radius: 22px; background: var(--eca-glass); }
.eca-qmonth__head { display: grid; gap: 4px; }
.eca-qmonth__title { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 0; border: 0; background: none; color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.02em; cursor: pointer; }
.eca-qmonth__title:hover { text-decoration: underline; }
.eca-qmonth__stats { color: var(--eca-soft); font-size: 12.5px; font-weight: 600; }
.eca-qmonth__stats b { color: #fff; }
.eca-qmonth__sub { margin: 0; color: var(--eca-soft); font-size: 12px; font-weight: 700; }
.eca-heat { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.eca-heat > span { color: var(--eca-soft); font-size: 10px; font-weight: 800; text-align: center; }
.eca-heat > i { display: block; }
.eca-heat__d { display: grid; place-items: center; align-content: center; min-height: 40px; padding: 3px 0; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .07); color: #fff; line-height: 1.05; cursor: pointer; }
.eca-heat__d b { font-size: 13px; font-weight: 700; }
.eca-heat__d small { font-size: 9.5px; font-weight: 600; opacity: .85; }
.eca-heat__d.l1 { background: rgba(88, 168, 255, .3); }
.eca-heat__d.l2 { background: rgba(88, 168, 255, .5); }
.eca-heat__d.l3 { background: rgba(88, 168, 255, .72); }
.eca-heat__d.l4 { background: rgba(160, 210, 255, .95); color: #06306b; }
.eca-heat__d.is-today { box-shadow: inset 0 0 0 2px #fff; }
.eca-items--top { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }

/* Tablets */
@media (max-width: 1180px) {
  .eca-quarter { grid-template-columns: 1fr; }
  .eca-qmonth { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); align-items: start; }
  .eca-qmonth__head { grid-column: 1 / -1; }
  .eca-qmonth__sub { grid-column: 2; grid-row: 2; align-self: start; }
  .eca-qmonth .eca-heat { grid-column: 1; grid-row: 2 / span 2; }
  .eca-qmonth .eca-items--top, .eca-qmonth .eca-holiday { grid-column: 2; grid-row: 3; }
}
@media (max-width: 980px) {
  .eca-day { grid-template-columns: 1fr; }
  .eca-day__head { grid-row: auto; grid-template-columns: 22px auto auto 1fr; align-items: center; margin-bottom: 12px; }
  .eca-day__cal { grid-row: auto; padding-top: 0; }
  .eca-day__date { grid-column: auto; }
  .eca-day__count { grid-column: auto; justify-self: end; margin-top: 0; }
}

/* Móvil y app: composición vertical compacta, pensada para historias. */
@media (max-width: 760px) {
  .eca { padding: 18px 14px 16px; border-radius: 22px; }
  .eca-head { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
  .eca-brand { justify-items: center; gap: 4px; }
  .eca-brand__logo { width: 124px; }
  .eca-brand h2 { font-size: 22px; }
  .eca-tools { display: grid; grid-template-columns: minmax(0, 1fr) 44px; width: 100%; gap: 8px; }
  .eca-modes { width: 100%; justify-content: space-between; }
  .eca-mode { flex: 1; min-height: 34px; padding: 0 4px; font-size: 12px; }
  .eca-download { justify-content: center; width: 44px; padding: 0; }
  .eca-download span { display: none; }
  .eca-bar { justify-content: center; margin: 12px 0; gap: 6px; }
  .eca-range { min-height: 36px; padding: 0 14px; font-size: 14px; }
  .eca-step { width: 34px; height: 34px; }
  .eca-meta { width: 100%; margin: 2px 0 0; font-size: 10.5px; text-align: center; }
  .eca-now { order: 5; }

  .eca-week { gap: 8px; }
  .eca-day { padding: 10px 10px 12px; border-radius: 18px; }
  .eca-day__head { grid-template-columns: 18px auto auto 1fr; gap: 6px; margin: -2px 0 9px; }
  .eca-day__cal svg { width: 16px; height: 16px; }
  .eca-day__name { font-size: 14px; }
  .eca-day__date { font-size: 12px; }
  .eca-day__count { padding: 2px 8px; font-size: 10.5px; }
  .eca-day__cols { gap: 8px; }
  .eca-day__cols .eca-slot + .eca-slot { padding-left: 8px; }
  .eca-slot__label { margin-bottom: 7px; font-size: 10.5px; gap: 5px; }
  .eca-slot__label em { padding: 0 6px; font-size: 10px; }
  .eca-dot { width: 7px; height: 7px; }
  .eca-l-long { display: none; }
  .eca-l-short { display: inline; white-space: nowrap; }
  .eca-day .eca-items, .eca-slot--tbd .eca-items, .eca-items--top { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px 3px; }
  .eca-slot--tbd .eca-items { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .eca-day .eca-item, .eca-items--top .eca-item { flex-direction: column; justify-content: flex-start; gap: 3px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; }
  .eca-day .eca-item .eca-coin, .eca-items--top .eca-item .eca-coin { width: 32px; height: 32px; }
  .eca-day .eca-item__txt b, .eca-items--top .eca-item__txt b { display: none; }
  .eca-day .eca-item__txt small, .eca-items--top .eca-item__txt small { max-width: 52px; overflow: hidden; color: #fff; font-size: 9px; font-weight: 700; text-align: center; text-overflow: ellipsis; }
  .eca-items--top .eca-item__txt small { font-size: 8.5px; line-height: 1.2; white-space: normal; }
  .eca-more { width: 32px; height: 32px; min-height: 0; padding: 0; border-radius: 50%; font-size: 11px; justify-self: center; }
  .eca-slot--tbd { margin-top: 10px; padding-top: 9px; }
  .eca-day__note { font-size: 10px; text-align: center; }

  .eca-today { grid-template-columns: 1fr; gap: 8px; }
  .eca-list { padding: 10px; border-radius: 18px; }
  .eca-row { grid-template-columns: 36px minmax(0, 1fr) auto 14px; gap: 9px; min-height: 50px; padding: 6px 4px; }
  .eca-row .eca-coin { width: 36px; height: 36px; }
  .eca-row__name b { font-size: 13px; }
  .eca-row__eps { font-size: 10.5px; }

  .eca-month__dow, .eca-month__grid { gap: 4px; }
  .eca-month__dow span { font-size: 10px; letter-spacing: .04em; }
  .eca-cell { min-height: 92px; padding: 6px 4px; border-radius: 12px; }
  .eca-cell__date { flex-direction: column; align-items: center; gap: 0; text-align: center; }
  .eca-cell__date b { font-size: 15px; }
  .eca-cell__date small { font-size: 8.5px; white-space: nowrap; }
  .eca-cell__logos { justify-content: center; gap: 3px; margin-top: 5px; }
  .eca-cell__logos .eca-coin { width: 24px; height: 24px; }
  .eca-cell__more { min-width: 24px; height: 24px; padding: 0 3px; font-size: 9px; }

  .eca-qmonth { grid-template-columns: 1fr; gap: 10px; padding: 12px; border-radius: 18px; }
  .eca-qmonth__head, .eca-qmonth__sub, .eca-qmonth .eca-heat, .eca-qmonth .eca-items--top, .eca-qmonth .eca-holiday { grid-column: auto; grid-row: auto; }
  .eca-qmonth__title { font-size: 19px; }
  .eca-heat__d { min-height: 36px; }
  .eca-items--top { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .eca { padding: 16px 10px 14px; }
  .eca-day .eca-item .eca-coin { width: 29px; height: 29px; }
  .eca-more { width: 29px; height: 29px; }
  .eca-slot--tbd .eca-items { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .eca-coin:not(.is-ready)::after, .eca-loading span, .eca-download.is-busy svg { animation: none; }
}
