/* AIRWIZ Pagos - Estilos completos */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --verde: #68BD44;
  --verde-osc: #4a9c2c;
  --verde-claro: #e8f5dc;
  --verde-glow: rgba(104,189,68,0.4);
  --navy: #253343;
  --navy-claro: #2f4356;
  --gris-bg: #f4f6fa;
  --texto: #1a2330;
  --texto-suave: #6b7680;
  --shadow-soft: 0 4px 24px rgba(37, 51, 67, 0.08);
  --shadow-strong: 0 12px 40px rgba(37, 51, 67, 0.18);
  --radius: 16px;
}
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800;900&display=swap');

html, body {
  font-family: 'Barlow', system-ui, -apple-system, sans-serif;
  color: var(--texto);
  background: var(--navy);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
a { color: inherit; text-decoration: none; }

/* HERO */
.hero {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(104,189,68,0.22), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(104,189,68,0.12), transparent 60%),
    linear-gradient(180deg, #1a2330 0%, #253343 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}
.hero-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-shapes .shape {
  position: absolute;
  background: linear-gradient(135deg, rgba(104,189,68,0.15), rgba(104,189,68,0.05));
  border-radius: 50%;
  filter: blur(50px);
  animation: float 20s infinite ease-in-out;
}
.hero-shapes .shape:nth-child(1) { width: 400px; height: 400px; top: -100px; right: -100px; }
.hero-shapes .shape:nth-child(2) { width: 300px; height: 300px; bottom: 10%; left: -100px; animation-delay: -10s; }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px,-30px); } }

.top {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 36px;
}
.top .logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 22px; letter-spacing: 0.5px;
  color: #fff; transition: transform 0.2s;
}
.top .logo:hover { transform: scale(1.02); }
.top .logo .badge {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--verde), var(--verde-osc));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 20px;
  box-shadow: 0 6px 18px var(--verde-glow);
}
.top .nav { display: flex; gap: 8px; align-items: center; }
.top .nav a {
  color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 10px; transition: all 0.2s;
}
.top .nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.top .nav .wa-btn {
  background: rgba(104,189,68,0.18);
  border: 1px solid rgba(104,189,68,0.3);
  color: var(--verde);
}
.top .nav .wa-btn:hover { background: var(--verde); color: #fff; transform: translateY(-1px); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px 60px; position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1fr 460px; gap: 60px; align-items: flex-start !important; margin-top: 0; }
.hero-grid > .hero-text { align-self: flex-start; }
.hero-grid > .search-card { align-self: flex-start; }
.hero-text { animation: slideUp 0.7s ease-out; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-text .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(104,189,68,0.15); color: var(--verde);
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 8px 16px; border-radius: 100px; margin-bottom: 20px;
  border: 1px solid rgba(104,189,68,0.3);
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(104,189,68,0.4); }
  50% { box-shadow: 0 0 0 10px rgba(104,189,68,0); }
}
.hero-text h1 { font-size: 60px; line-height: 1.05; font-weight: 900; margin-bottom: 22px; letter-spacing: -1.5px; }
.hero-text h1 .accent {
  background: linear-gradient(135deg, var(--verde) 0%, #9ee07a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-text p { font-size: 18px; color: rgba(255,255,255,0.75); margin-bottom: 32px; max-width: 480px; }
.hero-text .stats { display: flex; gap: 28px; margin-top: 36px; }
.hero-text .stat { border-left: 3px solid var(--verde); padding-left: 16px; }
.hero-text .stat .num { font-size: 28px; font-weight: 900; color: #fff; }
.hero-text .stat .lbl { font-size: 12px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.6px; }

.search-card {
  background: #fff; border-radius: 24px;
  padding: 20px 32px 28px; box-shadow: var(--shadow-strong);
  position: relative; animation: slideUp 0.7s ease-out 0.2s backwards;
}
.search-card .header { text-align: center; margin-bottom: 14px; }
.search-card .header .icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--verde), var(--verde-osc));
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; box-shadow: 0 10px 28px var(--verde-glow);
  color: #fff; font-size: 32px;
}
.search-card h3 { font-size: 22px; color: var(--navy); font-weight: 800; margin-bottom: 6px; }
.search-card .header p { color: var(--texto-suave); font-size: 14px; }

