/* Full EPS analysis — market-map/earnings/eps/ (usa también ../earnings.css) */
.eps-page { max-width: 880px; gap: 16px; }
.eps-page .mm-switch { align-self: center; }
.eps-back { align-self: flex-start; font: 700 13px 'Inter', sans-serif; color: #548C92; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.eps-back:hover { text-decoration: underline; }
.eps-search { flex: 0 0 auto; }

.eps-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 10px 30px -18px rgba(22, 36, 42, 0.25);
  font-family: 'Inter', sans-serif;
  display: flex; flex-direction: column; gap: 12px;
}
.eps-card__h { margin: 0; font: 800 12px 'Inter', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #548C92; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eps-card__sub { margin-left: auto; font-weight: 600; letter-spacing: 0; text-transform: none; color: #7b8a8f; font-size: 12px; }

/* Encabezado */
.eps-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px 16px; }
.eps-head__name { margin: 2px 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: #1a1a1a; }
.eps-head__next { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; background: #f6f9f9; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; color: #2C3E50; }
.eps-head__next .fa-sun { color: #d19a1e; }
.eps-head__next .fa-moon { color: #4f5f9c; }
.eps-head__next span { color: #7b8a8f; font-weight: 500; font-size: 12.5px; }
.eps-notify { grid-column: 3; grid-row: 1; margin: 0; }
.eps-notify p { display: none; }
.eps-notify .ec-notify__btn { white-space: nowrap; }

/* Probabilidad */
.eps-odds__body { display: grid; grid-template-columns: auto 1fr; gap: 14px 20px; align-items: center; }
.eps-odds__body .ec-skel { grid-column: 1 / -1; height: 120px; }
.eps-gauge { position: relative; width: 132px; height: 132px; }
.eps-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.eps-gauge circle { fill: none; stroke-width: 10; }
.eps-gauge .bg { stroke: #e8eff0; }
.eps-gauge .v { stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.eps-gauge b { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: #1a1a1a; }
.eps-gauge b small { font-size: 11px; font-weight: 700; color: #7b8a8f; letter-spacing: .04em; text-transform: uppercase; }
.eps-odds__txt { display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.5; color: #2C3E50; }
.eps-odds__txt p { margin: 0; }
.eps-odds__txt strong { color: #1a1a1a; }
.eps-odds__rows { display: flex; flex-wrap: wrap; gap: 8px; }
.eps-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #f4f8f8; font-size: 12.5px; font-weight: 600; color: #3d5f68; }
.eps-pill b { color: #1a1a1a; }
.eps-pill i { color: #548C92; }
/* Cómo se calcula la chance: plegado, se abre al picar */
.eps-why { border-top: 1px solid #eef2f3; }
.eps-why > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 13px; font-weight: 700; color: #2C3E50; }
.eps-why > summary::-webkit-details-marker { display: none; }
.eps-why > summary span { display: flex; flex-direction: column; gap: 2px; }
.eps-why > summary small { font-size: 12px; font-weight: 500; color: #7b8a8f; }
.eps-why > summary i { color: #7b8a8f; font-size: 12px; transition: transform .2s; }
.eps-why[open] > summary i { transform: rotate(180deg); }
.eps-why > summary:focus-visible { outline: 3px solid rgba(84, 140, 146, 0.45); outline-offset: 2px; border-radius: 8px; }
.eps-factors { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid #eef2f3; }
.eps-factors li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #eef2f3; }
.eps-factors__lbl { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; color: #2C3E50; min-width: 0; }
.eps-factors__lbl small { font-size: 12px; font-weight: 400; color: #7b8a8f; }
.eps-factors b { font-size: 13px; white-space: nowrap; color: #7b8a8f; }
.eps-factors b.is-up { color: #188038; }
.eps-factors b.is-down { color: #d93025; }
.eps-odds__ai { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: #7b8a8f; }
.eps-odds__ai img { width: 16px; height: 16px; border-radius: 4px; }

/* Analistas */
.eps-analysts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.eps-analysts .ec-skel { grid-column: 1 / -1; height: 70px; }
.eps-stat { border: 1px solid rgba(0, 0, 0, 0.07); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.eps-stat > span { font-size: 10.5px; font-weight: 700; color: #7b8a8f; text-transform: uppercase; letter-spacing: .05em; }
.eps-stat > b { font-size: 18px; color: #1a1a1a; letter-spacing: -.01em; }
.eps-stat > small { font-size: 12px; color: #7b8a8f; }
.eps-stat .is-up { color: #188038; }
.eps-stat .is-down { color: #d93025; }
.eps-range { position: relative; height: 6px; border-radius: 999px; background: #e8eff0; margin-top: 6px; }
.eps-range i { position: absolute; top: -3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #285260; border: 2px solid #fff; box-shadow: 0 0 0 1px #285260; }

/* Estadísticas */
.eps-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.eps-beatbar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: #e8eff0; margin-top: 4px; }
.eps-beatbar i { display: block; height: 100%; }
.eps-beatbar .b { background: #188038; }
.eps-beatbar .f { background: #b9c6c9; }
.eps-beatbar .m { background: #d93025; }

/* Gráficas */
.eps-hist .ec-hist__bars { height: 140px; }
.eps-hist .ec-hist__q { min-width: 0; }
.eps-chart { position: relative; height: 260px; }
.eps-chart--sm { height: 190px; }
.eps-stock { align-self: center; padding: 12px 26px; }

@media (max-width: 700px) {
  .eps-head { grid-template-columns: auto 1fr; }
  .eps-head__name { font-size: 20px; }
  .eps-notify { grid-column: 1 / -1; grid-row: auto; }
  .eps-notify .ec-notify__btn { width: 100%; justify-content: center; }
  .eps-odds__body { grid-template-columns: 1fr; justify-items: center; }
  .eps-odds__txt { text-align: left; width: 100%; }
  .eps-analysts, .eps-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eps-card { padding: 16px 14px; }
  .eps-chart { height: 220px; }
}
