:root {
  --ink: #06101c;
  --navy: #091827;
  --navy-2: #0d2338;
  --red: #c62828;
  --red-2: #f04b43;
  --red-soft: #fff0ef;
  --blue: var(--red);
  --blue-2: var(--red-2);
  --white: #ffffff;
  --text: #17212f;
  --muted: #66768a;
  --soft: #f3f7fb;
  --line: #dbe5ef;
  --shadow: 0 18px 55px rgba(6, 16, 28, .14);
  --radius: 8px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.topbar {
  background: #050b13;
  color: #d9e6f3;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .container { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; }
.topbar a { color: #fff; font-weight: 700; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(9, 24, 39, .08);
  backdrop-filter: blur(14px);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; color: var(--navy); }
.brand img { width: 172px; height: auto; border-radius: 4px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 11px;
  color: #263448;
  font-size: 15px;
  font-weight: 750;
  border-radius: 6px;
}
.main-nav a:hover, .main-nav a.active { color: var(--red); background: var(--red-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 6px;
  font-size: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-weight: 850;
  cursor: pointer;
  transition: .2s ease;
}
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--red), #8f1717); box-shadow: 0 12px 32px rgba(198,40,40,.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(198,40,40,.38); }
.btn-dark { color: #fff; background: var(--navy); }
.btn-light { color: var(--navy); background: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.08); }
.btn-outline { color: var(--navy); border-color: var(--line); background: #fff; }

.hero {
  min-height: 720px;
  color: #fff;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 9, 17, .94) 0%, rgba(5, 19, 34, .78) 48%, rgba(5, 19, 34, .25) 100%),
    url("../img/hero-seguridad.jpg") center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  background: linear-gradient(0deg, #fff 0%, transparent 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 790px; padding: 120px 0 150px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  color: #ffe1de;
  background: rgba(198,40,40,.18);
  border: 1px solid rgba(240,75,67,.34);
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
}
h1, h2, h3 { line-height: 1.1; margin: 0; color: inherit; }
.hero h1 { font-size: clamp(42px, 7vw, 76px); letter-spacing: 0; max-width: 760px; }
.hero p { max-width: 690px; margin: 22px 0 30px; color: #d7e6f5; font-size: 20px; }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
  max-width: 680px;
}
.metric {
  padding: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
}
.metric strong { display: block; font-size: 28px; line-height: 1; }
.metric span { color: #c6d8e8; font-size: 14px; }

.section { padding: 86px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: linear-gradient(135deg, #06101c, #321012); color: #fff; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-kicker { color: var(--blue); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; margin-bottom: 10px; }
.section h2 { font-size: clamp(30px, 4vw, 48px); color: var(--navy); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head p { color: var(--muted); font-size: 18px; margin: 14px 0 0; }
.section-dark .section-head p { color: #c9d8e8; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(6, 16, 28, .06);
  padding: 24px;
  transition: .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #f2b6b1; }
.service-card { display: flex; flex-direction: column; min-height: 260px; }
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  border-radius: 8px;
  font-size: 21px;
  margin-bottom: 18px;
}
.card h3 { color: var(--navy); font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0 0 18px; }
.card .learn { margin-top: auto; color: var(--blue); font-weight: 900; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.feature-panel {
  min-height: 420px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(6,16,28,.92), rgba(198,40,40,.42)),
    url("../img/hero-seguridad.jpg") center/cover no-repeat;
  box-shadow: var(--shadow);
}
.check-list { display: grid; gap: 13px; margin: 24px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; color: #304158; }
.check-list i { color: var(--blue); margin-top: 4px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stat {
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.stat i { color: var(--blue-2); font-size: 26px; margin-bottom: 16px; }
.stat strong { display: block; font-size: 25px; margin-bottom: 5px; }
.stat span { color: #c8d8e8; }

.sector-card {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, #fff, #fff8f7);
}
.sector-card i { color: var(--blue); font-size: 24px; }

.cta {
  border-radius: var(--radius);
  padding: 44px;
  background:
    linear-gradient(135deg, rgba(6,16,28,.96), rgba(198,40,40,.84)),
    url("../img/hero-seguridad.jpg") center/cover no-repeat;
  color: #fff;
  box-shadow: var(--shadow);
}
.cta h2 { color: #fff; font-size: clamp(29px, 4vw, 48px); }
.cta p { color: #dce9f6; max-width: 780px; font-size: 18px; }

.page-hero {
  padding: 96px 0 64px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(6,16,28,.96), rgba(9,24,39,.72)),
    url("../img/hero-seguridad.jpg") center/cover no-repeat;
}
.page-hero h1 { max-width: 850px; font-size: clamp(38px, 6vw, 62px); }
.page-hero p { max-width: 760px; color: #d8e6f5; font-size: 19px; }

.content-block { max-width: 860px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pill { padding: 9px 13px; border-radius: 999px; background: var(--red-soft); color: #9f1d1d; font-weight: 800; }

.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; align-items: start; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 850; margin-bottom: 7px; color: var(--navy); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 48px;
  padding: 12px 13px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 136px; resize: vertical; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.checkbox input { width: auto; min-height: 0; margin-top: 5px; }
.map {
  width: 100%;
  min-height: 290px;
  border: 0;
  border-radius: var(--radius);
}

.site-footer {
  background: #050b13;
  color: #d8e6f5;
  padding: 58px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr .9fr; gap: 28px; }
.footer-logo { width: 190px; margin-bottom: 18px; border-radius: 4px; }
.site-footer h3 { color: #fff; font-size: 17px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a:hover { color: var(--blue-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #93a8ba; font-size: 14px; }
.socials { display: flex; gap: 10px; }
.socials a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; background: rgba(255,255,255,.08); border-radius: 6px; }

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  gap: 10px;
}
.float-btn {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 14px 32px rgba(0,0,0,.25);
  font-size: 23px;
}
.float-whatsapp { background: #25d366; }
.float-call { background: var(--blue); }

.reveal { opacity: 0; transform: translateY(18px); transition: .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
