/* ============================================================
   Media queries — dispositivos móviles
   ============================================================ */
@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Hero móvil con su propio fondo */
  .section-email {
    background-image: url('../img/bg-movil.webp');
    background-color: var(--color-bg-hero);
    background-size: cover;
    background-position: center top;
    justify-content: flex-start !important;
    min-height: 100svh;
  }

  /* Form móvil con su propio fondo */
  .section-form {
    background-image: url('../img/bg-form-section.webp');
    background-color: var(--color-bg-hero);
    background-size: cover;
    background-position: center top;
    min-height: 100svh;
    padding: 32px 0;
  }

  /* Thank-you móvil */
  .section-ty {
    background-size: cover;
    background-position: center top;
    min-height: 100svh;
    height: auto;
    padding: 70px 25px;
  }

  #section-email {
    flex-direction: column !important;
    width: 100vw !important;
    overflow: hidden !important;
    padding: 33px 33px 20px 20px;
    margin: 0 !important;
  }

  #section-email .illustration-side {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: center !important;
    display: flex !important;
    align-items: flex-start !important;
  }

  #section-email .illustration-side img {
    width: 314px !important;
    height: 314px !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-top: 58px !important;
    display: block !important;
  }

  #section-email .section-email-form-container {
    width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  #email-form {
    width: 100% !important;
    align-items: start;
  }

  #email-form .btn-registro {
    width: 282px !important;
    border-radius: 23px;
  }

  #email-form .form-control {
    width: 327px;
    height: 50px;
  }

  #registration-form {
    padding-left: 29px !important;
    padding-right: 29px !important;
    width: 100% !important;
  }

  #registration-form .registration-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /*
   * Movil: aplanar columnas para poder reordenar campos
   * sin afectar el layout de escritorio.
   */
  #registration-form .registration-column {
    display: contents;
  }

  #registration-form .registration-column-left .mb-3:nth-child(1) {
    order: 1;
  }

  #registration-form .registration-column-right .mb-3:nth-child(1) {
    order: 2;
  }

  #registration-form .registration-column-left .mb-3:nth-child(2) {
    order: 3;
  }

  #registration-form .registration-column-right .mb-3:nth-child(2) {
    order: 4;
  }

  #registration-form .registration-column-left .mb-3:nth-child(3) {
    order: 5;
  }

  #registration-form .registration-column-right .mb-3:nth-child(3) {
    order: 6;
  }

  #registration-form .registration-column-left .mb-3:nth-child(4) {
    order: 7;
  }

  #registration-form .registration-column-right .mb-3:nth-child(4) {
    order: 8;
  }

  #registration-form .registration-column-right .mb-3:nth-child(5) {
    order: 9;
  }

  #registration-form .title-mobile {
    text-align: center;
    font-family: var(--font-body);
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 26px;
    color: var(--color-text-primary);
  }

  #registration-form .form-label {
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
  }

  #registration-form .form-control {
    border: 1px solid #fff !important;
    border-radius: var(--radius-field);
    background-color: transparent;
    color: var(--color-text-black);
  }

  #registration-form #form-field-Phone {
    border: none !important;
  }

  #registration-form #form-field-ladaSelect {
    border-top-right-radius: 9px;
    border-bottom-right-radius: 9px;
  }

  /*
   * iOS/Chrome hace zoom al enfocar campos con fuente menor a 16px.
   * Mantener estos controles en 16px evita ese zoom sin cambiar el layout.
   */
  #section-form input,
  #section-form select,
  #section-form textarea,
  #section-form .form-control,
  #section-form .form-select,
  #section-form .choices__inner,
  #section-form .choices__input,
  #section-form .choices__item,
  #section-form #form-field-ladaSelect {
    font-size: 16px !important;
    line-height: 1.25;
  }

  #registration-form .link-register {
    font-family: var(--font-body);
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
    color: var(--color-text-primary);
  }

  #registration-form .btn-registro {
    width: 282px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #section-ty .ty-text-container-mobile p {
    width: 333px;
    height: 65px;
    color: var(--color-text-primary);
    text-align: center;
    font-size: 25px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px;
    font-family: var(--font-body);
    margin-top: 44px;
    margin-bottom: 44px;
  }

  #section-ty .illustration-side-title {
    margin-top: 53px;
    padding: 0px !important;
    width: 100%;
    height: 77px;
    display: flex;
    justify-content: center;
  }

  #section-ty .illustration-side-title img,
  #section-email .illustration-side-title img,
  #section-form .illustration-side-title img {
    width: min(240px, 70vw);
    height: auto;
  }

  #section-ty .btn-link-ty {
    width: min(282px, calc(100vw - 48px));
  }

  .ty-text-container {
    padding-bottom: 48px;
  }

  .ty-icons-container {
    flex-direction: column;
    padding-top: 4px;
    padding-bottom: 4px;
    gap: 8px;
  }

  .title-email-form {
    width: 328px;
    line-height: 87px;
  }

  .description-email-form {
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: 18px;
    width: 282px;
    height: 133px;
  }

  #section-form .form-text-title {
    text-align: left !important;
    width: 100%;
    align-self: flex-start;
    padding-left: 29px;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    font-size: 30px;
    font-style: normal;
    font-weight: 500;
    line-height: 40px;
    font-variant: all-small-caps;
  }

  .ty-text-title {
    width: 222px;
    height: 59px;
    text-align: left;
    align-self: flex-start;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    font-size: 30px;
    font-style: normal;
    font-weight: 500;
    line-height: 30px;
    font-variant: all-small-caps;
  }

  .ty-texts-group {
    width: 343px;
  }

  .ty-text-group-request-title {
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px;
  }

  .ty-text-group-request-subtitle {
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 20px;
    text-align: center;
    padding: 0 20px;
  }

  .container-ty-information {
    width: 329px;
    height: auto;
  }

  .ty-text-group-request-subtitle-information {
    text-align: center;
    font-size: 25px;
    font-style: normal;
    font-weight: 400;
    line-height: 27px;
    text-transform: uppercase;
    width: 261px;
    height: 143px;
  }
}
