:root {
  /* Colores oficiales de los partidos */
  --psoe: #E4003A; --sumar: #E05A00; --pp: #0056A2; --vox: #63BE21;
  
  /* Paleta Moderna: Tierra / Beige / Marrón */
  --bg: #F5F2EB;       
  --card: #FFFFFF;     
  --border: #E6DFD3;   
  --text: #2D241E;     
  --muted: #85786E;    
  --accent: #8A5A44;   
  --accent-hover: #734A36; 
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── FONDO ── */
.bg-orbs { display: none; } /* Ocultamos los orbes de fondo */

/* ── HERO ── */
.hero { position: relative; z-index: 1; text-align: center; padding: 64px 20px 40px; }
.hero-badge {
  display: inline-block;
  background: #EBE5D9;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.05em; color: var(--muted);
  text-transform: uppercase; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}
.hero p { font-size: 1.05rem; color: var(--muted); max-width: 480px; margin: 0 auto 36px; line-height: 1.6; }

.how-it-works { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.how-step {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 20px;
  font-size: 0.85rem; color: var(--text);
  max-width: 180px; text-align: center; line-height: 1.5;
  box-shadow: 0 2px 8px rgba(45, 36, 30, 0.04);
}

/* Iconos del Hero (SVGs) */
.step-icon { 
  display: block; 
  margin: 0 auto 8px; 
  color: var(--accent); 
}
.step-icon svg { width: 26px; height: 26px; }

.btn-start {
  display: block; width: 100%; max-width: 340px; margin: 0 auto;
  background: var(--accent);
  border: none; border-radius: 12px; padding: 17px;
  font-family: inherit; font-size: 1.05rem; font-weight: 600; color: white;
  cursor: pointer; box-shadow: 0 4px 14px rgba(138, 90, 68, 0.25); 
  transition: all 0.2s;
}
.btn-start:hover { background: var(--accent-hover); transform: translateY(-1px); }
.start-sub { text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 12px; }

/* ── WRAP ── */
.wrap { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 0 20px 80px; }

/* ── CARD ── */
.card {
  background: var(--card); 
  border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
  box-shadow: 0 12px 30px -5px rgba(45, 36, 30, 0.06), 0 8px 10px -6px rgba(45, 36, 30, 0.02);
}

/* ── PROGRESS ── */
.progress-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.progress-track { flex: 1; height: 6px; background: #EBE5D9; border-radius: 10px; overflow: hidden; }
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 10px;
  transition: width 0.5s ease;
}
.progress-label { font-size: 0.85rem; color: var(--muted); font-weight: 600; white-space: nowrap; min-width: 60px; text-align: right; }

/* ── PROPUESTA ── */
.topic-chip {
  display: inline-block; background: #EBE5D9; border: 1px solid var(--border);
  color: var(--muted); border-radius: 6px; padding: 4px 12px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 14px;
}
.proposal-label { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.proposal-box { background: #FAF8F4; border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; margin-bottom: 26px; }
.proposal-text { font-size: 1.15rem; font-weight: 600; line-height: 1.5; color: var(--text); }

/* ── BOTONES DE VOTO ── */
.vote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vote-btn {
  background: #FAF8F4; border: 2px solid var(--border); border-radius: 12px;
  padding: 20px 10px; text-align: center; font-family: inherit;
  cursor: pointer; transition: all 0.2s ease;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text);
}
.vote-btn:hover { border-color: #D4C9B8; background: #F5F2EB; }
.vote-btn:active { transform: scale(0.98); }

/* Animación de iconos de voto */
.v-icon { 
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px; color: var(--muted); transition: all 0.2s ease;
}
.v-icon svg {
  width: 28px; height: 28px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vote-btn:hover .v-icon svg { transform: scale(1.15); }

.v-label { font-size: 0.9rem; font-weight: 600; }
.v-sub   { font-size: 0.75rem; color: var(--muted); }

/* Estados de selección (Colores cálidos) */
.vote-btn.agree.selected { border-color: #4CAF50; background: #F2FBF3; }
.vote-btn.agree.selected .v-icon, .vote-btn.agree.selected .v-label { color: #2E7D32; }

.vote-btn.against.selected { border-color: #E53935; background: #FEF4F4; }
.vote-btn.against.selected .v-icon, .vote-btn.against.selected .v-label { color: #C62828; }

.vote-btn.abstain.selected { border-color: #FB8C00; background: #FFF8F0; }
.vote-btn.abstain.selected .v-icon, .vote-btn.abstain.selected .v-label { color: #E65100; }

/* ── NAVEGACIÓN ── */
.nav { display: flex; gap: 12px; margin-top: 24px; }
.btn-prev {
  background: #FAF8F4; border: 1px solid var(--border); border-radius: 10px;
  padding: 13px 20px; font-family: inherit; font-size: 0.9rem;
  font-weight: 600; color: var(--muted); cursor: pointer; transition: all 0.2s;
}
.btn-prev:hover { background: #EBE5D9; color: var(--text); }
.btn-next {
  flex: 1; background: var(--accent);
  border: none; border-radius: 10px; padding: 14px; font-family: inherit;
  font-size: 0.97rem; font-weight: 600; color: white; cursor: pointer;
  transition: all 0.2s; box-shadow: 0 4px 12px rgba(138, 90, 68, 0.2);
}
.btn-next:hover:not(:disabled) { transform: translateY(-1px); background: var(--accent-hover); }
.btn-next:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; background: var(--muted); }

/* ── RESULTADOS ── */
.results-header { text-align: center; margin-bottom: 32px; }
.results-header .badge {
  display: inline-block; background: #EBE5D9;
  border: 1px solid var(--border); border-radius: 100px; padding: 5px 16px;
  font-size: 0.75rem; font-weight: 600; color: var(--muted);
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 12px;
}
.results-header h2 {
  font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text);
}
.results-list { display: grid; gap: 12px; }

.result-row {
  display: flex; align-items: center; gap: 16px;
  background: #FAF8F4; border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px;
  transition: border-color 0.3s; position: relative; overflow: hidden;
}
.result-row.top { border-width: 2px; background: #FFFFFF; box-shadow: 0 4px 14px rgba(45, 36, 30, 0.05); }

/* Contenedor adaptado para tus imágenes locales */
.result-logo-big {
  min-width: 44px; width: 44px; height: 44px;
  background: #FFFFFF; border: 1px solid var(--border); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 6px; overflow: hidden;
}
.result-logo-big img {
  width: 100%; height: 100%; object-fit: contain;
}

.result-info { flex: 1; min-width: 0; }
.result-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.r-name { font-weight: 700; font-size: 1rem; color: var(--text); }
.top-badge {
  background: #F4E8D6; color: #8A5A44; border: 1px solid #E6D2B5;
  border-radius: 6px; padding: 3px 8px; font-size: 0.65rem;
  font-weight: 700; text-transform: uppercase;
}

.result-bar-bg { height: 8px; background: #EBE5D9; border-radius: 10px; overflow: hidden; }
.result-bar-fill { height: 100%; border-radius: 10px; transition: width 1.2s ease-out; }
.result-pct { font-size: 1.15rem; font-weight: 800; min-width: 52px; text-align: right; letter-spacing: -0.02em; color: var(--text); }

.disclaimer { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 22px; line-height: 1.6; }
.btn-restart {
  width: 100%; background: #FAF8F4; border: 1px solid var(--border);
  border-radius: 12px; padding: 14px; font-family: inherit;
  font-size: 0.95rem; font-weight: 600; color: var(--text);
  cursor: pointer; margin-top: 18px; transition: all 0.2s;
}
.btn-restart:hover { background: #EBE5D9; }
.section-divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── UTILS ── */
.hidden { display: none !important; }
.fade-in { animation: fadeUp 0.4s ease-out both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .vote-grid { grid-template-columns: 1fr; }
  .how-it-works { flex-direction: column; align-items: center; }
}