/* =========================
   BASE
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    "Montserrat",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: url("img/Fondo.jpeg") no-repeat center center fixed;
  background-size: cover;
  color: #2d1f2f;
  min-height: 100vh;
}
/* =========== PALETA NATURA =========== */
:root {
  /* Legado hero/modales */
  --coral: #e8695c;
  --coral-dark: #c9483b;
  --rose: #9b2d5e;
  --rose-light: #c44e7e;
  --text-main: #fff;
  --text-soft: #fce4ec;
  --text-dark: #2d1f2f;
  --shadow-strong: 0 12px 50px rgba(45, 31, 47, 0.35);
  --shadow-soft: 0 6px 22px rgba(45, 31, 47, 0.2);
  --max-w: 1400px;

  /* Tokens Natura brand — usados en chat y secciones post-stream */
  --n-cafe:     #6B3810;
  --n-acento:   #A6531F;
  --n-verde:    #A7BF30;
  --n-dorado:   #CE9F05;
  --n-paper:    #F5F1EA;
  --n-ink:      #2A1B0E;
  --n-ink-soft: #5C463A;
  --n-line:     #E2D9CE;
}

/* =========================
   HERO
========================= */
.hero-section {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  animation: bgFadeIn 1.8s ease-in-out;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 70% 45%, rgba(155, 45, 94, 0.12), transparent 60%),
    linear-gradient(to bottom right, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.02));
  z-index: 0;
}

@keyframes bgFadeIn {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  font-family: "Montserrat", sans-serif;
}

.hero-content--centered .text-content {
  flex: none;
  width: 100%;
  max-width: 700px;
}

@keyframes floatLogo {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@media (max-width: 1024px) {
  .hero-content {
    gap: 2.2rem;
  }
  .countdown-box {
    margin-bottom: 0.9rem;
  }
}
@media (max-width: 600px) {
  .countdown-timer {
    padding: 0.5rem 0.9rem;
  }
  .cta-button {
    padding: 0.85rem 1.6rem;
    font-size: 0.95rem;
  }
}

/* --- TEXTO --- */
.text-content {
  flex: 1;
  text-align: center;
  color: var(--text-main);
  text-shadow: 0 3px 14px rgba(45, 31, 47, 0.3);
}

.main-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
  font-size: clamp(2.8rem, 5vw + 0.5rem, 4.8rem);
  margin: 0.25rem 0 1.5rem;
  background: linear-gradient(180deg, #ffffff, #fce4ec 60%, #f8bbd0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.subtitle {
  color: var(--text-soft);
  font-size: clamp(1rem, 1.1vw + 0.6rem, 1.2rem);
  opacity: 0.95;
  margin-bottom: 2rem;
  line-height: 1.5;
  font-weight: 400;
}

/* --- CONTADOR --- */
.countdown-box {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.countdown-label {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-soft);
  opacity: 0.9;
}

.countdown-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow-soft);
  color: #fff;
  font-weight: 800;
  font-size: clamp(1rem, 1.2vw + 0.7rem, 1.6rem);
  letter-spacing: 0.03em;
  transform: translateZ(0);
  transition: transform 0.25s ease;
}
.countdown-timer:hover {
  transform: translateY(-2px);
}

/* --- BOTON CTA --- */
.cta-button {
  display: inline-block;
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--rose));
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(155, 45, 94, 0.35);
  transition: all 0.25s ease;
}

.cta-button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--coral-dark), var(--rose));
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 30px rgba(155, 45, 94, 0.5);
  transform: translateY(-3px);
}

.cta-button:active {
  transform: translateY(-1px) scale(0.98);
}
.cta-button::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  translate: -50% 0;
  width: 70%;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.3), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}
/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero-logo {
    max-width: 300px;
    margin-bottom: 1rem;
  }

  .main-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 600px) {
  .main-title {
    font-size: 1.8rem;
  }

  .hero-logo {
    max-width: 220px;
  }

  .countdown-timer {
    font-size: 1.6rem;
  }
}

