body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
}

/* Header */
.header {
  background-color: #00377d;
  color: white;
  height: 15vh; /* Altura relativa a la ventana */
  padding: 0 2%; /* Padding relativo */
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

/* Splash loader */
#page-loader{
  position:fixed; inset:0; z-index:9999;
  background:#00377d; /* azul Tigo */
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:16px; transition:opacity .4s ease;
}
#page-loader.hide{ opacity:0; pointer-events:none; }

#page-loader .loader-logo{
  width:140px; height:auto;
  filter:drop-shadow(0 2px 8px rgba(0,0,0,.25));
}
#page-loader .loader-spinner{
  width:48px; height:48px;
  border:4px solid rgba(255,255,255,.35);
  border-top-color:#fff; border-radius:50%;
  animation:spin 1s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }


.icons {
  display: flex;
  gap: 2vw; /* Gap relativo al ancho */
}

.icons i {
  color: white;
  font-size: 1.4rem; /* Escalable */
  cursor: pointer;
}

.header .logo {
  font-size: 2.6rem; /* Escalable */
}

.header .icons {
  font-size: 1.25rem;
}

/* Container */
.container {
  max-width: 22rem; /* Escalable en rem */
  margin: 5% auto;
  background: white;
  border-radius: 1.25rem;
  padding: 5rem 4rem 13rem 4rem; /* Espaciado relativo */
  position: relative;
  box-shadow: 0 0 0.625rem rgba(0, 0, 0, 0.1);
}

