
.iudx-Login {
  --azul: #113a54;
  --rojo: #c7322c;
  --gris: #f5f7fa;
  --borde: #d6dbe0;
  font-family: "Lato", system-ui, Segoe UI, Roboto, Arial, sans-serif;
}
.iudx-Login * {
  box-sizing: border-box;
}


.iudx-Login__wrap {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background-image: url("https://test.iudigital.edu.co/LOGIN.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #fff;
}


.iudx-Login__left {
  position: relative;
  z-index: 1;
  padding: clamp(10px, 2vh, 30px) clamp(15px, 3vw, 40px);
  width: 100%;
  max-width: 640px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-left: clamp(8rem, 13rem, 12rem);
  height: 100vh;
}


.iudx-Card {
  width: min(420px, 90%);
  padding: clamp(8px, 2vh, 24px) clamp(12px, 2vw, 24px);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  box-shadow: none;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.iudx-Header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(4px, 1vh, 12px);
  text-align: center;
  flex-shrink: 0;
}


.iudx-Logo {
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}


.iudx-Title {
  font-size: clamp(24px, 5vw, 42px);
  line-height: 1.1;
  margin: 0;
  color: var(--azul);
  font-weight: 600;
  text-align: center;
  font-family: "Metropolis" !important;
  white-space: nowrap;
}
.iudx-Rule {
  margin: clamp(4px, 1vh, 12px) 0 clamp(8px, 2vh, 20px);
  border: 0;
  border-top: 1px solid #193d57;
}


.iudx-Buttons {
  text-align: center;
  margin-bottom: 1rem;
}
.iudx-Buttons p,
.iudxM_LoginForm p {
  font-family: "Roboto Condensed" !important;
}


.iudx-Btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(32px, 4vh, 48px);
  border-radius: 12px;
  font-weight: bold;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  font-size: clamp(12px, 1.8vw, 15px);
  transition: all 0.25s ease;
  font-family: Metropolis !important;
  margin-top: 10px;
  padding: 2rem;
}
.iudx-Btn--primary {
  background: var(--rojo) !important;
  color: #fff;
  font-family: "Lato", system-ui, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: bold;
}

.iudx-Btn--primary:hover{
  background-color: #193d57 !important;
}


.iudx-Helps {
  margin: clamp(6px, 1.5vh, 14px) 0 clamp(3px, 0.8vh, 6px);
  text-align: center;
  color: #4b5563;
  display: flex;
  flex-direction: column;
  font-family: "Roboto Condensed" !important;
  font-size: clamp(11px, 1.6vw, 13px);
}
.iudx-Helps .iudx-Link {
  display: block;
  text-decoration: none;
  color: var(--azul);
  font-weight: 400;
  font-size: 20px;
}


.iudx-Badge {
  text-align: center;
  margin: clamp(3px, 0.8vh, 8px) 0 clamp(4px, 1vh, 10px);
}
.iudx-Badge img {
  height: 3rem;
  width: auto;
  margin: auto;
}


.iudx-Socials {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 1.2vw, 10px);
  margin: clamp(3px, 0.8vh, 6px) 0 clamp(4px, 0.8vh, 8px);
}
.iudx-Social {
  width: clamp(16px, 1.8vw, 13px);
  height: clamp(16px, 1.8vw, 13px);
  display: inline-block;
  background-color: var(--icon-color, #193d57);
  -webkit-mask: var(--mask) no-repeat center / contain;
  mask: var(--mask) no-repeat center / contain;
  opacity: 0.95;
  transition: background-color 0.2s ease, opacity 0.2s ease,
    transform 0.12s ease;
}
.iudx-Social--fb {
  background: url("https://test.iudigital.edu.co/Facebook.svg") no-repeat center
    center;
  background-size: contain;
  display: inline-block;
  transition: transform 0.2s ease, filter 0.3s ease;
}
.iudx-Social--ig {
  --mask: url("https://cdn.simpleicons.org/instagram");
}
.iudx-Social--x {
  --mask: url("https://cdn.simpleicons.org/x");
}
.iudx-Social--tt {
  --mask: url("https://cdn.simpleicons.org/tiktok");
}
.iudx-Social--yt {
  --mask: url("https://cdn.simpleicons.org/youtube");
}
.iudx-Social--sp {
  --mask: url("https://cdn.simpleicons.org/spotify");
}

.iudx-Login {
  --icon-color: #193d57;
  --icon-hover: #c7322c;
}

.iudx-Web {
  display: block;
  text-align: center;
  font-weight: 800;
  color: var(--azul);
  text-decoration: none;
  margin-top: clamp(3px, 0.8vh, 6px);
}
.iudx-Web img {
  width: 16rem !important;
  height: auto;
  max-height: clamp(30px, 4vh, 60px);
  object-fit: contain;
  margin: auto;
}


.ic-Login {
  display: none !important;
}


@media (min-width: 1024px) and (min-height: 600px) {
  .iudx-Card {
    width: min(560px, 100%);
  }
  .iudx-Header {
    gap: 0;
  }
  .iudx-Logo {
    height: clamp(12rem, 14rem, 14rem);
  }
  .iudx-Title {
    font-size: clamp(28px, 4vw, 42px);
  }
  .iudx-Rule {
    margin: 1rem 0;
  }
  .iudx-Btn {
    height: clamp(48px, 6vh, 60px);
    font-size: clamp(16px, 2vw, 18px);
    margin-top: clamp(8px, 1.5vh, 12px);
  }
  .iudx-Helps {
    font-size: clamp(14px, 1.8vw, 16px);
  }
  .iudx-Badge {
    margin: 12px 0 0;
  }
  .iudx-Badge img {
    height: 58px;
  }
  .iudx-Socials {
    gap: clamp(10px, 1.8vw, 21px);
  }
  .iudx-Social {
    width: clamp(14px, 2.2vw, 18px);
    height: clamp(14px, 2.2vw, 18px);
  }
  .iudx-Web {
    margin-top: clamp(8px, 1.5vh, 12px);
  }
  .iudx-Web img {
    max-height: clamp(50px, 13rem, 13rem);
  }
}


.mobile-only {
  display: none;
}


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

.iudxM-Login {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  font-family: "Metropolis", "Roboto", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #193d57;
  display: flex;
  flex-direction: column;
}

.iudxM-TopBar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 12px 16px;
  z-index: 10;
}