.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 11.5px; font-weight: 700; color: var(--navy);
  text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px;
}
.field .input-wrap { position: relative; }
.field .input-wrap .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; }
.field input {
  width: 100%; padding: 16px 16px 16px 50px;
  border: 2px solid #e0e6ec; border-radius: 12px;
  font-size: 16px; font-weight: 600; color: var(--navy);
  transition: all 0.2s; font-family: inherit; background: #fafbfd;
}
.field input:focus {
  outline: none; border-color: var(--verde); background: #fff;
  box-shadow: 0 0 0 4px rgba(104,189,68,0.15);
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--verde), var(--verde-osc));
  color: #fff; border: none;
  padding: 18px; border-radius: 14px;
  font-size: 15px; font-weight: 800; cursor: pointer;
  transition: all 0.2s; box-shadow: 0 6px 18px var(--verde-glow);
  text-transform: uppercase; letter-spacing: 0.8px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px var(--verde-glow); }

.trust-row {
  display: flex; justify-content: center; gap: 10px;
  margin-top: 22px; padding-top: 22px;
  border-top: 1px solid #eef1f4; flex-wrap: wrap;
}
.trust-row .pill {
  background: var(--verde-claro); color: var(--verde-osc);
  font-size: 11px; font-weight: 700;
  padding: 6px 12px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* COMO PAGAR */
/* ============ SECCIÓN "CÓMO PAGAR" — minimalista y elegante ============ */
.como-pagar { background: #fff; padding: 90px 24px 80px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--verde-osc);
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 0 4px 0; border-radius: 0; margin-bottom: 18px;
  position: relative;
}
.section-head .eyebrow::before, .section-head .eyebrow::after {
  content:""; display: inline-block; width: 22px; height: 1px; background: currentColor; opacity: 0.4;
}
.section-head h2 {
  font-size: clamp(28px, 4.5vw, 44px); color: var(--navy); font-weight: 800;
  margin-bottom: 14px; letter-spacing: -1.2px; line-height: 1.08;
}
.section-head p {
  color: var(--texto-suave); font-size: 15.5px; line-height: 1.6;
  max-width: 540px; margin: 0 auto;
}

.tabs-pago { max-width: 1100px; margin: 0 auto; }

/* Tabs minimalistas — segmented control style */
.tabs-nav {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 44px;
  padding: 6px;
  background: #f6f8fa;
  border-radius: 16px;
  position: relative;
  width: auto;
  max-width: 100%;
}
.tabs-nav-wrap { display: flex; justify-content: center; }

.tab-btn {
  background: transparent; border: none; border-radius: 12px;
  padding: 11px 18px; font-size: 13.5px; font-weight: 700; color: var(--texto-suave);
  cursor: pointer; transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex; align-items: center; gap: 8px; font-family: inherit;
  letter-spacing: -0.1px;
  position: relative;
}
.tab-btn:hover {
  color: var(--navy);
  background: rgba(255,255,255,0.7);
}
.tab-btn.active {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(37,51,67,0.06), 0 4px 14px rgba(37,51,67,0.08);
}
.tab-btn .ico {
  width: 22px; height: 22px;
  background: transparent; border-radius: 6px; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; color: inherit; flex-shrink: 0;
}
.tab-btn.active .ico { transform: scale(1.08); transition: transform .25s; }
.tab-btn .ico img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; }

@media (max-width: 640px) {
  .como-pagar { padding: 60px 16px 50px; }
  .section-head { margin-bottom: 32px; }
  .section-head .eyebrow { font-size: 10px; letter-spacing: 1.6px; }
  .section-head .eyebrow::before, .section-head .eyebrow::after { width: 16px; }
  .tabs-nav { padding: 4px; gap: 2px; border-radius: 12px; }
  .tab-btn { padding: 10px 14px; font-size: 12.5px; gap: 6px; }
  .tab-btn .ico { width: 20px; height: 20px; font-size: 13px; }
}

