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

:root {
  --navy: #001a49;
  --navy-hover: #001235;
  --accent: #c4121d;
  --accent-hover: #9e0f18;
  --brand-teal: #00454a;
  --text-muted: #5b6482;
  --surface: #f8f9fb;
  --border: #e4e7ef;

  /* Escala tipográfica — crece en pantallas grandes sin romper 14" */
  --logo-height: clamp(2.75rem, 2rem + 1.8vw, 4rem);
  --nav-size: clamp(0.9375rem, 0.875rem + 0.22vw, 1.125rem);
  --hero-eyebrow: clamp(0.8125rem, 0.75rem + 0.18vw, 1rem);
  --hero-title: clamp(2.125rem, 1.2rem + 3.4vw, 4.25rem);
  --hero-desc: clamp(1.0625rem, 0.95rem + 0.4vw, 1.375rem);
  --btn-size: clamp(0.9375rem, 0.875rem + 0.18vw, 1.0625rem);
  --header-pad: clamp(0.875rem, 0.6rem + 0.5vw, 1.25rem);

  /* Servicios — escala en monitores grandes */
  --services-eyebrow: clamp(0.75rem, 0.7rem + 0.12vw, 0.875rem);
  --services-title: clamp(1.75rem, 1.15rem + 1.9vw, 2.875rem);
  --services-desc: clamp(0.9375rem, 0.875rem + 0.22vw, 1.0625rem);
  --services-link: clamp(0.875rem, 0.82rem + 0.16vw, 1rem);
  --services-icon: clamp(4.25rem, 3.6rem + 1.4vw, 5.25rem);
  --services-card-title: clamp(1.0625rem, 0.95rem + 0.35vw, 1.3125rem);
  --services-card-text: clamp(0.875rem, 0.82rem + 0.18vw, 1rem);
  --services-card-pad: clamp(2rem, 1.6rem + 0.9vw, 2.5rem);
  --services-grid-gap: clamp(1.125rem, 0.85rem + 0.75vw, 1.625rem);
  --services-container: min(100% - 2.5rem, 1280px);

  /* Por qué elegirnos */
  --why-eyebrow: clamp(0.75rem, 0.7rem + 0.12vw, 0.875rem);
  --why-title: clamp(1.75rem, 1.15rem + 1.9vw, 2.625rem);
  --why-feature-title: clamp(0.9375rem, 0.875rem + 0.22vw, 1.0625rem);
  --why-feature-text: clamp(0.875rem, 0.82rem + 0.16vw, 0.9375rem);
  --why-badge-text: clamp(0.8125rem, 0.78rem + 0.14vw, 0.9375rem);
  --why-feature-icon: clamp(3.25rem, 2.75rem + 1.2vw, 4.25rem);

  /* Stats */
  --stat-num: clamp(1.75rem, 1.2rem + 1.6vw, 2.25rem);
  --stat-label: clamp(0.8125rem, 0.78rem + 0.14vw, 0.9375rem);

  /* Contacto */
  --contact-title: clamp(1.75rem, 1.15rem + 1.9vw, 2.625rem);
  --contact-desc: clamp(0.9375rem, 0.875rem + 0.22vw, 1.0625rem);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: #1a2140;
  background: #fff;
}

h1 {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3.5rem);
}

/* ── Primera sección: header + hero = 100vh ── */
.home-intro,
.cctv-intro,
.cableado-intro,
.accesos-intro,
.alarmas-intro {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  background-size: cover;
  background-position: 72% center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 26, 73, 0.04);
}

.home-intro {
  background-image: url("../img/home/01.webp");
}

.cctv-intro,
.cableado-intro,
.accesos-intro,
.alarmas-intro {
  background-color: #fff;
  background-image: url("../img/cctv/01.webp");
}

.cableado-intro {
  background-image: url("../img/cableado/01.webp");
}

.accesos-intro {
  background-image: url("../img/accesos/01.webp");
}

.alarmas-intro {
  background-image: url("../img/alarma/01.webp");
}

.home-intro::before,
.cctv-intro::before,
.cableado-intro::before,
.accesos-intro::before,
.alarmas-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.home-intro::before {
  background: linear-gradient(
    105deg,
    rgba(248, 249, 251, 0.97) 0%,
    rgba(248, 249, 251, 0.88) 38%,
    rgba(248, 249, 251, 0.45) 58%,
    rgba(248, 249, 251, 0.08) 78%,
    transparent 100%
  );
}

