/* ═══════════════════════════════════════════════════════════════════
   SP6 SEGURIDAD — Corporate Design System v4
   Typography: Rajdhani (display) + Source Sans 3 (body)
   Brand: #A71C1F  |  Black dominant  |  G4S-style corporate
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Source+Sans+3:wght@300;400;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:      #A71C1F;
  --red-dk:   #7D1518;
  --red-lt:   #C0211F;
  --black:    #0B0B0B;
  --d1:       #111111;
  --d2:       #1C1C1C;
  --d3:       #262626;
  --bdr:      rgba(255,255,255,.07);
  --bdr-lt:   rgba(0,0,0,.1);
  --white:    #FFFFFF;
  --off:      #F5F5F5;
  --gl:       #E6E6E6;
  --gt:       #505050;
  --gm:       #8A8A8A;
  --nav-h:    72px;
  --mw:       1220px;
  --ease:     cubic-bezier(.4,0,.2,1);
  --t:        .22s var(--ease);
  /* Typography */
  --fh:       'Rajdhani', sans-serif;
  --fb:       'Source Sans 3', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--fb);
  color: var(--d1);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ── Layout ─────────────────────────────────────────── */
.wrap { max-width: var(--mw); margin: 0 auto; padding: 0 36px; }
@media (max-width: 480px) { .wrap { padding: 0 18px; } }

/* ── Type helpers ────────────────────────────────────── */
.eyebrow {
  display: block;
  font-family: var(--fb); font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px;
}
.h1 { font-family: var(--fh); font-weight: 700; font-size: clamp(3rem, 7.5vw, 6.8rem); text-transform: uppercase; line-height: .92; color: var(--white); letter-spacing: .01em; }
.h2 { font-family: var(--fh); font-weight: 700; font-size: clamp(2rem, 5vw, 3.6rem); text-transform: uppercase; line-height: .96; color: var(--d1); letter-spacing: .01em; }
.h2.lgt { color: var(--white); }
.h3 { font-family: var(--fh); font-weight: 700; font-size: clamp(1.3rem, 2.8vw, 2rem); text-transform: uppercase; line-height: 1; color: var(--d1); letter-spacing: .01em; }
.h3.lgt { color: var(--white); }
.h4 { font-family: var(--fh); font-weight: 600; font-size: 1.15rem; text-transform: uppercase; color: var(--d1); letter-spacing: .02em; }
.h4.lgt { color: var(--white); }
.lead { font-family: var(--fb); font-size: 1.05rem; font-weight: 300; color: var(--gt); line-height: 1.78; }
.lead.lgt { color: rgba(255,255,255,.52); }
.rbar { display: block; width: 40px; height: 3px; background: var(--red); margin-bottom: 22px; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--fh); font-size: .9rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 14px 32px; border: none; cursor: pointer;
  white-space: nowrap; line-height: 1;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dk); }
.btn-wht { background: var(--white); color: var(--red); }
.btn-wht:hover { background: var(--off); }
.btn-drk { background: var(--d1); color: var(--white); }
.btn-drk:hover { background: var(--d2); }
.btn-ol  { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.35); }
.btn-ol:hover  { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn-old { background: transparent; color: var(--d1); border: 2px solid rgba(0,0,0,.25); }
.btn-old:hover { background: var(--d1); color: var(--white); border-color: var(--d1); }

/* ── Fade animation ──────────────────────────────────── */
.fu { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.fu.vis { opacity: 1; transform: none; }
.fu-delay-1 { transition-delay: .1s; }
.fu-delay-2 { transition-delay: .2s; }
.fu-delay-3 { transition-delay: .3s; }

/* ═══════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  transition: background .3s, box-shadow .3s;
}
#navbar.solid, #navbar.scrolled {
  background: var(--black);
  box-shadow: 0 2px 0 var(--red);
}
.nav-row { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.nav-brand img { height: 38px; width: auto; display: block; }

.nav-menu { display: flex; align-items: center; gap: 26px; }
.nav-menu a {
  font-family: var(--fh); font-size: .85rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.58);
  position: relative; padding-bottom: 3px;
  transition: color var(--t);
}
.nav-menu a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--red);
  transition: width var(--t);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--white); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-cta {
  background: var(--red) !important; color: var(--white) !important;
  padding: 10px 22px !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--red-dk) !important; }

/* Burger */
.burger {
  display: none; flex-direction: column; justify-content: center;
  align-items: flex-end; gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 6px; flex-shrink: 0;
}
.burger span {
  display: block; height: 2px; background: var(--white); border-radius: 1px;
  transition: transform .24s ease, opacity .24s ease, width .24s ease;
}
.burger span:nth-child(1) { width: 22px; }
.burger span:nth-child(2) { width: 16px; }
.burger span:nth-child(3) { width: 22px; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 22px; }
.burger.open span:nth-child(2) { opacity: 0; width: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 22px; }

@media (max-width: 780px) {
  .burger { display: flex; }
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--black); border-top: 2px solid var(--red);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 0 20px;
    opacity: 0; pointer-events: none; transform: translateY(-6px);
    transition: opacity .24s ease, transform .24s ease;
  }
  .nav-menu.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 13px 28px; font-size: .88rem; }
  .nav-menu a::after { display: none; }
  .nav-cta { display: block !important; margin: 10px 28px !important; text-align: center !important; }
}

