*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1d469;
  color: #901913;
  font-family: 'Barlow Condensed', Arial Narrow, sans-serif;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ticker {
  width: 100%;
  overflow: hidden;
  background-color: #901913;
  flex-shrink: 0;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
  will-change: transform;
}

.ticker-track span {
  font-size: clamp(0.75rem, 1.1vw, 1.1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.5em 0;
  color: #f1d469;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.layout {
  display: grid;
  grid-template-columns: 50vw 50vw;
  flex: 1;
  width: 100vw;
  overflow: hidden;
}

.form-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* top | right(inner) | bottom | left(outer) */
  padding: clamp(1rem, 3vh, 4rem) clamp(1.5rem, 2.5vw, 3rem) clamp(0.3rem, 0.8vh, 1rem) clamp(5rem, 9vw, 12rem);
  min-width: 0;
  height: 100%;
  overflow-y: auto;
}

.image-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* top | right(outer) | bottom | left(inner) */
  padding: clamp(1rem, 3vh, 4rem) clamp(5rem, 9vw, 12rem) clamp(1rem, 3vh, 4rem) clamp(1.5rem, 2.5vw, 3rem);
  min-width: 0;
  overflow: hidden;
  height: 100%;
}

.column-top-image {
  height: auto;
  object-fit: contain;
  margin-bottom: clamp(0.5rem, 2vh, 2rem);
  flex-shrink: 0;
}

.img-logo {
  width: 100%;
  max-height: clamp(30px, 6vh, 70px);
  object-position: left;
}

.img-logo--mobile { display: none; }
.img-logo--desktop { display: block; }

.img-textos {
  width: 100%;
  max-height: clamp(60px, 12vh, 160px);
  object-position: right;
  align-self: flex-end;
}