.cctv-intro::before,
.cableado-intro::before,
.accesos-intro::before,
.alarmas-intro::before {
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(255, 255, 255, 0.88) 38%,
    rgba(255, 255, 255, 0.45) 58%,
    rgba(255, 255, 255, 0.08) 78%,
    transparent 100%
  );
}

.home-intro > *,
.cctv-intro > *,
.cableado-intro > *,
.accesos-intro > *,
.alarmas-intro > * {
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: relative;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(238, 240, 244, 0.9);
  flex-shrink: 0;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: var(--header-pad);
}

.brand-logo img {
  height: var(--logo-height);
  width: auto;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-size: var(--nav-size);
  font-weight: 600;
  color: var(--navy);
  padding: 0.375rem 0;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--navy);
}

.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--header-pad) * -1);
  height: 2px;
  background: var(--accent);
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-dropdown-toggle,
.mobile-services-toggle {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-size: var(--nav-size);
  font-weight: 600;
  color: var(--navy);
  padding: 0.375rem 0;
}

.nav-dropdown-toggle.active,
.mobile-services-toggle.active {
  color: var(--accent);
}

.services-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: -1rem;
  margin-top: 0;
  padding-top: 0.625rem;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 25, 55, 0.14);
  padding: 0.625rem 0.5rem 0.5rem;
  min-width: 230px;
  z-index: 50;
}

.nav-item:hover .services-panel,
.nav-item.is-open .services-panel,
.nav-item:focus-within .services-panel {
  display: block;
}

.nav-item.is-open svg {
  transform: rotate(180deg);
}

.nav-item svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.services-panel a {
  display: block;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.services-panel a:hover {
  background: #f6f7fb;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.header-cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: #fff;
  padding: clamp(0.75rem, 0.65rem + 0.25vw, 0.9375rem) clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--btn-size);
  white-space: nowrap;
  transition: background 0.2s ease;
}

.header-cta:hover {
  background: var(--navy-hover);
}

.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #eef0f4;
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  flex-shrink: 0;
}

.hamburger-btn .icon-close {
  display: none;
}

.hamburger-btn.is-active .icon-open {
  display: none;
}

.hamburger-btn.is-active .icon-close {
  display: block;
}

.hamburger-btn:hover {
  border-color: var(--navy);
  background: #f6f7fb;
}

.mobile-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #eef0f4;
  box-shadow: 0 20px 40px rgba(15, 25, 55, 0.1);
  flex-direction: column;
  padding: 0.5rem clamp(1.25rem, 5vw, 3.5rem) 1.5rem;
  gap: 0.125rem;
}

.mobile-panel.is-open {
  display: flex;
}

.mobile-panel .nav-link {
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid #f3f4f8;
  width: 100%;
}

.mobile-panel .nav-link.active::after {
  display: none;
}

.mobile-nav-item {
  border-bottom: 1px solid #f3f4f8;
}

.mobile-services-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 0.25rem;
  text-align: left;
}

.mobile-services-toggle .mobile-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.mobile-services-toggle[aria-expanded="true"] .mobile-chevron {
  transform: rotate(180deg);
}

.mobile-sub {
  display: none;
  flex-direction: column;
  padding-left: 0.875rem;
  padding-bottom: 0.375rem;
}

.mobile-sub.is-open {
  display: flex;
}

