:root {
  --red: #e30613;
  --red-dark: #b8000b;
  --black: #1b1f25;
  --charcoal: #242a32;
  --grey: #f2f3f5;
  --red-soft: #fff1f2;
  --text: #22262c;
  --muted: #626a75;
  --white: #fff;
  --border: #dde1e7;
  --shadow: 0 16px 40px rgba(0, 0, 0, .14);
}

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

.topbar {
  background: var(--red);
  color: var(--white);
  font-size: .92rem;
}
.topbar .container, .nav .container, .footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar a { color: var(--white); font-weight: 700; }
.topbar .container { flex-wrap: wrap; }
.topbar .container > span { min-width: 0; }
.socials { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.socials a {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.45); border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
}
.socials a[href^="tel:"] {
  width: auto;
  min-width: max-content;
  height: 42px;
  padding: 0 12px 0 3px;
  white-space: nowrap;
  border-radius: 999px;
  gap: 8px;
  grid-auto-flow: column;
}
.call-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: inline-block;
}
.whatsapp-logo {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: inline-block;
}
.btn .whatsapp-logo {
  width: 24px;
  height: 24px;
}
.socials .whatsapp-logo {
  width: 20px;
  height: 20px;
}
.social-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.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;
}

.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.98);
  color: var(--charcoal);
  box-shadow: 0 6px 22px rgba(180,0,12,.12);
}
.nav .container { flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-weight: 900; letter-spacing: .5px; }
.brand-logo {
  width: 300px;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  background: #000;
  border: 2px solid #000;
  border-radius: 0;
  padding: 0;
  box-shadow: 0 2px 16px rgba(227, 6, 19, .16);
}
.brand-mark {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--red); color: var(--white); border-radius: 6px;
  font-size: 1.35rem; border: 2px solid #fff;
}
.brand small { display: block; color: #ccd1d8; font-size: .75rem; letter-spacing: 0; }
.menu { display: flex; gap: 2px; align-items: center; justify-content: flex-end; flex: 1 1 auto; flex-wrap: nowrap; min-width: 0; }
.menu a { padding: 30px 7px; color: var(--charcoal); font-weight: 800; font-size: .84rem; white-space: nowrap; }
.menu a:hover, .menu a.active { color: var(--red); background: var(--red-soft); }
.menu-toggle {
  display: none; background: transparent; color: var(--red); border: 1px solid rgba(227,6,19,.35);
  border-radius: 6px; padding: 10px; cursor: pointer;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--red); margin: 5px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 6px; padding: 12px 18px;
  font-weight: 800; cursor: pointer; line-height: 1.2;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-light { background: #fff; color: var(--charcoal); }
.btn-outline { border: 2px solid var(--red); color: var(--red); background: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
a.btn[href^="https://wa.me"] {
  background: #fff;
  color: #17231b;
  border: 2px solid #25d366;
}
a.btn[href^="https://wa.me"]:hover {
  background: #eafff3;
}

.hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  color: var(--charcoal);
  background:
    linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.86) 38%, rgba(255,255,255,.2) 68%, rgba(255,255,255,.04) 100%),
    url("../images/hero.png") center/cover no-repeat,
    #fff;
}
.hero-content {
  width: min(560px, calc(100% - 32px));
  max-width: 560px;
  padding: 80px 0;
  margin-left: max(16px, calc((100vw - 1240px) / 2));
  margin-right: auto;
}
.eyebrow { color: #ff4a55; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 16px; color: inherit; }
h1 { font-size: clamp(2.3rem, 5vw, 4.8rem); max-width: 850px; }
.hero h1 { font-size: clamp(2rem, 3.65vw, 3.45rem); max-width: 560px; }
h2 { font-size: clamp(1.8rem, 3.2vw, 3rem); }
h3 { font-size: 1.25rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: inherit; max-width: 720px; margin: 0 0 28px; }
.hero .lead { color: #3d4652; }

.section { padding: 72px 0; }
.section.grey { background: linear-gradient(180deg, var(--red-soft), #fff); }
.section.dark { background: var(--charcoal); color: #fff; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.grid { display: grid; gap: 22px; }
.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, .review, .package {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 24px; box-shadow: 0 4px 18px rgba(15,20,28,.06);
}
.card .icon, .trust-item .icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 6px; background: rgba(227,6,19,.1); color: var(--red);
  font-size: 1.4rem; margin-bottom: 14px;
}
.card p, .package p, .review p { color: var(--muted); margin: 0 0 18px; }
.google-reviews-shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.google-reviews-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.offer {
  background: linear-gradient(135deg, var(--red), #7f0007);
  color: #fff; border-radius: 8px; padding: 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  box-shadow: var(--shadow);
}
.offer p { margin: 0; color: #ffe8ea; }
.list { padding: 0; margin: 0; list-style: none; display: grid; gap: 12px; }
.list li { padding-left: 30px; position: relative; }
.list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--red); font-weight: 900;
}

.inline-app-image {
  width: min(240px, 70%);
  margin: 26px 0 0 34px;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.18));
}
.monitoring-section {
  align-items: center;
}
.monitoring-image {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: #fff;
}
.monitoring-image img {
  width: 100%;
  height: auto;
}
.monitoring-price {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 6px solid var(--red);
  background: #fff;
  box-shadow: 0 4px 18px rgba(15,20,28,.06);
}
.monitoring-price span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 4px;
}
.monitoring-price strong {
  display: block;
  color: var(--red);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1;
}
.two-column-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-hero {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff; padding: 76px 0 56px; border-bottom: 6px solid var(--red);
}
.page-hero p { color: #dfe4ea; max-width: 820px; }
.cctv-page-hero {
  background:
    radial-gradient(circle at 78% 46%, rgba(255,255,255,.16), transparent 24%),
    linear-gradient(135deg, #e30613 0%, #9f0009 48%, #17191d 100%);
}
.alarm-page-hero,
.access-page-hero,
.network-page-hero,
.contact-page-hero {
  background:
    radial-gradient(circle at 78% 46%, rgba(255,255,255,.14), transparent 24%),
    linear-gradient(135deg, #e30613 0%, #9f0009 48%, #17191d 100%);
}
.cctv-page-hero .container,
.alarm-page-hero .container,
.access-page-hero .container,
.network-page-hero .container,
.contact-page-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 34px;
  align-items: center;
}
.page-hero-cameras,
.page-hero-product {
  width: 100%;
  max-width: 430px;
  justify-self: end;
  border: 5px solid rgba(255,255,255,.96);
  border-radius: 16px;
  box-shadow: 0 24px 40px rgba(0,0,0,.35);
  background: #fff;
}
.cctv-page-hero .page-hero-cameras {
  max-width: 520px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.contact-hero-image { max-width: 480px; }
.package strong { display: block; color: var(--red); font-size: 1.35rem; margin-bottom: 8px; }
.bundle-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}
.bundle-featured:last-child { margin-bottom: 0; }
.bundle-image {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15,20,28,.08);
}
.bundle-image img {
  width: 100%;
  height: auto;
}
.package-image { margin: 0; }
.package-actions { margin-top: 24px; }
.app-feature { align-items: center; }
.app-feature-image {
  margin: 0;
  justify-self: center;
  width: min(100%, 360px);
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.app-feature-image img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
}
.service-image {
  margin: 0;
  align-self: center;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.service-image img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
}
.price {
  color: var(--red);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  margin: 0 0 18px;
}
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  min-height: 230px; border-radius: 8px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #15171c, #3a3f47);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; opacity: .92; }
.gallery-item span {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  color: #fff; font-weight: 900; text-shadow: 0 2px 8px rgba(0,0,0,.7);
}
.map-placeholder {
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15,20,28,.08);
}
.map-placeholder iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}
.map-actions { margin-top: 16px; }
.contact-form {
  display: grid; gap: 14px;
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: 6px; font: inherit;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.form-check { display: none; }

.footer {
  background: var(--red-dark); color: #fff; padding: 48px 0 20px;
}
.footer-grid { align-items: flex-start; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.footer h3 { color: #fff; }
.footer a, .footer p, .footer li { color: #c8ced6; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.copyright { border-top: 1px solid rgba(255,255,255,.22); margin-top: 32px; padding-top: 20px; color: #ffe0e3; }
.float-whatsapp {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; font-weight: 900; box-shadow: var(--shadow);
}
.float-whatsapp .whatsapp-logo {
  width: 34px;
  height: 34px;
}
.policy-content {
  max-width: 920px;
}
.policy-content h2 {
  margin-top: 34px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}
.cookie-banner {
  position: fixed;
  left: 18px;
  right: 90px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 6px solid var(--red);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.cookie-banner h2,
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.cookie-banner p,
.cookie-modal p {
  margin: 0 0 8px;
  color: var(--muted);
}
.cookie-banner a {
  color: var(--red);
  font-weight: 800;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,.55);
}
.cookie-modal-panel {
  width: min(520px, 100%);
  padding: 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.cookie-modal label {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  font-weight: 800;
}
.cookie-modal input {
  width: 18px;
  height: 18px;
}

@media (max-width: 1120px) {
  .topbar .container { align-items: flex-start; flex-direction: column; padding: 10px 0; gap: 8px; }
  .socials { justify-content: flex-start; }
  .menu-toggle { display: block; }
  .nav .container { flex-wrap: wrap; }
  .menu {
    display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 0 0 16px;
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px; border-top: 1px solid rgba(227,6,19,.12); }
  .grid-3, .grid-4, .footer-grid, .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bundle-featured { grid-template-columns: 1fr; }
  .cctv-page-hero .container, .alarm-page-hero .container, .access-page-hero .container, .network-page-hero .container, .contact-page-hero .container { grid-template-columns: 1fr; }
  .page-hero-cameras, .page-hero-product { max-width: 420px; justify-self: start; }
  .offer { flex-direction: column; align-items: flex-start; }
  .cookie-banner { right: 18px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1240px); }
  .hero {
    min-height: 560px;
    background:
      linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 54%, rgba(255,255,255,.5) 100%),
      url("../images/hero.png") 68% center/cover no-repeat,
      #fff;
  }
  .page-hero-cameras, .page-hero-product { max-width: 320px; }
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4, .footer-grid, .gallery-grid { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .brand-logo { width: 235px; max-height: 128px; padding: 0; }
  .brand small { display: none; }
  .cookie-actions, .cookie-actions .btn { width: 100%; }
}
