/* Custom Scroll Snap Presentation Styles */
.snap-container {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: calc(100vh - 64px);
  scroll-behavior: smooth;
}
.snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #0284c7;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0369a1;
}

/* Pulse & Glow FX */
.glow-effect {
  box-shadow: 0 0 25px -5px rgba(2, 132, 199, 0.4);
}
.badge-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}

/* ==========================================================================
   Landing tipo "Historias de IG" (solo dentro de .ig-stories)
   ========================================================================== */
.ig-stories { position: relative; height: calc(100vh - 64px); height: calc(100dvh - 64px); overflow: hidden; background: radial-gradient(ellipse at top, #0c4a6e 0%, #020617 60%); }
.ig-stories .ig-track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; outline: none; }
.ig-stories .ig-track::-webkit-scrollbar { display: none; }
.ig-stories .ig-slide { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ig-stories .ig-inner { min-height: 100%; display: flex; align-items: center; padding: 2.75rem 1rem 3.25rem; box-sizing: border-box; }
@media (min-width: 768px) { .ig-stories .ig-inner { padding: 3rem 5rem 3.5rem; } }
.ig-stories .ig-img { max-height: 58vh; }
.ig-stories .ig-progress { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 20; display: flex; gap: 4px; }
.ig-stories .ig-bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); overflow: hidden; cursor: pointer; }
.ig-stories .ig-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg,#38bdf8,#f59e0b); transition: width .35s ease; }
.ig-stories .ig-bar.done i { width: 100%; }
.ig-stories .ig-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 20; width: 44px; height: 44px; border-radius: 9999px; background: rgba(15,23,42,.8); border: 1px solid #334155; color: #fff; display: none; align-items: center; justify-content: center; transition: opacity .2s, background .2s; }
.ig-stories .ig-arrow:hover { background: #0284c7; }
.ig-stories .ig-arrow:disabled { opacity: .25; cursor: default; }
.ig-stories .ig-prev { left: 14px; } .ig-stories .ig-next { right: 14px; }
@media (min-width: 768px) { .ig-stories .ig-arrow { display: flex; } }
.ig-stories .ig-counter { position: absolute; top: 22px; right: 14px; z-index: 20; font-size: 11px; font-weight: 700; color: #cbd5e1; background: rgba(2,6,23,.6); padding: 2px 8px; border-radius: 9999px; }
.ig-stories .ig-hint { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 20; font-size: 11px; font-weight: 700; color: #e2e8f0; background: rgba(2,6,23,.75); padding: 6px 12px; border-radius: 9999px; white-space: nowrap; pointer-events: none; transition: opacity .4s; animation: igHint 1.6s ease-in-out infinite; }
.ig-stories.ig-started .ig-hint { opacity: 0; }
@keyframes igHint { 0%,100% { transform: translateX(-50%); } 50% { transform: translateX(calc(-50% + 6px)); } }
.ig-stories .ig-hero-img { max-width: 13rem; }
@media (min-width: 640px) { .ig-stories .ig-hero-img { max-width: 18rem; } }
@media (min-width: 768px) { .ig-stories .ig-hero-img { max-width: none; } }
