/* =====================================================
   AirsoftPoint — Shared Layout Styles
   Incluir en TODAS las páginas del sitio.
   ===================================================== */

/* ── TOKENS ── */
:root {
  --bg:       #080808;
  --bg2:      #0e0e0e;
  --surface:  #141414;
  --surface2: #1c1c1c;
  --border:   rgba(255,255,255,0.07);
  --border-h: rgba(255,255,255,0.14);

  --accent:   #00ff87;
  --accent-d: #00cc6a;
  --accent-g: rgba(0,255,135,0.10);
  --orange:   #ff6b00;
  --orange-g: rgba(255,107,0,0.10);

  --text:     #f0f0f0;
  --text2:    #999;
  --muted:    #555;

  --ff-h: 'Barlow Condensed', sans-serif;
  --ff-b: 'Space Grotesk', sans-serif;
  --ff-m: 'JetBrains Mono', monospace;

  --nav-h: 64px;
  --ease:  cubic-bezier(0.25, 0.4, 0.25, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-b);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9000;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--ff-b); cursor: pointer; }

/* ── TYPOGRAPHY UTILS ── */
.label {
  font-family: var(--ff-m);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.label-muted {
  font-family: var(--ff-m);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
h1, h2, h3, h4 {
  font-family: var(--ff-h);
  line-height: 1.0;
  text-transform: uppercase;
}

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 48px; } }

/* ── SCROLL REVEALS ── */
.reveal, .reveal-l, .reveal-r {
  opacity: 0;
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal   { transform: translateY(28px); }
.reveal-l { transform: translateX(-28px); }
.reveal-r { transform: translateX(28px); }
.reveal.in, .reveal-l.in, .reveal-r.in { opacity: 1; transform: none; }
[data-d="1"] { transition-delay: 0.10s; }
[data-d="2"] { transition-delay: 0.20s; }
[data-d="3"] { transition-delay: 0.30s; }
[data-d="4"] { transition-delay: 0.40s; }
[data-d="5"] { transition-delay: 0.50s; }
[data-d="6"] { transition-delay: 0.60s; }

/* ── PROGRESS BAR ── */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 500;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}
#nav.scrolled {
  background: rgba(8,8,8,0.88);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-h);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.logo-hex {
  width: 30px; height: 30px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-hex svg { width: 14px; height: 14px; }
.nav-logo .green { color: var(--accent); }

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text2);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  display: none;
  padding: 9px 22px;
  background: var(--accent);
  color: #000;
  font-family: var(--ff-h);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.2s, transform 0.2s;
}
@media (min-width: 900px) { .nav-cta { display: block; } }
.nav-cta:hover { background: #fff; transform: translateY(-1px); }

.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
}
@media (min-width: 900px) { .nav-burger { display: none; } }
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px 24px 32px;
  z-index: 199;
  transform: translateY(-16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-mobile.open {
  transform: none;
  opacity: 1;
  pointer-events: all;
}
.nav-mobile a {
  display: block;
  padding: 14px 0;
  font-family: var(--ff-h);
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
  transition: color 0.2s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--accent); }

/* ── FOOTER ── */
#footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.ft-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
@media (min-width: 768px) { .ft-top { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.ft-desc {
  font-size: 14px; color: var(--text2);
  line-height: 1.7; margin-top: 14px;
  max-width: 280px;
}
.ft-col-title {
  font-family: var(--ff-h);
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.ft-links { display: flex; flex-direction: column; gap: 11px; }
.ft-links a { font-size: 14px; color: var(--text2); transition: color 0.2s; }
.ft-links a:hover { color: var(--accent); }
.ft-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.ft-copy { font-size: 13px; color: var(--muted); }
.ft-email {
  font-family: var(--ff-m);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.2s;
}
.ft-email:hover { color: var(--accent); }

/* ── BACK TO TOP ── */
#btt {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 42px; height: 42px;
  background: var(--accent);
  color: #000;
  border: none;
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 100;
}
#btt.show { opacity: 1; transform: none; }
#btt:hover { background: #fff; }

/* ── BUTTONS (shared) ── */
.btn-p {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: var(--accent);
  color: #000;
  font-family: var(--ff-h);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: none;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-p:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(0,255,135,0.28); }
.btn-s {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: 1px solid var(--border-h);
  color: var(--text);
  font-family: var(--ff-h);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: transparent;
  transition: border-color 0.2s, color 0.2s;
}
.btn-s:hover { border-color: var(--accent); color: var(--accent); }

/* ── SECTION BASE ── */
section { padding: 100px 0; }
.sec-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.sec-label::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.sec-title {
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 900;
  line-height: 0.93;
}
.sec-title em { font-style: normal; color: var(--accent); }
.sec-desc {
  font-size: 17px;
  color: var(--text2);
  max-width: 540px;
  margin-top: 20px;
  line-height: 1.75;
}
.tag {
  padding: 3px 10px;
  border: 1px solid var(--border);
  font-family: var(--ff-m);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag-o {
  padding: 3px 10px;
  background: var(--orange-g);
  border: 1px solid rgba(255,107,0,0.28);
  font-family: var(--ff-m);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

@media (max-width: 640px) { section { padding: 72px 0; } }

/* ═══════════════════════════════════════════
   PAGE HERO  (sobre-nosotros, contacto, blog/)
   ═══════════════════════════════════════════ */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0,255,135,0.06) 0%, transparent 70%);
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, black 30%, transparent 100%);
}
.page-hero-inner {
  position: relative; z-index: 2;
  max-width: 760px;
}
.page-hero-inner .sec-label { margin-bottom: 20px; }
.page-title {
  font-family: var(--ff-h);
  font-size: clamp(52px, 9vw, 110px);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.page-title em { color: var(--accent); font-style: normal; }
.page-lead {
  font-size: 18px;
  color: var(--text2);
  line-height: 1.7;
  max-width: 560px;
}

/* ═══════════════════════════════════════════
   ARTICLE SHARED  (todas las entradas de blog)
   ═══════════════════════════════════════════ */
.art-hero {
  padding: calc(var(--nav-h) + 64px) 0 0;
  position: relative;
  overflow: hidden;
  background: var(--bg2);
}
.art-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0,255,135,0.06) 0%, transparent 70%);
}
.art-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-m);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  position: relative; z-index: 2;
}
.art-breadcrumb a { color: var(--muted); transition: color 0.2s; }
.art-breadcrumb a:hover { color: var(--accent); }
.art-breadcrumb span { color: var(--accent); }
.art-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  position: relative; z-index: 2;
}
.art-cat {
  padding: 4px 12px;
  background: var(--accent-g);
  border: 1px solid rgba(0,255,135,0.25);
  font-family: var(--ff-m);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.art-date, .art-read {
  font-family: var(--ff-m);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.art-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 24px;
  max-width: 900px;
  position: relative; z-index: 2;
}
.art-title em { color: var(--accent); font-style: normal; }
.art-lead {
  font-size: 19px;
  color: var(--text2);
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 48px;
  position: relative; z-index: 2;
}
.art-img {
  width: 100%;
  aspect-ratio: 21/8;
  object-fit: cover;
  display: block;
}

/* article two-col layout */
.art-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 64px 0 100px;
}
@media (min-width: 1024px) { .art-layout { grid-template-columns: 1fr 280px; gap: 64px; } }

