/* ============================================================
   PROYECTOS ESCOLARES — style.css
   ============================================================ */

*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --accent:         #ffffff;
  --bg:             #0a0a0a;
  --ui-bg:          rgba(0,0,0,0.50);
  --ui-border:      rgba(255,255,255,0.12);
  --text:           rgba(255,255,255,0.92);
  --text-dim:       rgba(255,255,255,0.50);
  --safe-bottom:    env(safe-area-inset-bottom, 0px);
  --safe-top:       env(safe-area-inset-top, 0px);
  --school-primary: #1a1a2e;
  --school-accent:  #e8c547;
  --school-accent2: #4fc3f7;
  /* Altura de la barra de filtros — usada para compensar padding */
  --filter-h:       44px;
}

html, body {
  background: var(--bg);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  overscroll-behavior: none;
  height: 100%;
}


/* ============================================================
   SPLASH
   ============================================================ */

#splash {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--school-primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
#splash.splash-out { opacity: 0; transform: scale(1.04); pointer-events: none; }

.splash-inner {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 40px 32px;
  animation: splashFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes splashFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.splash-logo-mark svg, .splash-logo-img {
  width: 72px; height: 72px;
  animation: splashPop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.2s both;
}
.splash-logo-img { object-fit: contain; border-radius: 16px; }
@keyframes splashPop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
.splash-logo-text {
  font-size: clamp(22px, 6vw, 32px); font-weight: 800;
  color: #fff; letter-spacing: -0.02em; text-align: center; line-height: 1;
  animation: splashFadeUp 0.5s ease 0.3s both;
}
.splash-logo-text span { color: var(--school-accent); display: block; }
.splash-tagline {
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.45); text-align: center;
  animation: splashFadeUp 0.5s ease 0.45s both;
}
.splash-loader {
  width: 120px; height: 2px;
  background: rgba(255,255,255,0.12); border-radius: 999px; overflow: hidden;
  margin-top: 4px;
  animation: splashFadeUp 0.5s ease 0.55s both;
}
.splash-loader-fill {
  height: 100%; background: var(--school-accent);
  border-radius: 999px; width: 0%;
  animation: splashLoad 1.8s cubic-bezier(0.4,0,0.2,1) 0.6s forwards;
}
@keyframes splashLoad { 0%{width:0%} 60%{width:75%} 85%{width:92%} 100%{width:100%} }
.splash-skip {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.25); cursor: pointer;
  animation: splashFadeUp 0.5s ease 1.6s both;
}


/* ============================================================
   BARRA DE PROGRESO
   ============================================================ */

#progressBar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; background: rgba(255,255,255,0.08); z-index: 400;
}
#progressFill {
  height: 100%; background: var(--school-accent); width: 0%;
  transition: width 0.35s cubic-bezier(0.4,0,0.2,1);
}


/* ============================================================
   PROPUESTA 1 — BARRA DE FILTROS
   ============================================================ */

#filterBar {
  position: fixed;
  top: 2px; /* justo bajo la barra de progreso */
  left: 0; right: 0;
  z-index: 350;
  height: var(--filter-h);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Degradado lateral para indicar scroll horizontal */
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 16px, black calc(100% - 16px), transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0, black 16px, black calc(100% - 16px), transparent 100%);
  /* Fondo con blur para legibilidad sobre el video */
  background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 100%);
  backdrop-filter: blur(0px); /* sin blur propio, usa el degradado */
  pointer-events: all;
}

#filterBar::-webkit-scrollbar { display: none; }

.filter-chip {
  flex-shrink: 0;
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--ui-border);
  background: rgba(0,0,0,0.45);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  touch-action: manipulation;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.filter-chip:active { transform: scale(0.93); }

.filter-chip.active {
  background: var(--school-accent);
  border-color: var(--school-accent);
  color: #1a1a1a;
}

