/* Login — tipografía brand NIC
   Títulos: Times New Roman (#051d40)
   Textos medios/pequeños: TT Firs Neue (#051d40) — fallback TT Hoves si no hay archivo Firs
   CTAs: Touvlo */

@font-face {
  font-family: "Times New Roman Canva";
  src: url("../fonts/TimesNewRoman-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* TT Firs Neue: si se añade el archivo real, reemplazar estos src */
@font-face {
  font-family: "TT Firs Neue";
  src: url("../fonts/TTHoves-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Firs Neue";
  src: url("../fonts/TTHoves-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Hoves";
  src: url("../fonts/TTHoves-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Hoves";
  src: url("../fonts/TTHoves-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Touvlo";
  src: url("../fonts/Touvlo-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html.login-nic-cuenta {
  background: #fff !important;
  color: #051d40;
  /* un solo scroll de documento; evita barras dobles html/body */
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  max-height: none !important;
}

html.login-nic-cuenta body,
html.login-nic-cuenta section#main-body {
  background: #fff !important;
  color: #051d40;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

/* theme.css: section { overflow-x:hidden } → fuerza overflow-y:auto y barras en cajas */
html.login-nic-cuenta section,
html.login-nic-cuenta section.page,
html.login-nic-cuenta .nl-page,
html.login-nic-cuenta .primary-content,
html.login-nic-cuenta .container,
html.login-nic-cuenta .row,
html.login-nic-cuenta .col-12,
html.login-nic-cuenta .nl-thanks,
html.login-nic-cuenta .nl-help,
html.login-nic-cuenta .nl-hero {
  overflow: visible !important;
  max-height: none !important;
}

html.login-nic-cuenta section#main-body {
  padding: 0 !important;
  margin: 0 !important;
}

html.login-nic-cuenta section#main-body > .container,
html.login-nic-cuenta section#main-body .row,
html.login-nic-cuenta section#main-body .col-12 {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

html.login-nic-cuenta .primary-content,
html.login-nic-cuenta #main-body > .container-fluid {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

.nl-page {
  --nl-navy: #051d40;
  /* Azul títulos Canva (muestreado de https://161123.my.canva.site/ingreso-a-la-cuenta) */
  --nl-title: #004aad;
  --nl-orange: #ff7a00;
  --nl-orange-hover: #ff8f24;
  --nl-white: #ffffff;
  --nl-serif: "Times New Roman Canva", "Times New Roman", Times, Georgia, serif;
  --nl-body: "TT Firs Neue", "TT Hoves", "Montserrat", Arial, sans-serif;
  --nl-cta: "Touvlo", "TT Firs Neue", "TT Hoves", Arial, sans-serif;

  box-sizing: border-box;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
  background: #fff;
  color: var(--nl-navy);
  font-family: var(--nl-body);
}

.nl-page .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.nl-page *,
.nl-page *::before,
.nl-page *::after {
  box-sizing: border-box;
}

/* —— Hero login —— */
.nl-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4.5vw, 3.5rem);
  align-items: stretch;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.nl-hero__copy {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Título SIEMPRE en 2 líneas (no 1 ni 3) */
html.login-nic-cuenta .nl-page h1.nl-hero__title,
html.login-nic-cuenta .nl-page .nl-hero__title,
html.login-nic-cuenta .primary-content h1.nl-hero__title,
html.login-nic-cuenta .main-container h1.nl-hero__title,
html.login-nic-cuenta h1#nl-hero-title {
  margin: 0 0 1.15rem !important;
  padding: 0 !important;
  font-family: "Times New Roman Canva", "Times New Roman", Times, Georgia, serif !important;
  font-weight: 700 !important;
  /* Un poco más contenido para que “BIENVENIDO A” quepa en 1 línea del bloque de 2 */
  font-size: clamp(2.35rem, 4.2vw, 4.1rem) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.02em !important;
  text-transform: uppercase !important;
  color: #004aad !important;
  -webkit-text-fill-color: #004aad !important;
  paint-order: normal;
  text-align: left !important;
  max-width: none !important;
  text-shadow: none !important;
  background: transparent !important;
  white-space: normal !important;
}

/* Cada span = exactamente una línea en desktop */
html.login-nic-cuenta .nl-hero__title .nl-hero__line,
.nl-hero__title .nl-hero__line {
  display: block !important;
  white-space: nowrap !important;
  line-height: 0.95 !important;
  width: auto;
  max-width: none;
}

/* Lead bajo el título */
.nl-hero__lead {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  font-family: var(--nl-body);
  font-size: clamp(0.88rem, 1.35vw, 1.05rem);
  line-height: 1.4;
  color: #051d40;
  font-weight: 400;
}

/* Formulario mockup: campos izq + botón naranja der */
.nl-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: none;
}

.nl-form .alert {
  border-radius: 0.75rem;
  font-family: var(--nl-body);
  font-size: 0.85rem;
  color: #051d40;
  margin: 0;
}

.nl-form-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0.85rem 1.15rem;
  align-items: center;
  width: 100%;
}

.nl-form-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.nl-form-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 0;
}

.nl-form > .sr-only,
.nl-form-fields > .sr-only {
  position: absolute !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

/* OAuth / Google oculto en login de cuenta (solo usuario + contraseña) */
html.login-nic-cuenta .nl-oauth,
html.login-nic-cuenta .providerPreLinking,
html.login-nic-cuenta .social-signin-btns,
html.login-nic-cuenta .btn-google,
html.login-nic-cuenta a.btn-google {
  display: none !important;
}

.nl-field-wrap {
  position: relative;
  width: 100%;
  margin: 0;
  display: block;
  flex-shrink: 0;
}

/* Inputs grises (mockup) */
.nl-field {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 1rem 1.35rem;
  border: 0 !important;
  border-radius: 999px;
  background: #c5d0d8 !important;
  color: #3d4b5c !important;
  font-family: var(--nl-body) !important;
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: left;
  text-transform: none;
  outline: none;
  box-shadow: none !important;
  transition: background 0.2s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}

.nl-field::placeholder {
  color: #5a6570;
  opacity: 1;
  font-family: var(--nl-body);
  text-transform: none;
}

.nl-field:focus {
  background: #d4dee6 !important;
  box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.16) !important;
}

.nl-field:-webkit-autofill,
.nl-field:-webkit-autofill:hover,
.nl-field:-webkit-autofill:focus {
  -webkit-text-fill-color: #3d4b5c;
  caret-color: #3d4b5c;
  box-shadow: 0 0 0 1000px #c5d0d8 inset;
  transition: background-color 99999s ease-out;
}

.nl-captcha {
  margin: 0.15rem 0;
  color: #051d40;
  font-family: var(--nl-body);
  font-size: 0.85rem;
}

.nl-captcha .g-recaptcha,
.nl-captcha iframe {
  margin: 0 auto;
}

.nl-field-wrap .nl-field {
  padding-right: 3rem;
  margin: 0 !important;
}

.nl-eye {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3d4b5c;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nl-eye:hover,
.nl-eye:focus {
  opacity: 1;
  outline: none;
  transform: translateY(-50%) scale(1.06);
}

/* Botón: un poco más alto que un input; texto siempre en 1 línea */
.nl-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 1.05rem clamp(1.25rem, 2.2vw, 2.25rem);
  border: 0 !important;
  border-radius: 999px;
  background: var(--nl-orange) !important;
  color: #fff !important;
  font-family: var(--nl-cta) !important;
  font-size: clamp(0.62rem, 1.05vw, 0.82rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap !important;
  box-sizing: border-box;
  cursor: pointer;
  box-shadow: none !important;
  transition:
    transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1),
    filter 0.2s ease,
    box-shadow 0.25s ease;
}

.nl-submit:hover,
.nl-submit:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
  outline: none;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(242, 92, 31, 0.28) !important;
}

.nl-form-hints {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0.65rem 1.15rem;
  align-items: start;
}

.nl-remember {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  cursor: pointer;
  color: #051d40;
  font-family: var(--nl-body);
  font-size: clamp(0.74rem, 1.05vw, 0.84rem);
  font-weight: 400;
  line-height: 1.4;
}

.nl-remember input {
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  accent-color: var(--nl-orange);
  width: 0.9rem;
  height: 0.9rem;
}

.nl-forgot {
  display: block;
  margin: 0;
  font-family: var(--nl-body);
  font-size: clamp(0.74rem, 1.05vw, 0.84rem);
  font-weight: 400;
  line-height: 1.4;
  color: #051d40 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.nl-forgot:hover,
.nl-forgot:focus-visible {
  color: var(--nl-orange) !important;
  text-decoration: underline !important;
  outline: none;
}

/* CTA crear cuenta (dentro del bloque del form) */
.nl-register {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.95rem;
}

.nl-register__text {
  margin: 0;
  font-family: var(--nl-body);
  font-size: clamp(0.84rem, 1.2vw, 0.98rem);
  font-weight: 400;
  line-height: 1.45;
  color: #051d40;
  text-align: left;
  max-width: 100%;
}

.nl-register__ec {
  color: #e8a317;
  font-weight: 700;
  white-space: nowrap;
}

.nl-register__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.4rem;
  padding: 1rem clamp(1.25rem, 2.2vw, 2rem);
  border-radius: 999px;
  background: var(--nl-orange) !important;
  color: #fff !important;
  font-family: var(--nl-cta) !important;
  font-size: clamp(0.68rem, 1.15vw, 0.88rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none !important;
  line-height: 1.2;
  white-space: nowrap !important;
  box-shadow: none !important;
  box-sizing: border-box;
  transition:
    transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1),
    filter 0.2s ease,
    box-shadow 0.25s ease;
}

.nl-register__btn:hover,
.nl-register__btn:focus-visible {
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 10px 24px rgba(242, 92, 31, 0.28) !important;
  outline: none;
}

/* Hero foto: llena el 100% del alto de la fila del grid (columna del form) */
.nl-hero__photo {
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  align-self: stretch;
  justify-self: stretch;
  aspect-ratio: auto;
  border-radius: 1.65rem;
  overflow: hidden;
  background: #ffe14a;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Absoluta: cubre el área estirada del grid, no la altura natural del archivo */
.nl-hero__photo img,
html.login-nic-cuenta .nl-hero__photo img,
html.login-nic-cuenta section#main-body .nl-hero__photo img {
  position: absolute !important;
  inset: 0 !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  outline: none !important;
  image-rendering: auto;
}

/* —— Ayuda —— */
.nl-help {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: clamp(3rem, 7vw, 5rem);
  background: transparent !important;
}

.nl-help__media {
  min-width: 0;
  width: 100%;
  background: transparent !important;
  box-shadow: none !important;
}

html.login-nic-cuenta .nl-page .nl-help__title,
html.login-nic-cuenta h2#nl-help-title,
html.login-nic-cuenta .primary-content h2.nl-help__title {
  margin: 0 0 1.15rem !important;
  padding: 0 !important;
  font-family: "Times New Roman Canva", "Times New Roman", Times, Georgia, serif !important;
  font-weight: 700 !important;
  font-size: clamp(2.9rem, 5.8vw, 4.6rem) !important;
  line-height: 0.9 !important;
  letter-spacing: -0.02em !important;
  text-transform: uppercase !important;
  color: #004aad !important;
  -webkit-text-fill-color: #004aad !important;
  text-shadow: none !important;
  background: transparent !important;
}

/* Contenedor con recorte redondeado; la img mantiene proporción natural 3:2 del Canva */
.nl-help__photo {
  position: relative;
  width: 100%;
  max-width: 38rem;
  border-radius: 1.5rem;
  overflow: hidden;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  filter: none !important;
  line-height: 0;
}

.nl-help__photo img,
html.login-nic-cuenta section#main-body .nl-help__photo img,
html.login-nic-cuenta .nl-page .nl-help__photo img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  aspect-ratio: auto !important;
  object-fit: unset !important;
  object-position: initial !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  filter: none !important;
  outline: none !important;
}