.iudxM-TopBadge {
  display: flex;
  align-items: center;
  text-decoration: none;
  justify-content: flex-end;
}

.iudxM-TopBadge img {
  max-width: 160px;
  height: auto;
  display: block;
}

.iudxM-Main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 80px 24px 40px;
  overflow-y: auto;
  position: relative;
  z-index: 2;
}

.iudxM-Brand {
  text-align: center;
  margin-bottom: 30px;
}

.iudxM-Logo {
  width: 120px;
  height: auto;
  margin: 0 auto 15px;
}

.iudxM-Title {
  margin: 4px 0 6px;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.25;
  font-family: "Metropolis" !important;
  color: #113a54;
}

.iudxM-Description {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 20px;
  line-height: 1.4;
  color: #193d57;
  text-align: center;
  margin: 15px 0;
  font-weight: 400;
}

.iudxM-Rule {
  border: 0;
  border-top: 1px solid #193d57;
  width: 100%;
  margin: 20px auto;
}

.iudxM-Card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: 20px;
}

.iudxM-Form {
  width: 100%;
}

.iudxM-Instruction {
  font-family: "Roboto Condensed";
  font-size: 20px;
  color: #193d57;
  text-align: center;
  font-weight: 400;
}

.iudxM-Btn {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: none;
  margin: 8px 0;
  height: 50px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: center;
  text-decoration: none;
  line-height: 50px;
  font-family: "Metropolis", sans-serif;
}

.iudxM-Btn--primary {
  background: #c7322c !important;
  color: #fff;
}

.iudxM-Helps {
  text-align: center;
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}

.iudxM-Link {
  display: block;
  color: #193d57;
  text-decoration: none;
  margin: 8px 0;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 400;
  font-size: 20px;
}

.iudxM-Socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 20px 0;
}

.iudx-Social {
  width: 24px;
  height: 24px;
  display: inline-block;
  background-color: #193d57;
  -webkit-mask: var(--mask) no-repeat center / contain;
  mask: var(--mask) no-repeat center / contain;
  opacity: 0.9;
}

.iudx-Social--fb {
  --mask: url("https://test.iudigital.edu.co/Facebook.svg");
}
.iudx-Social--ig {
  --mask: url("https://cdn.simpleicons.org/instagram");
}
.iudx-Social--x {
  --mask: url("https://cdn.simpleicons.org/x");
}
.iudx-Social--tt {
  --mask: url("https://cdn.simpleicons.org/tiktok");
}
.iudx-Social--yt {
  --mask: url("https://cdn.simpleicons.org/youtube");
}
.iudx-Social--sp {
  --mask: url("https://cdn.simpleicons.org/spotify");
}

.iudxM-Hero {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35%;
  z-index: 1;
}

.iudxM-Hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center bottom;
}

/* MEDIA QUERIES AJUSTADAS PARA TABLETS */

/* Tablets y dispositivos más grandes - mostrar versión escritorio */
@media (min-width: 800px) {
  .desktop-only {
    display: flex !important;
  }

  .mobile-only {
    display: none !important;
  }
}

/* Solo móviles - mostrar versión móvil */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }
}

