body {
  margin: 0;
  padding: 0px;
  font-family: 'Inter', sans-serif;
  background-color: #fff;
  color: #333;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: #105163;
  z-index: 1000;

}


.container {
  background-color: #F5F5F5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  padding: 40px;
  padding-top: 8px;
  box-sizing: border-box;
}


.login-card {
  background: white;
  border-radius: 12px;
  width: 400px;
  z-index: 1;
  border: 1px solid #D9D9D9;
  margin-top: 0;
}


.card-content {
  padding: 24px;
}


.logo-bienvenida {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.bienvenida {
  padding-bottom: 0.5rem;
  font-weight: 650;
  font-size: 1.2rem;
  color: #000;
  margin-bottom: 0.05rem;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
}


.encabezado {
  display: flex;
  justify-content: flex-end;
  padding: 0 0.5rem 0 0;
}

.icono-seguridad img {
  width: 22px;
  height: 22px;
}

.formulario {
  text-align: left;
  margin-top: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: #000;
  font-weight: 500;
  font-size: 0.77rem;
}


.select-container {
  display: flex;
  flex-direction: column;
}

select,
input[type="text"] {
  width: 100%;
  padding: 16px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.90rem;
  margin-bottom: 1.3rem;
  box-sizing: border-box;
}

input[type="text"]:focus {
  border: 1px solid #000;
  outline: none;
}


.custom-select-wrapper {
  position: relative;
  width: 100%; 
  font-family: 'Arial', sans-serif;
}

.custom-select-trigger {
  padding: 16px 16px;
  border: 1px solid #000;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.90rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
  margin-bottom: 1.3rem;
}


.custom-select-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border: solid #00B800;
  border-width: 0 2px 2px 0;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}


.custom-select-trigger.active {
  border-color: #ccc; 
}

.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-top: 6px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.18);
  display: none;
  list-style: none;
  padding : 3px;  
  box-sizing: border-box;
  z-index: 1000;
}


.option {
  padding: 16px 16px;
  margin: 6px 0;
  cursor: pointer;
  font-size: 0.90rem;
  border-radius: 8px;
  transition: background 0.2s ease;
  white-space: nowrap; 
}


.option:hover {
  background: #f2f2f2;
}
.option.selected {
  font-weight: bold;
  background: #f2f2f2;
  border-radius: 8px;
}

.switch-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 24px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
}

.slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

.switch input:checked + .slider {
  background-color: #00B800;
}

.switch input:checked + .slider:before {
  transform: translateX(18px);
}

.switch-label {
  font-size: 0.77rem;
  margin-bottom: 0rem;
}

button {
  width: 100%;
  padding: 16px 16px;
  background-color: #9D9D9D;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: not-allowed;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.registro {
  text-align: center;
  font-size: 0.77rem;
  margin-top: 1rem;
  font-weight: 600;
  color: #838387;

}

.registro a {
  color: #FC722F;
  text-decoration: none;
}


.protegido {
  text-align: center;
  font-size: 0.65rem;
  margin-top: 1rem;
  font-weight: 600;
  color: #9E9E9E;

}

.protegido a {
  color: #FC722F;
  text-decoration: none;
}

.footer {
  margin-top: 2rem;
  font-size: 0.67rem;
  color: #666;
  text-align: center;
  margin-top: 3.5rem;
}

.footer a {
  color: #FC722F;
  text-decoration: none;
  margin-top: 1rem;
  font-size: 0.77rem;
}

.links {
  display: flex;
  justify-content: space-evenly;
  margin-top: 0.5rem;
}


.sugerencias-tab {
  position: absolute;
  top: 50%;
  right: 0;
  background-color: #00B800;
  color: white;
  padding: 0.6rem;
  transform: rotate(-90deg) translateY(-50%);
  transform-origin: right center;
  border-radius: 8px 8px 0 0;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  width: 135px;
  height: 15px;
}


.sugerencias-texto {
  display: block;
  position: relative;
  left: 35px;
  font-size: 1rem;
  top: -20%;
}

