:root {
  --red: #d42426;
  --gold: #f2a900;
  --white: #ffffff;
  --green: #0e2a1a;
  --ink: #0f172a;
  --muted: #64748b;
  --card: rgba(255, 255, 255, 0.92);
  --ring: rgba(242, 169, 0, 0.35);
  --shadow: 0 16px 40px rgba(2, 6, 23, 0.12);
  --shadow2: 0 10px 28px rgba(2, 6, 23, 0.1);
  --radius: 18px;
  --radius2: 24px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: var(--ink);
  background: radial-gradient(
      900px 300px at 10% 10%,
      rgba(242, 169, 0, 0.18),
      transparent 60%
    ),
    radial-gradient(
      600px 300px at 90% 20%,
      rgba(212, 36, 38, 0.14),
      transparent 60%
    ),
    linear-gradient(180deg, #fff, #f6f7fb);
  position: relative;
}
/* Fondo interactivo de logos tipo lluvia */
.rain-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
.rain-logo {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.18;
  filter: blur(0.5px);
  user-select: none;
  pointer-events: none;
  animation: rain-fall linear infinite;
}
@keyframes rain-fall {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  100% {
    transform: translateY(110vh) scale(1.05) rotate(12deg);
  }
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.hidden {
  display: none !important;
}

.container {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding: 0 16px;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}
.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}
.brand__text span {
  font-size: 12px;
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
  user-select: none;
}
.btn--block {
  width: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, var(--red), #ff3b3e);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(212, 36, 38, 0.24);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(212, 36, 38, 0.28);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--ink);
}
.btn--ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.1);
  border-color: rgba(242, 169, 0, 0.45);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 50px;
  text-align: center;
}

.hero__content {
  max-width: 680px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 8vw, 52px);
  line-height: 1.1;
  color: var(--ink);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.18), 0 1px 0 #fff;
}
.hero__titleAccent {
  color: var(--red);
  text-shadow: 0 10px 26px rgba(212, 36, 38, 0.28), 0 2px 0 #fff;
}
.hero__subtitle {
  margin: 0 0 40px;
  color: rgba(15, 23, 42, 0.92);
  font-size: 18px;
  line-height: 1.6;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.7), 0 1px 0 #fff;
}

.btn--large {
  font-size: 18px;
  padding: 16px 32px;
  margin-top: 30px;
}

/* Countdown */
.countdownCard {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius2);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.countdownCard__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.86);
  margin-bottom: 16px;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.countdown__item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 14px 8px;
  text-align: center;
}
.countdown__num {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 6px;
}
.countdown__lbl {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Empresas Participantes */
.empresas {
  padding: 50px 0;
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.empresas__title {
  text-align: center;
  font-size: 24px;
  margin: 0 0 32px;
  color: var(--ink);
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.7), 0 1px 0 #fff;
}
.empresas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.empresa__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.empresa__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.1);
}
.empresa__item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  opacity: 0.7;
}
.empresa__item span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}
.empresa__bono {
  width: 100%;
  padding: 8px 12px;
  background: linear-gradient(135deg, var(--gold), #ffc107);
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(242, 169, 0, 0.25);
  border: 2px solid rgba(14, 42, 26, 0.1);
  margin-top: 4px;
}

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.65);
}
.footer__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
.footer__main {
  text-align: center;
}
.footer__main p {
  margin: 8px 0;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.82);
}
.hashtags {
  color: var(--muted);
  font-weight: 600;
}
.footer__credits {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.footer__credits span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: all 0.2s ease;
}
.footer__brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.08);
  border-color: rgba(15, 23, 42, 0.15);
}
.footer__brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.footer__brand strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* Section */
.section {
  padding: 40px 0 50px;
}
.section__head {
  margin-bottom: 24px;
  text-align: center;
}
.section__head h2 {
  margin: 0 0 8px;
  font-size: 28px;
  color: var(--ink);
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.7), 0 1px 0 #fff;
}
.section__head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.7);
}

/* Participar Card */
.participarCard {
  max-width: 680px;
  margin: 0 auto;
}

.paso {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 2px solid rgba(15, 23, 42, 0.06);
}
.paso:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.pasoNum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #ff3b3e);
  color: white;
  font-weight: 900;
  font-size: 22px;
  margin-bottom: 12px;
  box-shadow: 0 12px 24px rgba(212, 36, 38, 0.24);
}

.paso h3 {
  margin: 0 0 16px;
  font-size: 20px;
}

/* Cards & Steps */
.card {
  background: var(--card);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius2);
  padding: 32px 24px;
  box-shadow: var(--shadow);
}

.stepsGrid {
  display: grid;
  gap: 20px;
}

.stepCard__top {
  margin-bottom: 16px;
}

.stepCard__top h3 {
  margin: 8px 0 6px;
  font-size: 20px;
}

.stepCard__top p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.stepNum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(242, 169, 0, 0.16);
  border: 1px solid rgba(242, 169, 0, 0.35);
  font-weight: 800;
  font-size: 13px;
  color: rgba(14, 42, 26, 0.95);
}