.mobile-sub a {
  padding: 0.625rem 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mobile-panel .header-cta {
  display: flex;
  justify-content: center;
  margin-top: 0.875rem;
}

@media (min-width: 560px) {
  .header-cta.top-bar-cta {
    display: flex;
  }
}

@media (min-width: 1440px) {
  :root {
    --logo-height: 4rem;
    --hero-title: 4.25rem;
    --hero-desc: 1.375rem;
    --nav-size: 1.0625rem;
  }

  .desktop-nav {
    gap: 2.75rem;
  }

  .home-intro .container,
  .cctv-intro .container,
  .cableado-intro .container,
  .accesos-intro .container,
  .alarmas-intro .container {
    padding-inline: clamp(1.5rem, 2vw, 2rem);
  }
}

@media (min-width: 968px) {
  .desktop-nav {
    display: flex;
  }

  .nav-item > svg {
    display: none;
  }

  .hamburger-btn {
    display: none;
  }

  .mobile-panel {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
  width: 100%;
  padding-block: clamp(2rem, 4vh, 3rem);
}

.eyebrow {
  font-size: var(--hero-eyebrow);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  font-size: var(--hero-title);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-top: 1.125rem;
}

.hero-title .accent,
.section-title .accent {
  color: var(--accent);
}

.hero-desc {
  font-size: var(--hero-desc);
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 1.375rem;
  max-width: clamp(28rem, 36vw, 34rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: clamp(0.875rem, 0.8rem + 0.25vw, 1.0625rem) clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  border-radius: 10px;
  font-weight: 700;
  font-size: var(--btn-size);
  border: 1.5px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-hover);
  box-shadow: 0 10px 24px rgba(0, 26, 73, 0.25);
}

.btn-outline {
  background: #fff;
  color: var(--navy);
  border-color: #dfe2ea;
}

.btn-outline:hover {
  border-color: var(--navy);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28);
}

.btn-whatsapp svg {
  fill: #fff;
  flex-shrink: 0;
}

.btn-whatsapp:hover {
  background: #1ebe57;
  border-color: #1ebe57;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.34);
}

.hero-copy {
  min-width: 0;
}

.hero-spacer {
  display: none;
}

.hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(11, 20, 42, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 0.875rem 1.125rem;
  z-index: 2;
}

.hero-badge-icon {
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.hero-badge span {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

@media (min-width: 968px) {
  .home-intro,
  .cctv-intro,
  .cableado-intro,
  .accesos-intro,
  .alarmas-intro {
    background-position: center right;
  }

  .home-intro::before {
    background: linear-gradient(
      100deg,
      rgba(248, 249, 251, 0.96) 0%,
      rgba(248, 249, 251, 0.82) 42%,
      rgba(248, 249, 251, 0.2) 62%,
      transparent 78%
    );
  }

  .cctv-intro::before,
  .cableado-intro::before,
  .accesos-intro::before,
  .alarmas-intro::before {
    background: linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.82) 42%,
      rgba(255, 255, 255, 0.2) 62%,
      transparent 78%
    );
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
    padding-block: clamp(1.25rem, 3vh, 2rem);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    padding-block: 0;
    align-items: stretch;
    flex: 1;
    min-height: 0;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    padding-right: 1.5rem;
  }

  .hero-actions {
    margin-top: auto;
  }

  .hero-spacer {
    display: block;
    position: static;
    min-height: 0;
    align-self: stretch;
    pointer-events: none;
  }

  .hero-badge {
    pointer-events: auto;
    right: clamp(1.25rem, 5vw, 3.5rem);
    bottom: clamp(0.875rem, 2.5vh, 1.5rem);
    left: auto;
    max-width: 16.25rem;
  }
}

/* Laptops ~14" */
@media (min-width: 968px) and (max-width: 1439px) {
  :root {
    --hero-title: clamp(2rem, 1.1rem + 2.5vw, 3.125rem);
    --hero-desc: clamp(1rem, 0.92rem + 0.3vw, 1.125rem);
    --hero-eyebrow: clamp(0.75rem, 0.72rem + 0.12vw, 0.875rem);
  }

  .home-intro .container,
  .cctv-intro .container,
  .cableado-intro .container,
  .accesos-intro .container,
  .alarmas-intro .container {
    padding-inline: clamp(1.25rem, 3vw, 2rem);
  }

  .hero-title {
    margin-top: 0.875rem;
  }

  .hero-desc {
    margin-top: 1.125rem;
  }

  .hero-copy .btn {
    padding: 0.8125rem 1.25rem;
    font-size: 0.9375rem;
  }
}

/* Monitores grandes — bloque compacto centrado, sin estirar botones */
@media (min-width: 1440px) {
  .hero {
    justify-content: center;
    padding-block: clamp(1.25rem, 2.5vh, 1.75rem);
  }

  .hero-grid {
    flex: 0 0 auto;
    align-items: center;
    min-height: auto;
  }

  .hero-copy {
    display: block;
    align-self: auto;
  }

  .hero-title {
    margin-top: 1rem;
  }

  .hero-desc {
    margin-top: 1.25rem;
    max-width: 36rem;
  }

  .hero-actions {
    margin-top: 2.25rem;
  }

  .hero-spacer {
    min-height: 440px;
    align-self: auto;
  }

  .hero-badge {
    bottom: clamp(0.75rem, 1.75vh, 1.125rem);
  }
}

@media (max-width: 967px) {
  .container {
    padding-inline: 1.375rem;
  }

  .home-intro,
  .cctv-intro,
  .cableado-intro,
  .accesos-intro,
  .alarmas-intro {
    background-image: none;
  }

  .cctv-intro,
  .cableado-intro,
  .accesos-intro,
  .alarmas-intro {
    min-height: auto;
  }

  .home-intro::before,
  .cctv-intro::before,
  .cableado-intro::before,
  .accesos-intro::before,
  .alarmas-intro::before {
    display: none;
  }

  .site-header {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header-row {
    padding-block: 0.75rem;
  }

  .hero {
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
    overflow: visible;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: flex-start;
    padding-block: 0.75rem 1.5rem;
    gap: 0;
    min-height: 0;
  }

  .hero-copy {
    order: 2;
    flex-shrink: 0;
  }

  .hero-text {
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-title {
    font-size: clamp(1.875rem, 7.2vw, 2.375rem);
    line-height: 1.15;
    margin-top: 0.75rem;
  }

  .hero-desc {
    font-size: 1rem;
    max-width: none;
    margin-top: 0.875rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.625rem;
    margin-top: 1.25rem;
  }

  .hero-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .hero-spacer {
    order: 1;
    display: block;
    position: relative;
    flex-shrink: 0;
    width: 100%;
    margin-top: 0;
    margin-bottom: 1.5rem;
    aspect-ratio: 5 / 4;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
      0 4px 6px rgba(0, 26, 73, 0.04),
      0 24px 48px rgba(0, 26, 73, 0.12);
  }

  .hero-spacer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: 72% 42%;
  }

  .home-intro .hero-spacer::before {
    background-image: url("../img/home/01-mobile.webp");
    background-position: 52% center;
  }

  .cctv-intro .hero-spacer::before {
    background-image: url("../img/cctv/01-mobile.webp");
    background-position: center center;
  }

  .accesos-intro .hero-spacer {
    aspect-ratio: 4 / 5;
  }

  .accesos-intro .hero-spacer::before {
    background-image: url("../img/accesos/01-mobile.webp");
    background-position: center 40%;
  }

  .alarmas-intro .hero-spacer {
    aspect-ratio: 4 / 5;
  }

  .alarmas-intro .hero-spacer::before {
    background-image: url("../img/alarma/01-mobile.webp");
    background-position: center 45%;
  }

  .cctv-intro .hero-spacer {
    aspect-ratio: 4 / 5;
  }

  .cctv-intro .hero-copy,
  .cctv-intro .hero-text,
  .accesos-intro .hero-copy,
  .accesos-intro .hero-text,
  .alarmas-intro .hero-copy,
  .alarmas-intro .hero-text,
  .cableado-intro .hero-copy,
  .cableado-intro .hero-text {
    text-align: center;
  }

  .cctv-intro .hero-actions,
  .accesos-intro .hero-actions,
  .alarmas-intro .hero-actions,
  .cableado-intro .hero-actions {
    align-items: center;
  }

  .cableado-intro .hero-spacer {
    aspect-ratio: 4 / 5;
  }

  .cableado-intro .hero-spacer::before {
    background-image: url("../img/cableado/01-mobile.webp");
    background-position: center 42%;
  }

  .home-intro .hero-spacer,
  .cctv-intro .hero-spacer,
  .cableado-intro .hero-spacer,
  .accesos-intro .hero-spacer,
  .alarmas-intro .hero-spacer {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    box-shadow: none;
  }

  .cctv-intro .hero-spacer::after,
  .cableado-intro .hero-spacer::after,
  .accesos-intro .hero-spacer::after,
  .alarmas-intro .hero-spacer::after {
    display: none;
  }

  .hero-spacer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      transparent 45%,
      rgba(11, 20, 42, 0.45) 100%
    );
  }

  .hero-badge {
    position: absolute;
    left: 0.875rem;
    right: 0.875rem;
    bottom: 0.875rem;
    margin: 0;
    max-width: none;
    z-index: 2;
    padding: 0.75rem 0.875rem;
  }

  .hero-badge-icon {
    width: 2rem;
    height: 2rem;
  }

  .hero-badge span {
    font-size: 0.75rem;
  }

  .mobile-panel {
    padding-inline: 1.375rem;
  }
}

