/* =============================================
   DQ Soluciones Integrales — Global Styles v2
   Tema: Navy Profesional
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Variables ─────────────────────────────── */
:root {
  /* Fondos */
  --bg:          #080e1c;
  --bg2:         #0d1526;
  --bg3:         #111d35;
  --bg4:         #162540;
  --bg5:         #1d3059;

  /* Bordes */
  --border:      rgba(255,255,255,0.06);
  --border2:     rgba(255,255,255,0.10);
  --border3:     rgba(255,255,255,0.16);

  /* Azul principal (basado en el logo) */
  --blue:        #2563eb;
  --blue-light:  #3b82f6;
  --blue-lighter:#60a5fa;
  --blue-dark:   #1d4ed8;
  --blue-bg:     rgba(37,99,235,0.10);
  --blue-border: rgba(37,99,235,0.28);

  /* Texto */
  --text:        #eef2ff;
  --text2:       #8faed6;
  --text3:       #4a6a96;
  --text4:       #2d4570;

  /* Estados */
  --green:       #10b981;
  --green-bg:    rgba(16,185,129,0.10);
  --green-border:rgba(16,185,129,0.25);

  --yellow:      #f59e0b;
  --yellow-bg:   rgba(245,158,11,0.10);
  --yellow-border:rgba(245,158,11,0.25);

  --red:         #ef4444;
  --red-bg:      rgba(239,68,68,0.10);
  --red-border:  rgba(239,68,68,0.25);

  --purple:      #8b5cf6;
  --purple-bg:   rgba(139,92,246,0.10);
  --purple-border:rgba(139,92,246,0.25);

  --gold:        #f59e0b;
  --gold-bg:     rgba(245,158,11,0.10);
  --gold-border: rgba(245,158,11,0.25);

  /* UI */
  --radius:      8px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --shadow:      0 4px 32px rgba(0,0,0,0.45);
  --shadow-blue: 0 0 40px rgba(37,99,235,0.12);
  --transition:  all 0.2s ease;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--bg5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-dark); }

/* ── Navbar ────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: rgba(8,14,28,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  height: 58px;
  background: rgba(8,14,28,0.96);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Logo como imagen */
.nav-logo-img {
  height: 36px;
  width: auto;
  /* Invertir colores: el SVG/PNG es navy sobre blanco/transparente.
     En fondo oscuro usamos un filter para hacerlo blanco */
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.nav-logo-img:hover { opacity: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text2);
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.nav-links a:hover { color: var(--text); background: var(--bg3); }
.nav-links a.active { color: var(--blue-lighter); }

.btn-nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  font-weight: 600 !important;
}
.btn-nav-cta:hover { background: var(--blue-dark) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text2); border-radius: 2px; transition: var(--transition); }

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.28);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text2);
}
.btn-secondary:hover { border-color: var(--border3); color: var(--text); background: var(--bg3); }

.btn-ghost { background: var(--bg3); color: var(--text2); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg4); color: var(--text); border-color: var(--border2); }

.btn-danger { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); }
.btn-danger:hover { background: rgba(239,68,68,0.18); }

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 13px 30px; font-size: 0.95rem; }
.btn-xl { padding: 15px 36px; font-size: 1rem; }

/* ── Forms ─────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 5px; }

label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

input, select, textarea {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 13px;
  transition: var(--transition);
  width: 100%;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
  background: var(--bg4);
}

input::placeholder, textarea::placeholder { color: var(--text4); }

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%234a6a96' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

textarea { resize: vertical; min-height: 110px; }

/* ── Status Badges ─────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.badge-active   { background: var(--green-bg);  color: var(--green);  border: 1px solid var(--green-border); }
.badge-pending  { background: var(--yellow-bg); color: var(--yellow); border: 1px solid var(--yellow-border); }
.badge-expired  { background: var(--red-bg);    color: var(--red);    border: 1px solid var(--red-border); }
.badge-process  { background: var(--purple-bg); color: var(--purple); border: 1px solid var(--purple-border); }
.badge-lifetime { background: var(--gold-bg);   color: var(--gold);   border: 1px solid var(--gold-border); }

/* ── Cards ─────────────────────────────────── */
.card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}
.card:hover { border-color: var(--border2); }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ── Section ───────────────────────────────── */
.section { padding: 80px 5%; }
.section-inner { max-width: 1080px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 52px; }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-lighter);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; line-height: 1.18; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.22; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
h4 { font-size: 0.95rem; font-weight: 600; }

.text-blue { color: var(--blue-lighter); }
.text-muted { color: var(--text2); }

.blue-line {
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ── Page Header ───────────────────────────── */
.page-header {
  padding: 110px 5% 56px;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-header p { color: var(--text2); font-size: 1.05rem; max-width: 480px; margin: 12px auto 0; }

/* ── Modal ─────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  padding: 30px;
  width: 100%;
  max-width: 480px;
  transform: translateY(10px);
  transition: transform 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.modal-close {
  width: 30px; height: 30px;
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text3);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: var(--bg5); color: var(--text); }

/* ── PayPal Button ─────────────────────────── */
.paypal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #003087;
  color: #fff;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.paypal-btn:hover { background: #001f5b; transform: translateY(-1px); }
.paypal-btn svg { width: 16px; height: 16px; }

/* ── Toast ─────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg4);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 11px 16px;
  font-size: 0.86rem;
  color: var(--text);
  box-shadow: var(--shadow);
  animation: toastIn 0.22s ease;
  min-width: 220px;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--blue); }

@keyframes toastIn { from { opacity:0; transform:translateX(14px); } to { opacity:1; transform:translateX(0); } }

/* ── Footer ────────────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 5% 24px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-logo-img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  margin-bottom: 12px;
}

.footer-brand p { color: var(--text3); font-size: 0.85rem; line-height: 1.6; max-width: 240px; }

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 0.88rem; color: var(--text2); transition: var(--transition); }
.footer-col a:hover { color: var(--blue-lighter); }

.footer-bottom {
  max-width: 1080px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text4); }

/* ── Utility ───────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.flex   { display: flex; align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.mt-8   { margin-top: 8px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mt-32  { margin-top: 32px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* ── Divider ───────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── Responsive ────────────────────────────── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 66px; left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 14px 5% 20px;
    gap: 2px;
  }
  .nav-links.open a { padding: 10px 14px; display: block; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 60px 5%; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