.hint {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(242, 169, 0, 0.1);
  border: 1px solid rgba(242, 169, 0, 0.25);
  color: rgba(15, 23, 42, 0.82);
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.section__head--tight {
  margin-bottom: 16px;
}

/* Social buttons */
.socialRow {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.socialBtn {
  text-align: left;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 2px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
  cursor: pointer;
  transition: all 0.2s ease;
}
.socialBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.1);
  border-color: var(--red);
}
.socialBtn i {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(212, 36, 38, 0.12);
  color: var(--red);
  font-size: 20px;
}
.socialBtn span {
  font-weight: 700;
  font-size: 15px;
}
.socialBtn small {
  font-weight: 700;
  color: var(--muted);
  font-size: 13px;
}
.socialBtn__state {
  margin-left: auto;
}
.socialBtn.is-done {
  border-color: var(--green);
  background: rgba(14, 42, 26, 0.04);
}
.socialBtn.is-done i {
  background: rgba(14, 42, 26, 0.12);
  color: var(--green);
}
.socialBtn.is-done .socialBtn__state {
  color: var(--green);
}

/* Form */
.form {
  position: relative;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
label {
  font-size: 14px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.86);
}
input,
select {
  width: 100%;
  padding: 16px 16px;
  border-radius: 14px;
  border: 2px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.98);
  outline: none;
  font-size: 15px;
  transition: all 0.2s ease;
}
input:focus,
select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(212, 36, 38, 0.12);
}
.form__actions {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.form__note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.form__note.is-ok {
  color: var(--green);
  font-weight: 700;
}

/* Spinner overlay */
.spinnerWrap {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.86);
  border-radius: var(--radius2);
  border: 1px dashed rgba(15, 23, 42, 0.18);
  padding: 18px;
}
.spinnerWrap.show {
  display: flex;
}
.spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 4px solid rgba(15, 23, 42, 0.1);
  border-top-color: var(--red);
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Ticket */
.ticketWrap {
  margin-top: 32px;
}
.ticket {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius2);
  background: linear-gradient(
      135deg,
      rgba(242, 169, 0, 0.08),
      rgba(212, 36, 38, 0.08)
    ),
    rgba(255, 255, 255, 0.98);
  border: 2px solid rgba(15, 23, 42, 0.12);
  box-shadow: var(--shadow);
  padding: 40px 32px;
  text-align: center;
}

.ticket__success {
  margin-bottom: 24px;
}
.ticket__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #0f4d2a);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 32px rgba(14, 42, 26, 0.24);
}
.ticket__icon i {
  font-size: 40px;
  color: white;
}
.ticket__success h3 {
  margin: 0;
  font-size: 24px;
  color: var(--green);
}

.ticket__code {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--red);
  text-shadow: 0 12px 28px rgba(212, 36, 38, 0.28), 0 2px 0 #fff;
  padding: 20px;
  margin: 24px 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(212, 36, 38, 0.2);
}

.ticket__info {
  margin: 24px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
}
.ticket__info p {
  margin: 8px 0;
  font-size: 16px;
  color: rgba(15, 23, 42, 0.96);
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.7);
}
.ticket__sent {
  font-size: 14px !important;
  color: var(--muted) !important;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.7);
}

/* Confetti */
.confettiZone {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.confetti {
  position: absolute;
  width: 10px;
  height: 14px;
  border-radius: 3px;
  opacity: 0.95;
  transform: translateY(-20px) rotate(0deg);
  animation: fall var(--dur) linear forwards;
}
@keyframes fall {
  to {
    transform: translateY(520px) rotate(360deg);
    opacity: 0.95;
  }
}

/* Responsive */
@media (min-width: 480px) {
  .countdownCard {
    padding: 20px;
  }
  .countdownCard__title {
    font-size: 15px;
    margin-bottom: 18px;
  }
  .countdown {
    gap: 12px;
  }
  .countdown__item {
    padding: 16px 10px;
  }
  .countdown__num {
    font-size: 42px;
  }
  .countdown__lbl {
    font-size: 11px;
  }
}

@media (min-width: 640px) {
  .countdownCard {
    padding: 24px;
  }
  .countdownCard__title {
    font-size: 16px;
    gap: 12px;
    margin-bottom: 20px;
  }
  .countdown {
    gap: 16px;
  }
  .countdown__item {
    padding: 20px 12px;
    border-radius: 20px;
  }
  .countdown__num {
    font-size: 56px;
    margin-bottom: 8px;
  }
  .countdown__lbl {
    font-size: 12px;
    letter-spacing: 0.5px;
  }
  .socialRow {
    grid-template-columns: repeat(3, 1fr);
  }
  .empresas__grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (min-width: 840px) {
  .countdown {
    gap: 20px;
  }
  .countdown__num {
    font-size: 68px;
  }
  .countdown__lbl {
    font-size: 13px;
  }
  .stepsGrid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .footer__content {
    flex-direction: row;
    justify-content: space-between;
  }
  .footer__main {
    text-align: left;
  }
  .footer__credits {
    border-top: none;
    border-left: 1px solid rgba(15, 23, 42, 0.06);
    padding-top: 0;
    padding-left: 20px;
  }
}
