body, html {
  height: 100%;
  margin: 0;
  padding: 0;
}

.landing-bg {
  min-height: 100vh;
  width: 100vw;
  position: relative;
  /* Fondo: tu imagen, cubre todo */
  background: url('../assets/images/plantilla/login.webp') no-repeat center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.lang-flag {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(255,255,255,0.92);
  border-radius: 40px;
  display: flex;
  align-items: center;
  padding: 3px 12px 3px 3px;
  z-index: 10;
  font-size: 18px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.11);
}
.lang-flag img { width: 32px; height: 32px; border-radius: 50%; }
.lang-caret { margin-left: 6px; color: #444; font-size: 20px; }

.landing-bottom-card {
  width: 100%;
  min-height: 30vh;
  background: rgba(255,255,255,0.97);
  border-radius: 2.1rem 2.1rem 0 0;
  padding: 2.2rem 1.1rem 2.2rem 1.1rem;
  text-align: center;
  box-shadow: 0 -3px 18px #0001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.landing-bottom-card h2 {
  font-size: 1.27rem;
  font-weight: 700;
  margin-bottom: .7rem;
  color: #232323;
}
.landing-bottom-card p {
  color: #404040;
  font-size: 1.1rem;
  margin-bottom: 2.3rem;
}
.landing-bottom-card .landing-logo {
  max-width: 110px;
  width: 70%;
  margin-bottom: 1.2rem;
  margin-top: 0.3rem;
  display: block;
}
/* --- REGISTER-STEP1 --------------------------------------- */
/* --- Input grupo bandera teléfono --- */
.phone-input {
  border-radius: 0 12px 12px 0 !important;
  font-size: 1.2rem;
  padding-left: 12px;
}
.input-group-text {
  background: #fff;
  border: 1px solid #ced4da;
}

.invalid-feedback {
  color: #df2323;
  font-size: 0.98rem;
  margin-top: -2px;
}

/* Estilo botón dark similar imagen */
.btn-dark {
  border-radius: 14px;
  font-weight: 600;
  font-size: 1.13rem;
}

/* Barra progreso fina */
.progress {
  background: #e5e7eb;
}
.progress-bar {
  background-color: #18b56a;
  transition: width 0.4s;
}

/* Efecto slide para cambio de pantalla SPA */
.screen-animate-enter {
  animation: slideInFromRight 0.5s cubic-bezier(.4,0,.2,1) both;
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100vw);
    opacity: 0.6;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Opcional: Para un slide out si necesitas animación de salida */
.screen-animate-exit {
  animation: slideOutToLeft 0.4s cubic-bezier(.4,0,.2,1) both;
}

@keyframes slideOutToLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-50vw);
    opacity: 0;
  }
}
/* Pon esto en custom.css o en tu archivo de animaciones */
.screen-animate-enter {
  animation: slideInRight 0.38s cubic-bezier(.4,0,.2,1);
}

.screen-animate-back {
  animation: slideInLeft 0.38s cubic-bezier(.4,0,.2,1);
}

@keyframes slideInRight {
  from { transform: translateX(100vw); opacity: 0.6;}
  to   { transform: translateX(0);     opacity: 1;}
}
@keyframes slideInLeft {
  from { transform: translateX(-100vw); opacity: 0.6;}
  to   { transform: translateX(0);      opacity: 1;}
}
/* --- REGISTER-STEP2 --------------------------------------- */
.otp-input {
  width: 46px;
  height: 46px;
  font-size: 1.4rem;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  transition: border .15s;
  outline: none;
  margin: 0 2px;
}
.otp-input:focus {
  border: 2px solid #27ae60;
  background: #f3fff7;
}
#linkResend[disabled], #linkResend.disabled {
  pointer-events: none;
  color: #b2bec3 !important;
  text-decoration: underline;
}

/* --- REGISTER-STEP3 --------------------------------------- */
.register-step3 .form-control,
.register-step3 .form-select {
    border-radius: 12px;
    border: 1.7px solid #c3c9d6;
    background: #fff;
    font-size: 1.13rem;
    box-shadow: none;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.register-step3 .form-label {
    font-weight: 600;
    color: #212529;
}

.register-step3 input:focus,
.register-step3 select:focus {
    border-color: #212529;
    box-shadow: 0 0 0 1.5px #54b38a20;
}
#businessTypeModal .modal-content {
  border-radius: 2rem;
  background: #f8f9fb;
}
#businessTypeModal .list-group-item {
  font-size: 1.14rem;
  border: none;
  padding: 1rem 0.4rem;
}
#businessTypeModal input[type='radio'] {
  width: 1.2em;
  height: 1.2em;
  accent-color: #18b56a;
}
#businessTypeModal .form-control {
  border-radius: 12px;
  margin-top: 8px;
}
/* Modal tipo bottom-sheet mobile */
@media (max-width: 600px) {
  .modal-bottom-sheet .modal-content {
    border-radius: 2.2rem 2.2rem 0 0;
    margin-bottom: 0;
    min-height: 40vh;
  }
  .modal-bottom-sheet {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    margin: 0;
    max-width: 100vw;
    transition: none;
  }
}
.dropdown-arrow svg {
  width: 1.5em; height: 1.5em; display: block;
  pointer-events: none;
}
#businessTypeDisplay {
  cursor: pointer !important;
  background: #fff;
  color: #444;
}
#businessTypeDisplay:focus { box-shadow: 0 0 0 2px #18b56a30; }
@media (max-width: 600px) {
  .modal-bottom-sheet .modal-content {
    border-radius: 2.2rem 2.2rem 0 0;
    margin-bottom: 0;
    min-height: 40vh;
    max-height: 70vh;   /* Limita el alto máximo al 70% de la pantalla */
    display: flex;
    flex-direction: column;
  }
  .modal-bottom-sheet {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    margin: 0;
    max-width: 100vw;
    transition: none;
    z-index: 1060; /* sobre otros elementos */
  }
  .modal-bottom-sheet .modal-body {
    overflow-y: auto;
    flex: 1 1 auto;
    padding-bottom: 0.7rem;
    /* El scroll solo aparece aquí, el footer siempre visible */
  }
  .modal-bottom-sheet .modal-footer {
    border-top: none;
    padding-bottom: 1.3rem;
    background: transparent;
  }
}
/* --- LOGIN-STEP1 --------------------------------------- */
.login-step1 h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #232323;
  text-align: center;
  margin-top: 0.6em;
}
.login-step1 img {
  display: block;
  margin: 0 auto;
  max-width: 180px;
}

