:root {
  --primary: #0055A5;
  --primary-dark: #003D7A;
  --primary-light: #0066CC;
  --bg-dark: #2D3136;
  --bg-card: #FFFFFF;
  --bg-light: #F5F6F7;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --border: #E0E0E0;
  --whatsapp: #25D366;
  --radius: 8px;
  --font: 'Open Sans', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-light);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

.text-center { text-align: center; }

/* ─── Header / Nav ─────────────────────────────── */

.navbar-pacific {
  background: #fff;
  padding: 10px 0;
  position: relative;
  z-index: 10;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.navbar-pacific .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { height: 32px; width: auto; display: block; }
.nav-logo-link { display: flex; align-items: center; text-decoration: none; }
.nav-logo-fallback { display: none; color: var(--primary); font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.nav-logo[style*="display:none"] + .nav-logo-fallback { display: block; }

.nav-link {
  color: var(--text-light);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.nav-link:hover { color: var(--primary); text-decoration: none; }

/* ─── Hero ────────────────────────────────────── */

.hero-pacific {
  background: linear-gradient(135deg, #1a2a3a 0%, #2d3136 50%, #1a2a3a 100%);
  padding: 40px 0 30px;
  position: relative;
}
.hero-pacific::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-pacific::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #5ba3e6, var(--primary));
}

.hero-title {
  color: #fff;
  font-size: 34px;
  font-weight: 300;
  letter-spacing: 3px;
  margin: 0;
  text-transform: uppercase;
}
.hero-title b { font-weight: 800; color: #5ba3e6; }

/* ─── Steps ────────────────────────────────────── */

.steps-bar {
  background: #f8f9fa;
  padding: 18px 0;
  border-bottom: 1px solid #e0e0e0;
}

.steps-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.step-col {
  flex: 1;
  max-width: 160px;
  text-align: center;
  padding: 0 8px;
}

.step-icon-wrap {
  width: 32px;
  height: 32px;
  margin: 0 auto 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ddd;
  transition: all .2s;
}
.step-col.active .step-icon-wrap { background: var(--primary); }

.step-num {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.steps-bar h3 {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.steps-bar .active h3 { color: var(--primary); }

.step-line {
  flex: 1;
  max-width: 60px;
  height: 2px;
  background: #ddd;
  margin: 0 4px;
  margin-bottom: 22px;
}

/* ─── Content Card ────────────────────────────── */

.content-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  margin-top: -10px;
  position: relative;
  z-index: 5;
  overflow: hidden;
}

/* ─── Service Tabs ────────────────────────────── */

.service-tabs {
  display: flex;
  background: #F8F9FA;
  border-bottom: 1px solid var(--border);
}

.service-tab {
  flex: 1;
  text-align: center;
  padding: 16px 10px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
  border-bottom: 3px solid transparent;
}
.service-tab:hover { color: var(--primary); text-decoration: none; background: #fff; }
.service-tab.active { color: var(--primary); border-bottom-color: var(--primary); background: #fff; }

.service-tab i { display: block; font-size: 22px; margin-bottom: 6px; }
.service-tab span { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }

/* ─── Service Panel ───────────────────────────── */

.service-panel {
  padding: 40px 32px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.panel-icon {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.panel-icon i { font-size: 28px; color: #fff; }

.panel-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text);
}

.panel-desc {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ─── Form ────────────────────────────────────── */

.form-pago { max-width: 400px; margin: 0 auto; }

.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.input-group-pago {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color .2s;
}
.input-group-pago:focus-within { border-color: var(--primary); }

.input-icon {
  padding: 0 0 0 16px;
  font-size: 16px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  align-self: stretch;
}

.form-control {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  padding: 12px 10px;
  background: transparent;
  color: var(--text);
}
.form-control::placeholder { color: #bbb; font-weight: 400; }

.form-help {
  display: block;
  text-align: left;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ─── Buttons ─────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .2s;
  line-height: 1.4;
}
.btn:hover { text-decoration: none; }

.btn-pacific {
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0;
  min-height: 48px;
}
.input-group-pago .btn-pacific { border-radius: 0 50px 50px 0; }
.btn-pacific:hover { background: var(--primary-dark); color: #fff; }

.btn-whatsapp-pacific {
  background: var(--whatsapp);
  color: #fff;
}
.btn-whatsapp-pacific:hover { opacity: .9; color: #fff; }

.btn-outline-pacific {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline-pacific:hover { border-color: var(--primary); color: var(--primary); }

.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-back { color: var(--text-light); font-size: 13px; }
.btn-back:hover { color: var(--primary); text-decoration: none; }

/* ─── Payment Methods ─────────────────────────── */

.payment-methods {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pm-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  font-weight: 600;
}

.pm-icons {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pm-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
}
.pm-item i { font-size: 14px; }

/* ─── Support ─────────────────────────────────── */

.support-section { margin: 20px 0 40px; }

.support-card-pacific {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

@media (max-width: 600px) { .support-card-pacific { flex-direction: column; text-align: center; } }

.support-left h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}
.support-left h3 i { color: var(--primary); margin-right: 6px; }
.support-left p { font-size: 13px; color: var(--text-light); }

.support-right { display: flex; gap: 8px; flex-shrink: 0; }
.support-right .btn { padding: 9px 18px; font-size: 13px; }

/* ─── Footer ──────────────────────────────────── */

.footer-pacific {
  background: var(--bg-dark);
  padding: 28px 0 16px;
  color: rgba(255,255,255,.7);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

@media (max-width: 600px) { .footer-row { flex-direction: column; text-align: center; } }

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 28px; width: auto; }
.footer-brand .nav-logo-fallback { color: rgba(255,255,255,.8); font-size: 16px; }
.footer-brand p { font-size: 12px; color: rgba(255,255,255,.5); }

.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-links a i { margin-right: 4px; }

.footer-copy { text-align: center; padding-top: 16px; }
.footer-copy p { font-size: 11px; color: rgba(255,255,255,.35); }

/* ─── Cliente ──────────────────────────────────── */

.cliente-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  margin-bottom: 20px;
}

.cliente-avatar {
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.cliente-card h2 { font-size: 16px; font-weight: 700; }
.cliente-tel { font-size: 13px; color: var(--text-light); margin-top: 2px; }

/* ─── Alertas ──────────────────────────────────── */

.alerta {
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 18px;
  line-height: 1.5;
}
.alerta a { font-weight: 700; }

.alerta-warning {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
}
.alerta-warning a { color: #92400E; }

.alerta-success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}

.alerta-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

/* ─── Section ──────────────────────────────────── */

.section-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

/* ─── Facturas ─────────────────────────────────── */

.facturas-list { display: flex; flex-direction: column; gap: 10px; }

.factura-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.factura-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #F8F9FA;
  border-bottom: 1px solid var(--border);
}

.factura-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  display: block;
  margin-bottom: 1px;
}

.factura-num { font-size: 14px; font-weight: 700; letter-spacing: -.3px; }

.factura-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
}
.status-pending { background: #FEF3C7; color: #92400E; }
.status-draft { background: #E5E7EB; color: #374151; }
.status-partial { background: #DBEAFE; color: #1E40AF; }
.status-paid { background: #D1FAE5; color: #065F46; }
.status-cancelled { background: #FEE2E2; color: #991B1B; }

.factura-body { padding: 14px 18px; }

.factura-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 480px) { .factura-grid { grid-template-columns: 1fr 1fr; } }

.factura-dato-label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 2px;
}

.factura-dato { font-size: 13px; font-weight: 600; }
.factura-dato.vencida { color: #EF4444; font-weight: 700; }

.factura-total {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

.btn-pagar { width: 100%; justify-content: center; }

.consulta-ayuda {
  text-align: center;
  margin-top: 24px;
  padding: 16px;
  font-size: 13px;
  color: var(--text-light);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.consulta-ayuda a { font-weight: 700; }

/* ─── Pago ─────────────────────────────────────── */

.pago-wrap {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 0;
}

.pago-card {
  max-width: 400px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.pago-resumen { margin-bottom: 20px; }

.pago-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 13px;
}
.pago-row span { color: var(--text-light); }

.pago-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.pago-total { padding-top: 8px; }
.pago-monto { font-size: 20px; font-weight: 800; color: var(--primary); }

.pago-actions { margin-top: 8px; }

.pago-seguro {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ─── Resultado ────────────────────────────────── */

.result-wrap {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.result-card {
  max-width: 400px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.result-icon { margin-bottom: 18px; }
.result-icon i { font-size: 48px; }
.result-success { color: var(--primary); }
.result-error { color: #EF4444; }
.result-pending { color: #F59E0B; }

.result-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.result-text {
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 6px;
}

.result-ref {
  font-size: 11px;
  color: var(--text-light);
  background: var(--bg-light);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 6px;
  display: inline-block;
  margin: 10px 0 20px;
  font-family: monospace;
}

.result-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.result-card .btn { min-width: 150px; }

/* ─── Responsive ───────────────────────────────── */

@media (max-width: 640px) {
  .hero-title { font-size: 22px; letter-spacing: 2px; }
  .hero-pacific { padding: 28px 0 20px; }
  .service-panel { padding: 28px 16px; }
  .service-tab { padding: 12px 6px; }
  .service-tab i { font-size: 18px; }
  .service-tab span { font-size: 10px; }
  .step-col { max-width: 80px; }
  .steps-bar h3 { font-size: 9px; }
  .step-line { max-width: 20px; }
  .step-icon-wrap { width: 26px; height: 26px; }
  .step-num { font-size: 12px; }
  .result-card { padding: 28px 16px; }
  .result-actions .btn { width: 100%; }
}

/* ─── Floating WhatsApp ──────────────────────────── */

.float-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, .4);
  z-index: 999;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.float-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, .5);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 480px) {
  .float-whatsapp {
    width: 48px;
    height: 48px;
    font-size: 24px;
    bottom: 16px;
    right: 16px;
  }
}