/* Servicios */
.services-section {
  background: var(--surface);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-block: clamp(1.5rem, 3.5vh, 2.75rem);
  border-bottom: 1px solid var(--border);
}

.services-section > .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(1.25rem, 3vh, 2.25rem);
  min-height: 0;
  width: 100%;
  max-width: var(--services-container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3.5rem);
}

.services-section .eyebrow {
  color: var(--navy);
  letter-spacing: 0.12em;
  font-size: var(--services-eyebrow);
}

.services-head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex-shrink: 0;
}

.services-head-left {
  max-width: clamp(28rem, 42vw, 38rem);
}

.section-title {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: var(--services-title);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.18;
  margin-top: 0.625rem;
}

.services-head-right {
  max-width: clamp(18rem, 24vw, 26rem);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.services-head-right p {
  color: var(--text-muted);
  font-size: var(--services-desc);
  line-height: 1.65;
  margin: 0;
}

.services-head .link-arrow {
  margin-top: 0;
  align-self: flex-start;
}

.services-section .link-arrow {
  font-size: var(--services-link);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.875rem;
  transition: opacity 0.2s ease;
}

.link-arrow:hover {
  opacity: 0.85;
}

.link-arrow svg {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--services-grid-gap);
  flex: 1;
  align-content: center;
  margin-top: 0;
  min-height: 0;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(238, 240, 244, 0.95);
  border-radius: 20px;
  padding: var(--services-card-pad) clamp(1.25rem, 2vw, 1.75rem);
  box-shadow:
    0 1px 2px rgba(0, 26, 73, 0.03),
    0 8px 28px rgba(0, 26, 73, 0.05);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  border-color: #e8ebf2;
  box-shadow:
    0 2px 4px rgba(0, 26, 73, 0.04),
    0 20px 44px rgba(0, 26, 73, 0.09);
  transform: translateY(-2px);
}