/* Sección atenuada cuando no coincide con el filtro */
.video-section.filtered-out {
  opacity: 0.25;
  pointer-events: none; /* no interactuable mientras está filtrado */
}
/* Transición suave al filtrar */
.video-section { transition: opacity 0.3s ease; }


/* ============================================================
   CONTADOR
   ============================================================ */

#counter {
  position: fixed;
  top: calc(var(--filter-h) + 8px + var(--safe-top));
  right: 16px;
  z-index: 300;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--text-dim);
  background: var(--ui-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--ui-border);
  padding: 6px 12px; border-radius: 999px;
  pointer-events: none;
}
#counter .sep { margin: 0 3px; opacity: 0.4; }
#current { color: var(--school-accent); }


/* ============================================================
   BADGE ORIENTACIÓN
   ============================================================ */

#orientationBadge {
  position: fixed;
  top: calc(var(--filter-h) + 8px + var(--safe-top));
  left: 16px;
  z-index: 300;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim);
  background: var(--ui-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--ui-border);
  padding: 6px 10px; border-radius: 999px;
  pointer-events: none; opacity: 0;
  transition: opacity 0.4s ease;
}
#orientationBadge.visible { opacity: 1; }


/* ============================================================
   FEED
   ============================================================ */

.feed {
  height: 100vh; height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
  scrollbar-width: none; -ms-overflow-style: none;
}
.feed::-webkit-scrollbar { display: none; }


/* ============================================================
   SECCIÓN DE VIDEO
   ============================================================ */

.video-section {
  position: relative;
  height: 100vh; height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}

/* ── Vertical ── */
.video-section.is-vertical video {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; max-height: 100%;
  object-fit: cover; z-index: 1;
}
.video-section.is-vertical .video-info {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 60px 20px calc(94px + var(--safe-bottom));
  background: linear-gradient(to top, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.25) 50%, transparent 100%);
  pointer-events: none;
}

/* ── Horizontal ── */
.video-section.is-horizontal .video-bg-blur {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(30px) brightness(0.30) saturate(1.6);
  transform: scale(1.1);
  pointer-events: none; z-index: 0;
}
.video-section.is-horizontal video {
  position: relative; width: 100%; height: auto;
  max-height: 56.25vw; object-fit: contain; z-index: 1;
}
.video-section.is-horizontal .video-info {
  position: relative; width: 100%;
  padding: 10px 20px calc(94px + var(--safe-bottom));
  background: none; z-index: 2; pointer-events: none;
}

/* ── Sin clase aún ── */
.video-section:not(.is-vertical):not(.is-horizontal) video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; z-index: 1;
}


/* ============================================================
   INFO DEL VIDEO
   ============================================================ */

.video-meta-top { display: flex; gap: 8px; margin-bottom: 6px; }