.nl-help__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  justify-content: center;
  background: transparent !important;
  min-width: 0;
}

.nl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin-left: 0;
  padding: 1.05rem 1.35rem;
  border-radius: 999px;
  background: var(--nl-orange) !important;
  color: #fff !important;
  font-family: var(--nl-cta) !important;
  font-size: clamp(0.72rem, 1.25vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  line-height: 1.2;
  box-shadow: none !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1), filter 0.15s ease;
}

.nl-btn:hover,
.nl-btn:focus-visible {
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: none !important;
  outline: none;
}

/* —— Gracias —— */
.nl-thanks {
  text-align: center;
  width: 100%;
  max-width: none;
}

/* Imagen al 100% del layout (misma columna que el resto de secciones) */
.nl-thanks__photo,
html.login-nic-cuenta .nl-thanks__photo,
html.login-nic-cuenta .nl-page .nl-thanks__photo {
  max-width: none;
  width: 100%;
  height: clamp(9.5rem, 22vw, 13.5rem);
  margin: 0 0 1.5rem;
  border-radius: 1.5rem;
  overflow: hidden !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  background: #f4f4f4;
  box-shadow: none !important;
  border: 0 !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.nl-thanks__photo::-webkit-scrollbar,
html.login-nic-cuenta .nl-thanks__photo::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

.nl-thanks__photo img,
html.login-nic-cuenta section#main-body .nl-thanks__photo img,
html.login-nic-cuenta .nl-thanks__photo img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center center;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  pointer-events: none;
}