.login-step1 .btn-dark,
.login-step1 .btn-outline-dark {
  border-radius: 14px;
  font-weight: 600;
  font-size: 1.13rem;
  min-height: 52px;
}
.login-step1 .btn-dark .material-icons,
.login-step1 .btn-outline-dark .material-icons {
  vertical-align: middle;
  margin-right: 0.7em;
}
.login-step1 .btn-outline-dark svg {
  vertical-align: middle;
}

.login-step1 .btn-success {
  font-weight: 600;
  font-size: 1.07rem;
  border-radius: 1.5rem;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

@media (max-width: 600px) {
  .login-step1 .btn-dark,
  .login-step1 .btn-outline-dark {
    font-size: 1.07rem;
    min-height: 48px;
  }
}

/* Botones menos anchos (máx 320px) */
.login-btn-fixed-width {
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* Animación de la imagen de login */
.animated-login-img {
  animation: loginZoomSpin 1s cubic-bezier(.4,0,.2,1);
  /* Se ejecuta solo 1 vez al cargar */
}
@keyframes loginZoomSpin {
  0% {
    transform: scale(0.9) rotate(-12deg);
    opacity: 0.7;
  }
  30% {
    transform: scale(1.04) rotate(11deg);
  }
  60% {
    transform: scale(1.08) rotate(-10deg);
  }
  85% {
    transform: scale(1.01) rotate(7deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}
.login-main-content {
  margin-top: 0;
  margin-bottom: 32px;  /* Espacio para el botón ayuda fijo abajo */
  flex-grow: 1;
  justify-content: flex-start !important;
  padding-top: 2.5rem;  /* Aumenta si quieres subir más */
}
@media (max-width: 600px) {
  .login-main-content {
    padding-top: 3.5rem;  /* Más arriba en móvil */
    margin-bottom: 24px;
  }
}
/* --- LOGIN-STEP2 --------------------------------------- */
/* Más ancho para el input */
.input-lg-wider {
  max-width: 440px;
  width: 100%;
  font-size: 1.13rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  margin-left: auto;
  margin-right: auto;
}

/* Botón ancho y alto como en login-step1 */
.btn-wider {
  max-width: 440px;
  width: 100%;
  font-size: 1.13rem;
  padding-top: 0.93rem;
  padding-bottom: 0.93rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: 14px;
}

@media (max-width: 500px) {
  .input-lg-wider,
  .btn-wider {
    max-width: 100%;
    font-size: 1.06rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }
}
/* --- HOME --------------------------------------- */
.home-header {
  min-height: 56px;
  border-bottom: 1px solid #f1e48a;
}
.home-avatar {
  width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 2px 6px #0001;
}
.home-role { color: #3b3b3b; opacity:.7;}
.home-section {background: #F7F8FA;}

.home-shortcut-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px #0002;
  min-width: 95px;
  min-height: 88px;
  cursor: pointer;
  transition: box-shadow .13s, background .13s;
  border: 2.2px solid #f0efef;
  padding: 8px 0 6px 0;
  margin-right: 6px;
}
.home-shortcut-card.active {
  background: #222f3d;
  color: #fff;
  border: 2.2px solid #222f3d;
}
.home-shortcut-card.active .material-icons { color: #FFD93B!important; }
.home-shortcut-card .material-icons { color: #333;}
.home-shortcut-card:last-child { margin-right: 0; }

.home-banner {
  background: #21417e;
  border-radius: 20px;
  min-height: 94px;
  box-shadow: 0 1px 8px #21417e20;
  margin-bottom: 20px;
}
.home-banner .btn { font-size:1.01rem;}

.home-suggested-icon {
  width: 42px; height: 42px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px #0001;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}
.home-suggested-icon .material-icons {
  font-size: 2rem;
  color: #1e2746;
}
.home-suggested-label {
  font-size: 0.98rem;
  margin-top: 2px;
  color: #2c2c2c;
  font-weight: 500;
}
.home-icons-list .col {
  flex: 1 0 22%;
  padding: 6px 2px;
}

.home-bottom-navbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 -1.5px 14px #0002;
  border-radius: 20px 20px 0 0;
  height: 64px;
  z-index: 100;
  padding: 2px 4px 4px 4px;
}
.home-bnav-item {
  font-size: .96rem;
  color: #969da8;
  padding: 5px 0 0 0;
  border-radius: 12px;
  transition: background .13s;
  cursor: pointer;
  min-width: 50px;
}
.home-bnav-item.active {
  color: #21417e;
  background: #f5f7fa;
}
.home-bnav-item .material-icons {
  font-size: 2rem;
  margin-bottom: 1px;
}

@media (max-width: 600px) {
  .home-bottom-navbar { height: 62px;}
  .home-header { min-height: 50px;}
  .home-avatar { width:36px;height:36px;}
}

@media (max-width: 400px) {
  .home-bottom-navbar { height: 55px; }
  .home-avatar { width:30px;height:30px;}
}

body, html { background: #F7F8FA; }