/* =========================
   MODALES (acceso + bienvenida)
========================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 31, 47, 0.4);
  backdrop-filter: blur(10px);
}
.modal.hidden {
  display: none;
}

.modal-dialog {
  position: relative;
  width: min(440px, 92vw);
  border-radius: 20px;
  padding: 20px 20px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.9));
  box-shadow: 0 24px 60px rgba(155, 45, 94, 0.15);
  overflow: hidden;
}
.modal-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(232, 105, 92, 0.4), rgba(155, 45, 94, 0.3));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}
.modal-close:hover {
  transform: scale(1.03);
  background: rgba(0, 0, 0, 0.06);
}

.modal-header {
  text-align: center;
  margin-top: 8px;
}
.modal-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--rose));
  box-shadow: 0 10px 25px rgba(155, 45, 94, 0.3);
}
.modal-header h2 {
  font:
    700 1.4rem/1.1 "Montserrat",
    system-ui;
  color: var(--text-dark);
}
.modal-sub {
  color: #6b5060;
  font-size: 0.92rem;
  margin-top: 4px;
}

.modal-body {
  margin: 16px 2px 4px;
}
.form-field label {
  font-weight: 600;
  color: var(--text-dark);
  display: block;
  margin-bottom: 6px;
}
.input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fff;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.input-wrap:focus-within {
  border-color: rgba(232, 105, 92, 0.5);
  box-shadow: 0 0 0 4px rgba(232, 105, 92, 0.1);
}
.input-wrap i {
  color: var(--coral);
  opacity: 0.9;
}
.input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--text-dark);
  background: transparent;
}
.hint {
  display: block;
  margin-top: 6px;
  color: #8a6575;
  font-size: 0.82rem;
}
.msg {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #5b3a4a;
}
.msg.error {
  color: #c62828;
}
.msg.success {
  color: #1b8c45;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}
.btn-primary,
.btn-secondary {
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  border: 0;
  font-weight: 700;
}
.btn-primary {
  position: relative;
  color: #fff;
  letter-spacing: 0.3px;
  background: linear-gradient(90deg, var(--coral), var(--rose));
  box-shadow: 0 10px 25px rgba(155, 45, 94, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(155, 45, 94, 0.35);
}
.btn-secondary {
  color: var(--coral);
  background: #fff;
  border: 1px solid var(--coral);
}

/* spinner */
.btn-spinner {
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  display: none;
  animation: spin 800ms linear infinite;
}
.btn-primary.is-loading .btn-spinner {
  display: inline-block;
}
.btn-primary.is-loading .btn-label {
  opacity: 0.8;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 420px) {
  .modal-dialog {
    width: 92vw;
    padding: 16px 16px 14px;
  }
  .modal-header h2 {
    font-size: 1.2rem;
  }
}

/* ====== Exito: animacion del check ====== */
.success-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #2bb673, #4cd795);
  box-shadow: 0 10px 25px rgba(43, 182, 115, 0.35);
}
.success-icon svg {
  display: block;
}
.success-ring {
  stroke: rgba(255, 255, 255, 0.65);
  stroke-linecap: round;
  stroke-dasharray: 145;
  stroke-dashoffset: 145;
  animation: ringDraw 0.8s ease-out forwards 0.05s;
}
.success-check {
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: checkDraw 0.6s ease-out forwards 0.35s;
}
@keyframes ringDraw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes checkDraw {
  to {
    stroke-dashoffset: 0;
  }
}

#welcome-modal .modal-dialog {
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  animation: welcomePop 0.28s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes welcomePop {
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1199px) {
  .hero-content {
    gap: 1rem;
  }
  .text-content {
    text-align: center;
  }
}

@media (max-width: 900px) {
  .hero-section {
    padding: 30px 20px 70px;
  }
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero-section {
    padding: 20px 16px 60px;
  }
  .main-title {
    font-size: 2.2rem;
  }
  .cta-button {
    width: 100%;
    max-width: 280px;
  }
}

.countdown-box {
  display: inline-flex;
  width: auto;
}