.tab-content { display: none; animation: fadeIn 0.4s ease-out; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.metodo-pago {
  background: #fff; border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-soft);
  display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start;
}
.metodo-info h3 { font-size: 26px; color: var(--navy); font-weight: 800; margin-bottom: 8px; }
.metodo-info > p { color: var(--texto-suave); margin-bottom: 24px; font-size: 15px; }
.steps { list-style: none; padding: 0; }
.steps li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #eef1f4; }
.steps li:last-child { border-bottom: 0; }
.steps li .num {
  flex: 0 0 36px; width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--verde), var(--verde-osc));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: 0 4px 10px var(--verde-glow);
}
.steps li .text { flex: 1; padding-top: 4px; }
.steps li .text strong { color: var(--navy); display: block; margin-bottom: 3px; font-size: 15px; }
.steps li .text span { color: var(--texto-suave); font-size: 13.5px; line-height: 1.5; }

.metodo-card {
  background: linear-gradient(135deg, var(--verde-claro), #fff);
  border: 2px solid var(--verde); border-radius: var(--radius);
  padding: 26px; text-align: center;
}
.metodo-card .logo-pago { font-size: 56px; margin-bottom: 12px; line-height: 1; }
/* Variante con imagen del admin: ícono cuadrado redondeado tipo app */
.metodo-card .logo-pago.has-img {
  width: 80px; height: 80px; margin: 0 auto 14px;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(37,51,67,0.12);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.metodo-card .logo-pago.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.metodo-card .nombre { font-size: 22px; font-weight: 900; color: var(--navy); margin-bottom: 4px; }
.metodo-card .descripcion { color: var(--verde-osc); font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.metodo-card .datos { background: #fff; border-radius: 10px; padding: 14px; margin-bottom: 14px; text-align: left; font-size: 13.5px; }
.metodo-card .datos .row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #eef1f4; }
.metodo-card .datos .row:last-child { border-bottom: 0; }
.metodo-card .datos .row .lbl { color: var(--texto-suave); font-weight: 500; }
.metodo-card .datos .row .val { color: var(--navy); font-weight: 800; font-family: monospace; }
.metodo-card .badge-tiempo {
  background: var(--verde); color: #fff;
  padding: 6px 14px; border-radius: 100px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* FAQ */
.faq { background: var(--gris-bg); padding: 90px 24px; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff; border-radius: 12px; margin-bottom: 12px;
  box-shadow: var(--shadow-soft); overflow: hidden; transition: all 0.2s;
}
.faq-item:hover { transform: translateY(-2px); }
.faq-item summary {
  padding: 18px 22px; cursor: pointer; font-weight: 700; color: var(--navy);
  font-size: 15px; display: flex; justify-content: space-between; align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; color: var(--verde); font-size: 24px; font-weight: 300;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer { padding: 0 22px 18px; color: var(--texto-suave); font-size: 14px; line-height: 1.65; }

/* CTA FINAL */
.cta-final {
  background: linear-gradient(135deg, var(--navy), #1a2330);
  padding: 80px 24px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.cta-final::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 50% 100%, rgba(104,189,68,0.2), transparent);
}
.cta-final h2 { font-size: 38px; font-weight: 900; margin-bottom: 14px; position: relative; z-index: 2; }
.cta-final h2 .accent {
  background: linear-gradient(135deg, var(--verde), #9ee07a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-final p { color: rgba(255,255,255,0.7); font-size: 16px; max-width: 540px; margin: 0 auto 24px; position: relative; z-index: 2; }
.cta-final .btn-primary { display: inline-flex; width: auto; padding: 16px 36px; position: relative; z-index: 2; }

/* FOOTER */
.footer { background: #1a2330; color: rgba(255,255,255,0.7); padding: 50px 24px 30px; text-align: center; font-size: 13px; }
.footer .links { display: flex; gap: 22px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.footer .links a { color: rgba(255,255,255,0.7); }
.footer .links a:hover { color: var(--verde); }
.footer .copy { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer a { color: var(--verde); }

/* ============ PÁGINA RECIBOS — premium ============ */
/* Fondo profesional fintech: gris muy claro con acento verde sutil arriba. */
.page-recibos {
  background: #f5f8fb;
  min-height: 100vh; padding: 28px 20px 60px;
  color: var(--texto);
  position: relative;
}
/* Franja de tinte verde MUY sutil arriba (efecto "header corporativo") */
.page-recibos::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0; height: 360px;
  background: linear-gradient(180deg, rgba(104,189,68,0.10) 0%, rgba(104,189,68,0.04) 50%, transparent 100%);
  pointer-events: none; z-index: 0;
}
/* Patrón muy sutil de puntos para textura (discreto) */
.page-recibos::after {
  content: ""; position: fixed; inset: 0;
  background-image: radial-gradient(circle, rgba(37,51,67,0.025) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none; z-index: 0;
}
.page-recibos > * { position: relative; z-index: 1; }
.page-recibos .back, .page-recibos .al-dia-back-link {
  color: var(--texto-suave);
}
.page-recibos .back:hover, .page-recibos .al-dia-back-link:hover {
  color: var(--verde-osc);
}
.recibos-wrap { max-width: 680px; margin: 0 auto; }
.recibos-wrap .back {
  color: var(--texto-suave); font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 22px; font-weight: 600; text-decoration: none;
  transition: all .2s;
}
.recibos-wrap .back:hover { color: var(--verde-osc); transform: translateX(-3px); }

/* Card del cliente con avatar de iniciales */
.recibos-card {
  background: #fff; border-radius: 20px; padding: 26px 28px;
  box-shadow: 0 4px 24px rgba(37,51,67,0.06), 0 1px 3px rgba(37,51,67,0.04);
  margin-bottom: 14px;
  opacity: 0; animation: rcFadeUp .5s forwards;
}
@keyframes rcFadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.recibos-card .titulo {
  font-size: 10.5px; color: var(--texto-suave);
  text-transform: uppercase; letter-spacing: 1.6px;
  margin-bottom: 6px; font-weight: 700;
}
.recibos-card .nombre {
  font-size: 20px; font-weight: 800; color: var(--navy);
  margin-bottom: 6px; line-height: 1.25; letter-spacing: -0.3px;
  /* Capitalizar el nombre en lugar de mostrar todo en mayúsculas */
  text-transform: capitalize;
}
.recibos-card .doc {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--texto-suave); font-size: 13px;
  background: #f6f8fa; padding: 4px 10px; border-radius: 999px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 600;
}
.recibos-card .doc::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--verde); display: inline-block;
}

.recibos-card .resumen {
  background: linear-gradient(135deg, var(--verde-claro) 0%, #d4ecc4 100%);
  border-left: 4px solid var(--verde);
  padding: 14px 18px; border-radius: 12px; margin-top: 18px;
  font-size: 14px; color: var(--verde-osc); line-height: 1.55;
  display: flex; align-items: center; gap: 12px;
}
.recibos-card .resumen::before {
  content: ""; flex-shrink: 0; width: 32px; height: 32px;
  background: var(--verde) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><polyline points='14 2 14 8 20 8'/></svg>") center / 18px no-repeat;
  border-radius: 10px;
}
.recibos-card .resumen strong { color: var(--navy); font-weight: 800; }

/* Items de factura con checkbox custom */
.factura-item {
  background: #fff; border-radius: 16px; padding: 18px 20px;
  margin-bottom: 10px; border: 1.5px solid #eef1f4;
  display: flex; align-items: center; gap: 14px;
  transition: all .25s cubic-bezier(0.4,0,0.2,1); cursor: pointer;
  position: relative;
  opacity: 0; animation: rcFadeUp .4s forwards;
}
.factura-item:hover {
  border-color: var(--verde);
  box-shadow: 0 8px 22px rgba(104,189,68,0.14);
  transform: translateY(-1px);
}
.factura-item:has(input:checked) {
  border-color: var(--verde);
  background: linear-gradient(135deg, var(--verde-claro) 0%, #fff 60%);
}
/* Checkbox custom — ocultamos el nativo, dibujamos uno propio */
.factura-item input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 24px; height: 24px;
  border: 2px solid #d0d8e2; border-radius: 8px;
  background: #fff;
  cursor: pointer; flex-shrink: 0;
  transition: all .2s;
  position: relative;
  margin: 0;
}
.factura-item input[type="checkbox"]:hover { border-color: var(--verde); }
.factura-item input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--verde), var(--verde-osc));
  border-color: var(--verde-osc);
}
.factura-item input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.4px 2.4px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}

.factura-info { flex: 1; min-width: 0; }
.factura-info .periodo { font-weight: 800; color: var(--navy); font-size: 15px; letter-spacing: -0.1px; }
.factura-info .meta {
  font-size: 12.5px; color: var(--texto-suave); margin-top: 4px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.factura-info .meta .vencido {
  color: #c62828; font-weight: 800;
  background: rgba(198,40,40,0.08);
  padding: 2px 8px; border-radius: 4px;
  font-size: 11px; letter-spacing: 0.4px;
}
.factura-monto {
  font-size: 19px; font-weight: 800; color: var(--navy);
  letter-spacing: -0.3px; white-space: nowrap;
}

/* Barra de total — gradient navy refinado con texturas sutiles */
.total-bar {
  position: sticky; bottom: 12px;
  background: linear-gradient(135deg, var(--navy) 0%, #1a2530 100%);
  color: #fff; padding: 20px 24px; border-radius: 18px;
  box-shadow: 0 16px 40px rgba(37,51,67,0.35), 0 4px 12px rgba(37,51,67,0.18);
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  margin-top: 22px;
  position: relative; overflow: hidden;
}
.total-bar::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(104,189,68,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.total-bar > div { position: relative; z-index: 1; }
.total-bar .lbl {
  font-size: 11px; opacity: 0.7;
  text-transform: uppercase; letter-spacing: 1.6px; font-weight: 700;
  margin-bottom: 2px;
}
.total-bar .monto {
  font-size: 32px; font-weight: 800; color: #fff;
  letter-spacing: -1px; line-height: 1;
}
.total-bar .monto small { font-size: 18px; color: var(--verde); margin-right: 4px; font-weight: 700; }
.total-bar button {
  position: relative; z-index: 1;
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-osc) 100%);
  color: #fff; border: none; padding: 15px 26px; border-radius: 14px;
  font-size: 14px; font-weight: 800; cursor: pointer; font-family: inherit;
  letter-spacing: 0.3px;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 24px var(--verde-glow);
  transition: all .25s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
.total-bar button::before {
  content:""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left .6s;
}
.total-bar button:hover { transform: translateY(-2px); box-shadow: 0 12px 32px var(--verde-glow); }
.total-bar button:hover::before { left: 100%; }
.total-bar button:active { transform: translateY(0); }

.alert-empty { text-align: center; padding: 40px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.alert-empty .icon { font-size: 64px; margin-bottom: 14px; }
.alert-empty h2 { color: var(--navy); margin-bottom: 6px; }
.alert-empty p { color: var(--texto-suave); }

/* ============ RESPONSIVE ============ */

/* Tablet horizontal */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 380px; gap: 40px; }
  .hero-text h1 { font-size: 48px; }
  .container { padding-left: 24px; padding-right: 24px; }
}

/* Tablet vertical / móvil grande
 * CLAVE: en móvil el search-card aparece PRIMERO (arriba), el hero-text después.
 * Así el usuario abre el celular y ve directo el campo de DNI sin scroll. */
@media (max-width: 900px) {
  .hero { padding: 18px 0 24px; }
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .hero-grid .search-card { order: 1; }     /* search-card primero en móvil */
  .hero-grid .hero-text   { order: 2; }     /* hero-text como info secundaria abajo */
  .hero-text { text-align: center; }
  .hero-text > * { margin-left: auto !important; margin-right: auto !important; }
  .hero-text h1 { font-size: clamp(28px, 5.5vw, 40px); margin-bottom: 14px; }
  .hero-text p { font-size: clamp(13px, 2.5vw, 16px); max-width: 560px; margin-bottom: 22px; }
  .hero-text .stats { justify-content: center; flex-wrap: wrap; gap: 16px 22px; }
  .hero-text .stat { padding-left: 12px; }
  .hero-text .stat .num { font-size: 20px; }
  .section-head h2 { font-size: clamp(24px, 5vw, 32px); }
  .metodo-pago { grid-template-columns: 1fr; gap: 22px; }
  .top .nav a:not(.wa-btn) { display: none; }
  .tabs-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-wrap: nowrap; padding-bottom: 4px; }
  .tabs-nav::-webkit-scrollbar { display: none; }
  .tab-btn { white-space: nowrap; flex-shrink: 0; }
}

/* Móvil */
@media (max-width: 640px) {
  /* Header compacto para que el search-card quede pegado al top */
  .top { padding: 10px 14px; flex-wrap: wrap; }
  .top .logo { gap: 8px; }
  .top .logo span { font-size: 15px; }
  .top .badge { width: 32px; height: 32px; font-size: 14px; }
  .top .nav { gap: 8px; }
  .top .nav .wa-btn { padding: 7px 12px; font-size: 13px; }

  .container { padding: 14px 14px 48px; }
  .hero { padding: 6px 0 20px; }              /* casi sin padding-top en móvil */

  /* Search-card: compacto y prominente */
  .hero-grid { gap: 22px; }
  .search-card { padding: 22px 20px !important; }
  .search-card .header { margin-bottom: 12px; }
  .search-card .header .icon { width: 52px; height: 52px; font-size: 24px; margin: 0 auto 10px; }
  .search-card h3 { font-size: 19px; }
  .search-card .header p { font-size: 13px; }

  /* Input grande para tap, font 16px evita zoom iOS */
  .input-wrap input { font-size: 16px !important; padding: 14px 14px 14px 44px; }
  .btn-primary { font-size: 15px; padding: 14px 18px; min-height: 48px; }

  /* Hero text más compacto, como info secundaria */
  .hero-text h1 { font-size: clamp(24px, 6vw, 32px); line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 10px; }
  .hero-text p { font-size: 13.5px; margin-bottom: 18px; }
  .hero-text .eyebrow { font-size: 11px; padding: 5px 12px; }

  .section-head { padding: 32px 16px 6px; }
  .tabs-pago .tab-content { padding: 22px 18px; }
  .steps li { padding: 12px 0; gap: 12px; }
  .steps .num { width: 28px; height: 28px; font-size: 13px; }
  .steps .text strong { font-size: 14px; }
  .steps .text span { font-size: 13px; }
  .metodo-card { padding: 22px 18px; }
  .recibos-wrap, .recibos-card { padding: 18px 16px; }
  .factura-item { padding: 14px 14px; gap: 10px; }
  .factura-monto { font-size: 16px; }
  .total-bar { flex-direction: column; gap: 14px; align-items: stretch; padding: 18px 16px; }
  .total-bar .monto { font-size: 22px; }
  #btn-pagar { width: 100%; padding: 14px 18px; font-size: 15px; min-height: 48px; }
  .faq-item { padding: 14px 16px; }
  .faq-item summary { font-size: 14px; }
  .footer { padding: 28px 16px; }
  .footer .links { gap: 16px; }
}

/* Móvil chico (iPhone SE, Android compactos) */
@media (max-width: 380px) {
  .top { padding: 8px 12px; }
  .top .logo span { font-size: 14px; }
  .hero { padding: 4px 0 16px; }
  .hero-text .stats { gap: 10px 14px; }
  .hero-text .stat .num { font-size: 16px; }
  .hero-text .stat .lbl { font-size: 10px; }
  .search-card { padding: 18px 16px !important; }
  .search-card .header .icon { width: 46px; height: 46px; font-size: 22px; }
  .search-card h3 { font-size: 17px; }
  .input-wrap input { padding: 13px 12px 13px 40px; }
  .pill { font-size: 11px; padding: 4px 10px; }
  .trust-row { gap: 6px; }
}

/* Móvil muy chico (320px tipo iPhone 5/SE 1st gen): ocultar logo de texto y dejar solo badge */
@media (max-width: 340px) {
  .top .logo span { display: none; }
}

/* Forzar inputs a 16px en iOS para que no haga zoom al focus */
@media (max-width: 768px) {
  input[type="text"], input[type="number"], input[type="email"], input[type="password"], input[type="url"], textarea, select {
    font-size: max(16px, 1em);
  }
}
