/* =============================================================
   Yandel Sinfónico: la audición | Landing CSS
   Fuente: Figma PCsLVxrCPNEun91UiQUUne (node 36063:12)
   - Desktop (>= 992px): el diseño de 1440px se escala con la unidad --u
     (1u = 1px a 1440px de ancho de contenedor).
   - Mobile (< 992px): columna de hasta 440px basada en el frame de 390px.
   ============================================================= */

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  --color-gold: #bca350;
  --color-gold-dark: #a48c3b;
  --color-brown: #423b23;
  --color-brown-50: rgba(66, 59, 35, 0.5);
  --color-snow: #f2f2fa;
  --color-black: #000000;
  --color-approve: #22b07d;
  --color-error: #d64545;
  --color-paper: #efeeea;

  --font-serif: "Tiro Tamil", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --img-chevron: url("../img/icon-arrow-down.svg");
}

/* ── Base ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: var(--color-paper);
  font-family: var(--font-sans);
  color: var(--color-brown);
  overflow-x: hidden;
}

img {
  display: block;
}

.d-none {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.screen {
  container-type: inline-size;
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: var(--color-paper);
}

.stage {
  position: relative;
  width: 100%;
}

.frame {
  display: none;
}

.gold {
  color: var(--color-gold);
  font-style: normal;
}

/* ── Botón principal (gradiente dorado) ────────────────────── */
.btn-registro {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0.74px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 1.086px 1.086px rgba(0, 0, 0, 0.25);
  background-image: linear-gradient(103.4deg,
      rgba(188, 163, 80, 0.95) 13.342%,
      rgba(125, 112, 71, 0.95) 50.722%,
      rgba(188, 163, 80, 0.95) 88.102%);
  color: var(--color-snow);
  font-family: var(--font-sans);
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.1s ease, opacity 0.2s ease;
}

.btn-registro:hover {
  filter: brightness(1.06);
  color: var(--color-snow);
}

.btn-registro:active {
  transform: translateY(1px);
}

.btn-registro:focus-visible,
.ty-video:focus-visible,
.password-toggle:focus-visible,
.link-register:focus-visible {
  outline: 2px solid var(--color-gold-dark);
  outline-offset: 2px;
}

.btn-registro:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

/* ── Campos ────────────────────────────────────────────────── */
.field {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.form-label {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-brown);
}

.screen .form-control,
.screen .form-select {
  width: 100%;
  margin: 0;
  background-color: transparent;
  background-image: none;
  border: 1px solid var(--color-brown);
  color: var(--color-brown);
  font-family: var(--font-sans);
  font-weight: 400;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.screen .form-control::placeholder {
  color: var(--color-brown-50);
  opacity: 1;
}

.screen .form-control:focus,
.screen .form-select:focus {
  background-color: transparent;
  color: var(--color-brown);
  border-color: var(--color-gold-dark);
  box-shadow: 0 0 3.6px 1px var(--color-gold);
  outline: none;
}

/* Campo "activo" del diseño (correo): borde dorado con resplandor */
.screen .field-focus .form-control,
.screen .field-focus .form-control:disabled {
  border-color: var(--color-gold-dark);
  box-shadow: 0 0 3.6px 1px var(--color-gold), inset 0 0 7px 1px rgba(188, 163, 80, 0.5);
  background-color: transparent;
  color: var(--color-brown);
  opacity: 1;
}

.screen .form-control.input-error,
.screen .form-select.input-error,
.screen .choices.is-error .choices__inner {
  border-color: var(--color-error);
  box-shadow: 0 0 0 2px rgba(214, 69, 69, 0.2);
}

/* Select nativo (instrumento) */
.screen .form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: var(--img-chevron);
  background-repeat: no-repeat;
  color: var(--color-brown-50);
  cursor: pointer;
}

.screen .form-select:valid {
  color: var(--color-brown);
}

/* Fecha: campo de texto con máscara DD/MM/AAAA + calendario nativo oculto */
.date-wrap {
  position: relative;
}

.screen .date-wrap .form-control {
  padding-right: 44px;
}

.date-toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  width: 27px;
  height: 27px;
  padding: 0;
  border: 0;
  background: url("../img/icon-calendar.svg") center / contain no-repeat;
  cursor: pointer;
}

