/* ============================================================
   CPS Security — shared.css  (V2)
   Importar en todos los HTML del sitio
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #0a0a0a;
  --bg-2:        #111111;
  --bg-3:        #161616;
  --surface:     #1a1a1a;
  --surface-2:   #202020;
  --border:      rgba(255,255,255,.07);
  --border-2:    rgba(255,255,255,.13);
  --accent:      #e8341a;
  --accent-2:    #f5a623;
  --accent-dim:  rgba(232,52,26,.12);
  --text:        #f0ece6;
  --muted:       #7a7570;
  --muted-2:     #a09a94;
  --ease-ui:     cubic-bezier(0.23,1,0.32,1);
  --container:   1200px;
  --radius:      4px;
  --radius-lg:   8px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
section, header, footer, .topbar { max-width: 100vw; overflow-x: hidden; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}
section { padding: clamp(56px, 9vw, 104px) 0; }

/* ── Section typography ────────────────────────────────────── */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.section-h2,
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: 1.5px;
  line-height: 1;
  color: var(--text);
}
.section-head {
  margin-bottom: 40px;
}
.section-head p {
  color: var(--muted-2);
  margin-top: 12px;
  max-width: 480px;
}

/* ── Dividers ──────────────────────────────────────────────── */
.divider        { height: 1px; background: var(--border); }
.border-top     { border-top:    1px solid var(--border); }
.border-bottom  { border-bottom: 1px solid var(--border); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.35rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 180ms ease-out,
              border-color 180ms ease-out,
              color 180ms ease-out,
              transform 160ms ease-out;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: #d42f17; border-color: #d42f17; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.04); }
.btn-wpp {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}
.btn-wpp:hover { background: #1ebe59; border-color: #1ebe59; }

/* ── TOPBAR ────────────────────────────────────────────────── */
.topbar {
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  text-align: center;
  padding: 7px 16px;
  position: relative;
  z-index: 60;
}
.topbar a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ── NAVBAR ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10,.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-brand img { width: 36px; height: 36px; object-fit: contain; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav-brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--text);
}
.nav-brand-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted-2);
  padding: .5rem .75rem;
  transition: color 150ms ease-out;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
/* ── Nav activo ── */
.nav-links a.active,
.nav-mobile a.active { color: var(--text); }
.nav-links a.active::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin: 3px auto 0;
}
/* ── Nav actions ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
/* ── Hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border-2) !important;
  padding: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 200ms ease-out, opacity 200ms ease-out;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }
/* ── Mobile menu ── */
.nav-mobile {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted-2);
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  transition: color 150ms ease-out, background 150ms ease-out;
}
.nav-mobile a:hover { color: var(--text); background: var(--surface); }
.nav-mobile-actions {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
}
@media (max-width: 900px) {
  .nav-links    { display: none; }
  .nav-actions  { display: none; }
  .nav-hamburger{ display: flex; }
}

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: clamp(48px,7vw,80px) 0 0;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  position: relative;
  z-index: 1;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { width: 32px; height: 32px; object-fit: contain; }
.footer-brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
}
.footer-desc { color: var(--muted); font-size: 14px; max-width: 260px; line-height: 1.7; }
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: var(--muted-2);
  transition: color 150ms ease-out;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.footer-copy {
  font-size: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.footer-made { font-size: 12px; color: var(--muted); }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  font-size: 13px;
  color: var(--muted-2);
  font-weight: 500;
  transition: color 150ms ease-out;
}
.footer-socials a:hover { color: var(--text); }
@media (max-width: 900px) {
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Mesh canvas ───────────────────────────────────────────── */
.mesh-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Form inputs ───────────────────────────────────────────── */
.field-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border-2);
  padding: 11px 14px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  border-radius: var(--radius);
  transition: border-color 200ms ease-out;
  -webkit-appearance: none;
}
.form-input:focus { border-color: rgba(255,255,255,.3); }
textarea.form-input { min-height: 120px; resize: vertical; }

/* ── Scroll reveal ─────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 550ms var(--ease-ui), transform 550ms var(--ease-ui);
}
[data-reveal].show {
  opacity: 1;
  transform: none;
}

/* ── FAB WhatsApp (mejorado) ───────────────────────────────── */
.fab-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.fab-btn {
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
  transition: transform 200ms var(--ease-ui), box-shadow 200ms ease-out;
  animation: fabPulse 3s ease-in-out infinite;
  border: none;
}
.fab-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
}
@keyframes fabPulse {
  0%,100% { box-shadow: 0 4px 16px rgba(37,211,102,.35); }
  50%      { box-shadow: 0 4px 28px rgba(37,211,102,.55); }
}
.fab-bubble {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  max-width: 200px;
  position: relative;
  opacity: 0;
  transform: translateY(8px) scale(.95);
  pointer-events: none;
  transition: opacity 300ms var(--ease-ui), transform 300ms var(--ease-ui);
}
.fab-bubble.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.fab-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 18px;
  width: 10px;
  height: 10px;
  background: var(--surface);
  border-right: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  transform: rotate(45deg);
}
.fab-bubble-text {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 2px;
}
.fab-bubble-cta {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.fab-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  transition: color 150ms, background 150ms;
}
.fab-close:hover { color: var(--text); background: var(--border); }

