:root {
  --black: #090909;
  --ink: #171717;
  --muted: #66666a;
  --line: #d9d9dc;
  --paper: #f4f4f1;
  --panel: #fbfbfa;
  --charcoal: #111113;
  --white: #ffffff;
  --gold: #c8a24a;
  --gold-dark: #8c783f;
  --red: var(--gold);
  --red-dark: var(--gold-dark);
  --silver: #e8e8e6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 12px clamp(18px, 4vw, 52px);
  color: var(--white);
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand-logo-full {
  width: clamp(168px, 17vw, 230px);
  height: 88px;
  display: block;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
}

.brand-mark {
  width: 92px;
  height: 92px;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
}

.brand-text {
  display: grid;
  gap: 0;
  color: var(--white);
  line-height: 0.9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

.brand-text strong {
  display: block;
  font-size: clamp(26px, 3vw, 44px);
  letter-spacing: 0.02em;
}

.brand-text strong:last-child {
  border-bottom: 3px solid var(--red);
  padding-bottom: 4px;
}

.nav {
  gap: clamp(18px, 3vw, 42px);
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 700;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  padding: 8px 0;
}

.nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-slideshow,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slideshow {
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02) translate3d(0, 0, 0);
  animation: heroPan 22s ease-in-out infinite;
  will-change: transform, opacity;
}

.hero-image:first-child {
  opacity: 1;
}

.hero-image:nth-child(2) {
  animation-name: heroPanAlt;
  animation-delay: 11s;
  filter: contrast(1.08) brightness(1.04);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.74) 34%, rgba(0, 0, 0, 0.16) 72%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0) 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 76px);
  padding-top: 62px;
}

@keyframes heroPan {
  0% {
    opacity: 1;
    transform: scale(1.04) translate3d(-1.5%, -1%, 0);
  }

  45% {
    opacity: 1;
  }

  55% {
    opacity: 0.38;
  }

  100% {
    opacity: 1;
    transform: scale(1.12) translate3d(2%, 1%, 0);
  }
}

@keyframes heroPanAlt {
  0% {
    opacity: 0.24;
    transform: scale(1.12) translate3d(2%, 1%, 0);
  }

  45% {
    opacity: 0.54;
  }

  55% {
    opacity: 0.72;
  }

  100% {
    opacity: 0.24;
    transform: scale(1.04) translate3d(-2%, -1%, 0);
  }
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--red-dark);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 16px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 16px;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 570px;
  color: #eeeeee;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.5;
  margin-bottom: 22px;
}

.hero-actions,
.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions .button {
  min-width: min(420px, 100%);
  min-height: 58px;
  font-size: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
}

.primary {
  color: var(--white);
  background: var(--red);
}

.dark-button {
  color: var(--white);
  background: var(--ink);
}

.full {
  width: 100%;
}

.section {
  padding: clamp(38px, 5.5vw, 68px) clamp(18px, 6vw, 70px);
}

.split,
.results-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: start;
}

.split p,
.survey-copy p,
.results-section p {
  max-width: 580px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 17px;
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.priority-grid span {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  background: linear-gradient(180deg, var(--white), #f0f0ee);
  font-weight: 900;
}

.priority-grid strong {
  color: var(--red-dark);
  font-size: 12px;
}

.split {
  grid-template-columns: 1fr;
  background:
    linear-gradient(135deg, #111, #252525 58%, #181818);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
  padding-bottom: clamp(22px, 3vw, 36px);
}

.split > div {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.split .eyebrow.dark,
.split h2,
.split p {
  color: var(--white);
}

#prioridades {
  display: none;
}

.survey-section {
  display: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(200, 162, 74, 0.14), transparent 34%),
    linear-gradient(135deg, #111, #252525 58%, #181818);
  color: var(--white);
  padding-top: clamp(42px, 6vw, 82px);
  padding-bottom: clamp(42px, 6vw, 82px);
}

.survey-section .eyebrow.dark,
.survey-section h2,
.survey-section p {
  color: var(--white);
}

.survey-section .survey-copy p {
  color: var(--muted);
}

.survey-form,
.form-fields {
  display: grid;
  gap: 18px;
}

.survey-form {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

#submitButton,
.survey-form button[type="submit"] {
  display: none !important;
}

label,
fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  color: #262626;
  font-size: 14px;
  font-weight: 800;
}

.survey-form label,
.survey-form fieldset {
  color: var(--white);
}

fieldset {
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  font-weight: 900;
  color: var(--white);
  font-size: clamp(18px, 2vw, 28px);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfcfd3;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

input,
select {
  height: 42px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.checkbox-grid label {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font-weight: 700;
}

.checkbox-grid input {
  width: 18px;
  height: 18px;
}

.candidate-field {
  gap: 14px;
}

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(12px, 2vw, 18px);
}

.candidate-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  color: var(--white);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.candidate-card:hover {
  border-color: rgba(200, 162, 74, 0.75);
  transform: translateY(-2px);
}

.candidate-photo {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 5;
  background: #111;
}

.candidate-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.form-fields .candidate-grid .candidate-card {
  grid-column: auto;
}

.candidate-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.candidate-info {
  display: grid;
  gap: 4px;
  min-height: 52px;
}

.candidate-info strong {
  color: var(--white);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.1;
}

.candidate-info small {
  color: #d5d5d5;
  font-size: clamp(12px, 1.2vw, 14px);
}

.candidate-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.candidate-card:has(input:checked) {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 162, 74, 0.28), 0 18px 34px rgba(0, 0, 0, 0.22);
}

.candidate-card:has(input:checked) .candidate-check {
  background: var(--red);
}

.candidate-card:has(input:checked) .candidate-check::after {
  position: absolute;
  left: 8px;
  top: 4px;
  width: 8px;
  height: 14px;
  border: solid var(--white);
  border-width: 0 3px 3px 0;
  content: "";
  transform: rotate(45deg);
}

.range-label {
  grid-template-columns: 1fr auto;
}

.range-label input {
  grid-column: 1 / -1;
  accent-color: var(--red);
}

.form-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-fields label,
.form-fields fieldset,
.form-fields .range-label {
  grid-column: 1 / -1;
}

.form-fields .field-half {
  grid-column: span 1;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--gold);
  font-weight: 800;
}

.survey-form .form-message {
  color: var(--gold);
}

.closed-panel {
  display: grid;
  gap: 18px;
  min-height: clamp(260px, 34vw, 430px);
  align-content: center;
  padding: clamp(30px, 6vw, 76px);
  border: 1px solid rgba(200, 162, 74, 0.46);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.46)),
    radial-gradient(circle at 82% 22%, rgba(200, 162, 74, 0.3), transparent 34%),
    url("/assets/banner-torcida.jpg") center / cover;
  color: var(--white);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.36);
}

