/* Shared styles for Certivo content pages */
:root {
  --paper:      #FFFFFF;
  --surface:    #F6F6F4;
  --surface-2:  #EFEFEC;
  --hairline:   #E8E8E5;
  --ink:        #0A0A0A;
  --ink-soft:   #1A1A1A;
  --graphite:   #3D3D3D;
  --muted:      #737373;
  --silver:     #A3A3A3;

  --verify:     #FF4D00;
  --verify-deep:#E04300;
  --verify-tint:#FFF2EC;

  --font-display: 'Bricolage Grotesque', -apple-system, sans-serif;
  --font-body:    'Manrope', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --max-width: 1280px;
  --edge: 48px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--verify); color: var(--paper); }
a { color: inherit; text-decoration: none; }
@media (max-width: 768px) { :root { --edge: 24px; } }

.shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--edge);
}
section { padding: 120px 0; }
@media (max-width: 768px) { section { padding: 72px 0; } }

/* Primitives */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--verify);
  border-radius: 50%;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-variation-settings: "opsz" 96;
  margin-bottom: 24px;
  max-width: 18ch;
}
.section-title em {
  font-style: normal;
  font-weight: 300;
  color: var(--verify);
}

.section-lead {
  font-size: 19px;
  color: var(--graphite);
  max-width: 640px;
  line-height: 1.55;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--verify); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn-verify {
  background: var(--verify);
  color: var(--paper);
}
.btn-verify:hover { background: var(--verify-deep); }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--edge);
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.05em;
  font-variation-settings: "opsz" 96;
  color: var(--ink);
}
.nav-logo .dot { color: var(--verify); }
.nav-center {
  display: flex;
  gap: 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--graphite);
}
.nav-center a { transition: color 0.2s; }
.nav-center a:hover { color: var(--verify); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-right .sign-in {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 10px 14px;
}
@media (max-width: 1024px) { .nav-center { display: none; } }
@media (max-width: 540px) {
  .nav-right .sign-in { display: none; }
  .nav-logo { font-size: 20px; }
}

/* Page hero (common for content pages) */
.page-hero {
  padding: 80px 0 48px;
}
.page-hero .eyebrow a {
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}
.page-hero .eyebrow a:hover {
  color: var(--ink);
  border-color: var(--muted);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-variation-settings: "opsz" 96;
  color: var(--ink);
  margin-bottom: 28px;
}
.page-hero h1 em {
  font-style: normal;
  font-weight: 300;
  color: var(--verify);
}
.page-hero .lead {
  font-size: 20px;
  color: var(--graphite);
  max-width: 640px;
  line-height: 1.55;
}
.page-hero .actions {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-cell {
  padding: 36px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
  transition: background 0.3s;
}
.feature-cell:hover { background: var(--surface); }
.feature-cell h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96;
  margin-bottom: 10px;
}
.feature-cell p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.feature-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--verify);
  margin-bottom: 14px;
}

/* Stats strip */
.stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 48px 0;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 900px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 48px;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 96;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 10px;
}
.stat-num em { font-style: normal; color: var(--verify); font-weight: 300; }
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Prose section */
.prose {
  max-width: 760px;
}
.prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96;
  margin: 64px 0 20px;
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
  font-variation-settings: "opsz" 96;
}
.prose p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--graphite);
  margin-bottom: 16px;
}
.prose ul {
  margin: 16px 0 20px;
  padding-left: 0;
  list-style: none;
}
.prose ul li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--graphite);
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--verify);
  border-radius: 50%;
}
.prose a {
  color: var(--ink);
  border-bottom: 1px solid var(--verify);
  transition: color 0.2s;
}
.prose a:hover { color: var(--verify); }

/* Steps strip */
.steps-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}
@media (max-width: 900px) { .steps-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps-strip { grid-template-columns: 1fr; } }
.step-card {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--hairline);
}
.step-card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--verify);
  font-weight: 500;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.step-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
  font-variation-settings: "opsz" 96;
}
.step-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* Industries table */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
@media (max-width: 900px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .industry-grid { grid-template-columns: 1fr; } }
.industry-card {
  padding: 32px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
  transition: background 0.3s;
  display: block;
}
.industry-card:hover { background: var(--surface); }
.industry-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
  font-variation-settings: "opsz" 96;
}
.industry-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* CTA */
.cta-dark {
  background: var(--ink);
  color: var(--paper);
  padding: 120px 0;
  text-align: center;
}
.cta-dark h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 6.5vw, 96px);
  letter-spacing: -0.05em;
  line-height: 0.96;
  font-variation-settings: "opsz" 96;
  max-width: 20ch;
  margin: 0 auto 28px;
}
.cta-dark h2 em {
  font-style: normal;
  font-weight: 300;
  color: var(--verify);
}
.cta-dark p {
  font-size: 18px;
  color: var(--silver);
  max-width: 520px;
  margin: 0 auto 40px;
}
.cta-dark .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-dark .btn-ghost {
  color: var(--paper);
  border-color: var(--paper);
}
.cta-dark .btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
}

/* Footer */
footer {
  padding: 80px 0 40px;
  background: var(--paper);
  border-top: 1px solid var(--hairline);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--hairline);
}
@media (max-width: 1024px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px)  { .footer-top { grid-template-columns: 1fr; gap: 36px; } }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .nav-logo { font-size: 28px; }
.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.55;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--ink);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--verify); }
.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.footer-compliance { display: flex; gap: 16px; }
.footer-compliance span {
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

/* WhatsApp floating button */
.wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45);
}
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab::after {
  content: 'Escríbenos';
  position: absolute;
  right: 72px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 0.2s, transform 0.2s;
}
.wa-fab:hover::after {
  opacity: 1;
  transform: translateX(0);
}
@media (max-width: 540px) {
  .wa-fab { bottom: 16px; right: 16px; }
  .wa-fab::after { display: none; }
}

/* Table for specs */
.spec-table {
  width: 100%;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
  font-size: 14px;
  margin: 32px 0;
}
.spec-table tr { border-bottom: 1px solid var(--hairline); }
.spec-table th, .spec-table td {
  padding: 14px 20px;
  text-align: left;
  border-right: 1px solid var(--hairline);
}
.spec-table th {
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  width: 180px;
}
.spec-table td {
  color: var(--graphite);
}
