body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #FFFFFF;
  color: #333;
}

/* Header */
.movistar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: white;
  border-bottom: 1px solid #ddd;
}

.logo-movistar {
  height: 26px;
}

.procesado-epayco {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #666;
}

.epayco-mini {
  height: 18px;
  margin-top: 0.3rem;
}

/* Tabs */
.tabs-servicios {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: 1.2rem 0 0.6rem;
  flex-wrap: wrap;
}

.tab {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: none;
  background: #e4e4e4;
  font-size: 0.85rem;
  cursor: default;
}

.tab.active {
  background: #00b1eb;
  color: white;
  font-weight: bold;
}

/* Título */
.titulo-principal {
  text-align: center;
  font-size: 1.25rem;
  margin: 1.5rem 0 1rem;
}

.toggle-tipo {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
  
}

.toggle {
  background-color: #f3f3f3;
  color: #333;
  border: none;
  padding: 0.6rem 1.3rem;
  border: 1px solid #0B2939;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.toggle.active {
  background-color: #0B2939; /* azul Movistar */
  color: white;
}


/* Input */
.input-centro {
  max-width: 350px;
  margin: auto;
  margin-top: 2rem;
}

.input-icon-wrapper {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #ccc; /* color base */
  padding: 0.9rem 0.3rem;
  border-radius: 0px;
  transition: border-color 0.3s ease;
}

/* Ícono gris por defecto */
.input-icon-wrapper .icono {
  color: #888;
  margin-right: 0.6rem;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

/* Input sin borde ni sombra al enfocar */
.input-icon-wrapper input {
  border: none;
  outline: none;       /* ✅ elimina el recuadro naranja */
  box-shadow: none;    /* ✅ elimina cualquier sombra interna */
  font-size: 1rem;
  flex: 1;
  background: transparent;
}

/* Estado activo (cuando tiene texto) */
.input-icon-wrapper.activo {
  border-bottom: 2px solid #019df4; /* línea azul */
}

.input-icon-wrapper.activo .icono {
  color: #019df4; /* ícono azul */
}

.icono {
  color: #888;
  margin-right: 0.6rem;
  font-size: 1.1rem;
}

/* Botón */
.btn-consultar {
  margin: 1.5rem auto 2rem;
  display: block;
  width: 90%;
  max-width: 400px;
  padding: 0.8rem;
  border: none;
  background-color: #d3d3d3;
  color: #777;
  font-size: 1.05rem;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
}

.btn-consultar.activo {
  background-color: #0B2939; /* Azul Movistar */
  color: white;
}

/* Métodos de pago */
.metodos-pago {
  text-align: center;
  padding-bottom: 2rem;
}

.texto-metodos {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #0A2728;;
}

.logos-metodos {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.logos-metodos img {
  height: 20px;
}

/* Loader */
.loader-overlay {
  position: fixed;
  inset: 0;
  background-color: #000000e8;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none;
}

.loader-img {
  width: 200px;
  height: 200px;
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

/* Toast */
.toast-oculto {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #111;
  color: white;
  padding: 1rem 2rem;
  font-weight: bold;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  max-width: 90%;
  text-align: center;
  transition: opacity 0.4s ease;
}

.toast-visible {
  opacity: 1;
  pointer-events: auto;
}


.header-cuadro {
  display: flex;
  justify-content: center;  
  padding: 1.2rem 2rem;
}

.header-cuadro-inner {
  background-color: white;
  border-radius: 6px;
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 480px;

  /* Sombra solo por debajo */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.95); 
}

.logo-movistar {
  height: 26px;
}

.epayco-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.80rem;
  color: #333;
}

.epayco-box i {
  font-size: 0.5rem;
  color: #555;
}

.logo-epayco-mini {
  height: 16px;
  object-fit: contain;
}

.epayco-box span {
  font-size: 0.60rem; /* Puedes ajustar: 0.6rem, 0.7rem, etc. */
  font-weight: normal;
  color: #444;
}

.scroll-exterior {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 1rem;
  width: 100%;
}

.scroll-interno {
  display: inline-flex; /* ✅ Esto es CLAVE */
  white-space: nowrap;
  background-color: #adad11;
  border-radius: 999px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
  padding: 0.5rem 1rem;
  gap: 0.6rem;
}

/* Botones tab */
.tab {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: none;
  background: #f0f0f0;
  font-size: 1rem;
  color: #019df4;
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.3s, color 0.3s;
  flex-shrink: 0; /* ✅ evita que se achiquen */
}

.tab.active {
  background-color: #019df4;
  color: white;
  font-weight: bold;
  
}

.banner-promo {
  width: 100vw;  /* ancho total del viewport */
  margin-left: calc(-50vw + 50%);  /* elimina márgenes del contenedor padre */
  margin-top: 1rem;
}

.banner-promo img {
  width: 100%;
  display: block;
  max-width: none;
}


/* oculta scroll en navegadores */
.scroll-exterior::-webkit-scrollbar {
  display: none;
}

/* 🧼 Evita que el scroll se extienda al body */
body {
  overflow-x: hidden;
}

/* 🚫 Corrige comportamiento del scroll horizontal externo */
.scroll-exterior {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 1rem;
  max-width: 100vw; /* 🔒 limita al ancho visible */
  box-sizing: border-box;
}

/* Asegura que el scroll interno no genere ruptura */
.scroll-interno {
  display: inline-flex;
  white-space: nowrap;
  background-color:#FAFAF4;
  border-radius: 999px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
  padding: 0.5rem 1rem;
  gap: 0.6rem;
}


.header-full {
  width: 100%;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0,0,0,0.08);
  padding: 0.7rem 0; /* Menos padding vertical, más elegante */
  margin-bottom: 2.6em;
}

