@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Momo+Trust+Display&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&family=Momo+Trust+Display&display=swap');


::-webkit-scrollbar {
  width: 7px;
  height: 7px;
  transition: 0.3s;
}

::-webkit-scrollbar-track {
  background: #171717;
}

::-webkit-scrollbar-thumb {
  background: #2b2b33;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6f6f6f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --accent: #f59e0b;
  --bg-dark: #060609;
  --bg-card: #1a1a24;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.momo {
  font-family: "Momo Trust Display", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.cinzel {
  font-family: "Cinzel", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* INTRO HERO */
.hero-intro {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
  will-change: opacity;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-intro.scrolled {
  opacity: 0;
  pointer-events: none;
}

/* .logo {
  font-size: 8rem;
  background: linear-gradient(135deg, #ffd888 0%, #ff9a56 50%, #ff6b3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 60px rgba(255, 158, 70, 0.5));
  margin-bottom: 1rem;
}

.logo.fade-in {
  animation: fadeInUp 1s forwards 0.2s, logoFloat 6s ease-in-out infinite 1.2s, logoGlow 3s ease-in-out infinite 1.2s;
} */

.logo {
  width: 20rem;
  height: auto;
  filter: drop-shadow(0 0 60px rgba(255, 158, 70, 0.5));
  /* margin-bottom: 1rem; */
  display: block;
}

/* Animaciones generales del logo */
.logo.fade-in {
  animation: fadeInUp 1s forwards 0.2s, logoFloat 6s ease-in-out infinite 1.2s, logoGlow 3s ease-in-out infinite 1.2s;
}

/* === Tus keyframes originales === */
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-19px); }
  75% { transform: translateY(-8px); }
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 40px rgba(255, 209, 141, 0.6)); }
  50% { filter: drop-shadow(0 0 80px rgba(245, 158, 11, 0.8)); }
}

/* === Animaciones específicas para los panes === */
/* Asegura que el origen y el box se basen en cada path */
.pan-left,
.pan-right,
.pan-center {
  transform-box: fill-box;
}

/* Ala izquierda */
.pan-left {
  transform-origin: 100% 50%; /* ancla en el borde derecho (junto al centro) */
  animation: wingLeft 4s ease-in-out infinite, panFire 4s ease-in-out infinite;
}

/* Ala derecha */
.pan-right {
  transform-origin: 0% 50%; /* ancla en el borde izquierdo (junto al centro) */
  animation: wingRight 4s ease-in-out infinite, panFire 4s ease-in-out infinite;
  animation-delay: 0.2s; /* leve desfasado, opcional */
}

/* El centro del pan queda quieto */
.pan-center {
  transform-origin: center center;
  animation: panFire 4s ease-in-out infinite;
}

/* La izquierda se estira desde el borde derecho (hacia afuera) */
@keyframes wingLeft {
  0%, 100% { transform: scaleX(0.9); }
  50% { transform: scaleX(1.1); } /* se estira sin despegar */
}

/* La derecha se estira desde el borde izquierdo (hacia afuera) */
@keyframes wingRight {
  0%, 100% { transform: scaleX(0.9); }
  50% { transform: scaleX(1.1); } /* igual, solo que hacia la derecha */
}

/* Brillo/fuego (sin tocar el transform) */
@keyframes panFire {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  50%  { filter: hue-rotate(15deg) brightness(1.1); }
  100% { filter: hue-rotate(0deg) brightness(1); }
}


/* Títulos y textos */
/* .hero-title {
  position: relative;
  font-size: 6rem;
  font-weight: 400;
  background: linear-gradient(135deg, #ffffff 0%, #a8b3cf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  --text-fill-color: transparent;
  margin: 1rem 0;
  letter-spacing: -0.03em;
} */

.hero-title {
  position: relative;
  /* margin: 1rem 0; */
  width: 30rem;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 3rem auto;
  font-weight: 400;
}

.scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--primary);
  animation: bounce 2s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-12px); }
}

/* MAIN CONTENT */
.main-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding-top: 100vh;
  margin-top: -100vh;
}

.content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* CATEGORY CARD */
.category-card {
  background: rgba(26, 26, 36, 0.3);
  /* backdrop-filter: blur(10px); */
  border-radius: 24px;
  padding: 3rem;
  margin-bottom: 3rem;
  /* border: 1px solid rgba(148, 163, 184, 0.1); */
  transition: all 0.4s ease;
}