.sugerencias-tab::after {
  content: '';
  position: absolute;
  top: 60%;
  right: 125px;
  width: 7px;
  height: 7px;
  border: solid white;
  border-width: 0 1px 1px 0;
  transform: translateY(-50%) rotate(220deg);
  pointer-events: none;
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }

  .logo {
    max-width: 130px;
  }
}


.formulario-movil {
  display: none;
}


@media (max-width: 768px) {
  .login-card {
    display: none !important;
  }

  .formulario-movil {
    display: block;
  }

  .icono-seguridad {
    transform: translateX(15px) translateY(11px);
  }
}


.scroll-container {
  position: relative;
  height: 100vh;
  overflow: hidden; 
  background-color: #F5F5F5;
}

.scroll-content {
  position: relative;
  height: 100%;
  overflow-y: scroll;
  padding-right: 20px; 
  scrollbar-width: none; 
}

.scroll-content::-webkit-scrollbar {
  display: none; 
}

.custom-scrollbar {
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 100%;
  background-color: transparent;
  margin-top: 10px;
}

.scroll-thumb {
  width: 100%;
  height: 40px;
  background-color: #C4E9C0;
  border-radius: 3px;
  cursor: pointer;
  position: absolute;
  top: 0;
}





.card {
    width: 480px;            /* Antes 700px */
    height: 280px;           /* Antes 350px */
    background-color: #105163;
    border-radius: 16px;     /* Bordes un poco más finos */
    position: relative;
    overflow: hidden;
    display: flex;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin-top: 60px;        /* Esto la baja un poco más en la pantalla */
    flex-shrink: 0;          /* Evita que se encoja si el contenedor es estrecho */
}

/* Formas verdes del fondo */
.shape {
    position: absolute;
    background-color: #34EF00; /* Verde brillante */
    border-radius: 50%;
}

.shape-top {
    width: 300px;            /* Antes 400px */
    height: 300px;
    top: -150px;
    left: -80px;
    border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%; /* Manteniendo forma orgánica */
}