/* Ajustes específicos para tablets en landscape */
@media (min-width: 800px) and (max-height: 600px) {
  .iudx-Login__left {
    margin-left: clamp(4rem, 8rem, 10rem);
  }

  .iudx-Card {
    width: min(380px, 85%);
  }
}

/* Altura muy pequeña - Formulario ultra compacto */
@media (max-height: 400px) {
  .iudx-Card {
    padding: clamp(4px, 1vh, 8px) clamp(8px, 1.5vw, 12px);
  }
  .iudx-Header {
    gap: clamp(2px, 0.5vh, 4px);
  }
  .iudx-Logo {
    max-height: clamp(30px, 4vh, 50px);
  }
  .iudx-Title {
    font-size: clamp(12px, 2.5vw, 18px);
  }
  .iudx-Rule {
    margin: clamp(2px, 0.5vh, 4px) 0 clamp(4px, 1vh, 8px);
  }
  .iudx-Btn {
    height: clamp(24px, 3vh, 32px);
  }
  .iudx-Badge img {
    height: clamp(16px, 2vh, 24px);
  }
  .iudx-Social {
    width: clamp(14px, 1.5vw, 10px);
    height: clamp(14px, 1.5vw, 10px);
  }
}

/* lemus */
@media (min-width: 767px) and (max-width: 768px) {
  .iudxM-Btn {
    width: 50%;
    margin: 0 auto !important;
  }

  /* .iudxM-Main {
    max-height: 6vh !important;
  }

  .iudxM-Hero {
    height: 100% !important;
  } */
}