.category-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  /* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); */
}

.category-card.voted {
  opacity: 0.5;
  pointer-events: none;
}

.category-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.category-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffd888 0%, #ff9a56 50%, #ff6b3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  text-shadow: -1px 0px 50px #ffd88859;
}

.category-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.voted-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 1rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* OPTIONS GRID */
/* .options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  justify-content: center;
  max-width: 1200px;
  margin-inline: auto;
} */
/* Se cambió a flexbox porque necesitaba el justify-conternt: center */
.options-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.option-item {
  background: rgba(24, 24, 31, 0.8);
  /* border-radius: 16px; */
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;

  flex: 1 1 290px; /* Permite crecer y encoger, con un tamaño base de 390px */
  max-width: 290px; /* Asegura que no crezca más allá de 390px */
}

.option-item:hover {
  transform: translateY(-8px);
  /* border-color: rgba(99, 102, 241, 0.5); */
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
}

.option-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    0deg, 
    transparent, 
    transparent 30%, 
    #818df88e
  );
  transform: rotate(-45deg);
  transition: all 0.5s ease;
  opacity: 0;
}

.option-item:hover::before {
  opacity: 1;
  transform: rotate(-45deg) translateY(100%);
}

.option-item.selected {
  /* border-color: var(--primary); */
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.1);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1.05); }
  50% { transform: scale(1); }
  100% { transform: scale(1.05); }
}
.media-wrapper {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: #111;
}

.option-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.option-item:hover .option-media {
  transform: scale(1.05);
}

.expand-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  /* backdrop-filter: blur(5px); */
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 30px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.1;
}

.option-item:hover .expand-btn {
  opacity: 1;
}

.expand-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.option-label {
  padding: 0.5rem;
  text-align: center;
  /* font-weight: 600; */
  font-size: 1.05rem;
  color: var(--text-primary);
}

/* VOTE BUTTON */
.vote-btn {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 1rem;
  font-size: 1.1rem;
  /* font-weight: 700; */
  color: white;
  background: linear-gradient(135deg, #6366f117 0%, #4f46e500 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  /* text-transform: uppercase; */
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Capa de expansión de color */
.vote-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #ff9a56;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 1s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

/* Al pasar el mouse: expande el color */
.vote-btn:hover::after {
  clip-path: circle(150% at 50% 50%);
}

/* Estado deshabilitado (sin animación) */
.vote-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* PROGRESS BAR */
.progress-container {
  position: sticky;
  bottom: 0;
  background: rgba(10, 10, 15, 0.95);
  /* backdrop-filter: blur(10px); */
  padding: 1rem 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  z-index: 100;
}

.progress-bar {
  max-width: 1400px;
  margin: 0 auto;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #ffd88880 0%, #ff9a5687 50%, #ff6b3d 100%);
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 10px;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.modal-video {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
}

.modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: white;
  color: black;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.modal-close:hover {
  transform: scale(1.1);
}

/* LOGIN PAGE STYLES */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 96vh;
  padding: 20px;
}

.info {
  max-width: 600px;
  margin: 20px 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  padding: 30px 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.why-title {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 15px 0 10px 0;
}

.reason-intro {
  margin-bottom: 15px;
}

.reasons-list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin: 15px auto 20px auto;
  max-width: 450px;
}

.reasons-list li {
  margin-bottom: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.reasons-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
  flex-shrink: 0;
}

.privacy-note {
  margin-top: 20px;
  font-style: italic;
  color: #999;
  font-size: 0.9rem;
}

.login-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.login-btn {
  padding: 15px 30px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #9147ff;
  box-shadow: 0 2px 12px rgba(145, 71, 255, 0.4);
}

.login-btn i {
  margin-right: 10px;
  font-size: 1.3rem;
}

.login-btn:hover {
  background: #772ce8;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(145, 71, 255, 0.6);
}

.login-btn.kick {
  background: #00ff6a;
  color: #121212;
  box-shadow: 0 2px 12px rgba(0, 255, 106, 0.4);
}

.login-btn.kick:hover {
  background: #00d959;
  box-shadow: 0 0 15px rgba(0, 255, 106, 0.6);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

.fade-in.logo {
  animation-delay: 0.2s;
}

.fade-in.description-box {
  animation-delay: 0.7s;
}

.login-buttons .fade-in {
  animation-delay: 1s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Login Area */
#login-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  font-family: sans-serif;
  opacity: 0;
  backdrop-filter: blur(10px);
  transition: opacity 0.3s ease;
}

#btn-login-yes {
  background: #ff8b4e;
  border: none;
  color: white;
  padding: 1em 2.5em;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s ease;
}
#btn-login-yes:hover {
  background: #ff6b3d;
}

#btn-login-cancel {
  background: #333;
  border: none;
  color: white;
  padding: 0.8em 1.5em;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

/* RESULTS PAGE */
.results-main {
  max-width: 1200px;
  margin: 0 auto;
}

.results-main header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 28px 12px;
  margin-bottom: 18px;
}