@media (max-width: 900px) {
  .countdown-box {
    position: static;
    margin: 1rem auto 0 auto;
    display: inline-flex;
    width: auto;
    max-width: 320px;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .countdown-box {
    max-width: 280px;
    padding: 6px 16px;
  }
  .countdown-timer {
    font-size: 1.4rem;
  }
}

.fade-out {
  opacity: 0 !important;
  transform: translateY(-10px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* =========================================================
   SECCION DEL VIDEO (LIVESTREAM)
========================================================= */

#livestream-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);

  background: transparent;

  isolation: isolate;
  color: #fff;

  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}
#livestream-section.show {
  display: grid;
}
#livestream-section.appear {
  opacity: 1;
  transform: translateY(0);
}

#livestream-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 50% 35%, rgba(155, 45, 94, 0.1), transparent 60%),
    linear-gradient(to bottom right, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.02));
  z-index: 0;
}

.stream-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.stream-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  text-shadow: 0 3px 14px rgba(45, 31, 47, 0.3);
}
.stream-title h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  letter-spacing: 0.5px;
}
.stream-meta {
  margin-top: 4px;
  color: var(--text-soft);
  opacity: 0.9;
}

.stream-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#btn-exit,
.livestream-section .ui-btn:not(.ghost) {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

#btn-exit:hover,
.livestream-section .ui-btn:not(.ghost):hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(45, 31, 47, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
}

#btn-cinema,
#btn-audio,
.livestream-section .ui-btn.ghost {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
#btn-cinema:hover,
#btn-audio:hover,
.livestream-section .ui-btn.ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(45, 31, 47, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
}

/* Player */
.player-frame {
  position: relative;
}

.player-frame.vimeo-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
}
.player-frame.vimeo-slot iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 1024px) {
  .player-frame.vimeo-slot {
    max-height: 70vh;
  }
}

.vimeo-slot-wrapper {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* =========================================================
   MODO CINE
========================================================= */

body.cinema-active::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999;
}

body.cinema-active #livestream-section {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

body.cinema-active #livestream-section::before {
  display: none;
}

body.cinema-active .chat-bar,
body.cinema-active #poll-card,
body.cinema-active #vimeo-help {
  display: none !important;
}