.card-icon {
  width: var(--services-icon);
  height: var(--services-icon);
  flex-shrink: 0;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card h3 {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: var(--services-card-title);
  font-weight: 700;
  color: var(--navy);
  margin-top: 1.375rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.service-card p {
  flex: 1;
  font-size: var(--services-card-text);
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 0.75rem;
  max-width: clamp(14rem, 90%, 17.5rem);
}

.service-card .link-arrow {
  color: var(--navy);
  margin-top: 1.375rem;
}

.service-card .link-arrow svg {
  stroke: var(--accent);
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .services-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 26rem);
    align-items: center;
    column-gap: clamp(2rem, 5vw, 5rem);
    row-gap: 1.25rem;
  }

  .services-head-right {
    text-align: right;
    justify-self: end;
  }

  .services-head .link-arrow {
    align-self: flex-end;
  }
}

@media (min-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1440px) {
  :root {
    --services-container: min(100% - 5rem, 1440px);
  }
}

@media (min-width: 1680px) {
  :root {
    --services-container: min(100% - 6rem, 1560px);
    --services-title: 2.875rem;
    --services-desc: 1.0625rem;
    --services-icon: 5.25rem;
    --services-card-title: 1.3125rem;
    --services-card-text: 1rem;
    --services-grid-gap: 1.625rem;
  }

  .services-section > .container {
    padding-inline: clamp(2.5rem, 4vw, 4.5rem);
  }
}

/* Por qué elegirnos */
.why-section {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
}

.why-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
  z-index: 0;
}

.why-section > .container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  padding-inline: clamp(1.25rem, 5vw, 3.5rem);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  flex: 1;
  width: 100%;
  min-height: 0;
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.why-copy {
  max-width: 34rem;
}

.why-section .eyebrow {
  color: var(--accent);
  letter-spacing: 0.12em;
  font-size: var(--why-eyebrow);
}

.why-section .section-title {
  color: #fff;
  font-size: var(--why-title);
  margin-top: 0.625rem;
}

.why-underline {
  width: 3.5rem;
  height: 0.25rem;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 1.125rem;
}

.feature-row {
  display: flex;
  gap: 1.125rem;
  margin-top: clamp(1.375rem, 2.5vw, 1.75rem);
}

