/* Demo home TMS — weblocal (portal de pagos accede desde "Sección de Pagos") */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --azul: #1a73e8;
  --azul-oscuro: #0d47a1;
  --negro: #202124;
  --gris: #5f6368;
  --borde: #dadce0;
  --fondo: #f8f9fa;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--negro);
  line-height: 1.6;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 10;
  background: #fff; border-bottom: 1px solid var(--borde);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.logo { height: 30px; }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--gris); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--azul); }

.btn {
  display: inline-block; border: none; cursor: pointer;
  border-radius: 24px; padding: 10px 24px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background 0.15s;
}
.btn-pagos { background: var(--azul); color: #fff; }
.btn-pagos:hover { background: var(--azul-oscuro); }
.btn-primary { background: var(--azul); color: #fff; }
.btn-primary:hover { background: var(--azul-oscuro); }
.btn-outline { background: #fff; color: var(--azul); border: 1px solid var(--borde); }
.btn-outline:hover { border-color: var(--azul); }

/* Hero */
.hero { background: linear-gradient(180deg, #eef4fe 0%, #ffffff 100%); }
.hero-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center;
  gap: 40px; padding: 80px 20px;
}
.hero-text h1 { font-size: 42px; line-height: 1.2; margin-bottom: 16px; }
.hero-text p { color: var(--gris); font-size: 18px; margin-bottom: 28px; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; }

.hero-art { position: relative; display: flex; justify-content: center; }
.pulse-ring {
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  border: 2px solid var(--azul); opacity: 0.25;
  animation: pulse 2.5s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.85); opacity: 0.35; }
  100% { transform: scale(1.25); opacity: 0; }
}
.speed-card {
  background: #fff; border: 1px solid var(--borde); border-radius: 16px;
  box-shadow: 0 8px 30px rgba(26, 115, 232, 0.15);
  width: 220px; height: 220px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.speed-value { font-size: 64px; font-weight: 700; color: var(--azul); line-height: 1; }
.speed-unit { font-size: 20px; color: var(--negro); font-weight: 600; }
.speed-label { font-size: 13px; color: var(--gris); margin-top: 6px; }

/* Features */
.features { padding: 64px 0; background: #fff; }
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.feature {
  background: var(--fondo); border-radius: 12px; padding: 28px 22px;
}
.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--gris); }

/* Planes (cierre de la página demo) */
.planes {
  background: var(--azul); color: #fff; text-align: center;
}
.planes-inner { padding: 72px 20px; }
.planes h2 { font-size: 32px; margin-bottom: 10px; }
.planes-sub { font-size: 17px; opacity: 0.9; }

/* Footer */
.footer {
  background: var(--negro); color: #bdc1c6;
  text-align: center; font-size: 13px; padding: 20px 0;
}

/* ============================================================
   Sección de Pagos (pagos.html)
   ============================================================ */
.logo-pagos { height: 44px; }
.pagos-ayuda {
  color: var(--azul); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 8px 18px; border: 1px solid var(--borde); border-radius: 24px;
}
.pagos-ayuda:hover { border-color: var(--azul); background: #eef4fe; }
.pagos-body { background: var(--fondo); display: flex; flex-direction: column; min-height: 100vh; }
.pagos-main { flex: 1; display: flex; justify-content: center; padding: 48px 16px 72px; }

.pay-card {
  width: 100%; max-width: 560px; align-self: flex-start;
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(26, 115, 232, 0.14);
}
.pay-card-head {
  background: var(--azul); color: #fff; text-align: center; padding: 26px 24px 22px;
}
.pay-card-head h1 { font-size: 26px; letter-spacing: 0.5px; margin-bottom: 2px; }
.pay-card-head p { font-size: 14px; opacity: 0.92; }
.pay-card-body { padding: 28px 28px 32px; }

.hidden { display: none !important; }

/* Buscador */
.pay-search { display: flex; align-items: center; gap: 8px; }
.pay-search input {
  flex: 1; height: 48px; border: 1px solid var(--borde); border-radius: 24px;
  padding: 0 20px; font-size: 15px; outline: none;
}
.pay-search input:focus { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(26,115,232,0.12); }
.pay-search button {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--borde);
  background: #fff; color: var(--gris); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pay-search button:hover { color: var(--azul); border-color: var(--azul); }
.pay-hint { font-size: 12px; color: var(--gris); margin: 8px 4px 0; }
.pay-cliente { font-size: 13px; color: var(--gris); margin: 10px 4px 2px; }

/* Resultado de la consulta */
.pay-pill {
  margin-top: 18px; border: 1px solid var(--borde); border-radius: 24px;
  padding: 12px 20px; font-size: 15px;
}
.pay-pill strong { color: var(--azul); }
.pay-lines { list-style: none; margin: 12px 4px 4px; font-size: 14px; color: var(--negro); }
.pay-lines li { margin-bottom: 6px; }
.pay-lines span { font-weight: 600; }

.pay-actions { display: flex; gap: 12px; margin-top: 20px; }
.pay-actions .btn { flex: 1; text-align: center; }
.pay-actions-centro { justify-content: center; }
.btn:disabled, .btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Chips de método */
.pay-chips { display: flex; gap: 10px; margin-bottom: 18px; }
.pay-chip {
  flex: 1; border: 1px solid var(--borde); background: #fff; color: var(--negro);
  border-radius: 12px; padding: 12px 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
}
.pay-chip:hover { border-color: var(--azul); }
.pay-chip.activo { background: var(--azul); border-color: var(--azul); color: #fff; }

/* Datos de destino */
.pay-destino {
  background: var(--azul); color: #fff; border-radius: 14px;
  padding: 16px 18px; display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px;
}
.pay-destino-info { flex: 1; }
.pay-destino h3 { font-size: 16px; margin-bottom: 6px; }
.pay-destino-info div span { opacity: 0.85; font-size: 13px; }
.pay-destino-info div strong { font-size: 14px; }
.pay-destino button {
  border: 1px solid rgba(255,255,255,0.5); background: rgba(255,255,255,0.12);
  color: #fff; border-radius: 50%; width: 38px; height: 38px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.pay-destino button:hover { background: rgba(255,255,255,0.25); }
.pay-destino button.copiado { background: #34a853; border-color: #34a853; }

/* Avisos */
.pay-alert { border-radius: 12px; padding: 12px 16px; font-size: 13.5px; margin-bottom: 12px; }
.pay-alert-amarillo { background: #fef7e0; border: 1px solid #f9dc8a; color: #8a5a00; }
.pay-alert-rojo { background: #fce8e6; border: 1px solid #f5b9b3; color: #b3261e; }

/* Campos */
.pay-field { margin-bottom: 14px; }
.pay-field label { display: block; font-size: 13.5px; color: var(--negro); margin: 0 2px 6px; }
.pay-field input, .pay-field select {
  width: 100%; height: 46px; border: 1px solid var(--borde); border-radius: 12px;
  padding: 0 14px; font-size: 15px; outline: none; background: #fff; color: var(--negro);
}
.pay-field input:focus, .pay-field select:focus {
  border-color: var(--azul); box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
}
.pay-phone { display: flex; gap: 8px; }
.pay-phone select { width: 96px; flex: none; }
.ocr-filled { border-color: var(--azul) !important; background: #eef4fe !important; }

/* Capture / OCR */
.pay-capture {
  border: 1.5px dashed var(--borde); border-radius: 14px; padding: 16px;
  margin: 6px 0 16px; text-align: center;
}
.pay-capture label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  color: var(--azul); font-size: 14px; font-weight: 600;
}
.pay-capture input[type="file"] { display: none; }
.pay-ocr {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 10px; font-size: 13px; color: var(--gris);
}
.pay-spinner {
  width: 16px; height: 16px; border: 2px solid var(--borde); border-top-color: var(--azul);
  border-radius: 50%; animation: pay-girar 0.8s linear infinite; display: inline-block;
}
@keyframes pay-girar { to { transform: rotate(360deg); } }

/* Verificación */
.pay-titulo { text-align: center; font-size: 24px; margin: 8px 0 20px; }
.pay-resumen-metodo {
  background: var(--fondo); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px;
}
.pay-resumen-metodo span { display: block; font-size: 12.5px; color: var(--gris); }
.pay-resumen-metodo strong { font-size: 15px; }
.pay-resumen { margin: 0 4px; }
.pay-resumen div { margin-bottom: 12px; }
.pay-resumen dt { font-size: 13px; font-weight: 700; }
.pay-resumen dd { font-size: 14px; color: var(--gris); margin: 2px 0 0; }

/* Éxito */
.pay-exito { margin: 48px 0; }
.pay-btn-salir { max-width: 320px; }

@media (max-width: 520px) {
  .pay-card-body { padding: 20px 16px 24px; }
  .pay-chips { flex-direction: column; }
  .pay-actions { flex-direction: column; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 48px 20px; }
  .hero-text p { margin: 0 auto 28px; }
  .hero-actions { justify-content: center; }
  .hero-art { margin-top: 32px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
}
@media (max-width: 520px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 30px; }
}

/* Panel de Ayuda */
.ayuda-overlay {
  position: fixed; inset: 0; background: rgba(32,33,36,0.5); z-index: 50;
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px;
}
.ayuda-panel {
  background: #fff; border-radius: 16px; max-width: 560px; width: 100%;
  max-height: 85vh; overflow-y: auto; padding: 24px 28px 28px;
}
.ayuda-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ayuda-head h2 { font-size: 22px; }
.ayuda-head button {
  border: none; background: none; font-size: 18px; cursor: pointer; color: var(--gris);
  width: 36px; height: 36px; border-radius: 50%;
}
.ayuda-head button:hover { background: var(--fondo); }
.ayuda-panel h3 { font-size: 16px; margin: 18px 0 10px; }
.ayuda-pasos { margin: 0 0 4px 20px; font-size: 14px; color: var(--negro); }
.ayuda-pasos li { margin-bottom: 6px; }
.ayuda-panel details {
  border: 1px solid var(--borde); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px;
}
.ayuda-panel summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.ayuda-panel details p { font-size: 13.5px; color: var(--gris); margin-top: 8px; }
.ayuda-wsp { display: block; text-align: center; margin-top: 16px; }

/* Éxito animado */
.exito-icono { display: flex; justify-content: center; margin: 40px 0 4px; }
.exito-circulo {
  stroke-dasharray: 202; stroke-dashoffset: 202;
  animation: exito-trazo 0.7s ease-out forwards;
}
.exito-check {
  stroke-dasharray: 44; stroke-dashoffset: 44;
  animation: exito-trazo 0.45s ease-out 0.55s forwards;
}
@keyframes exito-trazo { to { stroke-dashoffset: 0; } }
.pay-exito-titulo { margin: 12px 0 32px; }

/* ===== Pago en línea (pasarelas simuladas) ===== */
.pay-gateway {
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.pay-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pay-qr {
  display: flex;
  justify-content: center;
  padding: 12px;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 12px;
  width: fit-content;
  margin: 12px auto 4px;
}

.pay-qr-ref {
  text-align: center;
}

.pay-declinar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #5f6368;
  margin: 8px 0;
  cursor: pointer;
}

.pay-declinar input {
  accent-color: #1a73e8;
}

/* Oficina del cliente en la consulta de saldo */
.pay-oficina {
  margin: 6px 0 2px;
}

/* Insignia del banco (pago móvil por oficina) */
.banco-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.destino-banco {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

/* Logo real del banco sobre chip blanco (contraste en el panel azul) */
.banco-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 28px;
  background: #fff;
  border-radius: 6px;
  padding: 3px 5px;
  flex-shrink: 0;
}

.banco-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Nota bajo el título de éxito (verificación en tiempo real / SMS) */
.pay-exito-nota {
  text-align: center;
  max-width: 420px;
  margin: 4px auto 12px;
}