/* Títulos */
h2 {
  color: #00377d;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

/* Labels */
label {
  display: flex;
  align-items: center;
  margin: 1.25rem 0;
  font-size: 1rem;
}

/* Radio buttons */
input[type="radio"] {
  margin-right: 0.6rem;
}

/* Inputs */
input[type="text"],
input[type="documento"] {
  width: 100%;
  padding: 0.8rem;
  font-size: 0.9rem;
  border: 1px solid #656464ef;
  border-radius: 0.25rem;
  margin-bottom: 1.2rem;
}

/* Terms */
.terms {
  font-size: 0.75rem;
  color: #666;
  white-space: nowrap;
  margin-top: -0.4rem;
}

.terms a {
  color: #00baff;
  text-decoration: none;
}

.terms a:hover {
  text-decoration: underline;
}

/* Botón derecha */
.boton-derecha {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}

/* Botón continuar */
.continuar-btn {
  background-color: #00c8ff;
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 2rem;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s;
  position: absolute;
  bottom: -5rem;
  right: -2rem;
}

.continuar-btn:hover {
  background-color: #0099cc;
}

/* Logo */
.logo img {
  height: 3.75rem;
  width: auto;
  display: block;
}

.logo {
  background-color: transparent;
}

.logo img {
  background-color: transparent;
}

/* Navegación */
.nav-links {
  display: flex;
  gap: 10vw;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  position: relative;
}

.nav-links a .arrow {
  font-size: 0.6rem;
  color: #00baff;
  margin-left: 0.3rem;
}

.divider {
  width: 1px;
  height: 1.25rem;
  background-color: white;
  margin-right: 1.2rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.formulario {
  transform: translateX(-5%);
}

/* Radios */
.radio-container input[type="radio"] {
  display: none;
}

.radio-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  color: #444;
}

.custom-radio {
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid #00baff;
  border-radius: 50%;
  margin-right: 0.6rem;
  position: relative;
}

.radio-container input[type="radio"]:checked + .custom-radio::after {
  content: '';
  width: 0.6rem;
  height: 0.6rem;
  background: #00baff;
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Footer */
.footer {
  background-color: #00377d;
  color: white;
  padding: 3% 0;
  font-size: 0.9rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2%;
  flex-wrap: wrap;
}

.footer-left {
  flex: 1 1 60%;
  font-size: 0.75rem;
  min-width: 50%;
}

.footer-left p {
  margin: 0;
  line-height: 1.5;
}

.footer-left a {
  color: #00bfff;
  text-decoration: none;
}

.footer-left a:hover {
  text-decoration: underline;
}

.footer-right {
  flex: 1 1 30%;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 0.6rem;
}

.footer-right a {
  color: white;
  font-size: 1.25rem;
  transition: color 0.3s;
}

.footer-right a:hover {
  color: #00bfff;
}

.footer-left {
  text-decoration: none;
  margin-left: 2%;
}

.header-left .nav-links {
  margin-left: 4%;
}

.header-left .logo {
  position: relative;
  left: 3%;
}

/* Errores formulario */
.form-error {
  color: #d32f2f;
  font-size: 0.8rem;
  margin-top: 0.1rem;
  min-height: 1.2em;
  visibility: hidden;
}

.form-error.visible {
  visibility: visible;
}

.floating {
  position: relative;
  margin-bottom: 0.5rem;
}

.floating input {
  width: 100%;
  padding: 1.2rem 0.75rem 0.4rem;
  font-size: 1rem;
  border: 1px solid #00377d;
  border-radius: 0.4rem;
  background: #ffffff;
  color: #000000;
}

.floating label {
  position: absolute;
  top: -0.4rem;
  left: 0.75rem;
  font-size: 0.9rem;
  color: #000000;
  pointer-events: none;
  transition: all 0.2s ease;
}

.floating input:focus + label,
.floating input:not(:placeholder-shown) + label {
  top: -1.6rem;
  font-size: 0.75rem;
  color: #00c8ff;
  background: #ffffff;
  padding: 0 0.25rem;
}

.floating input:focus {
  outline: none;
  border: 0.125rem solid #00c8ff;
  box-shadow: 0 0 0 0.125rem rgba(0, 200, 255, 0.2);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: white;
  cursor: pointer;
}

/* Contenedor centrado */
.option-selector {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

/* Card individual */
.option-card {
  width: 100px; /* Tamaño reducido */
  max-width: 90%;
  background: #f9f9f9;
  border: 2px solid #dcdcdc;
  border-radius: 12px;
  text-align: center;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.95rem;
  color: #00377d;
  font-weight: 500;
  box-shadow: none;
}

/* Icono dentro de la card */
.option-card i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #00377d;
}

/* Estado activo */
.option-card.active {
  border: 1px solid #00baff;
  background: #fff;
  box-shadow: 0 4px 12px rgba(53, 95, 110, 0.2);
}

/* Ocultar bloques de inputs cuando toque */
.hidden { display: none !important; }

/* Que las cards se acomoden con espacio y salto si no caben */
.option-selector { gap: 1rem; flex-wrap: wrap; }

/* ——— Toast global estilo Tigo ——— */
#global-toast {
  position: fixed;
  margin-top: 4rem;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #00377d;
  color: #ffffff;
  padding: .8rem 1.2rem;
  border-radius: 4px;
  opacity: 0;
  transition: opacity .3s;
  z-index: 3000;
  pointer-events: none;
  max-width: 90%;       /* que no ocupe más del 90% de la pantalla */
  box-sizing: border-box;
  text-align: center;   /* centrado de texto */
  word-break: break-word; /* rompe palabras largas */
  line-height: 1.3;     /* para mejorar lectura */
}

/* Cuando está visible */
#global-toast.show {
  opacity: 1;
}


/* Hover */
.option-card:hover {
  border-color: #00baff;
}
/* Hover */
.option-card:hover {
  border-color: #00baff;
}

.option-card span {
  font-size: 0.60rem; /* Tamaño reducido */
  font-weight: 500;   /* Mantenerlo legible */
  color: #00377d;     /* Mismo color que la card */
  display: block;
  margin-top: 0.3rem;
}



