/* DPD Soluciones Digitales — landing styles
   Siguiendo el design system del CRM: cero emojis, cero gradientes,
   bordes 1px, un solo acento, sentence case, pesos 400/500/600. */

:root {
  --bg:            #ffffff;
  --bg-soft:       #f6f8fb;
  --bg-dark:       #0f1e3d;      /* navy del logo original */
  --text:          #0f1e3d;
  --text-muted:    #4a5578;
  --text-faint:    #8893a8;
  --text-mono:     'JetBrains Mono', 'SF Mono', ui-monospace, 'Menlo', 'Courier New', monospace;
  --border:        #e5e8ef;
  --border-strong: #c9d0dc;
  --brand-600:     #1e5fbf;
  --brand-700:     #164b96;
  --brand-50:      #eaf2fc;
  --radius:        6px;
  --radius-lg:     10px;
  --max-width:     1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand-600);
  text-decoration: none;
}
a:hover { color: var(--brand-700); }

img, svg { vertical-align: middle; display: block; }

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 .5em 0;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.0625rem; line-height: 1.4; }

p { margin: 0 0 1em 0; color: var(--text-muted); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─────────────── Reusable primitives ─────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-600);
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--brand-600);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg);
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-600);
}

.mono { font-family: var(--text-mono); font-size: 0.92em; }

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

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--brand-600);
  background: var(--brand-600);
  color: #fff;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-soft); color: var(--text); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid transparent;
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }

.btn svg { stroke-width: 1.75; }

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(1.3) blur(6px);
  position: sticky; top: 0; z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
  font-size: 1.05rem;
}

.brand-mark {
  width: 34px; height: 34px;
  border-radius: 7px;
  background: var(--bg-dark);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.6px;
}

.brand-text { line-height: 1.1; }
.brand-sub  { display: block; font-size: 0.7rem; font-weight: 400; color: var(--text-faint); letter-spacing: 0.6px; text-transform: lowercase; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 7px 14px;
  border-radius: var(--radius);
}
.site-nav a:hover { color: var(--text); background: var(--bg-soft); }
.site-nav .btn { margin-left: 8px; padding: 8px 16px; font-size: 0.9rem; }

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

.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* grid pattern decorativo — SVG inline en el background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(201,208,220,0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201,208,220,0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 20%, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 20%, black 25%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero h1 { margin-top: 20px; margin-bottom: 20px; }

.hero .lead {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 32px;
  line-height: 1.55;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  overflow: hidden;
}

.hero-stat {
  padding: 20px 22px;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 8px; }
.hero-stat .value { font-size: 1.1rem; color: var(--text); font-weight: 500; font-family: var(--text-mono); }
.hero-stat .suffix { color: var(--text-muted); font-weight: 400; font-family: inherit; font-size: 0.95rem; margin-left: 4px; }

/* ─────────────── Sections ─────────────── */

.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--border);
}
.section-soft { background: var(--bg-soft); }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 48px;
  max-width: 740px;
}
.section-head h2 { margin: 0; }
.section-head p  { margin: 0; font-size: 1.0625rem; }

/* Numeric list */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.step {
  border-left: 1px solid var(--border);
  padding: 4px 0 4px 24px;
}
.step-num {
  display: inline-block;
  font-family: var(--text-mono);
  font-size: 0.78rem;
  color: var(--brand-600);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; font-size: 0.95rem; }

/* Services grid — now with sub-bullets */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--bg);
}

.card h3 { color: var(--text); margin-bottom: 10px; }
.card p  { font-size: 0.95rem; margin-bottom: 16px; }

.card .icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--brand-600);
}
.card .icon svg { width: 20px; height: 20px; stroke-width: 1.75; }

.card ul.sub {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.card ul.sub li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 6px 0;
}
.card ul.sub li::before {
  content: '';
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  margin-top: 3px;
  position: relative;
}
.card ul.sub li::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 8px;
  border: solid var(--brand-600);
  border-width: 0 1.5px 1.5px 0;
  transform: translate(-11px, 4px) rotate(45deg);
  pointer-events: none;
}

/* Capabilities / tech matrix */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
}
.capability {
  padding: 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.capability:last-child { border-right: none; }
.capability .cap-icon {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand-600);
  margin-bottom: 14px;
}
.capability .cap-icon svg { width: 22px; height: 22px; stroke-width: 1.75; }
.capability h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--text);
}
.capability p {
  font-size: 0.86rem;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Compliance strip */
.compliance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.compliance-item {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.compliance-item h4 { font-size: 0.95rem; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.compliance-item h4 svg { width: 16px; height: 16px; color: var(--brand-600); stroke-width: 2; }
.compliance-item p { font-size: 0.88rem; margin: 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.contact-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--bg);
}
.contact-item .ic {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand-600);
  margin-bottom: 14px;
}
.contact-item .ic svg { width: 18px; height: 18px; stroke-width: 1.75; }
.contact-item .label {
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 4px;
}
.contact-item .value { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.contact-item .value-sm { color: var(--text-muted); font-size: 0.88rem; }
.contact-item a.value:hover { color: var(--brand-600); }

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  padding: 20px 0;
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 10px; height: 10px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform .18s;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 0 20px 0; margin: 0; font-size: 0.95rem; color: var(--text-muted); max-width: 820px; }

/* CTA band */
.cta-band {
  background: var(--bg-dark);
  color: #e3e9f4;
  padding: 56px 0;
  border-bottom: 1px solid var(--bg-dark);
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p  { color: #a9b5cc; max-width: 640px; margin: 0 auto 24px; }
.cta-band-inner { text-align: center; max-width: 720px; margin: 0 auto; padding: 0 24px; }
.cta-band .btn { background: #fff; color: var(--bg-dark); border-color: #fff; }
.cta-band .btn:hover { background: var(--brand-50); color: var(--bg-dark); border-color: var(--brand-50); }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.cta-band .btn-secondary:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.5); }

/* Footer */
.site-footer {
  padding: 56px 0 32px;
  background: var(--bg-dark);
  color: #cbd3e4;
  font-size: 0.9rem;
}

.site-footer a { color: #e5e8ef; }
.site-footer a:hover { color: #fff; }

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8f9db8;
  margin: 0 0 14px 0;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; font-size: 0.9rem; color: #c9d3e5; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #8f9db8;
}

/* ─────────────── Legal pages ─────────────── */

.legal {
  padding: 56px 0 80px;
  max-width: 820px;
}
.legal h1 { margin-bottom: 8px; }
.legal .meta { color: var(--text-faint); font-size: 0.9rem; margin-bottom: 32px; }
.legal h2 { margin-top: 36px; margin-bottom: 14px; font-size: 1.25rem; }
.legal h3 { margin-top: 22px; margin-bottom: 8px; font-size: 1rem; }
.legal p, .legal li { color: var(--text-muted); }
.legal ul, .legal ol { padding-left: 24px; }
.legal li { margin-bottom: 6px; }

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

@media (max-width: 720px) {
  .hero { padding: 64px 0 48px; }
  .section { padding: 64px 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat { border-bottom: 1px solid var(--border); }
  .hero-stat:nth-child(2n) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-nav a:not(.btn) { display: none; }
  .site-nav .btn { margin-left: 0; }
}
