/* ============================================================
   JAKE MATE — TECH SYSTEM
   Identidad refinada: rojo eléctrico + negro profundo + acento cian
   ============================================================ */

:root {
  /* Marca refinada */
  --rojo:        #FF1E27;
  --rojo-dark:   #D60912;
  --rojo-glow:   #FF3D45;
  --rojo-soft:   rgba(255, 30, 39, 0.12);
  --rojo-line:   rgba(255, 30, 39, 0.28);

  /* Profundidades de negro */
  --negro:       #0A0A0A;
  --surface-1:   #111111;
  --surface-2:   #161616;
  --surface-3:   #1C1C1C;

  /* Texto sobre fondo oscuro */
  --t-1:         #FFFFFF;
  --t-2:         rgba(255, 255, 255, 0.72);
  --t-3:         rgba(255, 255, 255, 0.48);
  --t-4:         rgba(255, 255, 255, 0.28);

  /* Texto sobre fondo claro */
  --tl-1:        #0A0A0A;
  --tl-2:        #3A3A3A;
  --tl-3:        #6B6B6B;

  /* Bordes y separadores */
  --line-1:      rgba(255, 255, 255, 0.08);
  --line-2:      rgba(255, 255, 255, 0.16);
  --line-light:  #E8E8E8;

  /* Acento tech (úsalo con moderación) */
  --cyan:        #00E5FF;
  --cyan-soft:   rgba(0, 229, 255, 0.16);

  /* Tipografía */
  --f-display:   'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-body:      'Barlow', system-ui, sans-serif;
  --f-mono:      'JetBrains Mono', 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Efectos */
  --glow-red:    0 0 0 1px rgba(255,30,39,.3), 0 8px 32px rgba(255,30,39,.18);
  --glow-soft:   0 0 0 1px rgba(255,255,255,.06), 0 16px 48px rgba(0,0,0,.4);

  /* Geometría */
  --grid-size:   56px;
  --radius:      0px; /* afilado, editorial */
  --radius-pill: 999px;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--f-body);
  color: var(--tl-1);
  background: var(--negro);
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'ss02';
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--rojo); color: #fff; }
::-moz-selection { background: var(--rojo); color: #fff; }

/* Scrollbar custom (subtle tech) */
html::-webkit-scrollbar { width: 10px; height: 10px; }
html::-webkit-scrollbar-track { background: #060606; }
html::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 0; }
html::-webkit-scrollbar-thumb:hover { background: var(--rojo); }

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--rojo), var(--rojo-glow), var(--cyan));
  z-index: 9999;
  transition: width 0.05s linear;
  box-shadow: 0 0 12px var(--rojo);
}

/* ============================================================
   UTILS
   ============================================================ */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: var(--f-mono);
  font-feature-settings: 'liga' 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--rojo-glow);
  background: var(--rojo-soft);
  border: 1px solid var(--rojo-line);
  padding: 6px 12px;
  text-transform: uppercase;
}
.tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--rojo);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--rojo);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(0.85); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d-1 { transition-delay: .08s; }
.reveal-d-2 { transition-delay: .16s; }
.reveal-d-3 { transition-delay: .24s; }
.reveal-d-4 { transition-delay: .32s; }
.reveal-d-5 { transition-delay: .40s; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line-1);
  transition: background .3s, border-color .3s;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  border-bottom-color: var(--rojo-line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  max-width: 1320px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo {
  width: 36px; height: 36px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface-1);
  padding: 2px;
}
.nav-name {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--t-1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.nav-name .punto { color: var(--rojo); }
.nav-name small {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #ED1C24;
  opacity: 1;
  margin-top: 3px;
  text-transform: uppercase;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-body);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #e8f0f8;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-links a::before {
  content: attr(data-num);
  font-family: var(--f-mono);
  font-size: 0.62rem;
  color: var(--t-4);
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--t-1);
  background: var(--surface-2);
}
.nav-links a.active {
  color: var(--t-1);
  background: var(--surface-2);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--rojo);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--rojo);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-status {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--t-3);
  padding: 6px 12px;
  border: 1px solid var(--line-1);
  border-radius: 6px;
  text-transform: uppercase;
}
.nav-status .dot {
  width: 6px; height: 6px;
  background: #00FF88;
  border-radius: 50%;
  box-shadow: 0 0 8px #00FF88;
  animation: pulse 2s ease-in-out infinite;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--t-1);
  background: var(--rojo);
  padding: 9px 18px;
  border-radius: 6px;
  border: 1px solid var(--rojo);
  transition: background .2s, box-shadow .2s, transform .15s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--rojo-dark);
  box-shadow: 0 8px 24px rgba(255,30,39,.35);
  transform: translateY(-1px);
}
.nav-cta svg { width: 14px; height: 14px; }