.feature-icon {
  width: var(--why-feature-icon);
  height: var(--why-feature-icon);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.feature-row h3 {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: var(--why-feature-title);
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.35;
}

.feature-row p {
  font-size: var(--why-feature-text);
  color: #fff;
  line-height: 1.6;
  margin-top: 0.375rem;
}

.why-aside {
  display: flex;
  align-items: flex-end;
  padding-top: 1.5rem;
}

.why-badge {
  background: #fff;
  border-radius: 16px;
  padding: 1.125rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  box-shadow: 0 24px 48px rgba(6, 12, 30, 0.35);
  width: min(18.75rem, 100%);
}

.why-badge-icon {
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 50%;
  background: #f3f4f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}

.why-badge p {
  font-size: var(--why-badge-text);
  color: #384063;
  line-height: 1.45;
  margin: 0;
}

.why-badge strong {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 967px) {
  .why-section {
    min-height: auto;
  }

  .why-section > .container {
    min-height: auto;
    justify-content: flex-start;
  }

  .why-grid {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 0 1 auto;
    min-height: auto;
    gap: clamp(1rem, 2.5vh, 1.5rem);
    align-items: stretch;
    padding-block: clamp(2rem, 5vh, 2.75rem) clamp(1.5rem, 3.5vh, 2rem);
  }

  .why-underline + .feature-row {
    margin-top: clamp(2.5rem, 7vh, 3.5rem);
  }

  .why-aside {
    padding-top: 0;
  }
}

@media (min-width: 968px) {
  .why-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    padding-block: clamp(3.5rem, 6vh, 5rem);
    min-height: 100%;
  }

  .why-aside {
    align-self: stretch;
    padding-top: 0;
    padding-bottom: clamp(2rem, 5vh, 3.5rem);
  }

  .why-badge {
    margin-left: clamp(-1rem, -2vw, -0.5rem);
  }
}

@media (min-width: 1440px) {
  :root {
    --why-title: 2.625rem;
    --why-feature-title: 1.0625rem;
    --why-feature-text: 0.9375rem;
    --why-feature-icon: 4.25rem;
  }
}

/* Stats */
.stats-section {
  background: var(--surface);
  padding-block: clamp(3.5rem, 8vh, 6rem);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 1.75rem);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-icon {
  color: var(--navy);
  display: flex;
  justify-content: center;
}

.stat-icon svg {
  width: clamp(1.875rem, 1.5rem + 1vw, 2.125rem);
  height: auto;
}

.stat-num {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: var(--stat-num);
  font-weight: 800;
  color: var(--navy);
  margin-top: 0.75rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: var(--stat-label);
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.45;
}

@media (min-width: 700px) {
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Contacto */
.contact-section {
  background: var(--surface);
  padding-block: clamp(3.5rem, 8vh, 6rem);
  border-bottom: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-intro {
  max-width: 34rem;
}

.contact-section .eyebrow {
  color: var(--navy);
  letter-spacing: 0.12em;
  font-size: var(--services-eyebrow);
}

.contact-intro .section-title {
  font-size: var(--contact-title);
  margin-top: 0.625rem;
}

.contact-intro > p {
  color: var(--text-muted);
  font-size: var(--contact-desc);
  line-height: 1.65;
  margin-top: 1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 1.75rem;
}

.contact-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--navy);
  font-weight: 600;
  font-size: var(--contact-desc);
  transition: color 0.2s ease;
}

.contact-detail:hover {
  color: var(--accent);
}

.contact-detail svg {
  flex-shrink: 0;
  color: var(--accent);
}

.contact-form-card {
  background: #fff;
  border: 1px solid rgba(238, 240, 244, 0.95);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow:
    0 1px 2px rgba(0, 26, 73, 0.04),
    0 12px 36px rgba(0, 26, 73, 0.07);
}

.contact-form {
  display: grid;
  gap: 1.125rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.125rem;
}

.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  color: #1a2140;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0, 26, 73, 0.08);
}

.contact-form .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}

.contact-form .btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-top: 0.25rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
}

.form-status.is-success {
  color: #0f5132;
  background: #ecfdf3;
  border: 1px solid #b7ebcc;
}

.form-status.is-error {
  color: #842029;
  background: #fdf2f2;
  border: 1px solid #f5c2c7;
}

.form-field input.is-invalid,
.form-field textarea.is-invalid {
  border-color: #c4121d;
  box-shadow: 0 0 0 3px rgba(196, 18, 29, 0.12);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 968px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
  }
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #0d2247 0%, var(--navy) 55%);
  color: #fff;
}