.closed-panel strong {
  max-width: 820px;
  font-size: clamp(44px, 7vw, 94px);
  line-height: 0.92;
  text-transform: uppercase;
}

.closed-panel span {
  max-width: 680px;
  color: #e6e0cf;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.results-section {
  background: var(--charcoal);
  color: var(--white);
}

.results-section .eyebrow.dark,
.results-section h2,
.results-section p {
  color: var(--white);
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-card,
.chart-block {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.stat-card {
  padding: 18px;
}

.stat-card span {
  display: block;
  color: #cacaca;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 42px;
  line-height: 1;
}

.chart-block {
  grid-column: span 3;
  padding: 18px;
}

.thanks-message {
  max-width: 720px;
  margin-bottom: 18px;
  color: #d7d7d7;
  font-size: 16px;
  line-height: 1.45;
}

.bars {
  display: grid;
  gap: 12px;
}

.ranking-card {
  position: relative;
  display: grid;
  grid-template-columns: 38px 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 98px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.ranking-card.is-leader {
  border-color: rgba(200, 162, 74, 0.72);
  background: linear-gradient(135deg, rgba(200, 162, 74, 0.22), rgba(255, 255, 255, 0.08));
}

.ranking-position {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--black);
  background: var(--gold);
  font-size: 15px;
  font-weight: 900;
}

.ranking-photo {
  width: 78px;
  height: 78px;
  border-radius: 6px;
  object-fit: cover;
  background: #111;
}

.ranking-content {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.ranking-topline,
.ranking-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.ranking-topline strong {
  color: var(--white);
  font-size: clamp(16px, 1.7vw, 22px);
  line-height: 1.05;
}

.ranking-topline span {
  color: var(--gold);
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 900;
}

.ranking-meta {
  color: #d8d8d8;
  font-size: 13px;
  font-weight: 800;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.bar-fill {
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: var(--gold);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 76px);
  color: #d8d8d8;
  background: var(--black);
  font-size: 14px;
}

.footer span:first-child {
  color: var(--white);
  font-weight: 900;
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav {
    width: 100%;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
  }

  .brand-mark {
    width: 76px;
    height: 76px;
  }

  .brand-logo-full {
    width: min(150px, 42vw);
    height: 72px;
  }

  .brand-text strong {
    font-size: 25px;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-content {
    margin-right: 18px;
  }

  .split,
  .survey-section,
  .results-section {
    grid-template-columns: 1fr;
  }

  .stats-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-block {
    grid-column: 1 / -1;
  }

  .form-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-fields .field-half {
    grid-column: span 1;
  }

  .checkbox-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .candidate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo-full {
    width: 116px;
    height: 56px;
  }

  .brand-text strong {
    font-size: 20px;
  }

  h1 {
    font-size: 40px;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .priority-grid,
  .checkbox-grid,
  .candidate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .candidate-info strong {
    font-size: 13px;
  }

  .candidate-info small {
    font-size: 11px;
  }

  .priority-grid span,
  .checkbox-grid label {
    min-height: 46px;
    padding: 8px;
    font-size: 12px;
  }

  .ranking-card {
    grid-template-columns: 30px 58px minmax(0, 1fr);
    gap: 10px;
    min-height: 78px;
    padding: 10px;
  }

  .ranking-position {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .ranking-photo {
    width: 58px;
    height: 58px;
  }

  .ranking-topline,
  .ranking-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .ranking-meta {
    font-size: 12px;
  }

  .footer {
    flex-direction: column;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-image {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-image:nth-child(2) {
    display: none;
  }
}
