:root {
  --blue: #243f96;
  --blue-deep: #14245f;
  --red: #e91d46;
  --red-soft: #fff0f3;
  --green: #268b42;
  --green-deep: #15652c;
  --green-soft: #eefaf1;
  --gold: #f3bc16;
  --gold-deep: #7a5600;
  --gold-soft: #fff9e7;
  --surface: #fffdfa;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #566176;
  --line: #d9dfed;
  --radius-card: 16px;
  --radius-control: 999px;
  --shadow: 0 22px 55px rgba(20, 36, 95, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

::selection {
  background: var(--green);
  color: #ffffff;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.page {
  width: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
}

.topbar {
  width: min(1120px, calc(100% - 24px));
  min-height: 68px;
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(20, 36, 95, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: var(--blue-deep);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-text span {
  display: inline;
}

.acta-link,
.rut-form button,
.phone-choice,
.phone-submit,
.comprobante-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--green);
  color: #ffffff;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms ease, background-color 160ms ease;
}

.acta-link:hover,
.rut-form button:hover,
.phone-choice:hover,
.phone-submit:hover,
.comprobante-button:hover {
  background: var(--green-deep);
}

.acta-link:active,
.rut-form button:active,
.phone-choice:active,
.phone-submit:active,
.comprobante-button:active {
  transform: translateY(1px);
}

.comprobante-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.comprobante-block {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 20px;
}

.comprobante-message {
  margin: 0;
  color: var(--green-deep);
  font-size: 0.96rem;
}

.hero {
  width: min(1120px, calc(100% - 24px));
  min-height: calc(100dvh - 92px);
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 24px 0 34px;
}

.hero-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(38, 139, 66, 0.1), rgba(36, 63, 150, 0.05)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.identity-row {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.identity-row img:first-child {
  width: clamp(126px, 18vw, 190px);
}

.identity-row img:last-child {
  width: clamp(118px, 16vw, 180px);
}

.event-banner-link {
  display: block;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  overflow: hidden;
}

.event-banner {
  width: 100%;
  max-width: 1140px;
  height: auto;
  aspect-ratio: 1140 / 350;
  margin: 0 auto;
  object-fit: contain;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: clamp(18px, 3vw, 28px);
  padding: clamp(24px, 5vw, 48px);
  text-align: center;
}

.hero-copy {
  display: grid;
  justify-items: stretch;
  gap: 18px;
  max-width: 760px;
  min-width: 0;
  text-align: center;
}

.acta-link {
  width: fit-content;
}

h1 {
  width: 100%;
  max-width: min(680px, 100%);
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(2.25rem, 5.8vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy p {
  width: 100%;
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.lookup-panel {
  width: min(720px, 100%);
  border-radius: var(--radius-card);
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(20, 36, 95, 0.11);
  padding: clamp(20px, 4vw, 32px);
  text-align: left;
}

.soon-panel {
  width: min(720px, 100%);
  min-width: 0;
  display: grid;
  justify-items: stretch;
  gap: 12px;
  border: 1px solid rgba(38, 139, 66, 0.24);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 90% 8%, rgba(38, 139, 66, 0.12), transparent 34%),
    #ffffff;
  box-shadow: 0 16px 40px rgba(20, 36, 95, 0.1);
  padding: clamp(22px, 4vw, 34px);
  text-align: center;
}

.soon-badge {
  justify-self: center;
  max-width: 100%;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-control);
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 0 16px;
  font-weight: 850;
}

.soon-panel p {
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.14rem);
  overflow-wrap: break-word;
}

.rut-form {
  display: grid;
  gap: 10px;
}

.rut-form label,
.phone-update label {
  color: var(--blue-deep);
  font-weight: 850;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.rut-form input,
.phone-update input {
  width: 100%;
  min-height: 56px;
  border: 2px solid var(--line);
  border-radius: var(--radius-control);
  background: #ffffff;
  color: var(--ink);
  padding: 0 18px;
  font-size: 1.05rem;
  font-weight: 700;
  outline: none;
}

.rut-form input::placeholder,
.phone-update input::placeholder {
  color: #707b90;
}

.rut-form input:focus,
.phone-update input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(38, 139, 66, 0.16);
}

.rut-form p,
.phone-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.acta-block {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.acta-block .acta-note {
  max-width: 62ch;
  margin: 0;
  color: var(--ink);
  font-weight: 750;
  text-align: justify;
  text-align-last: center;
}

.loading-card {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.loading-card p {
  margin: 0;
  color: var(--blue-deep);
  font-weight: 750;
}

.loading-card span {
  display: block;
  height: 18px;
  border-radius: var(--radius-control);
  background: linear-gradient(90deg, #e9edf6, #f7f8fb, #e9edf6);
  background-size: 220% 100%;
  animation: shimmer 1.1s linear infinite;
}

.loading-card span:first-child {
  width: 72%;
}

.loading-card span:last-child {
  width: 48%;
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

.result-panel {
  margin-top: 18px;
  border-radius: var(--radius-card);
  padding: clamp(22px, 4vw, 32px);
  text-align: left;
}

.result-panel.selected {
  border: 1px solid rgba(38, 139, 66, 0.26);
  background:
    radial-gradient(circle at 88% 12%, rgba(38, 139, 66, 0.08), transparent 34%),
    var(--green-soft);
}

.result-panel.not-selected,
.result-panel.error {
  border: 1px solid rgba(233, 29, 70, 0.28);
  background:
    radial-gradient(circle at 88% 12%, rgba(233, 29, 70, 0.08), transparent 34%),
    var(--red-soft);
}

.result-panel.not-found {
  border: 1px solid rgba(243, 188, 22, 0.55);
  background:
    radial-gradient(circle at 88% 12%, rgba(243, 188, 22, 0.14), transparent 34%),
    var(--gold-soft);
}

.result-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(14px, 3vw, 24px);
  align-items: start;
}

.status-icon {
  width: clamp(46px, 7vw, 62px);
  height: clamp(46px, 7vw, 62px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(38, 139, 66, 0.22);
  flex: 0 0 auto;
}

.status-icon::before {
  content: "✓";
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1;
}

.result-panel.not-selected .status-icon,
.result-panel.error .status-icon {
  background: #c41922;
  box-shadow: 0 12px 24px rgba(196, 25, 34, 0.18);
}

.result-panel.not-found .status-icon {
  background: var(--gold);
  color: var(--gold-deep);
  box-shadow: 0 12px 24px rgba(243, 188, 22, 0.22);
}

.result-panel.not-selected .status-icon::before,
.result-panel.error .status-icon::before {
  content: "×";
}

.result-panel.not-found .status-icon::before {
  content: "!";
}

.result-panel h3 {
  margin: 0 0 12px;
  color: var(--green-deep);
  font-size: clamp(1.7rem, 4vw, 2.65rem);
  line-height: 1.08;
}

.result-panel.not-selected h3,
.result-panel.error h3 {
  color: #a9151d;
}

.result-panel.not-found h3 {
  color: var(--gold-deep);
}

.result-panel p {
  max-width: 66ch;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.14rem);
}

.phone-confirm {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(20, 36, 95, 0.14);
}

.phone-confirm summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  color: var(--green-deep);
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.phone-confirm summary::-webkit-details-marker {
  display: none;
}

.last-digits {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(38, 139, 66, 0.18);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.68);
  color: var(--green);
  padding: 0 18px;
  font-size: 1.18rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.phone-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.phone-choice.is-light {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--blue-deep);
}

.phone-choice.is-light:hover {
  background: #f4f6fb;
}

.phone-update {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(20, 36, 95, 0.12);
}

.phone-choice,
.phone-submit {
  gap: 10px;
}

.phone-submit {
  width: 100%;
}

.thanks-note,
.phone-feedback,
.interest-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid rgba(38, 139, 66, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.48);
  padding: 16px 18px;
}

.thanks-note {
  border-color: rgba(196, 25, 34, 0.18);
}

.interest-note {
  margin-top: 24px;
  border-color: rgba(243, 188, 22, 0.45);
  background: rgba(255, 255, 255, 0.52);
}

.thanks-note span,
.interest-note span,
.phone-feedback::before {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--green);
  font-size: 1.6rem;
  font-weight: 900;
}

.phone-feedback::before {
  content: "✓";
  background: var(--green);
  color: #ffffff;
  font-size: 1.3rem;
}

.thanks-note span {
  color: #c41922;
}

.interest-note span {
  color: var(--gold);
}

.interest-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold-deep);
  font-size: 1.08rem;
}

.thanks-note p,
.interest-note p,
.phone-feedback {
  margin-bottom: 0;
}

.privacy-note {
  margin: 24px auto 0;
  text-align: center;
  color: var(--muted) !important;
  font-size: 0.98rem !important;
}

.phone-update[hidden],
[hidden] {
  display: none !important;
}

.bot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.footer {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
  padding: 0 0 28px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.footer-campaign-logo {
  width: min(220px, 72vw);
  margin: 0 auto 14px;
}

.footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .topbar {
    border-radius: 20px;
  }

  .brand {
    width: 100%;
    gap: 12px;
  }

  .brand-text {
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.12;
  }

  .brand-text span {
    display: block;
  }

  .hero {
    min-height: auto;
    padding-top: 18px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 16ch;
  }
}

@media (max-width: 560px) {
  .topbar {
    min-height: 60px;
    padding: 10px 14px;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .brand-text {
    font-size: clamp(1.05rem, 4.7vw, 1.24rem);
  }

  .acta-link {
    min-height: 40px;
    padding: 0 14px;
  }

  .identity-row {
    min-height: 72px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .identity-row img:first-child,
  .identity-row img:last-child {
    width: min(42vw, 144px);
  }

  .hero-card {
    border-radius: 18px;
  }

  .hero-layout {
    padding: 20px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2rem, 10.5vw, 3rem);
  }

  .hero-copy p {
    max-width: 100%;
    font-size: 1rem;
    overflow-wrap: break-word;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .result-heading {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .phone-confirm summary {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .last-digits {
    width: 100%;
  }

  .rut-form button,
  .phone-choice,
  .phone-submit,
  .comprobante-button {
    width: 100%;
  }

  .comprobante-block {
    justify-items: stretch;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 22px;
  margin-top: 12px;
  font-weight: 700;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-deep);
  text-decoration: none;
}

.footer-contact-item:hover,
.footer-contact-item:focus-visible {
  text-decoration: underline;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(20, 36, 95, 0.28);
  z-index: 1000;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 16px 34px rgba(20, 36, 95, 0.34);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    right: 14px;
    bottom: 14px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }

  .footer {
    padding-bottom: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    transition: none;
  }
}
