:root {
  --blue: #0082ff;
  --blue-light: #4dadff;
  --blue-dark: #232858;
  --blue-darker: #12173f;
  --coral: #ff463c;
  --bg: #dddddd;
  --ink: #1c275b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Rubik", sans-serif;
  background: #ffffff;
  color: var(--ink);
}

.landing {
  width: min(100%, 980px);
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 8px 40px rgba(17, 29, 70, 0.16);
}

@media (min-width: 768px) {
  .landing {
    width: min(calc(100% / 1.102), 980px);
    zoom: 1.102;
  }
}

.fondo-wrapper {
  margin: 0;
  background-image: url("Img/fondo.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
}

.how-it-works {
  position: relative;
  padding: 0 30px 22px;
  overflow: hidden;
  margin-top:-75px;
}
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 5px;
  background: var(--blue);
  z-index: 9999;
  transition: width 0.05s linear;
  pointer-events: none;
}
.curve-top {
  position: absolute;
  left: -16%;
  top: -118px;
  width: 132%;
  height: 186px;
  background: transparent;
  border-radius: 0 0 50% 50%;
}

.how-it-works > * {
  position: relative;
  z-index: 1;
}

.how-it-works h1 {
  margin: -70px 0 0;
  text-align: center;
  font-size: clamp(25px, 6vw, 47px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--coral);
  text-transform: uppercase;
}

.how-it-works h2 {
  margin: 35px 0 26px;
  text-align: center;
  font-size: clamp(16px, 3.7vw, 34px);
  line-height: 1.1;
  font-weight: 800;
  color: var(--blue-dark);
  text-transform: uppercase;
}

.steps {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  margin-bottom: 40px;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.step-item {
  margin-left: 230px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(100%, 760px);
}

.step-icon {
  width: clamp(24px, 4.4vw, 34px);
  height: auto;
  flex: 0 0 auto;
  margin-top: 2px;
}

.step-copy h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(21px, 4.5vw, 34px);
  line-height: 1;
  font-weight: 500;
  color: var(--blue-dark);
}

.trophy-inline {
  width: clamp(15px, 2.8vw, 20px);
  height: auto;
}

.step-copy p {
  margin: 4px 0 0;
  font-size: clamp(13px, 2.8vw, 18px);
  line-height: 1.25;
  color: #101a45;
}

.votes {
  padding: 10px 20px 34px;
}

.votes-title-wrap {
  position: relative;
  width: 64%;
  min-height: 80px;
  border-radius: 0 0 50px 0;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background-image: url("Img/Franja_fina_azul.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.votes-title-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.09) 0 6%, transparent 7%),
    radial-gradient(circle at 60% 58%, rgba(255, 255, 255, 0.07) 0 7%, transparent 8%),
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.08) 0 5%, transparent 6%);
}

.votes-title-wrap h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 65px;
  margin-left: 50px;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}
#votesTitle{
    font-size: 30px;
    margin-top: 10px;
}
.vote-help {
  margin: 12px 0 0;
  color: #17245a;
  font-size: clamp(12px, 2.7vw, 16px);
  line-height: 1.3;
}

.vote-status {
  min-height: 20px;
  margin: 8px 0 0;
  padding: 0;
  font-size: clamp(12px, 2.7vw, 15px);
  line-height: 1.3;
  font-weight: 500;
  color: #1d2a62;
}

.vote-status.is-visible {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(35, 40, 88, 0.08);
}

.vote-status--success {
  color: var(--blue-dark);
  background: rgba(0, 130, 255, 0.1);
}

.vote-status--error {
  color: var(--coral);
  background: rgba(255, 70, 60, 0.1);
}

.match-list {
  margin-top: 8px;
}

.match-card {
  position: relative;
  margin: 24px 0 28px;
  padding-left: 18px;
}

.match-countdown {
  position: absolute;
  left: -40px;
  top: -50px;
  z-index: 3;
  display: inline-block;
}

.countdown-frame {
  display: block;
  width: clamp(160px, 30vw, 240px);
  height: auto;
}

.countdown-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding-top: 6%;
  padding-left: 24%;
}

.countdown-row {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 12px);
}