/* ═══════════════════════════════════════════════════════
   PAGE HERO (inner pages)
   ═══════════════════════════════════════════════════════ */
.page-hero {
  background: var(--black);
  padding: calc(var(--nav-h) + 64px) 0 56px;
  border-bottom: 3px solid var(--red);
  position: relative; overflow: hidden;
}
.page-hero-wm {
  position: absolute; right: -10px; bottom: -16px;
  font-family: var(--fh); font-weight: 700;
  font-size: clamp(5rem, 18vw, 14rem);
  text-transform: uppercase; color: rgba(255,255,255,.022);
  pointer-events: none; user-select: none; line-height: 1;
}
.breadcrumb {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--fb); font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.28); margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,.38); transition: color var(--t); }
.breadcrumb a:hover { color: var(--red); }
.page-hero h1 {
  font-family: var(--fh); font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.2rem); text-transform: uppercase;
  color: var(--white); line-height: .94; margin-bottom: 18px; letter-spacing: .01em;
}
.page-hero h1 em { font-style: normal; color: var(--red); }
.hero-sub { font-size: 1.02rem; font-weight: 300; color: rgba(255,255,255,.44); max-width: 540px; line-height: 1.74; }

/* ═══════════════════════════════════════════════════════
   SECTION HELPERS
   ═══════════════════════════════════════════════════════ */
.sec { padding: 88px 0; }
.sec-dk  { background: var(--d1); }
.sec-off { background: var(--off); }
.sec-head { margin-bottom: 48px; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════
   CTA BAND
   ═══════════════════════════════════════════════════════ */
.cta-band { background: var(--red); padding: 64px 0; }
.cta-row  { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-row h2 { font-family: var(--fh); font-weight: 700; font-size: clamp(1.6rem, 3.5vw, 2.6rem); text-transform: uppercase; color: var(--white); line-height: 1.06; }
.cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════
   CREDENTIALS STRIP
   ═══════════════════════════════════════════════════════ */
.cred-strip { background: var(--d2); border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr); padding: 18px 0; }
.cred-row   { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.cred-item  {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 28px;
  border-right: 1px solid var(--bdr);
  font-family: var(--fh); font-size: .82rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.cred-item:last-child { border-right: none; }
.cred-item svg { fill: var(--red); flex-shrink: 0; }
@media (max-width: 600px) {
  .cred-item { padding: 7px 14px; font-size: .72rem; }
}

/* ═══════════════════════════════════════════════════════
   DRONE BADGE (coming soon)
   ═══════════════════════════════════════════════════════ */
.drone-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(167,28,31,.12); border: 1px solid rgba(167,28,31,.3);
  color: var(--red); font-family: var(--fb); font-size: .7rem;
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
#site-footer { background: var(--black); border-top: 3px solid var(--red); padding-top: 64px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--bdr);
}
@media (max-width: 900px)  { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 500px)  { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { height: 38px; width: auto; margin-bottom: 14px; }
.footer-tag  { font-family: var(--fh); font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.footer-desc { font-size: .84rem; font-weight: 300; color: rgba(255,255,255,.3); line-height: 1.72; }
.footer-col h4 { font-family: var(--fh); font-size: .7rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--bdr); }
.footer-col li { margin-bottom: 8px; }
.footer-col a  { font-size: .84rem; font-weight: 300; color: rgba(255,255,255,.35); transition: color var(--t); }
.footer-col a:hover { color: var(--red); }
.footer-contact li { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; font-size: .84rem; font-weight: 300; color: rgba(255,255,255,.4); }
.footer-contact a  { color: rgba(255,255,255,.4); transition: color var(--t); }
.footer-contact a:hover { color: var(--white); }
.footer-contact svg { fill: var(--red); flex-shrink: 0; margin-top: 3px; }
.footer-bar { padding: 16px 0; }
.footer-bar-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bar p, .footer-bar a { font-size: .76rem; font-weight: 300; color: rgba(255,255,255,.18); }
.footer-bar a { margin-left: 16px; transition: color var(--t); }
.footer-bar a:hover { color: var(--white); }