.spinner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.spinner-overlay.hidden {
  display: none;
}
.spinner {
  width: 45px;
  height: 45px;
  border: 5px solid #ccc;
  border-top-color: #00baff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


 .consulta {
    
    text-align: center;
  }



@media (max-width: 600px) {
  body {
    background-color: #ffffff;
    font-size: 4vw; /* Fuente relativa */
  }

   #global-toast {
    font-size: 1rem;    /* un poco más pequeño para caber mejor */
    padding: .6rem 1rem;
    top: .5rem;
    margin-top: 5rem;
    border-radius: 1rem;
  }


  /* Splash loader (ya lo agregaste en el HTML) */
#page-loader{
  position:fixed; inset:0; z-index:9999;
  background:#00377d; /* azul Tigo */
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:16px; transition:opacity .4s ease;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
           env(safe-area-inset-bottom) env(safe-area-inset-left);
}
#page-loader.hide{ opacity:0; pointer-events:none; }
#page-loader .loader-logo{ width:clamp(120px, 40vw, 180px); height:auto; }
#page-loader .loader-spinner{
  width:clamp(40px, 12vw, 56px); height:clamp(40px, 12vw, 56px);
  border:clamp(3px, 1vw, 6px) solid rgba(255,255,255,.35);
  border-top-color:#fff; border-radius:50%;
  animation:spin 1s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }


  .container {
    width: 90%; /* Relativo al ancho de pantalla */
    max-width: 95%; /* Más flexible para pantallas pequeñas */
    margin: 5vh auto; /* Centrado automático con margen vertical responsivo */
    padding: 10% 5% 40% 5%; /* Padding responsivo */
    border-radius: 2.5vw; /* Bordes adaptativos */
    box-shadow: 0 0 1vw rgba(0, 0, 0, 0.1);
    background: #fff;
  }

  .radio-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 4vw; /* Escalable según ancho */
    color: #444;
    margin-top: 2vw;
  }

 .option-card {
    width: 120px; /* Más pequeña en móvil */
    padding: 0.4rem;
  }


  .terms {
    font-size: 3vw;
    color: #666;
    white-space: normal; /* Permite salto de línea */
    word-wrap: break-word;
    text-align: center;
    margin-top: 2vw;
    padding: 0 2vw;
    line-height: 1.4;
  }

  .terms a {
    display: inline-block;
    font-size: 3.2vw;
    text-decoration: none;
    color: #00baff;
    word-break: break-word;
  }

  .custom-radio {
    width: 3.2vw;
    height: 3.2vw;
    border: 0.4vw solid #00baff;
    border-radius: 50%;
    margin-right: 2vw;
    position: relative;
  }

  .radio-container input[type="radio"]:checked + .custom-radio::after {
    content: '';
    width: 1.8vw;
    height: 1.8vw;
    background: #00baff;
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }

  .formulario {
    transform: none !important;
    margin: 0 auto;
  }

  .floating input {
    width: 100%;
    margin-bottom: 3vw;
    padding: 3vw;
    font-size: 4vw;
    border: 0.2vw solid #00baff;
    border-radius: 1.5vw;
    box-sizing: border-box;
  }

  .floating label {
    font-size: 3.5vw;
    top: -1vw;
    left: 3vw;
  }

  h2 {
    color: #00377d;
    font-size: 4vw;
    margin-bottom: 2vw;
    text-align: center;
  }

  p {
    font-size: 4vw;
    text-align: center;
  }

  .continuar-btn {
    position: static;
    width: 50%; /* Botón adaptativo */
    border-radius: 2vw;
    padding: 3vw 0;
    font-size: 3.5vw;
    display: block;
    margin: 2vw auto 0 auto;
  }

  .footer-left {
    min-width: 100%;
    text-align: center;
    margin: 3vw 0;
  }

  .footer-right {
    justify-content: center;
    margin: 2vw 0;
  }

  .logo {
    left: 0 !important;
  }

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5vw 3vw;
    height: 12vw; /* Altura relativa */
  }

  .icons {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 4vw;
    margin-right: 5vw;
  }

  .icons i {
    font-size: 5vw;
    cursor: pointer;
  }

  .hamburger {
    display: block;
    font-size: 5vw;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 12vw;
    left: 0;
    width: 100%;
    background-color: #00377d;
    padding: 5vw 0;
    gap: 4vw;
    text-align: center;
    z-index: 999;
  }

  .nav-links a {
    font-size: 4.5vw;
    display: block;
    width: 100%;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 1vw;
    flex-direction: row;
  }

  .logo img {
    height: 12vw;
    width: auto;
  }

  .footer {
    padding: 3vw;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 2vw;
  }

  .footer-left {
    font-size: 3vw !important;
    line-height: 1.4;
    margin: 0 auto;
  }

  .footer-left p {
    margin: 2vw;
    font-size: 3vw;
  }

  .footer-right {
    margin-top: 1vw;
    margin-right: 1vw;
    gap: 3vw;
  }

  .footer-right a i {
    font-size: 5vw;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 12vw;
    left: 0;
    width: 100%;
    height: calc(100% - 12vw);
    background-color: #00377d;
    padding: 5vw 0;
    gap: 4vw;
    text-align: center;
    z-index: 999;
    overflow-y: auto;
  }

  .nav-links.active {
    display: flex;
  }
}

