body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #ffffff;
  color: #333;
}

header {
  background-color: #00337d;
  color: white;
  padding: 1rem;
  text-align: center;
}

.container {
  padding: 1rem;
}

.input-group {
  margin-bottom: 1rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: bold;
}

.input-group input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1rem;
}

.method {
  background-color: #fff;
  padding: 1rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;

  /* animación de entrada */
  opacity: 0;
  transform: translateY(15px);
  animation: slideFadeUp 0.8s ease-out forwards;
}

.method img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 0.4rem;
  transition: transform 0.2s ease;
}

.method span {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

/* escalonamos la animación */
.method:nth-child(1) { animation-delay: 0.2s; }
.method:nth-child(2) { animation-delay: 0.4s; }
.method:nth-child(3) { animation-delay: 0.6s; }
.method:nth-child(4) { animation-delay: 0.8s; }
.method:nth-child(5) { animation-delay: 1s; }
.method:nth-child(6) { animation-delay: 1.2s; }
.method:nth-child(7) { animation-delay: 1.4s; }
.method:nth-child(8) { animation-delay: 1.6s; }
.method:nth-child(9) { animation-delay: 1.8s; }
.method:nth-child(10) { animation-delay: 2s; }
.method:nth-child(11) { animation-delay: 2.2s; }
.method:nth-child(12) { animation-delay: 2,4s; }

@keyframes slideFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* efecto al pasar/tocar */
.method:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.categoria {
  text-align: center;
}

/* efecto en la imagen */
.method:hover img {
  transform: scale(1.1);
}

/* estado seleccionado */
.method.selected {
  border-color: #00c4ff;
  background: #e6f9ff;
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,196,255,0.3);
}

button {
  margin-top: 2rem;
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  background-color: #06cee8;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.input-icon-wrapper {
  display: flex;
  align-items: center;
  border-bottom: 1px solid black;
  width: 80%;
  max-width: 350px;
  margin: 2rem auto;
  padding: 0.5rem 0;
}

.input-icon-wrapper img.input-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  filter: grayscale(100%) brightness(0);
}

.input-icon-wrapper input {
  border: none;
  outline: none;
  background-color: transparent;
  font-size: 1rem;
  flex: 1;
  color: #333;
}

.input-icon-wrapper input::placeholder {
  color: #200020;
}


header {
  background-color: #ffffff;
  padding: 1rem;
  color: white;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.logo-epayco {
  width: 90px;
  height: auto;
  object-fit: contain;
}

.titulo-header {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
}

.header-content-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.logo-epayco {
  width: 110px;
  height: auto;
  object-fit: contain;
}

.titulo-header {
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0;
  text-align: center;
}


.logo-epayco {
  width: 140px;
  height: auto;
  object-fit: contain;
}

/* Título separado */
.titulo-principal {
  text-align: center;
  font-size: 1.6rem;
  font-weight: bold;
  margin: 1.5rem 0 1rem;
  color: #333;
}

.titulo-principal {
  text-align: center;
  font-size: 1.6rem;
  font-weight: bold;
  margin: 1.5rem 0 1rem;
  color: #200020;
  opacity: 0;
  transform: translateY(15px);
  animation: slideFadeUp 0.9s ease-out forwards;
}

@keyframes slideFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.titulo-medio-pago {
  text-align: center;
  font-weight: bold;
  margin: 20px 0;
}

#btnPagar {
  display: block;
  width: 100%;
  padding: 1rem;
  margin-top: 1rem;
  background: #00c4ff;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s;

  /* animación de entrada */
  opacity: 0;
  transform: translateY(15px);
  animation: slideFadeUp 0.9s ease-out forwards;
  animation-delay: 1s; /* aparece después de los botones */
}

#btnPagar:hover:enabled {
  background: #00c4ff;
}



@keyframes slideFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.categoria {
  padding: 1rem;
}

.categoria h2 {
  font-size: 1.2rem;
  margin-bottom: -10px;
  color: #200020;
}

.categoria p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #666;
}

.grid-empresas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.empresa {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  text-align: center;
}

.empresa img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.empresa span {
  font-size: 0.9rem;
  color: #333;
}

.input-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid #555;
  max-width: 300px;
  margin: 0 auto 20px;
  padding: 8px;
}

.input-icon-wrapper img {
  width: 24px;
  margin-right: 10px;
}

.input-icon-wrapper input {
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  width: 100%;
}

.btn-consultar {
  background-color: #FDDA24;
  color: rgb(0, 0, 0);
  font-weight: bold;
  border: none;
  padding: 12px 30px;
  border-radius: 25px; /* estilo cápsula */
  cursor: pointer;
  font-size: 14px;
  width: 250px; /* ajusta esto al largo que quieras */
  display: block;
  margin: 20px auto 0; /* centra el botón horizontalmente */
  transition: background-color 0.3s ease;
}

.btn-consultar:hover {
  background-color: #FDDA24;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245, 233, 5, 0.897);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(195, 0, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(195, 0, 255, 0);
  }
}

.btn-consultar {
  animation: heartbeat 1.5s infinite ease-in-out;
}

/* Loader centrado en pantalla */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000; /* fondo oscuro */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  display: none; /* oculto por defecto */
}

.loader-img {
  width: 120px;
  height: 120px;
  animation: pulse 1.2s infinite ease-in-out;
}

/* (Opcional) animación de respiración */
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.85; }
}


/* ===== FOOTER ===== */
.footer {
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  text-align: center;
  padding: 20px 10px;
  font-size: 14px;
}

.footer-social {
  margin-bottom: 10px;
}

.footer-social a {
  display: inline-block;
  margin: 0 10px;
}

.footer-social img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1); /* blanco */
  transition: transform 0.2s ease;
}

.footer-social img:hover {
  transform: scale(1.2);
}

.footer-copy {
  margin: 0;
  line-height: 1.4;
}

.footer-social a {
  display: inline-block;
  margin: 0 12px;
  color: rgb(0, 0, 0);
  font-size: 20px;
  transition: transform 0.3s ease;
}

.footer-social a:hover {
  transform: scale(1.2);
  color: #ffea00; /* opcional: color al pasar el mouse */
}


.footer-logo {
  text-align: center;
  margin-bottom: 15px;
}

.footer-logo img {
  max-width: 140px; /* ajusta el tamaño como prefieras */
  height: auto;
  margin-top: 1rem;
}

.toast-oculto {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(29, 0, 26, 0.95);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-align: center;
  backdrop-filter: blur(3px);

  /* 🚀 Agregado para que se vea más largo */
  max-width: 90%;
  min-width: 280px;
  width: auto;
  word-wrap: break-word;
}

.toast-visible {
  opacity: 1;
  pointer-events: auto;
}


.input-icon-wrapper select {
  appearance: none;
  background-color: transparent;
  border: none;
  font-size: 1rem;
  color: #333;
  margin-right: 8px;
  cursor: pointer;
}

.hidden {
  display: none;
}

.animated-wrapper {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.animated-wrapper.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  max-width: 300px;
  width: 90%;
}

.modal-content h3 {
  margin-bottom: 1rem;
}

.modal-content button {
  display: block;
  width: 100%;
  padding: 0.7rem;
  margin-top: 0.5rem;
  border: none;
  background: #E30613;
  color: white;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.modal-content .cerrar-modal {
  background: #777;
}
