/* =========================================================
   HISTORIAS · tira de accesos + visor a pantalla completa
   ========================================================= */
.ej-stories { margin: 0 auto 2.4rem; max-width: 980px; }
.ej-stories__head { text-align: center; margin-bottom: 1rem; }
.ej-stories__head span { font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--primary-3); }
.ej-stories__row { display: flex; gap: 18px; overflow-x: auto; padding: 4px 4px 10px; scrollbar-width: none; justify-content: center; flex-wrap: wrap; }
.ej-stories__row::-webkit-scrollbar { display: none; }
.ej-story { display: flex; flex-direction: column; align-items: center; gap: .5rem; width: 84px; flex: 0 0 auto; cursor: pointer; }
.ej-story__ring {
  width: 76px; height: 76px; border-radius: 50%; padding: 3px; box-sizing: border-box;
  background: conic-gradient(from -45deg, var(--gold) 0deg, #e7c98a 120deg, var(--primary-2) 240deg, var(--gold) 360deg);
  transition: transform .2s ease; overflow: hidden;
  display: flex; align-items: stretch; justify-content: stretch;
}
.ej-story:hover .ej-story__ring { transform: scale(1.06); }
.ej-story__ring img {
  flex: 1 1 auto; min-width: 0; min-height: 0; width: 100%; height: 100%; box-sizing: border-box;
  border-radius: 50%; object-fit: cover; border: 3px solid var(--white); display: block;
}
.ej-story__label { font-size: .72rem; font-weight: 700; color: var(--primary); text-align: center; line-height: 1.2; }
.ej-story__label small { display: block; font-weight: 600; color: var(--text-soft); font-size: .64rem; text-transform: uppercase; letter-spacing: .04em; }

.ej-story--brand .ej-story__ring { animation: ej-story-glow 2.6s ease-in-out infinite; }
.ej-story--brand .ej-story__label { font-weight: 800; }
@keyframes ej-story-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 151, 90, .45); }
  50% { box-shadow: 0 0 0 6px rgba(201, 151, 90, 0); }
}
@media (prefers-reduced-motion: reduce) { .ej-story--brand .ej-story__ring { animation: none; } }

.stview { position: fixed; inset: 0; z-index: 1200; display: none; background: #0e0906; }
.stview.is-open { display: block; }
.stview__wrap { position: relative; width: 100%; height: 100%; max-width: 480px; margin: 0 auto; background: #000; overflow: hidden; }
.stview__bars { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 5; display: flex; gap: 4px; }
.stview__bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .32); overflow: hidden; position: relative; }
.stview__bars i b { position: absolute; inset: 0; width: 0%; background: #fff; display: block; }
.stview__bars i.done b { width: 100% !important; }

.stview__head { position: absolute; top: 22px; left: 14px; right: 14px; z-index: 5; display: flex; align-items: center; gap: 10px; color: #fff; }
.stview__avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(255, 255, 255, .6); }
.stview__id { display: flex; flex-direction: column; line-height: 1.15; }
.stview__name { font-weight: 800; font-size: .9rem; }
.stview__sub { font-size: .7rem; color: rgba(255, 255, 255, .75); }
.stview__close { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.2rem; cursor: pointer; }

.stview__stage { position: absolute; inset: 0; display: grid; place-items: center; }
.stview__stage img, .stview__stage video { width: 100%; height: 100%; object-fit: cover; }

.stview__nav { position: absolute; top: 0; bottom: 0; width: 38%; z-index: 4; background: none; border: 0; cursor: pointer; }
.stview__prev { left: 0; } .stview__next { right: 0; }

.stview__foot { position: absolute; left: 14px; right: 14px; bottom: 22px; z-index: 5; display: flex; gap: 10px; align-items: center; }
.stview__foot .btn { width: auto; flex: 1; min-height: 46px; }
.stview__more { color: #fff; font-size: .78rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.stview__hint { position: absolute; left: 0; right: 0; bottom: 84px; z-index: 5; text-align: center; color: rgba(255, 255, 255, .7); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }

body.stview-open { overflow: hidden; }
@media (min-width: 481px) { .stview__wrap { border-radius: 18px; margin-top: 2vh; height: 96vh; box-shadow: 0 30px 90px rgba(0, 0, 0, .5); } }
@media (prefers-reduced-motion: reduce) { .ej-story__ring, .stview__bars i b { transition: none; } }