/* ── Lightbox ──────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(94vw, 1100px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lb-btn {
  position: absolute;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border-2);
  color: var(--text);
  padding: 10px 14px;
  font-size: 18px;
  line-height: 1;
  transition: background 150ms ease-out;
  border-radius: var(--radius);
}
.lb-btn:hover { background: rgba(255,255,255,.15); }
.lb-close { top: 20px; right: 20px; }
.lb-prev  { left: 16px;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 16px; top: 50%; transform: translateY(-50%); }

/* ── Utilities ─────────────────────────────────────────────── */
.mono        { font-family: 'JetBrains Mono', monospace; }
.text-accent { color: var(--accent); }
.text-muted  { color: var(--muted); }
.text-muted2 { color: var(--muted-2); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── STARTUP STRIP ─────────────────────────────────────────── */
.startup-strip {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(48px,7vw,80px) 0;
}
.startup-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px,5vw,64px);
  align-items: center;
}
.startup-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.startup-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(232,52,26,.5); }
  50%      { box-shadow: 0 0 0 6px rgba(232,52,26,0); }
}
.startup-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px,5vw,52px);
  letter-spacing: 1.5px;
  line-height: 1.05;
  color: var(--text);
}
.startup-right p {
  font-size: 15px;
  color: var(--muted-2);
  line-height: 1.8;
  margin-bottom: 20px;
}
.startup-note {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  color: var(--muted) !important;
  margin-top: 10px !important;
  letter-spacing: .5px;
}
@media (max-width: 800px) { .startup-inner { grid-template-columns: 1fr; } }

/* ── PROCESO ───────────────────────────────────────────────── */
.proceso-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  position: relative;
}
.proceso-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 0 12px;
}
.proceso-connector {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(232,52,26,.2));
  margin-top: 38px;
  flex-shrink: 0;
}
.proceso-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--accent);
  opacity: .7;
}
.proceso-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-dim);
  border: 1px solid rgba(232,52,26,.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.proceso-title {
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}
.proceso-desc {
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.6;
}
@media (max-width: 800px) {
  .proceso-steps { flex-direction: column; align-items: flex-start; gap: 0; }
  .proceso-step  { flex-direction: row; text-align: left; align-items: flex-start; gap: 14px; padding: 16px 0; }
  .proceso-connector { width: 1px; height: 24px; margin: 0 0 0 26px; background: linear-gradient(180deg,var(--accent),rgba(232,52,26,.2)); }
  .proceso-icon  { flex-shrink: 0; }
}

/* ── TESTIMONIOS ───────────────────────────────────────────── */
.testimonios-bg {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}
.testi-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px,3vw,28px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 200ms ease-out;
}
.testi-card:hover { border-color: var(--border-2); }
.testi-quotemark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 72px;
  line-height: .6;
  color: var(--accent);
  opacity: .3;
  user-select: none;
}
.testi-text {
  font-size: 14px;
  color: var(--muted-2);
  line-height: 1.75;
  flex: 1;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testi-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(232,52,26,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
}
.testi-name {
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}
.testi-role {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
@media (max-width: 800px) { .testi-grid { grid-template-columns: 1fr; } }

/* ── MÉTRICAS CON COUNTUP ──────────────────────────────────── */
.metricas-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  background: var(--border);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.metrica-item {
  background: var(--bg-2);
  padding: clamp(24px,4vw,40px) 20px;
  text-align: center;
  transition: background 200ms ease-out;
}
.metrica-item:hover { background: var(--bg-3); }
.metrica-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px,6vw,64px);
  letter-spacing: 2px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}
.metrica-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 800px) { .metricas-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 400px) { .metricas-grid { grid-template-columns: 1fr; } }

/* ── GALLERY THUMBS ────────────────────────────────────────── */
.gallery-thumbs {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
  flex: 0 0 72px;
  height: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  opacity: .5;
  transition: opacity 200ms ease-out, border-color 200ms ease-out;
  background: none;
  padding: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active { border-color: var(--accent); opacity: 1; }
.gallery-thumb:hover:not(.active) { opacity: .75; }

/* ── PARTNERS ──────────────────────────────────────────────── */
.partner-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--muted);
  line-height: 1;
  transition: color 150ms ease-out;
}
.partner-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
  opacity: .55;
  margin-top: 4px;
  transition: opacity 150ms ease-out;
}
.partner-item:hover .partner-name { color: var(--text); }
.partner-item:hover .partner-tag  { opacity: .8; }

/* ── PLANES NOTE ───────────────────────────────────────────── */
.planes-note {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted-2);
}
.planes-note a {
  color: var(--accent);
  transition: opacity 150ms;
}
.planes-note a:hover { opacity: .75; }

/* ── HERO MARQUEE (con mask) ───────────────────────────────── */
.hero-marquee {
  overflow: hidden;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee-track span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track .sep { color: var(--accent); opacity: .5; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.hero-marquee:hover .marquee-track { animation-play-state: paused; }