/* sticky TOC */
.art-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 24px;
}
@media (min-width: 1024px) {
  .art-toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
}
.art-toc h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.art-toc ol { list-style: none; counter-reset: toc; }
.art-toc li { counter-increment: toc; margin-bottom: 10px; }
.art-toc li::before {
  content: counter(toc, decimal-leading-zero) '. ';
  font-family: var(--ff-m);
  font-size: 10px;
  color: var(--accent);
}
.art-toc a { font-size: 13px; color: var(--text2); transition: color 0.2s; line-height: 1.4; }
.art-toc a:hover { color: var(--accent); }

/* article body typography */
.art-body h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.0;
  margin: 52px 0 20px;
  padding-top: 8px;
}
.art-body h2:first-child { margin-top: 0; }
.art-body h2 em { color: var(--accent); font-style: normal; }
.art-body h3 {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 36px 0 14px;
  color: var(--text);
}
.art-body p { font-size: 16px; color: var(--text2); line-height: 1.8; margin-bottom: 18px; }
.art-body strong { color: var(--text); font-weight: 600; }
.art-body ul, .art-body ol { margin: 0 0 20px 0; padding-left: 0; list-style: none; }
.art-body ul li, .art-body ol li {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.7;
  padding: 6px 0 6px 24px;
  position: relative;
}
.art-body ul li::before {
  content: '';
  position: absolute; left: 0; top: 15px;
  width: 8px; height: 2px;
  background: var(--accent);
}
.art-body ol { counter-reset: ol-cnt; }
.art-body ol li { counter-increment: ol-cnt; }
.art-body ol li::before {
  content: counter(ol-cnt, decimal-leading-zero) '.';
  position: absolute; left: 0; top: 6px;
  font-family: var(--ff-m);
  font-size: 10px;
  color: var(--accent);
  font-weight: 700;
}

/* callout boxes */
.tip-box {
  background: rgba(0,255,135,0.05);
  border: 1px solid rgba(0,255,135,0.2);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  margin: 28px 0;
}
.tip-box strong {
  display: block;
  font-family: var(--ff-m);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.tip-box p { font-size: 15px; color: var(--text2); line-height: 1.65; margin: 0; }

.warn-box {
  background: rgba(255,107,0,0.05);
  border: 1px solid rgba(255,107,0,0.2);
  border-left: 3px solid var(--orange);
  padding: 20px 24px;
  margin: 28px 0;
}
.warn-box strong {
  display: block;
  font-family: var(--ff-m);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.warn-box p { font-size: 15px; color: var(--text2); line-height: 1.65; margin: 0; }

/* article table */
.art-table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 14px; overflow-x: auto; display: block; }
.art-table th {
  background: var(--surface2);
  padding: 12px 16px;
  text-align: left;
  font-family: var(--ff-m);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
}
.art-table td { padding: 12px 16px; border: 1px solid var(--border); color: var(--text2); background: var(--surface); vertical-align: top; }
.art-table tr:hover td { background: var(--surface2); }
.td-green { color: var(--accent); font-weight: 600; }
.td-orange { color: var(--orange); font-weight: 600; }

/* related articles footer */
.art-related { padding: 64px 0 100px; border-top: 1px solid var(--border); }
.art-related h3 { font-size: 28px; font-weight: 900; text-transform: uppercase; margin-bottom: 32px; }
.art-related h3 em { color: var(--accent); font-style: normal; }
.rel-grid { display: grid; grid-template-columns: 1fr; gap: 2px; background: var(--border); }
@media (min-width: 640px) { .rel-grid { grid-template-columns: 1fr 1fr; } }
.rel-card {
  background: var(--surface);
  padding: 28px 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.2s;
}
.rel-card:hover { background: var(--surface2); }
.rel-cat { font-family: var(--ff-m); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.rel-card h4 { font-size: 18px; font-weight: 800; text-transform: uppercase; color: var(--text); line-height: 1.1; }
.rel-card p { font-size: 14px; color: var(--text2); line-height: 1.6; }
.rel-arrow { color: var(--accent); font-size: 18px; margin-top: 4px; }