.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 3vh, 2rem);
  padding-block: clamp(2.75rem, 5vh, 3.75rem);
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  flex-shrink: 0;
}

.footer-logo img {
  height: clamp(2.875rem, 2.3rem + 1.4vw, 3.625rem);
  width: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem clamp(1.25rem, 3vw, 2rem);
}

.footer-nav a {
  font-size: var(--nav-size);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.2s ease;
  padding: 0.25rem 0;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: clamp(1.125rem, 2.5vh, 1.375rem);
  background: rgba(0, 0, 0, 0.12);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-copy {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  transition: opacity 0.2s ease;
}

.footer-mail:hover {
  opacity: 0.85;
}

.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: #fff;
  padding: 0.6875rem 1.125rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.28);
}

.footer-whatsapp:hover {
  background: #1ebe57;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.34);
}

.footer-whatsapp svg {
  fill: currentColor;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .footer-main {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .footer-nav {
    justify-content: flex-end;
    max-width: 42rem;
  }

  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-actions {
    justify-content: flex-end;
  }
}

/* Volver arriba */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 1.5rem);
  bottom: clamp(1rem, 3vw, 1.5rem);
  z-index: 50;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 26, 73, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top:hover {
  background: var(--navy-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 26, 73, 0.32);
}

/* ── Página CCTV — ajustes sobre el hero compartido ── */
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: clamp(0.8125rem, 0.78rem + 0.14vw, 0.9375rem);
}

.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 10px 24px rgba(196, 18, 29, 0.28);
}

.btn-video {
  background: #fff;
  color: var(--navy);
  border-color: #dfe2ea;
  border-radius: 999px;
}

.btn-video:hover {
  border-color: var(--navy);
  box-shadow: 0 8px 20px rgba(0, 26, 73, 0.08);
}

.btn-video-icon {
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-video-icon svg {
  margin-left: 0.125rem;
}

.services-panel a.is-active,
.mobile-sub a.is-active {
  color: var(--accent);
}

.services-panel a.is-active {
  background: #fdf3f3;
}

.nav-item:has(.nav-dropdown-toggle.active) svg,
.nav-item:has(.nav-link.active) svg {
  stroke: var(--accent);
}

/* ── CCTV sección 2: soluciones ── */
.cctv-solutions-section {
  background: var(--surface);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-block: clamp(1.5rem, 4vh, 2.5rem);
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}

.cctv-solutions-section > .container {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vh, 1.5rem);
  width: 100%;
  max-width: var(--services-container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3.5rem);
}

.cctv-solutions-head {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
  flex-shrink: 0;
}

.cctv-solutions-section .eyebrow {
  color: var(--accent);
  letter-spacing: 0.12em;
  font-size: var(--services-eyebrow);
}

.cctv-solutions-head .section-title {
  margin-top: 0.625rem;
}

.cctv-solutions-lead {
  color: var(--text-muted);
  font-size: var(--services-desc);
  line-height: 1.6;
  margin-top: 0.75rem;
}

.cctv-solutions-body {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vh, 1.25rem);
}

.cctv-solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--services-grid-gap);
}

.cctv-solution-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(238, 240, 244, 0.95);
  border-radius: 20px;
  padding: var(--services-card-pad) clamp(1rem, 1.5vw, 1.25rem);
  box-shadow:
    0 1px 2px rgba(0, 26, 73, 0.03),
    0 8px 28px rgba(0, 26, 73, 0.05);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.cctv-solution-card:hover {
  border-color: #e8ebf2;
  box-shadow:
    0 2px 4px rgba(0, 26, 73, 0.04),
    0 20px 44px rgba(0, 26, 73, 0.09);
  transform: translateY(-2px);
}

.cctv-solution-icon {
  width: var(--services-icon);
  height: var(--services-icon);
  flex-shrink: 0;
}

.cctv-solution-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cctv-solution-card h3 {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: var(--services-card-title);
  font-weight: 700;
  color: var(--navy);
  margin-top: 1rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.cctv-solution-card p {
  font-size: var(--services-card-text);
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 0.5rem;
  max-width: clamp(14rem, 90%, 17.5rem);
}

.cctv-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.75rem, 2vw, 1.125rem);
}

.cctv-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 20px;
  box-shadow:
    0 2px 4px rgba(0, 26, 73, 0.04),
    0 16px 40px rgba(0, 26, 73, 0.08);
}