.header-full-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.3rem 1rem; /* Espacio a los lados */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-movistar {
  height: 26px;
  object-fit: contain;
  margin-left: 1.4rem;;
}

.epayco-box {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #333;
  line-height: 1;
}

.epayco-box i {
  font-size: 0.50rem;
  color: #555;
  margin-right: -2px;
}

.logo-epayco-mini {
  height: 16px;
  object-fit: contain;
}

.epayco-box {
  margin-left: auto; /* Empuja hacia la izquierda */
  transform: translateX(-20px); /* 🔄 Ajusta la cantidad que quieras */
}

.titulo-factura {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: #0A2728; /* Color más fino y sobrio */
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.titulo-factura strong {
  font-weight: 700;
  color: #0A2728; /* Oscuro tipo azul profundo */
}


/* Contenedor centrado del botón */
.contenedor-btn-auto {
  display: flex;
  justify-content: center;
  margin-top: 1.2rem;
}

/* Ajustes visuales del botón */
.btn-auto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 1rem 1.6rem; /* ✅ reduce el ancho interno */
  font-size: 1.1rem;
  border-radius: 50px;
  border: none;
  font-weight: 500;
  background-color: #FFFFFF;
  color: #D3D4D3;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: not-allowed;
  width: auto; /* ✅ evita que ocupe todo el ancho */
  min-width: 280px; /* ✅ ancho visual como el original */
  margin-top: 1rem;
  border: 1px solid #ccc;

}

.btn-auto:enabled {
  background-color: #F28D15;
  color: white;
  cursor: pointer;
}


.cloudflare-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #ddd;
  background: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 5px;
  max-width: 270px;
  margin: 1.2rem auto 0 auto;
  font-size: 0.85rem;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.estado {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid green;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.estado-exito {
  display: none;
  color: #3b3d3b;
  font-weight: bold;
}

.check-icon {
  width: 32px;
  height: 32px;
}

.logo-cloudflare {
  height: 25px;
  margin-left: 1rem;
}

.cloudflare-derecha {
  text-align: right;
  font-size: 0.7rem;
  line-height: 1.2;
}

.cloudflare-derecha a {
  color: #333;
  text-decoration: underline;
  font-size: 0.7rem;
}

/* Responsive ajustes */
@media screen and (max-width: 400px) {
  .cloudflare-box {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
  .cloudflare-derecha {
    text-align: center;
  }
}

/* Texto de “Operación exitosa” */
.estado-exito span {
  font-size: 0.85rem; /* antes 0.95rem */
  font-weight: 600;   /* un poco más fino */
}

/* Enlaces de privacidad y términos */
.cloudflare-derecha .links a {
  font-size: 0.48rem; /* más pequeño */
  color: #333;
  text-decoration: underline;
}

.cloudflare-derecha {
  font-size: 0.7rem; /* reduce también el contenedor de los enlaces */
  line-height: 1.1;
}

@media screen and (max-width: 400px) {
   .cloudflare-box {
    flex-direction: row;        /* 🔁 Manténlo horizontal */
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
  }
   .estado {
    flex-direction: row;
    gap: 10px;
    align-items: center;
  }
  .check-icon {
    width: 22px;
    height: 22px;
  }

  .logo-cloudflare {
    height: 20px;
    margin-left: 0;
  }

   .cloudflare-derecha {
    text-align: right;
  }
  .cloudflare-derecha .links a {
    font-size: 0.5rem;
    text-decoration: underline;
  }


/* Contenedor centrado del botón */
.contenedor-btn-auto {
  display: flex;
  justify-content: center;
  margin-top: 1.2rem;
}


/* Ajustes visuales del botón */
.btn-auto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 1rem 1.4rem; /* ✅ reduce el ancho interno */
  font-size: 1.1rem;
  border-radius: 50px;
  border: none;
  font-weight: 500;
  background-color: #FFFFFF;
  color: #D3D4D3;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: not-allowed;
  width: auto; /* ✅ evita que ocupe todo el ancho */
  min-width: 280px; /* ✅ ancho visual como el original */
  margin-top: 1rem;
  border: 1px solid #ccc;

}

.btn-auto:enabled {
  background-color: #F28D15;
  color: white;
  cursor: pointer;
}


}

@media screen and (min-width: 400px) {
  .banner-promo {
    width: 100%;
    margin: 1rem auto 0 auto;
    overflow: hidden;
  }

  .banner-promo img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    object-fit: cover;
  }



  .logos-metodos {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
}

.btn-consultar {
  position: relative;
  width: 100%;
  min-height: 3rem;
  font-size: 1rem;
  font-weight: bold;
  color: white;
  background-color: #0a2c3d;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn-consultar .btn-texto {
  transition: opacity 0.3s ease;
}

.btn-consultar .btn-loader {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid white;
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Al activarse la clase "cargando" */
.btn-consultar.cargando .btn-texto {
  opacity: 0;
}

.btn-consultar.cargando .btn-loader {
  opacity: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