.nav-btn-contacto {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ED1C24;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--line-1);
  border-radius: 0;
  background: transparent;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s;
  width: auto;
  box-shadow: none;
  outline: none;
}
.nav-btn-contacto:hover { color: #ED1C24; }

@media (min-width: 900px) {
  .nav-btn-contacto {
    display: inline-block;
    align-items: center;
    justify-content: center;
    height: 32px;
    line-height: 32px;
    padding: 0 16px;
    border: 1.5px solid #ED1C24;
    border-radius: 4px;
    background: transparent;
    font-family: var(--f-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #ED1C24;
    width: auto;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
  }
  .nav-btn-contacto:hover {
    background: #ED1C24;
    color: #fff;
  }
}

.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line-1);
  border-radius: 6px;
  padding: 10px 12px;
  transition: background .2s;
}
.nav-burger:hover { background: var(--surface-3); }
.nav-burger span {
  width: 18px; height: 1.5px;
  background: var(--t-1);
  transition: transform .3s, opacity .3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(10,10,10,.98);
  backdrop-filter: blur(20px);
  padding: 16px 24px 24px;
  border-top: 1px solid var(--line-1);
  gap: 2px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--t-2);
  padding: 14px 0;
  border-bottom: 1px solid var(--line-1);
  text-transform: uppercase;
  transition: color .2s;
}
.nav-mobile a:hover { color: var(--rojo); }
.nav-mobile a .arrow { font-family: var(--f-mono); color: var(--t-4); font-size: 0.8rem; }
.nav-mobile .nav-cta { justify-content: center; margin-top: 16px; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-status { display: inline-flex; }
  .nav-burger { display: none; }
}

/* ============================================================
   GRID OVERLAY (Tech background)
   ============================================================ */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,30,39,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,30,39,0.05) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

.noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border: 1px solid transparent;
  transition: all .2s ease;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn .arr {
  display: inline-block;
  transition: transform .2s ease;
}
.btn:hover .arr { transform: translateX(4px); }

.btn-primary {
  background: var(--rojo);
  color: #fff;
  border-color: var(--rojo);
  box-shadow: 0 4px 24px rgba(255,30,39,.25);
}
.btn-primary:hover {
  background: var(--rojo-dark);
  border-color: var(--rojo-dark);
  box-shadow: 0 8px 32px rgba(255,30,39,.45), 0 0 0 1px rgba(255,30,39,.4);
  transform: translateY(-1px);
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transition: left .6s;
}
.btn-primary:hover::before { left: 100%; }

.btn-ghost {
  background: transparent;
  color: var(--t-1);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--t-3);
}

.btn-white {
  background: #fff;
  color: var(--negro);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--negro);
  color: #fff;
  border-color: var(--negro);
  transform: translateY(-1px);
}

/* ============================================================
   FOOTER (shared)
   ============================================================ */
.footer {
  background: var(--negro);
  padding: 80px 0 32px;
  border-top: 1px solid var(--line-1);
  position: relative;
  overflow: hidden;
}
.footer .grid-bg { opacity: 0.5; }
.footer-inner { position: relative; z-index: 1; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand { max-width: 320px; }
.footer-name {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--t-1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.footer-name .punto { color: var(--rojo); }
.footer-desc {
  color: var(--t-3);
  font-size: 0.92rem;
  line-height: 1.65;
}
.footer-meta {
  margin-top: 20px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--t-4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-meta::before {
  content: '';
  width: 6px; height: 6px;
  background: #00FF88;
  border-radius: 50%;
  box-shadow: 0 0 8px #00FF88;
  animation: pulse 2s infinite;
}
.footer-col h4 {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--t-4);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col ul a {
  color: var(--t-2);
  font-size: 0.94rem;
  transition: color .2s, padding .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul a::before {
  content: '→';
  color: var(--rojo);
  opacity: 0;
  transition: opacity .2s, transform .2s;
  transform: translateX(-8px);
  display: inline-block;
  font-family: var(--f-mono);
}
.footer-col ul a:hover { color: var(--rojo); }
.footer-col ul a:hover::before { opacity: 1; transform: translateX(0); }
.footer-bottom {
  border-top: 1px solid var(--line-1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--t-4);
  letter-spacing: 0.04em;
}
.footer-bottom .right { color: var(--t-3); }

@media (min-width: 800px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ============================================================
   WHATSAPP FLOATING
   ============================================================ */
.wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.5);
  transition: transform .2s;
  animation: waPulse 2.4s ease-out infinite;
}
.wa-fab:hover {
  transform: scale(1.12);
}
.wa-fab svg { width: 28px; height: 28px; fill: #fff; }
@keyframes waPulse {
  0% { box-shadow: 0 8px 32px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.6); }
  70% { box-shadow: 0 8px 32px rgba(37,211,102,.4), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 32px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,0); }
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.s-head {
  margin-bottom: 56px;
}
.s-head-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.s-head-row .mono-label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--rojo);
  text-transform: uppercase;
}
.s-head-row .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--rojo-line), transparent);
}
.s-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.s-title em {
  font-style: normal;
  color: var(--rojo);
  position: relative;
}
.s-sub {
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 580px;
  color: var(--t-3);
}
.s-head.dark .s-title { color: var(--t-1); }
.s-head.light .s-title { color: var(--tl-1); }
.s-head.light .s-sub { color: var(--tl-3); }

/* ============================================================
   CUSTOM CURSOR (desktop only)
   ============================================================ */
@media (hover: hover) and (min-width: 900px) {
  .cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9998;
    border-radius: 50%;
    mix-blend-mode: difference;
  }
  .cursor-dot {
    width: 6px; height: 6px;
    background: #fff;
    transform: translate(-50%, -50%);
    transition: transform .1s;
  }
  .cursor-ring {
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,.6);
    transform: translate(-50%, -50%);
    transition: width .25s, height .25s, opacity .25s;
  }
  .cursor-ring.hover {
    width: 56px; height: 56px;
    border-color: var(--rojo);
    background: rgba(255,30,39,.08);
  }
}
@media (hover: none), (max-width: 899px) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ============================================================
   ANIMACIONES KEYFRAMES SHARED
   ============================================================ */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255,30,39,.3); }
  50% { box-shadow: 0 0 40px rgba(255,30,39,.6); }
}