/* Móvil — fotos a ancho completo; cards en columna */
@media (max-width: 967px) {
  .cctv-solutions-section {
    min-height: auto;
    height: auto;
    padding-block: clamp(2rem, 5vh, 3rem);
  }

  .cctv-solutions-section > .container {
    gap: clamp(1.25rem, 3vh, 1.75rem);
  }

  .cctv-solutions-head .section-title {
    font-size: clamp(1.625rem, 6.5vw, 2rem);
  }

  .cctv-solution-card p {
    max-width: none;
  }

  .cctv-gallery {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: clamp(0.75rem, 2vh, 1.125rem);
    padding-bottom: clamp(0.75rem, 2vh, 1.125rem);
    gap: clamp(0.75rem, 2vh, 1.125rem);
  }

  .cctv-gallery img {
    border-radius: 0;
    box-shadow: none;
  }
}

/* Laptops ~14" — mismo layout, puede pasar de alto */
@media (min-width: 968px) and (max-width: 1439px) {
  .cctv-solutions-section {
    min-height: 100svh;
    height: auto;
    max-height: none;
    overflow: visible;
    padding-block: clamp(1.25rem, 2.5vh, 2rem);
  }

  .cctv-solutions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cctv-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) and (max-width: 1439px) {
  .cctv-solutions-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Monitores grandes — 100svh exacto */
@media (min-width: 1440px) {
  .cctv-solutions-section {
    height: 100svh;
    max-height: 100svh;
    overflow: hidden;
    padding-block: clamp(1.25rem, 2.5vh, 2rem);
  }

  .cctv-solutions-section > .container {
    flex: 1;
    min-height: 0;
    height: 100%;
    gap: clamp(0.875rem, 2vh, 1.5rem);
  }

  .cctv-solutions-body {
    flex: 1;
    min-height: 0;
    gap: clamp(0.875rem, 2vh, 1.25rem);
  }

  .cctv-solutions-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    flex-shrink: 0;
  }

  .cctv-solution-icon {
    width: clamp(3rem, 5vh, var(--services-icon));
    height: clamp(3rem, 5vh, var(--services-icon));
  }

  .cctv-solution-card {
    padding: clamp(1.25rem, 2vh, 1.75rem) clamp(1rem, 1.5vw, 1.25rem);
  }

  .cctv-gallery {
    flex: 1;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cctv-gallery img {
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }
}

@media (min-width: 1440px) and (max-height: 720px) {
  .cctv-solutions-section {
    padding-block: clamp(0.75rem, 1.5vh, 1rem);
  }

  .cctv-solutions-section > .container {
    gap: clamp(0.5rem, 1.25vh, 0.875rem);
  }

  .cctv-solutions-body {
    gap: clamp(0.5rem, 1vh, 0.75rem);
  }

  .cctv-solution-card {
    padding: clamp(0.875rem, 1.5vh, 1.125rem) clamp(0.75rem, 1vw, 1rem);
  }

  .cctv-solution-card h3 {
    margin-top: 0.625rem;
  }

  .cctv-solution-icon {
    width: clamp(2.5rem, 4vh, 3.25rem);
    height: clamp(2.5rem, 4vh, 3.25rem);
  }
}

@media (min-width: 1680px) {
  .cctv-solutions-section > .container {
    padding-inline: clamp(2.5rem, 4vw, 4.5rem);
  }
}

/* ——— Page loader ——— */
body.is-loading {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #002663 0%, var(--navy) 55%, #000d24 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--accent) 40%, #ff6b6b 60%, transparent);
  animation: page-loader-bar 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.page-loader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.page-loader__logo {
  width: clamp(8.75rem, 32vw, 11.25rem);
  height: auto;
  opacity: 0;
  animation: page-loader-logo 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.05s forwards,
    page-loader-pulse 2s ease-in-out 0.65s infinite;
}

.page-loader__ring {
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: page-loader-spin 0.75s linear infinite,
    page-loader-fade-in 0.4s ease 0.2s forwards;
}

@keyframes page-loader-bar {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(350%);
  }
}

@keyframes page-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes page-loader-logo {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes page-loader-fade-in {
  to {
    opacity: 1;
  }
}

@keyframes page-loader-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.72;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader__bar,
  .page-loader__ring,
  .page-loader__logo {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .page-loader {
    transition-duration: 0.2s;
  }
}