.shape-bottom {
    width: 250px;            /* Antes 350px */
    height: 250px;
    bottom: -130px;
    right: -60px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

/* Contenedor principal */
.content-wrapper {
    display: flex;
    width: 100%;
    z-index: 1; /* Para estar por encima de las formas verdes */
}

/* Ajuste de la imagen */
.image-container {
    flex: 0.8;               /* Ocupa un poco menos de espacio horizontal */
    display: flex;
    align-items: flex-end;
    padding-left: 15px;
}

.user-img {
    height: 90%;             
    object-fit: contain;
}

/* Sección de texto */
/* Ajuste de los textos (más pequeños) */
.text-container {
    flex: 1.2;
    padding: 20px 25px 20px 10px; /* Padding reducido */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title {
    color: #34EF00;
    font-size: 1.4rem;       /* Antes 2.2rem */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.description {
    color: white;
    font-size: 0.85rem;      /* Antes 1.1rem */
    line-height: 1.4;
    margin-bottom: 20px;
    max-width: 100%;
}

/* Botón */
.btn-pay {
    background-color: white;
    color: #105163;
    border: none;
    padding: 10px 20px;      /* Antes 15px 30px */
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;       /* Antes 1.1rem */
    cursor: pointer;
    width: fit-content;
}

.btn-pay:hover {
    transform: scale(1.05);
    background-color: #f8f8f8;
}


.container {
    display: flex;
    flex-direction: row;
    align-items: flex-start; /* Mantiene el inicio arriba */
    justify-content: center;
    gap: 30px;               /* Espacio entre form y tarjeta */
    padding-top: 50px;       /* Baja todo el conjunto un poco */
}






.carousel-wrapper {
    position: relative;
    width: 480px;
    margin-top: 60px; /* Alineado con tu ajuste anterior */
}

.carousel-container {
    position: relative;
    height: 280px;
}

.carousel-slide {
    position: absolute !important; /* Superponer unas sobre otras */
    top: 0;
    left: 0;
    margin-top: 0 !important; /* El margen lo maneja el wrapper */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Estilo de las barras de progreso */
.progress-container {
    display: flex;
    gap: 6px;
    margin-top: 15px;
    padding: 0 10px;
}

.progress-bar {
    height: 4px;
    flex: 1;
    background-color: #e0e0e0; /* Gris clarito fondo */
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    width: 0%;
    background-color: #00B800; /* Verde del banco */
}

/* Animación cuando la barra está activa */
.progress-bar.active .fill {
    animation: progressFill 5s linear forwards;
}

/* Cuando ya pasó la barra */
.progress-bar.finished .fill {
    width: 100%;
}

@keyframes progressFill {
    from { width: 0%; }
    to { width: 100%; }
}



/* --- SECCIÓN DE AYUDA CORREGIDA --- */
.help-section {
    width: 100%;
    margin-top: 30px; /* Espacio respecto al carrusel */
}

.help-title {
    font-size: 0.95rem; /* Un poco más pequeño para armonizar */
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
    text-align: left;
}

.help-cards-container {
    display: flex;
    justify-content: space-between;
    gap: 15px; /* Espacio entre tarjetas */
}

.help-card {
    background-color: #ffffff;
    flex: 1;
    /* Proporción rectangular */
    height: 80px; 
    border-radius: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0f0f0; /* Borde sutil para definir el rectángulo */
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    cursor: pointer;
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Quitamos el fondo verde y centramos la imagen directamente */
.icon-circle {
    background-color: transparent; /* Fondo eliminado */
    width: 80px;  /* Más ancho para que quepa la imagen grande */
    height: 70px; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.icon-circle img {
    width: 45px; /* Imagen más grande */
    height: 45px;
    object-fit: contain;
}

.help-card p {
    font-size: 0.63rem;
    font-weight: 600;
    color: #000;
    margin: 0;
    text-align: center;
    margin-bottom: 10px;
}






.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 9999; /* Por encima de todo */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    font-family: 'Inter', sans-serif;
}

/* Fila de arriba */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    border-bottom: 1px solid #eeeeee;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logos .logo-p { height: 25px; }
.footer-logos .logo-aval { height: 23px; }

.footer-logos .divider {
    width: 1px;
    height: 30px;
    background-color: #ccc;
}

.footer-links a {
    color: #FC722F; /* Naranja del banco */
    font-weight: 600;
    font-size: 0.8rem;
    margin-left: 30px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Fila de abajo */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 40px;
    background-color: #fff;
    font-size: 0.67rem;
    color: #666;
}

.footer-date {
    font-weight: 400;
}

.footer-copy {
    color: #333;
}

/* Ajuste para que el contenido del scroll no quede tapado por el footer */
.scroll-content {
    padding-bottom: 100px !important; 
}



/* =========================
    MOBILE: ORDEN CORRECTO
    1. FORMULARIO
    2. AYUDA
    3. CARRUSEL
========================= */
@media (max-width: 768px) {

  /* 1. Aseguramos que el scroll container permita el flujo natural */
  .scroll-container {
    height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }


  /* 2. Ajustamos el contenido para que el padding sea real y no se corte */
  .scroll-content {
    display: block;
    height: auto;
    padding-right: 0;
    /* Aumentamos el padding inferior para que el footer fijo no tape el carrusel */
    padding-bottom: 180px !important; 
  }

  .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: flex-start;
    height: auto !important; /* Permite que crezca hacia abajo */
    min-height: min-content;
    gap: 20px;
    padding: 15px 12px 0; /* Quitamos padding bottom aquí, ya lo tiene el scroll-content */
  }
  }

  /* 
     CORRECCIÓN CLAVE: La columna derecha debe ser flex 
     para poder reordenar sus elementos internos en móvil.
  */
  .right-column {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    align-items: center;
    order: 2 !important; /* Va después del login-card */
  }

  /* ======================
      FORMULARIO PRIMERO
  ====================== */
  .login-card {
    display: block !important;
    order: 1 !important; /* Aparece arriba del todo */
    width: 100%;
    max-width: 420px;
    margin: 0;
    border-radius: 12px;
  }

  /* ======================
      AYUDA SEGUNDO
  ====================== */
  .help-section {
    order: 1 !important; /* Primero dentro de .right-column */
    width: 100%;
    max-width: 420px;
    margin-top: 0;
    margin-bottom: 20px; /* Separación con el carrusel */
  }

  /* ======================
      CARRUSEL TERCERO
  ====================== */
  .carousel-wrapper {
    order: 2 !important; /* Segundo dentro de .right-column */
    width: 100%;
    max-width: 420px;
    margin-top: 0;
    position: relative;
  }

  /* ======================
      FIX BUG CARRUSEL
  ====================== */
  .carousel-container {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
  }

  .carousel-slide {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out;
  }

  .carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
  }

  .card {
    width: 100%;
    height: 210px;
    margin-top: 0;
    border-radius: 14px;
  }

  .card-content {
    padding: 20px 18px;
  }

  /* ======================
      AYUDA MÁS GRANDE
  ====================== */
  .help-title {
    font-size: 1rem;
    margin-bottom: 14px;
    padding-left: 2px;
  }

  .help-cards-container {
    display: flex;
    gap: 12px;
  }

  .help-card {
    flex: 1;
    height: 105px;
    border-radius: 12px;
  }

  .icon-circle {
    width: 70px;
    height: 55px;
    margin-bottom: 4px;
  }

  .icon-circle img {
    width: 34px;
    height: 34px;
  }

  .help-card p {
    font-size: 0.65rem;
    line-height: 1.2;
    margin-bottom: 8px;
  }

  /* ======================
      FIGURAS MÁS GRANDES
  ====================== */
  .shape-top {
    width: 220px;
    height: 220px;
    top: -110px;
    left: -65px;
  }

  .shape-bottom {
    width: 180px;
    height: 180px;
    bottom: -90px;
    right: -55px;
  }

  .content-wrapper {
    height: 100%;
  }

  .image-container {
    flex: 1;
    padding-left: 10px;
    align-items: flex-end;
  }

  .user-img {
    height: 92%;
  }

  .text-container {
    flex: 1.2;
    padding: 18px 18px 18px 4px;
  }

  .title {
    font-size: 1.05rem;
    line-height: 1.15;
    margin-bottom: 10px;
  }

  .description {
    font-size: 0.72rem;
    line-height: 1.35;
    margin-bottom: 14px;
  }

  .btn-pay {
    font-size: 0.78rem;
    padding: 8px 14px;
    border-radius: 7px;
  }

  .progress-container {
    margin-top: 12px;
    padding: 0 4px;
  }

  .progress-bar {
    height: 4px;
  }

  /* FOOTER */
  .footer-top {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    text-align: center;
  }

  .footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .footer-links a {
    margin-left: 0;
    font-size: 0.72rem;
  }

  .footer-logos .logo-p {
    height: 20px;
  }

  .footer-logos .logo-aval {
    height: 18px;
  }

  .sugerencias-tab,
  .custom-scrollbar {
    display: none;
  }

  .scroll-content {
    padding-right: 0;
    padding-bottom: 120px !important;
  }
}

/* =========================
    CELULARES PEQUEÑOS
========================= */
@media (max-width: 480px) {

  .container {
    padding-left: 10px;
    padding-right: 10px;
    gap: 16px;
  }

  .login-card,
  .help-section,
  .carousel-wrapper {
    max-width: 100%;
  }

  /* Mantenemos el orden reforzado */
  .login-card { order: 1 !important; }
  .right-column { order: 2 !important; }
  .help-section { order: 1 !important; }
  .carousel-wrapper { order: 2 !important; }

  .card-content {
    padding: 18px 16px;
  }

  .carousel-container,
  .card {
    height: 190px;
  }

  .title {
    font-size: 0.95rem;
  }

  .description {
    font-size: 0.66rem;
  }

  .btn-pay {
    font-size: 0.72rem;
    padding: 7px 12px;
  }

  .help-card {
    height: 95px;
  }

  .icon-circle img {
    width: 30px;
    height: 30px;
  }

  .help-card p {
    font-size: 0.58rem;
  }
}