.video-materia, .video-grado {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}
.video-materia { background: var(--school-accent); color: #1a1a1a; }
.video-grado {
  background: rgba(255,255,255,0.15); color: var(--text);
  border: 1px solid rgba(255,255,255,0.2);
}
.video-title {
  font-size: 18px; font-weight: 800; color: var(--text);
  letter-spacing: -0.02em; text-shadow: 0 1px 8px rgba(0,0,0,0.8); line-height: 1.2;
}
.video-hint-peek {
  margin-top: 8px; font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 4px;
  cursor: pointer; pointer-events: all;
  animation: hintPulse 3s ease 4s infinite;
}
@keyframes hintPulse { 0%,80%,100%{opacity:0.5} 40%{opacity:1} }


/* ============================================================
   BADGE GANADOR 👑
   ============================================================ */

.winner-badge {
  position: absolute;
  top: calc(var(--filter-h) + 8px);
  left: 50%; transform: translateX(-50%);
  z-index: 30;
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #e8c547, #f5a623);
  color: #1a1a1a;
  padding: 6px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(232,197,71,0.5);
  animation: winnerPop 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
  pointer-events: none;
}
.winner-crown { font-size: 14px; }
@keyframes winnerPop {
  from { opacity: 0; transform: translateX(-50%) scale(0.7); }
  to   { opacity: 1; transform: translateX(-50%) scale(1); }
}


/* ============================================================
   PEEK CARD
   ============================================================ */

.peek-card {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 50;
  background: rgba(14,14,20,0.97);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px 24px 0 0;
  padding-bottom: calc(20px + var(--safe-bottom));
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.32,0.72,0,1);
  will-change: transform;
}
.peek-card.peek-open { transform: translateY(0); }
.peek-handle {
  width: 36px; height: 4px; background: rgba(255,255,255,0.25);
  border-radius: 999px; margin: 14px auto 18px;
}
.peek-content { padding: 0 24px 8px; }
.peek-header { display: flex; gap: 8px; margin-bottom: 12px; }
.peek-materia, .peek-grado {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}
.peek-materia { background: var(--school-accent); color: #1a1a1a; }
.peek-grado {
  background: rgba(255,255,255,0.10); color: var(--text-dim);
  border: 1px solid rgba(255,255,255,0.15);
}
.peek-title {
  font-size: 20px; font-weight: 800; color: var(--text);
  letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 10px;
}
.peek-desc { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.62); margin-bottom: 16px; }
.peek-alumno {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.40); margin-bottom: 16px;
}

/* Footer de la peek card: reacciones + botón votar en la misma fila */
.peek-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px; gap: 12px;
}
.peek-reaction-count {
  font-size: 13px; color: rgba(255,255,255,0.5);
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.peek-star { font-size: 16px; }
.reaction-num.pop {
  display: inline-block;
  animation: numPop 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes numPop {
  0%{transform:scale(1)} 50%{transform:scale(1.5);color:var(--school-accent)} 100%{transform:scale(1)}
}

/* Botón "Votar" dentro de la peek card */
.vote-btn {
  flex-shrink: 0;
  height: 34px; padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8c547, #f5a623);
  color: #1a1a1a;
  font-size: 12px; font-weight: 800; letter-spacing: 0.05em;
  border: none; cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
  touch-action: manipulation;
  white-space: nowrap;
}
.vote-btn:hover { transform: scale(1.05); }
.vote-btn:active { transform: scale(0.93); }
.vote-btn:disabled { opacity: 0.6; cursor: default; transform: none; }

@media (min-width: 768px) {
  .peek-card {
    left: 50%; right: auto;
    width: 480px; margin-left: -240px;
    border-radius: 24px 24px 0 0;
  }
}


/* ============================================================
   REACCIÓN FLOTANTE
   ============================================================ */

.reaction-badge {
  position: absolute;
  top: calc(var(--filter-h) + 48px);
  left: 50%;
  transform: translateX(-50%) translateY(-50px);
  z-index: 40;
  background: rgba(0,0,0,0.70);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px; padding: 7px 16px;
  font-size: 13px; font-weight: 700; color: var(--school-accent);
  pointer-events: none; opacity: 0;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  white-space: nowrap;
}
.reaction-badge.visible {
  opacity: 1; transform: translateX(-50%) translateY(0);
}


/* ============================================================
   CANVAS DE PARTÍCULAS
   ============================================================ */

#particleCanvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 200;
}


/* ============================================================
   PROPUESTA 4 — OVERLAY DE VOTACIÓN
   ============================================================ */

#voteOverlay {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(0,0,0,0.80);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
#voteOverlay.open { opacity: 1; pointer-events: all; }

#votePanel {
  width: 100%; max-width: 520px;
  background: #111118;
  border-top: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px 24px 0 0;
  padding: 0 0 calc(24px + var(--safe-bottom));
  max-height: 85vh;
  overflow-y: auto;
  scrollbar-width: none;
  transform: translateY(40px);
  transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
  position: relative;
}
#votePanel::-webkit-scrollbar { display: none; }
#voteOverlay.open #votePanel { transform: translateY(0); }