/* Estilos para tablets (iPad Mini y similares) */
@media (min-width: 601px) and (max-width: 1024px) {
  .footer {
    width: 100%;
    padding: 15px 20px; /* Ajuste proporcional */
    box-sizing: border-box;
  }
   #global-toast {
    font-size: 0.9rem;    /* un poco más pequeño para caber mejor */
    padding: .6rem 1rem;
    top: .5rem;
  }

  .footer-container {
    max-width: 100%;
    padding: 0 15px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer-left, 
  .footer-right {
    min-width: auto;
    flex: 1 1 100%;
    text-align: center;
    justify-content: center;
    margin: 5px 0;
  }

  .footer-left p {
    margin: 4px 0;
    font-size: 12px;
    line-height: 1.4;
  }

  .footer-right a i {
    font-size: 18px;
  }
}

/* Estilos para tablets (iPad Mini y similares) */
@media (min-width: 601px) and (max-width: 1024px) {
  /* Contenedor */
  .container {
    width: 80%; /* Aprovecha más pantalla */
    max-width: 600px; /* Evita que se expanda demasiado */
    margin: 4vh auto;
    padding: 3% 4% 6% 8%;
    border-radius: 1.2rem;
    box-shadow: 0 0 0.6rem rgba(0, 0, 0, 0.1);
  }

   #global-toast {
    font-size: 0.9rem;    /* un poco más pequeño para caber mejor */
    padding: .6rem 1rem;
    top: .5rem;
  }

  /* Textos y encabezados */
  h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
  }

  p,
  label,
  .terms {
    font-size: 1rem;
  }

  .terms a {
    font-size: 1rem;
  }

  /* Inputs y botones */
  .floating input {
    font-size: 1rem;
    padding: 0.9rem;
    border-radius: 0.5rem;
  }

  .continuar-btn {
    width: 35%;
    padding: 1rem 0;
    font-size: 1rem;
    border-radius: 1rem;
    margin-top: 1.5rem;
    position: static; /* Evita desbordes en tablet */
  }

  /* Header y navegación */
  .header {
    height: 9vh;
    padding: 0 3%;
  }

  .logo img {
    height: 3.5rem;
  }

  .nav-links a {
    font-size: 1rem;
    gap: 3vw;
  }

  /* Asegura que body ocupe toda la altura y use flexbox */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Contenido principal (empuja el footer) */
.main-content {
  flex: 1; /* Esto empuja el footer hacia abajo */
}

/* Footer */
.footer {
  width: 100%;
  padding: 40px;
  font-size: 0.9rem;
  box-sizing: border-box;
  margin-top: auto; /* Hace que el footer quede pegado al fondo */
  background-color: #00377d; /* asegúrate que tenga su color */
  color: white;
}

.footer-container {
  max-width: 100%;
  flex-direction: column;
  text-align: center;
  gap: 10px;
}

.footer-left,
.footer-right {
  min-width: auto;
  flex: 1 1 100%;
  text-align: center;
  justify-content: center;
  margin: 5px 0;
}

.footer-left p {
  margin: 4px 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

.footer-right a i {
  font-size: 1.2rem;
}

}









 