/* Texto un poco más angosto que la imagen */
html.login-nic-cuenta .nl-page .nl-thanks__title,
html.login-nic-cuenta h2#nl-thanks-title {
  margin: 0 auto !important;
  max-width: 38rem;
  width: 100%;
  padding: 0 0.75rem !important;
  font-family: "Times New Roman Canva", "Times New Roman", Times, Georgia, serif !important;
  font-weight: 700 !important;
  font-size: clamp(3rem, 6vw, 4.85rem) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.02em !important;
  text-transform: uppercase !important;
  color: #004aad !important;
  -webkit-text-fill-color: #004aad !important;
  text-shadow: none !important;
  text-align: center !important;
  box-sizing: border-box;
}

/* —— Responsive: pantalla chica = ancho completo —— */
@media (max-width: 900px) {
  html.login-nic-cuenta .nl-page#nl-login-page,
  html.login-nic-cuenta #nl-login-page.nl-page,
  html.login-nic-cuenta .nl-page {
    padding: 1.25rem 1rem 2.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .nl-hero,
  .nl-help {
    grid-template-columns: 1fr !important;
    gap: 1.15rem;
    margin-bottom: 2.25rem;
    width: 100%;
  }

  .nl-hero__copy,
  .nl-form,
  .nl-form-main,
  .nl-form-fields,
  .nl-form-action,
  .nl-form-hints,
  .nl-register {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .nl-hero__photo {
    order: -1;
    position: relative;
    max-width: 100% !important;
    width: 100% !important;
    height: auto;
    min-height: 0 !important;
    max-height: 18rem;
    aspect-ratio: 5 / 4;
    margin: 0 auto 0.35rem;
    justify-self: stretch;
    overflow: hidden;
  }

  html.login-nic-cuenta .nl-hero__photo img,
  html.login-nic-cuenta section#main-body .nl-hero__photo img {
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 30% !important;
  }

  /* Título grande a todo el ancho, centrado en móvil */
  html.login-nic-cuenta .nl-page h1.nl-hero__title,
  html.login-nic-cuenta .nl-page .nl-hero__title,
  html.login-nic-cuenta .primary-content h1.nl-hero__title,
  html.login-nic-cuenta .main-container h1.nl-hero__title,
  html.login-nic-cuenta h1#nl-hero-title,
  html.login-nic-cuenta #nl-hero-title.nl-hero__title {
    font-size: calc((100vw - 2rem) / 10.2) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.03em !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 0.7rem !important;
    padding: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  html.login-nic-cuenta .nl-hero__title .nl-hero__line,
  html.login-nic-cuenta #nl-hero-title .nl-hero__line,
  .nl-hero__title .nl-hero__line {
    display: block !important;
    white-space: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    line-height: 1.05 !important;
    overflow: visible !important;
    text-align: center !important;
  }

  .nl-hero__lead {
    text-align: center !important;
    margin: 0 0 1.1rem !important;
    max-width: 100% !important;
    width: 100% !important;
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
  }

  .nl-field,
  .nl-field-wrap,
  .nl-submit,
  .nl-register__btn {
    width: 100% !important;
    max-width: 100% !important;
  }

  .nl-help__photo {
    max-width: none;
    width: 100%;
  }

  .nl-help__title,
  .nl-thanks__title {
    text-align: center;
  }

  .nl-form-main,
  .nl-form-hints {
    grid-template-columns: 1fr !important;
  }

  .nl-submit {
    min-height: 0;
    height: auto;
    white-space: nowrap !important;
    padding: 1.05rem 1.25rem;
    font-size: clamp(0.62rem, 3.1vw, 0.82rem);
    letter-spacing: 0.01em;
  }

  .nl-register__btn {
    white-space: nowrap !important;
    font-size: clamp(0.62rem, 3.1vw, 0.82rem);
    padding: 1rem 1.25rem;
  }

  .nl-form {
    margin: 0;
  }

  .nl-help__actions {
    align-items: stretch;
    width: 100%;
  }

  .nl-btn {
    margin-left: 0;
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 480px) {
  html.login-nic-cuenta .nl-page#nl-login-page,
  html.login-nic-cuenta .nl-page {
    padding: 1rem 0.85rem 2.25rem !important;
  }

  html.login-nic-cuenta h1#nl-hero-title,
  html.login-nic-cuenta #nl-hero-title.nl-hero__title {
    font-size: calc((100vw - 1.7rem) / 10) !important;
  }
}

/* ========== Animaciones (cuenta NIC) — sin mover imágenes ========== */
@keyframes nl-fade-up {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nl-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Entrada hero: texto y form */
html.login-nic-cuenta .nl-hero__title {
  animation: nl-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.login-nic-cuenta .nl-hero__lead {
  animation: nl-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

html.login-nic-cuenta .nl-form-main {
  animation: nl-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

html.login-nic-cuenta .nl-form-hints {
  animation: nl-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

html.login-nic-cuenta .nl-register {
  animation: nl-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

html.login-nic-cuenta .nl-form > .alert,
html.login-nic-cuenta .nl-form > .nl-captcha {
  animation: nl-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

/* Fotos: solo opacidad al entrar (sin translate/scale) */
html.login-nic-cuenta .nl-hero__photo {
  animation: nl-fade-in 0.85s ease 0.12s both;
}

html.login-nic-cuenta .nl-page img,
html.login-nic-cuenta .nl-hero__photo img,
html.login-nic-cuenta .nl-help__photo img,
html.login-nic-cuenta .nl-thanks__photo img {
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

/* Focus fields un poco más suave */
html.login-nic-cuenta .nl-field {
  transition: filter 0.2s ease, background 0.2s ease, box-shadow 0.25s ease;
}

html.login-nic-cuenta .nl-field:focus {
  box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.16) !important;
}

html.login-nic-cuenta .nl-submit,
html.login-nic-cuenta .nl-btn,
html.login-nic-cuenta .nl-register__btn {
  transition:
    transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1),
    filter 0.2s ease,
    box-shadow 0.25s ease;
}

html.login-nic-cuenta .nl-submit:hover,
html.login-nic-cuenta .nl-submit:focus-visible,
html.login-nic-cuenta .nl-btn:hover,
html.login-nic-cuenta .nl-btn:focus-visible,
html.login-nic-cuenta .nl-register__btn:hover,
html.login-nic-cuenta .nl-register__btn:focus-visible {
  box-shadow: 0 10px 24px rgba(242, 92, 31, 0.28) !important;
}

html.login-nic-cuenta .nl-forgot {
  transition: color 0.2s ease;
}

html.login-nic-cuenta .nl-eye {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

html.login-nic-cuenta .nl-eye:hover,
html.login-nic-cuenta .nl-eye:focus {
  transform: translateY(-50%) scale(1.08);
}

/* Secciones inferiores: revelado al scroll (texto/UI; fotos solo fade) */
html.login-nic-cuenta .nl-help__title,
html.login-nic-cuenta .nl-help__actions .nl-btn,
html.login-nic-cuenta .nl-thanks__title {
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

html.login-nic-cuenta .nl-help__photo,
html.login-nic-cuenta .nl-thanks__photo {
  opacity: 0;
  transition: opacity 0.75s ease;
}

html.login-nic-cuenta .nl-help__actions .nl-btn:nth-child(1) {
  transition-delay: 0.06s;
}

html.login-nic-cuenta .nl-help__actions .nl-btn:nth-child(2) {
  transition-delay: 0.14s;
}

html.login-nic-cuenta .nl-help.nl-inview .nl-help__title,
html.login-nic-cuenta .nl-help.nl-inview .nl-help__actions .nl-btn,
html.login-nic-cuenta .nl-thanks.nl-inview .nl-thanks__title {
  opacity: 1;
  transform: translateY(0);
}

html.login-nic-cuenta .nl-help.nl-inview .nl-help__photo,
html.login-nic-cuenta .nl-thanks.nl-inview .nl-thanks__photo {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .nl-submit,
  .nl-btn,
  .nl-field,
  .nl-register__btn,
  html.login-nic-cuenta .nl-field,
  html.login-nic-cuenta .nl-submit,
  html.login-nic-cuenta .nl-btn,
  html.login-nic-cuenta .nl-register__btn,
  html.login-nic-cuenta .nl-forgot,
  html.login-nic-cuenta .nl-eye,
  html.login-nic-cuenta .nl-help__title,
  html.login-nic-cuenta .nl-help__actions .nl-btn,
  html.login-nic-cuenta .nl-thanks__title,
  html.login-nic-cuenta .nl-help__photo,
  html.login-nic-cuenta .nl-thanks__photo {
    transition: none !important;
    animation: none !important;
  }

  html.login-nic-cuenta .nl-hero__title,
  html.login-nic-cuenta .nl-hero__lead,
  html.login-nic-cuenta .nl-form-main,
  html.login-nic-cuenta .nl-form-hints,
  html.login-nic-cuenta .nl-register,
  html.login-nic-cuenta .nl-form > .alert,
  html.login-nic-cuenta .nl-form > .nl-captcha,
  html.login-nic-cuenta .nl-hero__photo {
    animation: none !important;
  }

  html.login-nic-cuenta .nl-help__title,
  html.login-nic-cuenta .nl-help__actions .nl-btn,
  html.login-nic-cuenta .nl-thanks__title,
  html.login-nic-cuenta .nl-help__photo,
  html.login-nic-cuenta .nl-thanks__photo {
    opacity: 1 !important;
    transform: none !important;
  }

  .nl-submit:hover,
  .nl-btn:hover,
  .nl-register__btn:hover,
  html.login-nic-cuenta .nl-submit:hover,
  html.login-nic-cuenta .nl-btn:hover,
  html.login-nic-cuenta .nl-register__btn:hover {
    transform: none;
  }

  html.login-nic-cuenta .nl-eye:hover,
  html.login-nic-cuenta .nl-eye:focus {
    transform: translateY(-50%);
  }
}