.date-native {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* Mensajes de error */
.field-error,
#email-error-message,
[id^="error-"] {
  color: var(--color-error);
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.25;
  margin-top: 3px;
}

.field-error:empty,
#email-error-message:empty,
[id^="error-"]:empty {
  display: none;
}

/* Teléfono: lada + número */
.phone-input-container {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid var(--color-brown);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-input-container:focus-within {
  border-color: var(--color-gold-dark);
  box-shadow: 0 0 3.6px 1px var(--color-gold);
}

.screen .phone-input-container .form-control {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: 100%;
  min-width: 0;
  flex: 1 1 auto;
}

.screen .phone-input-container .form-control:focus {
  box-shadow: none;
}

.phone-input-container #form-field-ladaSelect {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  height: 100%;
  background-color: transparent;
  background-image: var(--img-chevron);
  background-repeat: no-repeat;
  border: 0;
  border-right: 1px solid var(--color-brown);
  border-radius: 0;
  color: var(--color-brown);
  font-family: var(--font-sans);
  font-weight: 400;
  cursor: default;
  opacity: 1;
}

/* Contraseña */
.password-wrap {
  position: relative;
}

.screen .password-wrap .form-control {
  width: 100%;
}

.password-toggle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: url("../img/icon-eye-off.svg") center / contain no-repeat;
  cursor: pointer;
}

.password-toggle.is-visible {
  background-image: url("../img/icon-eye.svg");
}

.pw-rules {
  font-family: var(--font-sans);
  color: var(--color-brown);
}

.pw-rules-title,
.pw-rule {
  margin: 0;
  font-size: 10px;
  line-height: 16px;
  height: 14px;
  white-space: nowrap;
}

.pw-rule {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pw-rule::before {
  content: "";
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  background: url("../img/icon-check-neutral.svg") center / contain no-repeat;
}

.pw-rule.is-valid::before {
  background-image: url("../img/icon-check.svg");
}

.pw-rule.is-invalid::before {
  background-image: url("../img/icon-check-error.svg");
}

.pw-rule.is-invalid {
  color: var(--color-error);
}

/* Checkboxes */
.form-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.screen .form-check {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  padding: 0;
  min-height: 16px;
}

.screen .form-check-input {
  flex: 0 0 14px;
  float: none;
  margin: 0;
  width: 14px;
  height: 14px;
  background-color: transparent;
  border: 1px solid var(--color-brown);
  border-radius: 2px;
  cursor: pointer;
  box-shadow: none;
}

.screen .form-check-input:checked {
  background-color: var(--color-brown);
  border-color: var(--color-brown);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23f2f2fa' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3E%3C/svg%3E");
}

.screen .form-check-input:focus {
  box-shadow: 0 0 3.6px 1px var(--color-gold);
}

.screen .form-check-label {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
}

.screen .link-register,
.screen .link-register:hover {
  color: var(--color-brown);
  text-decoration: underline;
}

/* ── Choices.js (país y ciudad) ────────────────────────────── */
.screen .choices {
  margin: 0;
  width: 100%;
  font-family: var(--font-sans);
}

.screen .choices__inner {
  display: flex;
  align-items: center;
  min-height: 0;
  height: 100%;
  padding: 0 40px 0 0;
  background-color: transparent;
  border: 1px solid var(--color-brown);
  border-radius: 12px;
  color: var(--color-brown);
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.screen .choices.is-focused .choices__inner,
.screen .choices.is-open .choices__inner {
  border-color: var(--color-gold-dark);
  box-shadow: 0 0 3.6px 1px var(--color-gold);
}

.screen .choices.is-open .choices__inner {
  border-radius: 12px;
}

.screen .choices__list--single {
  padding: 4px 0 0;
  width: 100%;
  overflow: hidden;
}

.screen .choices__list--single .choices__item {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-brown);
}

.screen .choices__list--single .choices__item.choices__placeholder,
.screen .choices__placeholder {
  color: var(--color-brown-50);
  opacity: 1;
}

.screen .choices[data-type*="select-one"]::after {
  content: "";
  width: 18px;
  height: 18px;
  margin: 0;
  border: 0;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: var(--img-chevron) center / contain no-repeat;
}

.screen .choices[data-type*="select-one"].is-open::after {
  transform: translateY(-50%) rotate(180deg);
  margin-top: 0;
}

.screen .choices__list--dropdown,
.screen .choices__list[aria-expanded] {
  z-index: 20;
  background-color: #f7f6f2;
  border: 1px solid var(--color-brown);
  border-radius: 12px;
  margin-top: 4px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(66, 59, 35, 0.18);
  min-width: 100%;
  width: max-content;
  max-width: min(320px, 90vw);
}

.screen .choices__list--dropdown .choices__item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.screen .choices__list--dropdown .choices__item,
.screen .choices__list[aria-expanded] .choices__item {
  color: var(--color-brown);
  font-size: 14px;
}

.screen .choices__list--dropdown .choices__item--selectable.is-highlighted,
.screen .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
  background-color: rgba(188, 163, 80, 0.2);
}