.results-main header h1 {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(90deg,#fff,#cfcfcf);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.results-main header .subtitle {
  color: #9aa6b2;
  font-size: 0.95rem;
  margin-top: 6px;
  text-align: center;
}

/* grid of categories */
#results-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  align-items: start;
  margin-bottom: 5rem;
}

.category-results {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
  /* transition: transform 160ms ease, box-shadow 160ms ease; */
}

/* .category-results:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.7); } */

.category-results-title {
  font-size: 1.08rem;
  font-weight: 500;
  color: #f2b44c;
  margin-bottom: 14px;
  display: block;
}

.winner-showcase {
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.03);
}

.winner-showcase-title { font-weight: 700; color: #ffd85a; margin-bottom: 8px; }

.winner-media { max-width: 100%; max-height: 260px; min-height: 216px; border-radius: 8px; display: block; margin: 8px auto; }
.winner-name { margin-top: 8px; font-weight: 600; color: #e6eef8; }

.results-list { margin-top: 6px; }

.result-item { margin-bottom: 12px; }

.result-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.result-name { font-weight:600; font-size:0.98rem; color:#eaf2ff; }
.result-votes { font-weight:600; color:#9fb0c3; font-size:0.9rem; }

.result-bar-container { background: rgba(255,255,255,0.02); height: 35px; border-radius: 10px; overflow:hidden; }
.result-bar {
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 10px;
  gap:8px;
  transition: width 600ms cubic-bezier(.2,.9,.2,1);
  background: linear-gradient(90deg, rgba(130,130,160,0.18), rgba(80,80,140,0.32));
  color: #fff;
  font-weight:700;
}
.result-bar.winner { background: linear-gradient(90deg, #ff9a56c2 20%, #ff6b3da8 100%)}

.result-percentage { font-size:0.9rem; color: var(--text-secondary); }

.winner-badge {
  background: rgba(255,214,89,0.08);
  color: #ffd85a;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight:700;
  font-size:0.8rem;
  margin-left:6px;
}

.total-votes { text-align:center; color:#9fb0c3; font-weight:600; padding-top:10px; border-top:1px solid rgba(255,255,255,0.02); margin-top:10px; font-size:0.95rem; }

/* FOOTER */
.site-footer {
  width: 100%;
  /* background: linear-gradient(90deg, rgba(26,26,36,0.7) 0%, rgba(10,10,15,0.95) 100%); */
  /* border-top: 1px solid rgba(148, 163, 184, 0.08); */
  padding: 0.5rem;
  position: relative;
  z-index: 10;
  /* box-shadow: 0 -4px 24px rgba(0,0,0,0.3); */
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.footer-content a {
  color: #6e70c0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-content a:hover {
  color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  /* .hero-title {font-size: 3rem;} */
  .hero-title {width: 20rem;}
  .hero-subtitle {font-size: 1.1rem;}
  .category-title {font-size: 2rem;}
  .options-grid {grid-template-columns: 1fr;}
  .category-card {padding: 2rem 1.5rem;}
  /* .logo {font-size: 6rem;} */
  .logo {width: 15rem;}
  .info {padding: 20px;}
  .login-buttons {flex-direction: column;width: 100%;}
  .login-btn {width: 100%;max-width: 300px;}
  .results-main header h1 {font-size: 1.5rem;}
  .results-title {font-size: 2rem;}
  .result-winner {flex-direction: column; text-align: center;}
  .footer-content {
    /* flex-direction: column; */
    text-align: center;
    gap: 0.5rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 520px) {
  h1 { font-size:20px; }
  .winner-media { max-height:180px; }
  .result-bar-container { height: 34px; }
}