.countdown-cell {
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.countdown-value {
  color: #12173f;
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1;
  font-weight: 800;
  min-width: 2ch;
  text-align: center;
}

.countdown-unit {
  color: #12173f;
  font-size: clamp(10px, 1.4vw, 12px);
  font-weight: 700;
  line-height: 1;
}

.match-countdown.is-match-phase .countdown-value,
.match-countdown.is-match-phase .countdown-unit {
  color: #e03030;
}

.match-countdown.is-finished .countdown-row {
  display: none;
}

.match-countdown.is-finished .countdown-body::after {
  content:"TERMINADA";
  display: block;
  color: var(--coral);
  font-size: clamp(10px, 2vw, 14px);
  font-weight: 800;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

@keyframes badge-pop {
  0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
  65%  { transform: scale(1.2) rotate(6deg);  opacity: 1; }
  100% { transform: scale(1)   rotate(0deg);  opacity: 1; }
}

.vote-check-badge {
  position: absolute;
  top: -90px;
  right: 24px;
  width: clamp(74px, 18vw, 170px);
  height: auto;
  z-index: 4;
  pointer-events: none;
  animation: badge-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#battleBLOQUEADA,
.arena-bloqueada {
  display: none;
}

.blocked-arena-wrapper {
  position: relative;
}

.battle-blocked-overlay {
  display: block;
  width: calc(100% + 60px);
  margin-left: -22px;
  aspect-ratio: 1075 / 607;
  background-image: url("Img/BattleBloqueada.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 4px 8px rgba(35, 40, 88, 0.3));
  pointer-events: none;
}

.battle-blocked-overlay--b2 { background-image: url("Img/BattleBloqueada21.svg"); }
.battle-blocked-overlay--b3 { background-image: url("Img/BattleBloqueada26.svg"); }

.match-arena {
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: 1075 / 607;
  filter: drop-shadow(0 4px 8px rgba(35, 40, 88, 0.3));
}

.arena-bg {
  display: block;
  width: 100%;
  height: 100%;
}

.arena-overlay {
  position: absolute;
  inset: 0;
}

.match-emoji-vs {
  position: absolute;
  left: 48.85%;
  top: 40%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #12173f;
  font-size: clamp(10px, 1.6vw, 18px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2px;
  pointer-events: none;
  z-index: 2;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Symbol", sans-serif;
  font-size:18px;
}
.match-emoji-bloqueada{
  left: 49.5% !important;
  top: 42% !important;
}

.match-emoji {
  width: clamp(14px, 2.2vw, 27px);
  height: clamp(14px, 2.2vw, 27px);
  display: block;
  flex-shrink: 0;
}

.brand-label {
  position: absolute;
  top: 18.5%;
  width: 25.5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: clamp(12px, 2.5vw, 24px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #1f2a62;
  text-align: center;
  margin-top: 10px;
}

.product-name {
  font-size: clamp(7px, 1.1vw, 17px);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
  color: #1f2a62;
}

.label-left {
  left: 11.35%;
}

.label-right {
  left: 61.25%;
}

.vote-logo {
  position: absolute;
  top: 40.5%;
  width: 25.5%;
  height: 37%;
  border: 0;
  padding: 7px;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
}

.logo-left {
  left: 11.35%;
  margin-top: -5px;
}

.logo-right {
  left: 61.25%;
  margin-top: -5px;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 7px;
  display: block;
}

.discount-badge {
  position: absolute;
  bottom: -25px;
  left: -27px;
  width: clamp(28px, 5vw, 80px);
  height: auto;
  pointer-events: none;
  z-index: 2;
}

.logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 9px;
  border: 2px solid transparent;
  background: #ffffff;
  color: #2f3d7b;
  font-size: clamp(10px, 2.1vw, 16px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.vote-logo:hover .logo-placeholder,
.vote-logo:focus-visible .logo-placeholder {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}

.vote-logo:disabled {
  cursor: not-allowed;
}

.vote-logo:disabled .logo-placeholder {
  border-color: transparent;
  color: rgba(47, 61, 123, 0.25);
  background: rgba(247, 249, 255, 0.6);
}

.vote-logo.is-selected .logo-placeholder {
  border: 5px solid var(--blue);
  background: transparent;
  color: var(--blue-dark);
}

.match-date {
  position: absolute;
  left: 49%;
  top: 57%;
  transform: translate(-50%, -50%);
  width: 15%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: clamp(11px, 2.6vw, 20px);
  line-height: 1.05;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}


.winner-banner {
  position: relative;
  margin-top: 6px;
  padding: 30px 0 24px;
  text-align: center;
  color: #fff;
  background-color: #232858;
  background-image: url("Img/Franja_gruesa_azul.svg");
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  border-radius: 0 0 100px 100px;
  overflow: hidden;
}

.winner-banner::before {
  content: "";
  position: absolute;
  inset: 0;
}

.winner-banner h2,
.winner-banner p {
  position: relative;
  z-index: 1;
}

.winner-banner h2 {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(27px, 6.2vw, 45px);
  line-height: 0.98;
  font-weight: 800;
}

.winner-banner p {
  margin: 12px 0 0;
  font-size: clamp(14px, 2.8vw, 19px);
  line-height: 1.28;
  font-weight: 600;
}

.faq-section {
  padding: 34px 20px 40px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 14px;
  align-items: start;
  margin-top:50px;
}

.faq-side img {
  display: block;
  width: min(100%, 130px);
  height: auto;
  margin-left: 40px;
  margin-top: 20px;
}

.faq-title {
  margin: 20px 0 0;
  padding: 0 0 0 40px;
  color: var(--blue);
  font-size: clamp(20px, 4.2vw, 32px);
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.faq-list {
  margin-top: 0;
  margin-right: 0;
  margin-left: -50px;
  max-width: 100%;
}

.faq-item {
  border-bottom: 1px solid rgba(35, 40, 88, 0.34);
  padding-bottom: 5px;
  padding-top: 5px;
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 10px 2px;
  font-family: inherit;
  color: var(--blue-darker);
  font-size: clamp(17px, 3.2vw, 22px);
  line-height: 1.2;
  font-weight: 400;
  cursor: pointer;
}

.faq-question:hover,
.faq-question:focus-visible {
  color: var(--blue);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--coral);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(90deg);
}

.faq-item.is-closing .faq-chevron {
  transition-duration: 0.16s;
}

.faq-answer {
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  color: #26326f;
  font-size: 17px;
  line-height: 1.35;
  transition:
    max-height 0.5s ease,
    padding 0.5s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
}

.faq-item.is-closing .faq-answer {
  transition:
    max-height 0.22s ease,
    padding 0.22s ease,
    opacity 0.16s ease,
    transform 0.16s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 600px;
  padding: 12px 2px 11px;
  opacity: 1;
  transform: translateY(0);
}

.page-footer {
  background: #0082ff;
  color: #fff;
  text-align: center;
  padding: 12px 16px 14px;
}

.terms-button {
  border: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.terms-button::after {
  content: "⌄";
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.25s ease;
}

.terms-button[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.terms-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.terms-content.is-open {
  max-height: 600px;
}

.terms-content p {
  margin: 10px auto 4px;
  max-width: 760px;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
}

.footer-copy {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.35;
  opacity: 0.88;
}

@media (max-width: 460px) {
  #worksTitle{
    margin-top: -90px !important;
  }
  .logo-left {
    margin-top: -5px;
    margin-left: -3px;
  }
  .vote-logo {
    position: absolute;
    top: 40.5%;
    width: 27.5%;
    height: 40%;
    border: 0;
    padding: 7px;
    border-radius: 11px;
    background: transparent;
    cursor: pointer;
  }
  .discount-badge {
    position: absolute;
    bottom: -6px;
    left: -5px;
    width: clamp(28px, 5vw, 100px);
    height: auto;
    pointer-events: none;
    z-index: 2;
  }
  .logo-right {
    margin-top:-5px;
    margin-left: -3px;
  }
  .vote-logo.is-selected .logo-placeholder {
  border: 3px solid var(--blue) !important;
  }
  .vote-check-badge {
    position: absolute;
    top: -47px;
    right: 10px;
    width: clamp(74px, 18vw, 170px);
    height: auto;
    z-index: 4;
    pointer-events: none;
    animation: badge-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }
  #winnertext{
    font-size: 12px;
  }
  #accion{
    margin-top:30px !important;
  }
  .label-left, .label-right{
    margin-top:6px;
  }
  .product-name{
    font-size: 8px;
  }
  .countdown-frame {
    width: clamp(90px, 26vw, 130px);
  }

  .countdown-value {
    font-size: clamp(10px, 3vw, 8px);
  }

  .countdown-unit {
    font-size: clamp(6px, 1.8vw, 8px);
  }

  .countdown-row {
    gap: clamp(4px, 1.2vw, 8px);
  }

  .match-countdown.is-finished .countdown-body::after {
    font-size: 7px;
    letter-spacing: 0.5px;
  }
  .match-countdown {
  position: absolute;
  left: -20px;
  top: -20px;
  z-index: 3;
  display: inline-block;
}
.winner-banner h2 {
  font-size: clamp(20px, 6.2vw, 22px);
}
  .battle-blocked-overlay {
    display: block;
    width: calc(100% + 25px);
    margin-left: -12px;
    aspect-ratio: 1075 / 607;
    background-image: url("Img/BattleBloqueada.svg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    filter: drop-shadow(0 4px 8px rgba(35, 40, 88, 0.3));
    pointer-events: none;
  }
  #votesTitle{
    font-size:20px !important;
    margin-bottom: 50px;
  }
  .votes-title-wrap{
    margin-bottom: 30px;
  }
  .how-it-works {
    padding: 20px 24px 18px;
  }

  .votes {
    padding: 24px 24px 46px;
  }

  .match-card {
    padding-left: 14px;
    margin: 0px 0 22px;
  }

  .winner-banner {
    padding: 24px 16px 20px;
    border-radius: 0 0 40px 40px;
  }

  .faq-section {
    padding: 28px 14px 30px;
    margin-top: -50px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .faq-side {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .faq-side img {
    margin-left: 50px;
    width: 92px;
    margin-bottom: 20px;
  }

  .faq-title {
    padding-left: 0;
    margin-top: 20px;
  }

  .step-item {
    margin-left: 0;
  }

  .faq-list {
    margin-left: 0;
  }
  
  #accion{
    margin-bottom: -30px;
    margin-top: 60px;
  }

  .votes-title-wrap {
    background-position: right center;
  }

  .votes-title-wrap h2 {
    margin-left: 16px;
  }
  .votes{
    margin-top: -60px;
    margin-bottom: -20px !important;
  }
}

@media (max-width: 390px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .faq-side {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .faq-side img {
    width: 60px;
  }
}

/* ── Modal estado voto ── */
.status-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(18, 23, 63, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.status-modal-backdrop[hidden] {
  display: none;
}

.status-modal {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 44px 28px 32px;
  width: min(100%, 380px);
  box-shadow: 0 16px 48px rgba(18, 23, 63, 0.3);
  text-align: center;
}

.status-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  padding: 4px 6px;
  color: rgba(35, 40, 88, 0.4);
  cursor: pointer;
  transition: color 0.2s;
}

.status-modal-close:hover {
  color: var(--blue-dark);
}

.status-modal-message {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--blue-dark);
}

.status-modal-message--error {
  color: var(--coral);
}

/* ── Modal email ── */
.email-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(18, 23, 63, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.email-modal-backdrop[hidden] {
  display: none;
}

.email-modal {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 24px;
  width: min(100%, 420px);
  box-shadow: 0 16px 48px rgba(18, 23, 63, 0.3);
}

.email-modal-text {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--blue-dark);
  text-align: center;
}

.email-modal-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(35, 40, 88, 0.2);
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.email-modal-input:focus {
  border-color: var(--blue);
}

.email-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.email-modal-cancel {
  flex: 1;
  padding: 11px;
  border: 2px solid rgba(35, 40, 88, 0.2);
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-dark);
  cursor: pointer;
  transition: border-color 0.2s;
}

.email-modal-cancel:hover {
  border-color: var(--blue-dark);
}

.email-modal-submit {
  flex: 2;
  padding: 11px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.email-modal-submit:hover {
  background: #006fd6;
}