#voteClose {
  position: absolute; top: 16px; right: 20px;
  background: rgba(255,255,255,0.08); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  color: var(--text-dim); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
#voteClose:hover { background: rgba(255,255,255,0.15); }

#votePanelHeader {
  text-align: center;
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
#voteCrown { font-size: 32px; display: block; margin-bottom: 8px; }
#votePanelTitle {
  font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -0.02em;
}
#votePanelSubtitle {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--school-accent); margin-top: 4px;
}

#voteContent { padding: 20px 20px 0; }

.vote-instructions {
  font-size: 13px; color: var(--text-dim); line-height: 1.6;
  margin-bottom: 16px; text-align: center;
}

/* Lista de candidatos */
.vote-candidates { display: flex; flex-direction: column; gap: 8px; }

.candidate {
  display: flex; align-items: center;
  gap: 12px; padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  transition: border-color 0.2s, background 0.2s;
}
.candidate-highlight {
  border-color: rgba(232,197,71,0.4);
  background: rgba(232,197,71,0.06);
}
.candidate-info { flex: 1; min-width: 0; }
.candidate-materia {
  display: inline-block;
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--school-accent); margin-bottom: 2px;
}
.candidate-title {
  display: block;
  font-size: 13px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.candidate-alumno {
  display: block; font-size: 11px; color: var(--text-dim); margin-top: 1px;
}
.candidate-vote-btn {
  flex-shrink: 0; height: 32px; padding: 0 16px;
  border-radius: 999px;
  background: var(--school-accent); color: #1a1a1a;
  font-size: 12px; font-weight: 800; border: none; cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  touch-action: manipulation;
}
.candidate-vote-btn:hover { transform: scale(1.05); }
.candidate-vote-btn:active { transform: scale(0.93); }

/* Pantallas confirmación / ya votó */
.vote-confirmed, .vote-already {
  text-align: center; padding: 8px 0 16px;
}
.vote-confirmed-icon, .vote-already-icon {
  font-size: 48px; margin-bottom: 12px; display: block;
  animation: splashPop 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
.vote-confirmed-title, .vote-already-title {
  font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 6px;
}
.vote-confirmed-sub, .vote-already-sub {
  font-size: 13px; color: var(--text-dim); line-height: 1.5; margin-bottom: 20px;
}
.vote-confirmed-sub strong, .vote-already-sub strong { color: var(--school-accent); }

/* Barras de resultados */
.vote-results { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.result-row { display: flex; align-items: center; gap: 10px; }
.result-title {
  font-size: 12px; font-weight: 600; color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0; flex: 1;
}
.result-bar-wrap {
  width: 80px; height: 6px;
  background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden;
  flex-shrink: 0;
}
.result-bar {
  height: 100%; background: var(--school-accent); border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
  min-width: 4px;
}
.result-count {
  font-size: 12px; font-weight: 700; color: var(--school-accent);
  min-width: 20px; text-align: right; flex-shrink: 0;
}


/* ============================================================
   DESKTOP (≥ 768px)
   ============================================================ */

@media (min-width: 768px) {
  .video-section { background: #050505; }
  .video-section.is-vertical video {
    position: relative; inset: unset; width: auto;
    height: 90dvh; height: 90vh; max-width: 430px;
    object-fit: cover; border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.75);
  }
  .video-section.is-vertical .video-info {
    max-width: 430px; left: 50%; transform: translateX(-50%);
    border-radius: 0 0 20px 20px;
    padding-bottom: calc(56px + var(--safe-bottom));
  }
  .video-section.is-horizontal { gap: 16px; }
  .video-section.is-horizontal video {
    width: min(90vw, 960px); height: auto; max-height: 75vh;
    object-fit: contain; border-radius: 16px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.75);
  }
  .video-section.is-horizontal .video-info {
    width: min(90vw, 960px); padding: 8px 4px 0;
  }
  .video-section.is-horizontal .video-bg-blur {
    filter: blur(40px) brightness(0.22) saturate(1.4);
  }
  #voteOverlay { align-items: center; }
  #votePanel { border-radius: 24px; max-height: 80vh; }
}

@media (min-width: 1024px) {
  .video-section.is-horizontal video { max-height: 78vh; }
}


/* ============================================================
   BOTÓN SONIDO
   ============================================================ */

#soundToggle {
  position: fixed;
  bottom: calc(30px + var(--safe-bottom)); right: 20px;
  z-index: 300; border: 1px solid var(--ui-border);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ui-bg); color: white; font-size: 20px; cursor: pointer;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease, background 0.2s ease;
  touch-action: manipulation;
}
#soundToggle:active { transform: scale(0.88); }
#soundToggle.active { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.35); }


