/* Stories a pantalla completa, formato vertical 9:16. */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #111; color: #FFF; font-family: Inter, system-ui, -apple-system, sans-serif; overscroll-behavior: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.st-app { position: relative; height: 100dvh; width: 100%; max-width: calc(100dvh * 9 / 16); margin: 0 auto; overflow: hidden; background: #000; }
@media (min-width: 700px) {
  body { background: radial-gradient(circle at 50% 30%, #3A3631, #111 70%); }
  .st-app { border-radius: 0; box-shadow: 0 0 80px rgba(0, 0, 0, .6); }
}

/* Barra de arriba */
.st-top { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: max(12px, env(safe-area-inset-top)) 14px 12px; pointer-events: none; }
.st-top > * { pointer-events: auto; }
.st-back, .st-sound {
  width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 14px; background: rgba(0, 0, 0, .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer;
}
.st-back svg, .st-sound svg { width: 22px; height: 22px; fill: none; stroke: #FFF; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.st-sound { margin-left: auto; }
.st-sound[hidden] { display: none; }
.st-sound.is-on { background: rgba(255, 255, 255, .9); }
.st-sound.is-on svg { stroke: #111; }
.st-brand { display: flex; flex-direction: column; min-width: 0; text-decoration: none; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); line-height: 1.15; }
.st-brand strong { font: 800 19px 'Inter Tight', Inter, sans-serif; }
.st-brand span { font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #F2A572; }

/* Desplazamiento */
.st-feed { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; }
.st-feed::-webkit-scrollbar { display: none; }
.st-slide { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: var(--st-bg, #222); }
.st-media, .st-media img, .st-media video, .st-media iframe, .st-textbg { position: absolute; inset: 0; width: 100%; height: 100%; }
.st-media img, .st-media video { object-fit: cover; display: block; }
.st-textbg { background: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .22), transparent 45%), radial-gradient(circle at 85% 90%, rgba(0, 0, 0, .25), transparent 50%), var(--st-bg); }
.st-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(0, 0, 0, .45), transparent 18%, transparent 52%, rgba(0, 0, 0, .78)); }
.st-texto .st-shade { background: linear-gradient(to bottom, rgba(0, 0, 0, .25), transparent 18%, transparent 70%, rgba(0, 0, 0, .35)); }
.st-tap { position: absolute; inset: 70px 80px 160px 0; z-index: 1; border: 0; background: none; cursor: pointer; }
.st-tap.is-paused::after { content: '▶'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; font-size: 28px; padding-left: 6px; }

/* Etiqueta arriba a la izquierda */
.st-chip {
  position: absolute; z-index: 3; top: calc(max(12px, env(safe-area-inset-top)) + 58px); left: 14px; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
}

/* Story de texto */
.st-bigtext { position: absolute; z-index: 2; inset: 120px 84px 150px 26px; display: flex; flex-direction: column; justify-content: center; gap: 16px; color: var(--st-fg); }
.st-bigtext h2 { margin: 0; font: 800 clamp(30px, 9vw, 46px)/1.05 'Inter Tight', Inter, sans-serif; letter-spacing: -.01em; }
.st-bigtext p { margin: 0; font-size: clamp(17px, 4.6vw, 21px); line-height: 1.45; opacity: .95; }

/* Botones a la derecha */
.st-rail { position: absolute; z-index: 3; right: 10px; bottom: 150px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.st-act { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 0; cursor: pointer; text-decoration: none; }
.st-ico {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .15s ease;
}
.st-act:active .st-ico { transform: scale(.92); }
.st-ico svg { width: 26px; height: 26px; fill: none; stroke: #FFF; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.st-wa .st-ico { background: #25D366; border-color: #25D366; }
.st-wa .st-ico svg { fill: #FFF; stroke: none; }
.st-share .st-ico svg { stroke: #9AD7FF; }
.st-like.is-on .st-ico svg { fill: #FF3B5C; stroke: #FF3B5C; }
.st-like.pop .st-ico { animation: stPop .45s ease; }
@keyframes stPop { 40% { transform: scale(1.25); } }
.st-label { font-size: 12px; font-weight: 700; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }

/* Texto de abajo */
.st-info { position: absolute; z-index: 2; left: 18px; right: 84px; bottom: max(28px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.st-title { margin: 0; font: 800 clamp(26px, 7vw, 34px)/1.08 'Inter Tight', Inter, sans-serif; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.st-text { margin: 0; font-size: 15.5px; line-height: 1.45; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.st-cta {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px;
  background: #FFF; color: #111; font-weight: 800; font-size: 15px; text-decoration: none;
}
.st-texto .st-cta { background: var(--st-fg); color: var(--st-bg); }

.st-hint { position: absolute; z-index: 4; left: 50%; bottom: 8px; transform: translate(-50%, 10px); margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .5); font-size: 12px; font-weight: 600; opacity: 0; transition: .4s; pointer-events: none; }
.st-hint.is-on { opacity: 1; transform: translate(-50%, 0); animation: stNudge 1.6s ease 3; }
@keyframes stNudge { 50% { transform: translate(-50%, -6px); } }

.st-empty { display: flex; align-items: center; justify-content: center; background: #24211E; }
.st-empty-box { text-align: center; padding: 24px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.st-empty-box h1 { margin: 0; font: 800 26px 'Inter Tight', Inter, sans-serif; }
.st-empty-box p { margin: 0; opacity: .8; }

/* Compartir */
.st-sheet { border: 0; border-radius: 22px; padding: 22px; width: min(360px, calc(100% - 32px)); background: #FFF; color: #24211E; }
.st-sheet::backdrop { background: rgba(0, 0, 0, .55); }
.st-sheet-title { margin: 0 0 14px; font-weight: 800; font-size: 18px; }
.st-sheet-grid { display: grid; gap: 8px; }
.st-sheet-btn { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 0; border-radius: 14px; font-weight: 700; text-decoration: none; cursor: pointer; color: #FFF; }
.st-sh-wa { background: #1F7A3E; }
.st-sh-fb { background: #1877F2; }
.st-sh-copy { background: #24211E; }
.st-sheet-close { margin-top: 10px; width: 100%; min-height: 44px; border: 1px solid #E4DACD; border-radius: 14px; background: none; color: #24211E; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .st-feed { scroll-behavior: auto; }
  .st-hint.is-on, .st-like.pop .st-ico { animation: none; }
}

/* Videos de YouTube: sin borde y a todo lo alto (los Shorts llenan la pantalla). */
.st-media iframe { border: 0; display: block; background: #000; }