.title {
  font-size: clamp(2.5rem, min(8vw, 14vh), 14rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: clamp(0.5rem, 2.5vh, 2rem);
  line-height: 0.75;
  text-wrap: balance;
  flex-shrink: 0;
}

.subtitle {
  font-size: clamp(1rem, min(2.5vw, 3vh), 3.5rem);
  line-height: 1.1;
  margin-bottom: clamp(0.5rem, 2vh, 2.5rem);
  flex-shrink: 0;
}

.field-group {
  margin-bottom: clamp(0.4rem, 1.5vh, 1.8rem);
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: clamp(0.2rem, 0.5vh, 0.5rem);
  font-size: clamp(0.9rem, min(1.4vw, 2.2vh), 2rem);
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: clamp(0.4rem, 1vh, 1rem) clamp(0.75rem, 1.2vw, 1.2rem);
  background-color: transparent;
  border: 2px solid #901913;
  color: #901913;
  font-size: clamp(0.85rem, min(1.2vw, 2vh), 2.2rem);
  border-radius: 4px;
  outline: none;
  transition: box-shadow 0.2s ease;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder {
  color: rgba(144, 25, 19, 0.5);
}

input[type="text"]:focus,
input[type="email"]:focus {
  box-shadow: 0 0 0 3px rgba(144, 25, 19, 0.25);
}

input.has-error {
  border-color: #7a0f0a;
  box-shadow: 0 0 0 3px rgba(122, 15, 10, 0.2);
}

.field-error {
  display: block;
  font-size: 0.82rem;
  color: #7a0f0a;
  margin-top: 0.2rem;
  min-height: 1em;
}

.checkbox-group {
  margin-top: clamp(0.2rem, 0.5vh, 0.5rem);
}

.checkbox-label {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: 0;
  background-color: #f1d469;
  border: 2px solid #901913;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 8px;
  height: 12px;
  border: 2.5px solid #901913;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.checkbox-text {
  font-size: clamp(0.85rem, min(1.3vw, 2vh), 1.8rem);
  line-height: 1.1;
}

.checkbox-text a {
  color: #901913;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox-text a:hover {
  opacity: 0.7;
}

.btn-firmar {
  display: block;
  width: 100%;
  padding: clamp(0.5rem, 1.5vh, 1.2rem);
  margin-top: clamp(0.3rem, 0.8vh, 0.8rem);
  background-color: #901913;
  color: #f1d469;
  border: none;
  font-size: clamp(1rem, min(1.5vw, 2.5vh), 2.8rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 9999px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
  flex-shrink: 0;
}

.btn-firmar:hover:not(:disabled) {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-firmar:active:not(:disabled) {
  transform: translateY(0);
}

.btn-firmar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  overflow: hidden;
  max-height: 0;
  padding: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.form-status.success {
  max-height: 80px;
  padding: 0.75rem 1rem;
  background-color: rgba(144, 25, 19, 0.1);
  border: 1px solid #901913;
}

.form-status.error {
  max-height: 80px;
  padding: 0.75rem 1rem;
  background-color: rgba(144, 25, 19, 0.15);
  border: 1px solid #7a0f0a;
}

.countdown-sticky {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  background-color: #f1d469;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(0.3rem, 1vh, 0.75rem) 0;
  margin-bottom: clamp(0.5rem, 1.5vh, 1.5rem);
  flex-shrink: 0;
}

.countdown-label {
  font-size: clamp(0.75rem, min(1.3vw, 1.8vh), 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 2.5rem;
}

.countdown-unit span:first-child {
  font-size: clamp(1.2rem, min(2.8vw, 4.5vh), 5rem);
  font-weight: 900;
  line-height: 1;
}

.countdown-unit-label {
  font-size: clamp(0.5rem, min(0.8vw, 1.2vh), 1.4rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.75;
}

.countdown-sep {
  font-size: clamp(1rem, min(2.5vw, 4vh), 4.5rem);
  font-weight: 900;
  line-height: 1;
  padding-bottom: 0.8rem;
  opacity: 0.5;
}

.brand-image {
  max-width: 100%;
  width: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  flex: 1;
}

.stats {
  display: flex;
  gap: clamp(1rem, 2vw, 2.5rem);
  font-size: clamp(1.4rem, min(3vw, 4.5vh), 4rem);
  font-weight: 700;
  margin-top: clamp(0.3rem, 1vh, 1.5rem);
  flex-shrink: 0;
  text-transform: uppercase;
}

.stats-note {
  font-size: clamp(0.85rem, min(1.4vw, 2vh), 1.5rem);
  margin-top: clamp(0.5rem, 1.2vh, 1.2rem);
  opacity: 0.75;
  text-align: center;
  align-self: center;
  flex-shrink: 0;
}

.site-footer {
  background-color: #901913;
  color: rgba(241, 212, 105, 0.8);
  padding: clamp(0.5rem, 1.2vh, 1rem) clamp(5rem, 9vw, 12rem);
  font-size: clamp(0.85rem, min(1.3vw, 1.8vh), 1.4rem);
  line-height: 1.4;
  flex-shrink: 0;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(144, 25, 19, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  background-color: #f1d469;
  color: #901913;
  padding: 2.5rem 3rem;
  border-radius: 8px;
  max-width: 580px;
  width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.modal-body {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  line-height: 1.4;
}

.modal-btn {
  margin-top: 0.5rem;
  padding: 0.65rem 2rem;
  background-color: #901913;
  color: #f1d469;
  border: none;
  border-radius: 9999px;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s ease;
  align-self: center;
}

.modal-btn:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .img-logo--mobile { display: block; }
  .img-logo--desktop { display: none; }

  body {
    height: auto;
    overflow: auto;
  }

  .layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .form-column {
    height: auto;
    overflow-y: visible;
    padding: 1.5rem 1.5rem 3rem;
  }

  .image-column {
    order: -1;
    height: auto;
    padding: 2rem 1.5rem 1rem;
  }

  .column-top-image {
    max-height: 60px;
    margin-bottom: 1.2rem;
  }

  .title {
    font-size: clamp(3.5rem, 14vw, 6rem);
    margin-bottom: 1rem;
    text-align: center;
  }

  .img-logo {
    width: 55%;
    object-position: center;
    align-self: center;
  }

  .subtitle {
    text-align: center;
    font-size: clamp(1.1rem, 4.5vw, 2rem);
  }

  .stats-note {
    text-align: center;
    align-self: center;
  }

  .site-footer {
    padding: 0.75rem 1.5rem;
    font-size: clamp(0.85rem, 3.5vw, 1.1rem);
  }

  .form-column {
    background-color: #901913;
    color: #f1d469;
  }

  .form-column label {
    color: #f1d469;
  }

  .form-column input[type="text"],
  .form-column input[type="email"] {
    border-color: #f1d469;
    color: #f1d469;
    background-color: transparent;
  }

  .form-column input[type="text"]::placeholder,
  .form-column input[type="email"]::placeholder {
    color: rgba(241, 212, 105, 0.5);
  }

  .form-column input[type="text"]:focus,
  .form-column input[type="email"]:focus {
    box-shadow: 0 0 0 3px rgba(241, 212, 105, 0.25);
  }

  .form-column input.has-error {
    border-color: #f1d469;
    box-shadow: 0 0 0 3px rgba(241, 212, 105, 0.3);
  }

  .form-column .field-error {
    color: #f1d469;
    opacity: 0.85;
  }

  .form-column .checkbox-label input[type="checkbox"] {
    background-color: #901913;
    border-color: #f1d469;
  }

  .form-column .checkbox-label input[type="checkbox"]:checked::after {
    border-color: #f1d469;
  }

  .form-column .checkbox-text a {
    color: #f1d469;
  }

  .form-column .btn-firmar {
    background-color: #f1d469;
    color: #901913;
  }

  .form-column .form-status.success {
    background-color: rgba(241, 212, 105, 0.1);
    border-color: #f1d469;
    color: #f1d469;
  }

  .form-column .form-status.error {
    background-color: rgba(241, 212, 105, 0.15);
    border-color: #f1d469;
    color: #f1d469;
  }
}

@media (max-height: 1199px) and (min-width: 769px) {
  .title {
    font-size: clamp(2rem, min(6.2vw, 10.5vh), 10.5rem);
  }

  .subtitle {
    font-size: clamp(0.9rem, min(2.2vw, 2.5vh), 3rem);
  }

  .img-logo {
    max-height: clamp(30px, 6vh, 70px);
  }
}

@media (min-height: 1200px) {
  .column-top-image {
    margin-bottom: 4vh;
  }

  .img-logo {
    max-height: clamp(24px, 4.5vh, 55px);
  }

  .title {
    font-size: clamp(2rem, min(6.5vw, 11vh), 11rem);
    margin-bottom: 3vh;
  }

  .subtitle {
    font-size: clamp(0.9rem, min(2.2vw, 2.5vh), 3rem);
  }

  .subtitle {
    margin-bottom: 4vh;
  }

  .field-group {
    margin-bottom: 1.5vh;
  }

  label {
    margin-bottom: 1vh;
  }

  .checkbox-group {
    margin-top: 2vh;
  }

  .btn-firmar {
    margin-top: 0;
    padding: 1.2vh;
  }
}