/* AJUSTES ESPECÍFICOS PARA TABLETS - LOGO MÁS GRANDE PERO CENTRADO CON FORMULARIO */
@media (min-width: 800px) and (max-width: 1024px) {
  .iudx-Login__wrap {
    background-image: url("https://test.iudigital.edu.co/tablet.png");
    background-position: 25% center !important;
    justify-content: flex-start !important;
  }

  .iudx-GoHome--desktop{
    left: 2rem !important;
  }

  .iudx-Login__left {
    margin-left: 3rem !important;
    justify-content: flex-start;
    padding: 20px;
    max-width: 500px;
  }

  .iudx-Card {
    width: min(380px, 85%) !important;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .iudx-Header {
    text-align: center !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .iudx-Logo {
    margin: 0 auto 20px !important;
    display: block !important;
    width: 180px !important;
    height: auto !important;
  }
}

/* Para tablets más pequeñas (800px) */
@media (min-width: 800px) and (max-width: 900px) {
  .iudx-Login__wrap {
    background-position: 46% center !important;
  }

  .iudx-Login__left {
    margin-left: 2rem !important;
  }

  .iudx-Card {
    width: min(360px, 80%) !important;
  }

  .iudx-Logo {
    width: 20rem !important; 
  }
}

/* Para tablets muy pequeñas */
@media (min-width: 800px) and (max-width: 800px) {
  .iudx-Login__wrap {
    background-position: 35% center !important;
  }

  .iudx-Login__left {
    margin-left: 1.5rem !important;
  }

  .iudx-Card {
    width: min(340px, 75%) !important;
  }


}

/* Para tablets en landscape */
@media (min-width: 800px) and (max-height: 600px) {
  .iudx-Login__wrap {
    background-position: 25% center !important;
  }

  .iudx-Login__left {
    margin-left: 2rem !important;
  }

  .iudx-Card {
    width: min(320px, 70%) !important;
    padding: 15px 20px !important;
  }

  .iudx-Logo {
    width: 140px !important; /* Un poco más pequeño en landscape */
    margin-bottom: 15px !important;
  }
}

/* Asegurar que todo el contenido del formulario esté centrado */
@media (min-width: 800px) {
  .iudx-Form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .iudx-Buttons,
  .iudx-Helps,
  .iudx-Badge,
  .iudx-Socials,
  .iudx-Web {
    width: 100%;
    text-align: center !important;
  }

  .iudx-Title {
    text-align: center !important;
    width: 100%;
  }
}

/* CORRECCIÓN COMPLETA PARA MÓVILES - ELIMINAR POSITION FIXED */
@media (max-width: 768px) {
  .iudx-Badge {
    height: 3rem;
  }
  /* Eliminar position fixed y overflow hidden del contenedor principal */
  .iudxM-Login {
    position: relative !important; /* Cambiar de fixed a relative */
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important; /* Altura automática */
    background: #ffffff;
    overflow: visible !important; /* Permitir scroll normal */
    min-height: 100vh; /* Mínimo altura de viewport */
  }

  .iudxM-Main {
    padding: 80px 24px 0 !important;
    min-height: auto;
    display: flex;
    flex-direction: column;
    overflow: visible !important;
    flex: none !important;
  }

  .iudxM-Content {
    flex: 1;
    position: relative;
    z-index: 2;
    padding-bottom: 20px;
  }

  .iudxM-Hero {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    width: 100%;
    height: 200px !important;
    z-index: 1;
    margin-top: auto;
  }

  .iudxM-Hero img {
    width: 100%;
    height: auto !important;
    object-fit: cover;
    object-position: center top;
  }

  .iudxM-Socials {
    margin: 25px 0 30px !important;
  }

  /* Permitir scroll normal en body y html */
  html,
  body {
    overflow: auto !important; /* Permitir scroll */
    height: auto !important;
  }
}

/* Para móviles más pequeños */
@media (max-width: 428px) {
  .iudxM-Main {
    padding: 70px 20px 0 !important;
  }

  .iudxM-Hero {
    height: 180px !important;
  }

  .iudxM-Socials {
    margin: 0 !important;
  }
}

/* Para móviles muy altos (926px de altura) */
@media (max-width: 768px) and (min-height: 800px) {
  .iudxM-Hero {
    height: 220px !important;
  }
}

/* Para móviles en landscape */
@media (max-width: 768px) and (orientation: landscape) {
  .iudxM-Hero {
    height: 150px !important;
  }

  .iudxM-Main {
    padding: 60px 20px 0 !important;
  }
}

/* Para móviles con muy poca altura */
@media (max-width: 768px) and (max-height: 600px) {
  .iudxM-Hero {
    height: 120px !important;
  }

  .iudxM-Socials {
    margin: 0 !important;
  }
}

/* CORRECCIÓN RADICAL PARA ELIMINAR ESPACIOS EN MÓVILES */
@media (max-width: 768px) {
  .iudxM-Link {
    font-size: 18px;
  }

  .iudxM-Login {
    position: relative !important;
    min-height: 100vh;
    height: auto !important;
    display: flex;
    flex-direction: column;
  }

  .iudxM-Main {
    padding: 70px 20px 0 !important;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .iudxM-Content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 0 !important;
  }

  .iudxM-Card {
    margin-bottom: 0 !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .iudxM-Form {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
  }

  /* ELIMINAR TODOS LOS MÁRGENES QUE CREAN ESPACIO */
  .iudxM-Socials {
    margin: 0 !important; /* Eliminar completamente los márgenes */
    padding: 5px 0 !important;
    gap: 12px;
    order: 1; /* Asegurar que esté justo antes de la imagen */
  }

  .iudx-Badge {
    margin: 0 !important; /* Eliminar márgenes */
    padding: 0 !important;
    height: auto !important;
    order: 2;
  }

  .iudxM-Helps {
    margin: 5px 0 !important;
    order: 3;
  }

  .iudxM-Hero {
    position: relative !important;
    height: 180px !important;
    margin-top: 0 !important;
    order: 4; /* Siempre al final */
  }

  .iudxM-Hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  /* Reorganizar el orden de los elementos */
  .iudxM-Brand {
    order: 0;
    margin-bottom: 0px;
  }

  .iudxM-Instruction {
    order: 1;
    margin: 0;
    font-size: 18px;
  }

  .iudxM-Btn {
    order: 2;
    margin: 10px 0;
  }

  .iudxM-Helps {
    order: 3;
    margin: 5px 0 !important;
  }

  .iudx-Badge {
    order: 4;
    margin: 2rem 0 0 !important;
  }

  .iudxM-Socials {
    order: 5;
    margin: 0 !important;
  }

  .iudxM-Hero {
    order: 6;
    margin-top: 0 !important;
  }
}

/* Para móviles más pequeños - ajustes adicionales */
@media (max-width: 428px) {
  .iudxM-Main {
    padding: 60px 15px 0 !important;
  }

  .iudxM-Hero {
    height: 150px !important;
  }

  .iudxM-Socials {
    gap: 10px;
    padding: 3px 0 !important;
  }
}

/* Para móviles en landscape */
@media (max-width: 768px) and (orientation: landscape) {
  .iudxM-Hero {
    height: 120px !important;
  }

  .iudxM-Main {
    padding: 50px 15px 0 !important;
  }
}

/* Para móviles con muy poca altura */
@media (max-width: 768px) and (max-height: 600px) {
  .iudxM-Hero {
    height: 100px !important;
  }

  .iudxM-Main {
    padding: 50px 15px 0 !important;
  }

  .iudxM-Brand {
    margin-bottom: 0;
  }

  .iudxM-Logo {
    width: 80px !important;
    margin-bottom: 8px !important;
  }

  .iudxM-Title {
    font-size: 20px !important;
    margin: 2px 0 !important;
  }

  .iudxM-Description {
    font-size: 18px !important;
    margin: 8px 0 !important;
  }

  .iudxM-Rule {
    margin: 10px auto !important;
  }

  .iudxM-Btn {
    height: 40px !important;
    line-height: 40px !important;
    font-size: 14px !important;
    margin: 5px 0 !important;
  }
}

/* ===== SEPARACIÓN ENTRE ICONOS E IMAGEN EN MÓVILES ===== */
@media (max-width: 768px) {
  .iudxM-Socials {
    margin: 15px 0 25px !important; /* Más espacio arriba y abajo */
    padding: 10px 0 !important;
    gap: 16px;
  }

  .iudx-Badge {
    margin: 10px 0 15px !important;
  }

  .iudxM-Hero {
    margin-top: 10px !important;
    height: 200px !important;
  }

  .iudxM-Form {
    gap: 0px !important;
  }
  .iudxM-Hero {
    position: relative !important;
    margin-top: 15px !important;
    padding-top: 10px !important;
  }

  .iudxM-Description {
    font-size: 18px !important;
  }
}


@media (max-width: 428px) {
  .iudxM-Socials {
    margin: 12px 0 20px !important;
    padding: 8px 0 !important;
  }

  .iudx-Badge {
    margin: 0 !important;
  }

  .iudxM-Hero {
    margin-top: 8px !important;
    height: 180px !important;
  }
}


@media (max-width: 768px) and (orientation: landscape) {
  .iudxM-Socials {
    margin: 8px 0 15px !important;
  }

  .iudxM-Hero {
    margin-top: 5px !important;
    height: 140px !important;
  }
}


@media (max-width: 768px) and (min-height: 800px) {
  .iudxM-Socials {
    margin: 20px 0 30px !important;
  }

  .iudx-Badge {
    margin: 15px 0 20px !important;
  }

  .iudxM-Hero {
    margin-top: 20px !important;
    height: 220px !important;
  }
}

@media (min-width: 1280px){
  .iudx-Login__left{
    margin-left: clamp(3rem, 7vw, 20rem) !important;
  }
}



@media (max-width: 768px) {

  .iudxM-Socials {
    margin: 15px 0 20px !important;
    padding: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    position: static !important;
    z-index: auto !important;
  }


  .iudxM-Hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative !important;
    z-index: 1 !important;
  }


  .iudxM-Content {
    position: static !important;
    z-index: auto !important;
    padding-bottom: 20px !important;
  }


  .iudxM-Socials .iudx-Social {
    width: 24px !important;
    height: 24px !important;
    background-color: #193d57 !important;
    opacity: 0.9;
  }


  .iudx-Badge {
    margin: 10px 0 15px !important;
  }
}



@media (max-width: 768px) {
  .iudxM-Hero {
    position: relative !important;
    margin-top: -75px !important;
    height: 200px !important;
  }


  .iudx-Badge,
  .iudxM-Socials,
  .iudxM-Helps {
    position: relative;
    z-index: 10 !important;
  }


  .iudx-Badge {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 5px 0 !important;
    margin: 10px 0 5px !important;
  }

  .iudxM-Socials {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 8px 0 !important;
    margin: 5px 0 0px !important;
  }
}


.iudx-GoHome:hover{
  background-color: #c7322c !important; 
}

.iudx-GoHome--desktop {
    position: absolute;
    top: 30px; 
    left: 4rem;
    
    display: flex;
    align-items: center;
    gap: 10px;

    background: #153b54;
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;

    font-family: "Metropolis", sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;

    width: fit-content;
    z-index: 5;                    
}

.iudx-GoHome--desktop img {
    height: 20px;
}



@media (max-width: 768px) {
  .iudx-GoHome--desktop {
      display: none !important;
  }

  .iudx-GoHome--mobile {
      display: inline-flex;
      align-items: center;
      gap: 8px;

      background: #153b54;
      color: #fff;
      padding: 10px 16px;
      border-radius: 10px;

      font-family: "Metropolis", sans-serif;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;

      margin-top: 15px;   /* Espacio bajo el topbar */
      margin-left: 16px;
      width: 8rem;

      z-index: 10;
  }

  .iudx-GoHome--mobile img {
      height: 18px;
      width: auto;
  }
}



@media (max-device-width: 834px) and (orientation: portrait) {
  .iudxM-Hero {
    position: relative !important;
    bottom: auto !important;
    height: 180px !important;
    margin-top: -20px !important;
  }

  .iudxM-Socials {
    margin-bottom: 5px !important;
  }
}



@media (min-width: 769px) and (max-width: 1024px) {


  .iudx-Card {
    width: min(460px, 100%) !important;
    padding: 2.5rem 2rem !important;
    border-radius: 20px !important;
  }


  .iudx-Logo {
    width: 23rem !important;
    max-width: none !important;
    height: auto !important;
    margin-bottom: 1.5rem !important;
  }


  .iudx-Title {
    font-size: 2rem !important;
    letter-spacing: -0.5px;
    margin-bottom: 1rem !important;
  }


  .iudx-Header p {
    line-height: 1.45 !important;
    margin-bottom: 1.2rem !important;
  }


  .iudx-Btn {
    height: 60px !important;
    font-size: 1.05rem !important;
    border-radius: 14px !important;
    padding: 1rem !important;
  }


  .iudx-Helps .iudx-Link {
    font-size: 20px!important;
  }


  .iudx-Badge img {
    height: 4.2rem !important;
  }


  .iudx-Social {
    width: 28px !important;
    height: 28px !important;
  }

  .iudx-Socials {
    gap: 20px !important;
    margin-top: 1.2rem !important;
  }


  .iudx-Web img {
    width: 19rem !important;
    max-height: none !important;
  }

  .roboto{
    font-size: 20px !important;
  }
}

/* ===== AJUSTE FINO SOLO EN HORIZONTAL (laptops + tablets landscape) ===== */
@media (min-width: 1000px) and (max-width: 1200px)
       and (orientation: landscape) and (max-height: 900px) {

  /* Espacio arriba del logo para despegarlo del botón */
  .iudx-Logo {
    margin-top: 2.5rem !important;
    max-height: 8rem !important;
    margin-bottom: 0.5rem !important;
  }

  /* Título más compacto */
  .iudx-Title {
    font-size: 1.6rem !important;
    margin-bottom: 0.5rem !important;
  }

  /* Texto descriptivo más pequeño */
  .iudx-Header p,
  .roboto {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
  }

  /* Iconos sociales más pequeños */
  .iudx-Social {
    width: 18px !important;
    height: 18px !important;
    opacity: 0.85 !important;
  }

  .iudx-Socials {
    gap: 12px !important;
    margin-top: 0.6rem !important;
    margin-bottom: 0.6rem !important;
  }

  /* Imagen del footer más pequeña */
  .iudx-Web img {
    width: 10rem !important;
    max-height: 50px !important;
    margin-top: 0.5rem !important;
  }

  /* Badge más pequeño */
  .iudx-Badge img {
    height: 2.4rem !important;
    width: auto !important;
    opacity: 0.9;
    margin-top: 0.4rem !important;
    margin-bottom: 0.4rem !important;
  }

  /* Card más compacto */
  .iudx-Card {
    padding-top: 1.2rem !important;
    padding-bottom: 1rem !important;
  }
}


/* ==== AJUSTE DE LOGO ENTRE 1100px Y 1300px SIN QUE SE MONTE CON EL BOTÓN ==== */
@media (min-width: 1100px) and (max-width: 1300px) and (orientation: landscape) {

  /* Más pequeño y con espacio superior */
  .iudx-Logo {
    width: 13rem !important;
    max-width: 13rem !important;
    height: auto !important;
    margin-top: 4.5rem !important; 
  }

  /* Ajuste del título para que no quede pegado */
  .iudx-Title {
    margin-top: 0.5rem !important;
    margin-bottom: 0.8rem !important;
  }

  /* Ajuste menor del header */
  .iudx-Header {
    margin-top: 1rem !important;
  }
}



/* ==== AJUSTE PARA LAPTOS ANCHOS CON ALTURA BAJITA (ej. 1280x720, 1280x800) ==== */
@media (min-width: 1200px) and (max-height: 900px) {

  /* Seguimos usando el centrado vertical del wrap */
  .iudx-Login__wrap {
    align-items: center;           /* aseguramos centrado */
    overflow-y: auto;              /* por si falta un pelín de alto */
  }

  .iudx-Login__left {
    height: 100vh;                 /* ocupa alto completo */
    align-items: center;           /* card centrado dentro */
    padding-top: 40px;             /* da aire respecto al botón, sin moverlo */
  }

  /* Card ligeramente más compacto, pero sin verse diminuto */
  .iudx-Card {
    margin-top: 40px;              /* baja un poco el formulario respecto al botón */
    max-height: 82vh;
    padding: 1.8rem 1.6rem !important;
  }

  /* Logo moderado (ni gigante ni diminuto) */
  .iudx-Logo {
    width: 15rem !important;
    max-height: 7.5rem !important;
    margin-bottom: 0.75rem !important;
  }

  /* Título equilibrado */
  .iudx-Title {
    font-size: 1.8rem !important;
    margin-bottom: 0.6rem !important;
  }

  /* Texto del párrafo */
  .iudx-Header p,
  .roboto {
    font-size: 1rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.7rem !important;
  }

  /* Botón un poco más contenido */
  .iudx-Btn {
    font-size: 1rem !important;
    padding: 1.2rem !important;
    height: auto;
  }

  /* Badge */
  .iudx-Badge img {
    height: 3rem !important;
  }

  /* Redes sociales algo más pequeñas */
  .iudx-Social {
    width: 18px !important;
    height: 18px !important;
  }

  .iudx-Socials {
    gap: 12px !important;
    margin-top: 0.6rem !important;
    margin-bottom: 0.6rem !important;
  }

  /* Logo inferior (www.iudigital.edu.co) visible pero discreto */
  .iudx-Web img {
    width: 11rem !important;
    max-height: 48px !important;
    margin-top: 0.5rem !important;
  }
}


/* ==== AJUSTE DEL FORMULARIO SIN MOVER EL BOTÓN ==== */
@media (min-width: 999px) and (max-width: 1100px) and (max-height: 960px) {

  /* SOLO ajustamos el card para que no suba tanto */
  .iudx-Card {
    margin-top: 120px !important;   /* baja el formulario para NO chocar con el botón */
    width: 430px !important;
    padding: 1.8rem 1.6rem !important;
  }

  /* LOGO: tamaño moderado */
  .iudx-Logo {
    width: 14rem !important;
    margin-bottom: 1rem !important;
  }

  /* TÍTULO más equilibrado */
  .iudx-Title {
    font-size: 1.7rem !important;
    margin-bottom: .6rem !important;
  }

  /* Descripción */
  .iudx-Header p,
  .roboto {
    font-size: 1rem !important;
  }

  /* Botón */
  .iudx-Btn {
    font-size: 1rem !important;
    padding: 1.2rem !important;
  }

  /* Badge */
  .iudx-Badge img {
    height: 3rem !important;
  }

  /* Iconos redes */
  .iudx-Social {
    width: 20px !important;
    height: 20px !important;
  }

  .iudx-Socials {
    gap: 14px !important;
  }

  /* Footer logo */
  .iudx-Web img {
    width: 13rem !important;
  }
}


/* === FORMULARIO MÁS ANCHO PARA EVITAR SCROLL (LAPTOPS BAJAS) === */
@media (min-width: 999px) and (max-height: 900px) {

  /* El contenedor sigue igual: NO mover el botón */
  .iudx-Login__wrap {
    align-items: center !important;
    overflow-y: hidden !important;   /* No scroll */
  }

  .iudx-Login__left {
    width: 100%;
    max-width: 800px !important;      /* Antes 640px → ahora mucho mejor */
    margin-left: clamp(5rem, 10vw, 12rem) !important;
    display: flex;
    justify-content: flex-start;
  }

  /* FORMULARIO (CARD) MÁS ANCHO Y MENOS ALTO */
  .iudx-Card {
    width: 600px !important;          /* ← El cambio clave */
    max-width: 600px !important;
    padding: 2rem 2rem !important;
    margin-top: 90px !important;      /* Aire bajo el botón */
    max-height: 80vh !important;
  }

  /* LOGO proporcional */
  .iudx-Logo {
    width: 15rem !important;
    margin-bottom: 1rem !important;
  }

  /* Título un poco más compacto */
  .iudx-Title {
    font-size: 1.7rem !important;
    margin-bottom: .6rem !important;
  }

  /* Texto ajustado */
  .iudx-Header p,
  .roboto {
    font-size: 1rem !important;
    line-height: 1.35 !important;
  }

  /* Botón más horizontal, menos alto */
  .iudx-Btn {
    width: 100%;
    padding: 1rem !important;
    height: auto !important;
    font-size: 1rem !important;
  }

  /* Badge y redes más proporcionadas */
  .iudx-Badge img {
    height: 3rem !important;
  }

  .iudx-Social {
    width: 20px !important;
    height: 20px !important;
  }

  .iudx-Socials {
    gap: 14px !important;
    margin: .6rem 0 !important;
  }

  .iudx-Web img {
    width: 12rem !important;
    max-height: 50px !important;
  }
}


/* === OPTIMIZACIÓN: REDUCIR ESPACIADOS PARA QUE SE VEAN REDES + FOOTER === */
@media (min-width: 999px) and (max-height: 900px) {

  /* Header más compacto */
  .iudx-Header {
    gap: 0.3rem !important;       /* antes más grande */
    margin-bottom: 0.4rem !important;
  }

  .iudx-Logo {
    margin-bottom: 0.4rem !important;
  }

  .iudx-Title {
    margin-bottom: 0.3rem !important;
  }

  .iudx-Header p,
  .roboto {
    margin-bottom: 0.4rem !important;
  }

  .iudx-Rule {
    margin: 0.4rem 0 !important;
  }

  /* Botón más compacto */
  .iudx-Btn {
    margin-top: 0.4rem !important;
    padding: 0.9rem !important;      /* antes 2rem */
    height: auto !important;
  }

  /* Sección de ayuda compacta */
  .iudx-Helps {
    margin: 0.3rem 0 !important;
  }

  /* Badge más pequeño + menos espacio */
  .iudx-Badge {
    margin: 0.3rem 0 !important;
  }

  .iudx-Badge img {
    height: 2.2rem !important;
  }

  /* Redes sociales: menos separación y tamaño */
  .iudx-Social {
    width: 16px !important;
    height: 16px !important;
  }

  .iudx-Socials {
    gap: 8px !important;
    margin-top: 0.3rem !important;
    margin-bottom: 0.3rem !important;
  }

  /* Footer más compacto */
  .iudx-Web img {
    width: 9.5rem !important;
    margin-top: 0.3rem !important;
    margin-bottom: 0.3rem !important;
  }

  /* Card aún más bajo */
  .iudx-Card {
    padding-top: 1rem !important;
    padding-bottom: 0.8rem !important;
  }
}


/* ==== ULTRA COMPACT MODE para 1920x1080 con escalado 150%
   (viewport efectivo ~1280×720 o menor) ==== */
@media (min-width: 1200px) and (max-height: 820px) {

  /* Card más estrecha y baja */
  .iudx-Card {
    width: min(380px, 85%) !important; 
    padding: 0.8rem 1rem !important;
    max-height: none !important;
    margin-top: 50px !important;
  }

  /* LOGO más pequeño */
  .iudx-Logo {
    width: 8.5rem !important;             
    max-width: 8.5rem !important;
    margin-top: 1.2rem !important;
    margin-bottom: 0.4rem !important;
  }

  /* Título más pequeño */
  .iudx-Title {
    font-size: 1.35rem !important;
    margin-bottom: 0.3rem !important;
  }

  /* Texto descriptivo */
  .iudx-Header p,
  .roboto {
    font-size: 0.85rem !important;
    line-height: 1.28 !important;
    margin-bottom: 0.5rem !important;
  }

  /* Botón más compacto */
  .iudx-Btn, #login-iud-btn-identificate {
    /* height: 42px !important; */
    font-size: 14px !important;
    /* padding: 0.5rem !important;
    margin-top: 0.6rem !important;
    border-radius: 10px !important; */
  }

  /* Ayudas */
  .iudx-Helps .iudx-Link {
    font-size: 0.85rem !important;
    margin-top: 0.3rem !important;
  }

  /* Badge reducido */
  .iudx-Badge img {
    height: 1.9rem !important;
    margin-top: 0.2rem !important;
    margin-bottom: 0.2rem !important;
  }

  /* Redes sociales más pequeñas */
  .iudx-Social {
    width: 14px !important;
    height: 14px !important;
  }

  .iudx-Socials {
    gap: 8px !important;
    margin-top: 0.2rem !important;
    margin-bottom: 0.2rem !important;
  }

  /* Footer logo reducido */
  .iudx-Web img {
    width: 8rem !important;
    max-height: 35px !important;
    margin-top: 0.3rem !important;
    margin-bottom: 0.3rem !important;
  }

  /* Menos espacio entre headers */
  .iudx-Header {
    gap: 4px !important;
  }

  /* Ajustes generales */
  .iudx-Login__left {
    padding-top: 10px !important;
  }

  .iudx-GoHome{
    font-size: 14px !important;
  }

  .iudxM-Btn{
    font-size: 14px !important;
  }

}


/* === CONTENEDOR SUPERIOR (BOTÓN + LOGO) === */
.iudx-TopBarDesktop {
  position: absolute;
  top: 25px;
  left: 4rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 20;
}

/* Botón */
.iudx-GoHomeTop {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #153b54;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: "Metropolis", sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.iudx-GoHomeTop img {
  height: 20px;
}

/* Logo */
.iudx-LogoTop {
  height: 70px;
  width: auto;
  object-fit: contain;
}

/* === Ajustes para resoluciones más pequeñas (evitar montarse también) === */
@media (max-width: 1400px) {
  .iudx-TopBarDesktop {
    gap: 1rem;
  }
  .iudx-LogoTop {
    height: 60px;
  }
  .iudx-GoHomeTop {
    padding: 10px 16px;
    font-size: 14px;
  }
}

@media (max-width: 1200px) {
  .iudx-TopBarDesktop {
    left: 2rem;
    top: 20px;
  }
}

/* En laptops “bajitas” (720px viewport) */
@media (max-height: 820px) {
  .iudx-LogoTop {
    height: 10rem !important;
  }
  .iudx-GoHomeTop {
    padding: 8px 14px !important;
    font-size: 13px !important;
  }
}

/* ===== Logo grande en la barra superior de escritorio ===== */
.iudx-LogoTop {
    height: 14rem;     /* antes ~50–60px */
    width: auto !important;
    object-fit: contain;
}
/* Evitar salto de línea en el botón Ir al Home */
.iudx-GoHomeTop span,
.iudx-GoHome--desktop span {
    white-space: nowrap !important;
}

.iudx-LogoTop{
  margin: auto !important;
}