.screen .choices__input {
  background-color: transparent;
  color: var(--color-brown);
  font-family: var(--font-sans);
  font-size: 14px;
}

.screen .choices__list--dropdown .choices__input {
  border-bottom: 1px solid rgba(66, 59, 35, 0.3);
  padding: 10px 15px;
  margin: 0;
}

/* =============================================================
   MOBILE  (< 992px)  — frame de 390px
   ============================================================= */
.stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 440px;
  background-color: #f1f0ec;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.y-mark {
  width: 38px;
  height: 31px;
  margin: 0 auto;
}

/* ---- Home ---- */
.screen-home .stage {
  min-height: max(1059px, 100svh);
  background-image: url("../img/bg-mobile-home.webp");
  padding: 102px 0 53px;
}

.home-info {
  width: 297px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.home-title {
  order: 1;
  margin: 0;
  height: 32px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: normal;
  text-transform: uppercase;
  color: var(--color-black);
}

.home-lead {
  order: 2;
  margin: 13px 0 0;
  height: 83px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  line-height: normal;
  color: var(--color-gold);
}

.home-steps-title {
  order: 3;
  margin: 21px 0 0;
  height: 22px;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: normal;
  color: var(--color-black);
}

.home-steps {
  order: 4;
  align-self: center;
  width: 300px;
  max-width: calc(100vw - 40px);
  margin: 9px 0 0;
  padding: 0 0 0 16px;
  height: 213px;
  text-align: left;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px;
  line-height: normal;
  color: var(--color-black);
}

.home-steps li::marker {
  color: var(--color-gold);
  font-style: normal;
}

.home-steps strong {
  font-style: normal;
  font-weight: 400;
  color: var(--color-gold);
}

.home-card {
  position: relative;
  width: 314.6px;
  height: 414px;
  margin: 30px auto 0;
  left: -1.2px;
  border-radius: 13.571px;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(16, 13, 5, 0.07) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.home-logo {
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(calc(-50% - 1.5px));
  width: 203px;
  height: 95px;
  object-fit: cover;
}

.home-busto {
  position: absolute;
  top: 118px;
  left: 112.9px;
  width: 90.7px;
  height: 134px;
  object-fit: cover;
}

.home-form {
  position: absolute;
  top: 263px;
  left: 17px;
  width: 280.1px;
  display: flex;
  flex-direction: column;
}

.home-form .form-label {
  height: 26.4px;
  font-size: 12px;
  line-height: normal;
}

.home-form .form-control {
  height: 42.7px;
  padding: 0 15px;
  font-size: 14px;
  border-radius: 12px;
  border-color: var(--color-gold);
}

.home-form .btn-registro {
  margin: 5.6px 0 0 -2.5px;
  width: 285.2px;
  height: 47.94px;
  border-radius: 12px;
  border: 0;
  box-shadow: none;
  font-size: 14px;
  color: #f5faf7;
  background-image: linear-gradient(102.93deg,
      rgba(188, 163, 80, 0.95) 13.342%,
      rgba(114, 100, 53, 0.95) 50.722%,
      rgba(188, 163, 80, 0.95) 88.102%);
}

.screen-home .y-mark {
  margin-top: 36px;
}

/* ---- Formulario ---- */
.screen-form .stage {
  min-height: max(1224px, 100svh);
  background-image: url("../img/bg-mobile-form.webp");
  padding: 79px 0 53px;
}

.screen-form.is-new-user .stage {
  min-height: max(1396px, 100svh);
  background-image: url("../img/bg-mobile-form-password.webp");
  padding-top: 81px;
}

.form-logo {
  width: 269px;
  height: 126px;
  margin: 0 auto;
  object-fit: cover;
}

.screen-form.is-new-user .form-logo {
  width: 295px;
  height: 137px;
}

.form-card {
  margin-top: 21px;
}

.screen-form.is-new-user .form-card {
  margin-top: 6px;
}

.form-panel {
  width: calc(100% - 36px);
  max-width: 354px;
  margin: 0 auto;
  padding: 23px 0 21px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 1px 6px rgba(66, 59, 35, 0.05);
}

.screen-form.is-new-user .form-panel {
  padding: 21px 0 37px;
}

.form-fields {
  width: calc(100% - 21px);
  max-width: 333px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-row {
  display: contents;
}

.form-fields .field {
  display: flex;
}

.form-fields .form-label {
  height: 26px;
  font-size: 14px;
  line-height: normal;
}

.form-fields .form-control,
.form-fields .field>.choices,
.form-fields .form-select,
.form-fields .phone-input-container {
  height: 42px;
  border-radius: 12px;
}

.form-fields .form-control,
.form-fields .form-select {
  padding: 0 15px;
  font-size: 14px;
}

.form-fields .form-select {
  background-position: right 15px center;
  background-size: 18px;
  padding-right: 40px;
}

.form-fields .choices__inner {
  padding-left: 15px;
}

.form-fields .choices {
  height: 42px;
}

.phone-input-container #form-field-ladaSelect {
  width: 78px;
  padding: 0 0 0 15px;
  font-size: 14px;
  background-position: 49px center;
  background-size: 18px;
}

.form-fields #form-field-Phone {
  padding: 0 15px;
}

/* Orden mobile (apilado) */
.form-fields> :nth-child(1) {
  order: 1;
}

.form-fields> :nth-child(2) {
  order: 2;
}

.form-fields> :nth-child(3) {
  order: 3;
}

.form-fields> :nth-child(4) {
  order: 4;
}

.field-country {
  order: 5;
}

.field-city {
  order: 6;
}

.field-phone {
  order: 7;
}

.field-tiktok {
  order: 8;
}

.field-instrument {
  order: 9;
}

.field-password {
  order: 10;
}

.field-password .form-control {
  padding-right: 40px;
  font-size: 14px;
}

.password-toggle {
  right: 15px;
}

.form-extras {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
  padding-left: 19px;
}

.screen-form.is-new-user .form-extras {
  margin-top: 12px;
  padding-left: 19px;
}

.pw-rules {
  display: grid;
  grid-template-rows: repeat(3, 14px);
  grid-auto-flow: column;
  grid-template-columns: 112px 112px;
  row-gap: 6px;
  margin-left: 0;
  margin-bottom: 25px;
}

.pw-rules-title {
  grid-column: 1 / -1;
  grid-row: auto;
}

.pw-rules {
  grid-template-rows: 14px repeat(3, 14px);
}

.pw-rules-title {
  grid-row: 1;
}

.form-checks .form-check-label {
  font-size: 12px;
}

.btn-submit {
  display: flex;
  width: calc(100% - 57px);
  max-width: 333px;
  height: 47.94px;
  margin: 21px auto 0;
  border-radius: 12px;
  border: 0;
  box-shadow: none;
  font-size: 14px;
  color: #f5faf7;
  background-image: linear-gradient(105deg,
      rgba(188, 163, 80, 0.95) 13.342%,
      rgba(114, 100, 53, 0.95) 50.722%,
      rgba(188, 163, 80, 0.95) 88.102%);
}

.screen-form.is-new-user .btn-submit {
  margin-top: 12px;
}

.screen-form .y-mark {
  margin-top: 49px;
}

/* ---- Gracias ---- */
.screen-ty .stage {
  min-height: max(833px, 100svh);
  background-image: url("../img/bg-mobile-ty.webp");
  background-size: 100% 99.89%;
  background-position: 0 0.14%;
  padding: 104px 0 41px;
}

.ty-logo {
  width: 269px;
  height: 126px;
  margin: 0 auto;
  object-fit: cover;
}

.ty-title {
  width: 297px;
  max-width: calc(100% - 40px);
  margin: 29px auto 0;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: normal;
  text-transform: uppercase;
  color: var(--color-black);
}

.ty-copy {
  width: 297px;
  max-width: calc(100% - 40px);
  margin: 21px auto 0;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  line-height: normal;
  color: var(--color-black);
}

.ty-copy p {
  margin: 0 0 21px;
}

.ty-copy p:last-child {
  margin-bottom: 0;
}

.br-desktop {
  display: none;
}

.br-mobile {
  display: inline;
}

.ty-video {
  position: relative;
  display: flex;
  align-items: center;
  width: 303.6px;
  max-width: calc(100% - 40px);
  height: 38.3px;
  margin: 15.7px auto 0;
  padding: 0 21px 0 21.3px;
  border: 1px solid var(--color-brown);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-brown);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ty-video:hover {
  color: var(--color-brown);
  border-color: var(--color-gold-dark);
  box-shadow: 0 0 3.6px 1px var(--color-gold);
}

.ty-video img {
  position: absolute;
  right: 21.3px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 16px;
}

.ty-question {
  width: 297px;
  max-width: calc(100% - 40px);
  margin: 30px auto 0;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  line-height: normal;
  color: var(--color-black);
}

.btn-ty {
  width: 303px;
  max-width: calc(100% - 40px);
  height: 47.94px;
  margin: 12px auto 0;
  border-radius: 12px;
  border: 0;
  box-shadow: none;
  font-size: 14px;
  color: #f5faf7;
  background-image: linear-gradient(103.7deg,
      rgba(188, 163, 80, 0.95) 13.342%,
      rgba(130, 114, 59, 0.95) 50.722%,
      rgba(188, 163, 80, 0.95) 88.102%);
}

.ty-legal {
  width: 267px;
  max-width: calc(100% - 40px);
  margin: 43px auto 0;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8px;
  line-height: normal;
  color: var(--color-black);
}

.screen-ty .y-mark {
  margin-top: 36px;
}

/* =============================================================
   DESKTOP  (>= 992px)  — frame de 1440px escalado con --u
   ============================================================= */
@media (min-width: 992px) {
  /* El diseño se ajusta al ancho Y al alto de la ventana (se elige el
     menor factor de escala) y queda centrado. --w / --h = tamaño del frame en Figma. */
  .screen {
    position: relative;
    min-height: 100svh;
    align-items: center;
    overflow: hidden;
    background-color: #f1f0ec;
    --w: 1440;
    --h: 972;
  }

  /* Marco ornamental a pantalla completa: las esquinas conservan su proporción
     (escala --u) y los bordes se estiran para cubrir todo el ancho y alto. */
  .frame {
    display: block;
    position: absolute;
    inset: 0;
    --u: min(calc(100cqw / var(--w)), calc(100svh / var(--h)));
    border-style: solid;
    border-color: transparent;
    border-width: calc(var(--slice) * var(--img-scale) * var(--u));
    border-image-slice: var(--slice) fill;
    border-image-repeat: stretch;
    pointer-events: none;
  }

  .stage {
    position: relative;
    z-index: 1;
    --u: min(calc(100cqw / var(--w)), calc(100svh / var(--h)));
    display: block;
    width: calc(var(--w) * var(--u));
    height: calc(var(--h) * var(--u));
    max-width: none;
    flex: 0 0 auto;
    background: none !important;
    padding: 0 !important;
    min-height: 0 !important;
    overflow: visible;
  }

  /* El formulario puede crecer (avisos de validación): el alto de diseño es el mínimo
     y el marco, que cubre toda la página, se estira con él. */
  .screen-form .stage {
    height: auto;
    min-height: calc(var(--h) * var(--u)) !important;
    padding-bottom: calc(60 * var(--u)) !important;
  }

  .br-desktop {
    display: inline;
  }

  .br-mobile {
    display: none;
  }

  .stage .y-mark {
    display: none;
  }

  /* Los frames de home y gracias miden 1442px de ancho en Figma */
  .screen-home {
    --w: 1442;
    --h: 938;
  }

  .screen-home .frame {
    --slice: 260;
    --img-scale: 0.938;
    border-image-source: url("../img/bg-desktop-home.webp");
  }

  .screen-form .frame {
    --slice: 250;
    --img-scale: 0.9436;
    border-image-source: url("../img/bg-desktop-form.webp");
  }

  .screen-ty {
    --w: 1442;
    --h: 845;
  }

  .screen-ty .frame {
    --slice: 300;
    --img-scale: 0.8803;
    border-image-source: url("../img/bg-desktop-ty.webp");
  }

  /* ---- Home ---- */


  .home-info {
    position: absolute;
    left: calc(171 * var(--u));
    top: calc(189 * var(--u));
    width: calc(497 * var(--u));
    max-width: none;
    margin: 0;
    text-align: left;
  }

  .home-lead {
    order: 1;
    margin: 0;
    height: calc(81 * var(--u));
    font-size: calc(19 * var(--u));
  }

  .home-title {
    order: 2;
    margin: calc(44 * var(--u)) 0 0;
    height: calc(54 * var(--u));
    font-size: calc(35 * var(--u));
  }

  .home-steps-title {
    order: 3;
    margin: calc(25 * var(--u)) 0 0;
    height: calc(37 * var(--u));
    font-size: calc(19 * var(--u));
  }

  .home-steps {
    align-self: flex-start;
    width: calc(493 * var(--u));
    max-width: none;
    margin: calc(1 * var(--u)) 0 0 calc(-3 * var(--u));
    padding-left: calc(27 * var(--u));
    font-size: calc(19 * var(--u));
  }

  .home-card {
    position: absolute;
    left: calc(728 * var(--u));
    top: calc(138 * var(--u));
    width: calc(578.077 * var(--u));
    height: calc(657 * var(--u));
    margin: 0;
    left: calc(728 * var(--u));
    border-radius: calc(21.9 * var(--u));
    background-image: none;
    box-shadow: none;
    background-color: rgba(16, 13, 5, 0.05);
  }

  .home-logo {
    top: calc(34 * var(--u));
    left: calc(127 * var(--u));
    transform: none;
    width: calc(324 * var(--u));
    height: calc(151 * var(--u));
  }

  .home-busto {
    top: calc(188 * var(--u));
    left: calc(221 * var(--u));
    width: calc(165 * var(--u));
    height: calc(244 * var(--u));
  }

  .home-form {
    top: calc(431 * var(--u));
    left: calc(61 * var(--u));
    width: calc(457 * var(--u));
  }

  .home-form .form-label {
    height: calc(31 * var(--u));
    font-size: calc(14 * var(--u));
    line-height: normal;
  }

  .home-form .form-control {
    height: calc(54 * var(--u));
    padding: 0 calc(24.7 * var(--u));
    font-size: calc(14 * var(--u));
    border-color: var(--color-gold-dark);
  }

  .home-form .btn-registro {
    margin: calc(23 * var(--u)) 0 0 0;
    width: calc(457 * var(--u));
    height: calc(65 * var(--u));
    border: 0.74px solid rgba(255, 255, 255, 0.5);
    border-radius: calc(17.517 * var(--u));
    box-shadow: 0 1.086px 1.086px rgba(0, 0, 0, 0.25);
    font-size: calc(21.021 * var(--u));
    line-height: calc(25.655 * var(--u));
    color: var(--color-snow);
    background-image: linear-gradient(105.17deg,
        rgba(188, 163, 80, 0.95) 13.342%,
        rgba(125, 112, 71, 0.95) 50.722%,
        rgba(188, 163, 80, 0.95) 88.102%);
  }

  /* ---- Formulario ---- */


  .form-logo,
  .screen-form.is-new-user .form-logo {
    position: absolute;
    top: calc(373 * var(--u));
    left: calc(153 * var(--u));
    width: calc(483 * var(--u));
    height: calc(226 * var(--u));
    margin: 0;
  }

  .screen-form.is-new-user .form-logo {
    left: calc(123 * var(--u));
  }

  .form-card,
  .screen-form.is-new-user .form-card {
    position: relative;
    width: calc(582 * var(--u));
    min-height: calc(703 * var(--u));
    margin: calc(134 * var(--u)) 0 0 calc(708 * var(--u));
    border-radius: calc(25 * var(--u));
    background-color: rgba(66, 59, 35, 0.05);
    padding: calc(18.7 * var(--u)) 0 calc(29 * var(--u)) calc(59 * var(--u));
  }

  .screen-form.is-new-user .form-card {
    margin: calc(66 * var(--u)) 0 0 calc(678 * var(--u));
    min-height: calc(840 * var(--u));
    padding: calc(22.3 * var(--u)) 0 calc(46 * var(--u)) calc(59 * var(--u));
  }

  .form-panel,
  .screen-form.is-new-user .form-panel {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }

  .form-fields {
    width: calc(460 * var(--u));
    max-width: none;
    margin: 0;
    gap: calc(6 * var(--u));
  }

  .field-row {
    display: grid;
    gap: 0;
  }

  .field-row-phone {
    grid-template-columns: calc(127 * var(--u)) calc(130 * var(--u)) calc(201 * var(--u));
    column-gap: 0;
    margin-top: calc(7 * var(--u));
  }

  .field-row-phone .field-phone {
    width: calc(201 * var(--u));
  }

  .field-row-phone .field-city,
  .field-row-phone .field-country {
    width: calc(120 * var(--u));
  }

  .field-row-social {
    grid-template-columns: calc(223 * var(--u)) calc(234 * var(--u));
    column-gap: 0;
    margin-top: calc(5 * var(--u));
  }

  .field-row-social .field-tiktok {
    width: calc(217 * var(--u));
  }

  .screen-form.is-new-user .field-row-phone {
    margin-top: calc(3 * var(--u));
  }

  .screen-form.is-new-user .field-row-social {
    margin-top: calc(4 * var(--u));
  }

  .screen-form.is-new-user .form-fields .field-date {
    margin-top: calc(2 * var(--u));
  }

  .form-fields> :nth-child(n),
  .field-country,
  .field-city,
  .field-phone,
  .field-tiktok,
  .field-instrument,
  .field-password {
    order: 0;
  }

  .form-fields .form-label {
    height: calc(28 * var(--u));
    font-size: calc(14 * var(--u));
    line-height: normal;
    padding-left: calc(10 * var(--u));
  }

  .field-city .form-label,
  .field-phone .form-label,
  .field-instrument .form-label {
    padding-left: 0;
  }

  .form-fields .form-control,
  .form-fields .field>.choices,
  .form-fields .form-select,
  .form-fields .phone-input-container {
    height: calc(48 * var(--u));
    border-radius: calc(12 * var(--u));
  }

  .form-fields .form-control,
  .form-fields .form-select {
    padding: 0 calc(15 * var(--u));
    font-size: calc(14 * var(--u));
  }

  .form-fields .choices {
    height: calc(48 * var(--u));
  }

  .form-fields .choices__inner {
    padding-left: calc(9 * var(--u));
    border-radius: calc(12 * var(--u));
    font-size: calc(14 * var(--u));
  }

  .form-fields .form-select {
    background-position: right calc(15 * var(--u)) center;
    background-size: calc(18 * var(--u));
    padding-right: calc(40 * var(--u));
  }

  .field-city .choices__inner,
  .field-country .choices__inner {
    padding-right: calc(28 * var(--u));
  }

  .screen .choices[data-type*="select-one"]::after {
    width: calc(18 * var(--u));
    height: calc(18 * var(--u));
    right: calc(10 * var(--u));
  }

  .screen .date-wrap .form-control {
    padding-right: calc(46 * var(--u));
  }

  .date-toggle {
    right: calc(8 * var(--u));
    width: calc(27 * var(--u));
    height: calc(27 * var(--u));
  }

  .phone-input-container #form-field-ladaSelect {
    width: calc(65 * var(--u));
    padding: 0 0 0 calc(5 * var(--u));
    font-size: calc(14 * var(--u));
    background-position: calc(33 * var(--u)) center;
    background-size: calc(18 * var(--u));
  }

  .form-fields #form-field-Phone {
    padding: 0 calc(12 * var(--u));
  }

  .field-password .form-control {
    font-size: calc(16 * var(--u));
    padding-right: calc(40 * var(--u));
  }

  .field-password {
    margin-top: calc(6 * var(--u));
  }

  .password-toggle {
    right: calc(14 * var(--u));
    width: calc(18 * var(--u));
    height: calc(18 * var(--u));
  }

  .field-error,
  #email-error-message,
  [id^="error-"] {
    font-size: calc(10 * var(--u));
    margin-top: calc(3 * var(--u));
  }

  .form-extras,
  .screen-form.is-new-user .form-extras {
    flex-direction: row;
    align-items: flex-start;
    margin-top: calc(16.3 * var(--u));
    padding-left: calc(15 * var(--u));
  }

  .screen-form.is-new-user .form-extras {
    margin-top: calc(11.7 * var(--u));
    padding-left: calc(21 * var(--u));
  }

  .pw-rules {
    flex: 0 0 auto;
    margin: 0;
    grid-template-columns: calc(104 * var(--u)) calc(108 * var(--u));
    row-gap: calc(6 * var(--u));
    margin-right: calc(44 * var(--u));
  }

  .pw-rules-title,
  .pw-rule {
    font-size: calc(10 * var(--u));
    height: calc(14 * var(--u));
  }

  .form-checks {
    gap: calc(10 * var(--u));
  }

  .screen-form.is-new-user .form-checks {
    margin: calc(7 * var(--u)) 0 0 calc(0 * var(--u));
  }

  .form-checks .form-check-label {
    font-size: calc(10 * var(--u));
  }

  .btn-submit,
  .screen-form.is-new-user .btn-submit {
    width: calc(457 * var(--u));
    max-width: none;
    height: calc(74 * var(--u));
    margin: calc(25 * var(--u)) 0 0 calc(22 * var(--u));
    border: 0.74px solid rgba(255, 255, 255, 0.5);
    border-radius: calc(17.517 * var(--u));
    box-shadow: 0 1.086px 1.086px rgba(0, 0, 0, 0.25);
    font-size: calc(21.021 * var(--u));
    line-height: calc(25.655 * var(--u));
    color: var(--color-snow);
    background-image: linear-gradient(103.4deg,
        rgba(188, 163, 80, 0.95) 13.342%,
        rgba(125, 112, 71, 0.95) 50.722%,
        rgba(188, 163, 80, 0.95) 88.102%);
  }

  .screen-form.is-new-user .btn-submit {
    margin: calc(29 * var(--u)) 0 0 calc(11 * var(--u));
  }

  /* ---- Gracias ---- */


  .ty-logo {
    position: absolute;
    top: calc(99 * var(--u));
    left: calc(587 * var(--u));
    width: calc(269 * var(--u));
    height: calc(126 * var(--u));
    margin: 0;
  }

  .ty-title {
    position: absolute;
    top: calc(255 * var(--u));
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    margin: 0;
    font-size: calc(54 * var(--u));
    line-height: 1;
    letter-spacing: calc(-1.08 * var(--u));
    white-space: nowrap;
  }

  .ty-copy {
    position: absolute;
    top: calc(344 * var(--u));
    left: calc(277 * var(--u));
    width: calc(886 * var(--u));
    max-width: none;
    margin: 0;
    font-size: calc(20 * var(--u));
    line-height: 1.1;
  }

  .ty-copy p {
    margin: 0 0 calc(22 * var(--u));
  }

  .ty-video {
    position: absolute;
    left: calc(497 * var(--u));
    top: calc(486 * var(--u));
    width: calc(448 * var(--u));
    max-width: none;
    height: calc(56.5 * var(--u));
    margin: 0;
    padding: 0 0 0 calc(31.4 * var(--u));
    border-radius: calc(12 * var(--u));
    font-size: calc(18 * var(--u));
  }

  .ty-video img {
    right: calc(31.4 * var(--u));
    width: calc(20.66 * var(--u));
    height: calc(23.61 * var(--u));
  }

  .ty-question {
    position: absolute;
    top: calc(580 * var(--u));
    left: calc(277 * var(--u));
    width: calc(886 * var(--u));
    max-width: none;
    margin: 0;
    font-size: calc(20 * var(--u));
    line-height: 1.1;
  }

  .btn-ty {
    position: absolute;
    left: calc(484 * var(--u));
    top: calc(619 * var(--u));
    width: calc(457 * var(--u));
    max-width: none;
    height: calc(74 * var(--u));
    margin: 0;
    border: 0.74px solid rgba(255, 255, 255, 0.5);
    border-radius: calc(17.517 * var(--u));
    box-shadow: 0 1.086px 1.086px rgba(0, 0, 0, 0.25);
    font-size: calc(21.021 * var(--u));
    line-height: calc(25.655 * var(--u));
    color: var(--color-snow);
    background-image: linear-gradient(103.4deg,
        rgba(188, 163, 80, 0.95) 13.342%,
        rgba(125, 112, 71, 0.95) 50.722%,
        rgba(188, 163, 80, 0.95) 88.102%);
  }

  .ty-legal {
    position: absolute;
    top: calc(738.5 * var(--u));
    left: calc(259 * var(--u));
    width: calc(924 * var(--u));
    max-width: none;
    margin: 0;
    font-size: calc(12 * var(--u));
  }
}

/* ── Utilidades ────────────────────────────────────────────── */
#custom-loader {
  font-family: var(--font-sans);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