/* ============================================================
   BOTÓN WHATSAPP
   ============================================================ */

#whatsappBtn {
  position: fixed;
  bottom: calc(30px + var(--safe-bottom)); left: 20px;
  z-index: 300; display: flex; align-items: center; gap: 8px;
  background: #25D366; color: #fff; text-decoration: none;
  border-radius: 999px; padding: 0 18px 0 14px; height: 48px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap;
  box-shadow: 0 4px 20px rgba(37,211,102,0.40); touch-action: manipulation;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  animation: waBounceIn 0.5s cubic-bezier(0.34,1.56,0.64,1) 2.8s both;
}
#whatsappBtn svg { width: 22px; height: 22px; fill: #fff; flex-shrink: 0; }
#whatsappBtn:hover { background: #1ebe5d; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,0.50); }
#whatsappBtn:active { transform: scale(0.93); }
#whatsappBtn::after {
  content: ''; position: absolute; inset: 0; border-radius: 999px;
  border: 2px solid rgba(37,211,102,0.6);
  animation: waPulse 3s ease 5s infinite; pointer-events: none;
}
@keyframes waBounceIn {
  from { opacity: 0; transform: translateY(16px) scale(0.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.7; }
  60%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
@media (max-width: 767px) {
  .wa-label { display: none; }
  #whatsappBtn { padding: 0; width: 48px; justify-content: center; }
}
@media (max-width: 359px) {
  #whatsappBtn { width: 44px; height: 44px; }
  #soundToggle { width: 44px; height: 44px; }
}


/* ============================================================
   SCROLL HINT
   ============================================================ */

#scrollHint {
  position: fixed;
  bottom: calc(88px + var(--safe-bottom)); left: 50%; transform: translateX(-50%);
  z-index: 300;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-dim); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  pointer-events: none; opacity: 0;
  animation: fadeHint 0.5s ease 2.5s both, bounceHint 2s ease 2.5s infinite;
}
#scrollHint.hidden { display: none; }
.arrow {
  width: 1px; height: 28px;
  background: linear-gradient(to bottom, var(--text-dim), transparent); position: relative;
}
.arrow::after {
  content: ''; position: absolute; bottom: 0;
  left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 6px; height: 6px;
  border-right: 1px solid var(--text-dim); border-bottom: 1px solid var(--text-dim);
}
@keyframes fadeHint {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes bounceHint {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}


/* ============================================================
   SPINNER
   ============================================================ */

.video-section.loading::after {
  content: ''; position: absolute;
  width: 32px; height: 32px;
  border: 2px solid rgba(255,255,255,0.12);
  border-top-color: rgba(255,255,255,0.75);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  pointer-events: none; z-index: 10;
}
@keyframes spin { to { transform: rotate(360deg); } }


/* ============================================================
   REDUCCIÓN DE MOVIMIENTO
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  #splash, .splash-inner, .splash-logo-mark svg { animation: none; }
  .splash-loader-fill { width: 100%; }
  #scrollHint, .video-section.loading::after { animation: none; }
  .feed { scroll-behavior: auto; }
  .peek-card, #votePanel { transition: none; }
  .video-section { transition: none; }
}