.stream-shell.cinema-mode {
  max-width: none;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.stream-shell.cinema-mode .stream-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 16px 24px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stream-shell.cinema-mode:hover .stream-header {
  opacity: 1;
}

.stream-shell.cinema-mode .vimeo-slot-wrapper {
  max-width: none;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.stream-shell.cinema-mode .player-frame.vimeo-slot {
  max-height: none;
  border-radius: 0;
  width: 100%;
  height: 100%;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
  .stream-actions {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .stream-actions .ui-btn span {
    display: none;
  }
  .stream-actions .ui-btn {
    padding: 10px 12px;
  }
}

/* =========================================================
   CHAT BAR
========================================================= */
.chat-bar {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 16px auto 0;
  background: rgba(245, 241, 234, 0.10);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 217, 206, 0.25);
  border-radius: 14px;
  padding: 14px 16px 12px;
}

.chat-label {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

#chat-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

#chat-input {
  flex: 1;
  padding: 11px 15px;
  border: 1px solid rgba(226, 217, 206, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.92rem;
  font-family: "Inter Tight", system-ui, sans-serif;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

#chat-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

#chat-input:focus {
  border-color: rgba(166, 83, 31, 0.7);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(166, 83, 31, 0.18);
}

.chat-send-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: var(--n-acento);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  transform: translateY(-2px);
  background: var(--n-cafe);
  box-shadow: 0 6px 18px rgba(107, 56, 16, 0.45);
}

.chat-send-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.chat-status {
  margin-top: 6px;
  font-size: 0.78rem;
  font-family: "Inter Tight", system-ui, sans-serif;
  min-height: 1.2em;
  color: rgba(255, 255, 255, 0.55);
}

.chat-status.error   { color: #ffb3a7; }
.chat-status.success { color: #d4e87a; }

/* Vimeo help */
.vimeo-help {
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.3;
  backdrop-filter: blur(3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.vimeo-help strong {
  color: #ffd166;
}
#vimeo-help {
  display: block !important;
}

.orientation-tip {
  margin-top: 12px;
  padding: 10px 14px;
  text-align: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 8px;
  font-size: 0.93rem;
  backdrop-filter: blur(3px);
  display: none;
}

@media (min-width: 768px) {
  .orientation-tip {
    display: none !important;
  }
}

/* =====================================================================
   POLL CARD — viewer
   ===================================================================== */

:root {
  --poll-verde:   #4C9C40;
  --poll-naranja: #A6531F;
  --poll-dorado:  #CE9F05;
  --poll-lima:    #A7BF30;
  --poll-cafe:    #6B3810;
}

@keyframes poll-slide-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes poll-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes poll-spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* ── Container: siempre visible, mismo estilo que .chat-bar ─────────── */
.poll-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 16px auto 0;
  background: rgba(245, 241, 234, 0.10);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 217, 206, 0.25);
  border-radius: 14px;
  padding: 14px 16px 12px;
  font-family: "Inter Tight", system-ui, sans-serif;
}

/* ── Título siempre visible (top-left) ──────────────────────────────── */
.poll-card__label {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

/* ── Estado vacío ───────────────────────────────────────────────────── */
.poll-card__empty {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
}
.poll-card--open  .poll-card__empty,
.poll-card--closed .poll-card__empty { display: none; }

/* ── Contenido: oculto hasta que hay encuesta activa/cerrada ────────── */
.poll-card__question,
.poll-card__countdown { display: none; }

.poll-card__options {
  display: none;
  flex-direction: column;
  gap: 6px;
}

.poll-card--open .poll-card__question,
.poll-card--open .poll-card__countdown,
.poll-card--closed .poll-card__question,
.poll-card--closed .poll-card__countdown { display: block; }

.poll-card--open .poll-card__options,
.poll-card--closed .poll-card__options { display: flex; }

/* ── Animaciones ────────────────────────────────────────────────────── */
.poll-card--open .poll-card__body    { animation: poll-slide-up 250ms ease both; }
.poll-card--fading .poll-card__body  { animation: poll-fade-out 300ms ease forwards; }

/* ── Pregunta ───────────────────────────────────────────────────────── */
.poll-card__question {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.95);
}

/* ── Countdown / Msg ────────────────────────────────────────────────── */
.poll-card__countdown {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}
.poll-card__msg {
  font-size: 11.5px;
  color: rgba(255, 165, 80, 0.9);
  min-height: 1em;
  margin-top: 4px;
}

/* ── Botones de opción ──────────────────────────────────────────────── */
.poll-option-btn {
  position: relative;
  padding: 9px 12px;
  border: 1px solid rgba(226, 217, 206, 0.28);
  background: rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
}
.poll-option-btn:hover:not(:disabled) {
  border-color: rgba(166, 83, 31, 0.7);
  background: rgba(255, 255, 255, 0.15);
}
.poll-option-btn:disabled { cursor: default; }
.poll-option-btn--selected {
  border-color: rgba(76, 156, 64, 0.7);
  background: rgba(76, 156, 64, 0.15);
  font-weight: 600;
}
.poll-option-btn--spinning::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(166, 83, 31, 0.9);
  border-radius: 50%;
  animation: poll-spin 0.6s linear infinite;
}

/* ── Barras de resultado ────────────────────────────────────────────── */
.poll-result-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}
.poll-result-label {
  flex: 1;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.poll-result-bar-wrap {
  flex: 2;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
}
.poll-result-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}
.poll-result-pct {
  width: 36px;
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.75);
}

/* ── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .poll-card__question { font-size: 14px; }
  .poll-option-btn { font-size: 13px; min-height: 44px; }
}

/* ── Tablet ─────────────────────────────────────────────────────────── */
@media (min-width: 601px) and (max-width: 1023px) {
  .poll-card__question { font-size: 15px; }
  .poll-option-btn { font-size: 14px; }
}
