/* ==========================================================================
   Vigila Tu Espacio — estilos generales
   ========================================================================== */

:root {
  --color-teal: #17a9c4;
  --color-teal-dark: #0f8aa3;
  --color-navy: #0a1c44;
  --color-navy-dark: #071534;
  --color-dark: #17181c;
  --color-dark-2: #1e1f24;
  --color-light-bg: #eef1f8;
  --color-text: #4a4f5a;
  --color-text-dark: #23262b;
  --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-dark);
  font-weight: 600;
}

a {
  text-decoration: none;
  color: var(--color-teal);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 70px 0;
}

.text-justify {
  text-align: justify;
}

.btn-vts {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-teal-dark);
  color: #fff;
  padding: 12px 26px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 3px;
  border: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-vts:hover {
  background-color: var(--color-navy);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 14px 0;
}

.navbar-brand-logo {
  height: 100px;
  width: auto;
}

.navbar-nav .nav-link {
  color: var(--color-text-dark) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--color-teal) !important;
}

.navbar-nav .dropdown-menu {
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  padding: 8px 0;
}

.navbar-nav .dropdown-item {
  font-weight: 500;
  color: var(--color-text-dark);
  padding: 8px 20px;
}

.navbar-nav .dropdown-item:hover {
  background-color: var(--color-light-bg);
  color: var(--color-teal-dark);
}

/* ---------- Page banner (subpages) ---------- */
.page-banner {
  position: relative;
  background: linear-gradient(120deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  overflow: hidden;
  padding: 70px 0 60px;
  border-bottom: 6px solid var(--color-dark);
}

.page-banner .network-graphic {
  position: absolute;
  right: -40px;
  top: 0;
  height: 100%;
  width: 60%;
  opacity: 0.9;
  pointer-events: none;
}

.page-banner h1 {
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* ---------- Home hero icon nav ---------- */
.icon-nav {
  background-color: var(--color-dark);
}

.icon-nav .icon-item {
  text-align: center;
  padding: 40px 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.icon-nav .icon-item svg {
  width: 46px;
  height: 46px;
  stroke: var(--color-teal);
}

.icon-nav .icon-item span {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

.icon-nav-desc {
  background-color: var(--color-light-bg);
}

.icon-nav-desc .desc-item {
  padding: 34px 22px;
  font-size: 0.92rem;
  color: var(--color-text);
}

/* ---------- Feature list with checks ---------- */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e7e9ee;
  font-size: 0.95rem;
}

.check-list li:last-child {
  border-bottom: none;
}

.check-list li::before {
  content: "\2713";
  color: var(--color-text-dark);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Stacked photo composition (home) ---------- */
.stacked-photos {
  position: relative;
  padding: 20px 0;
}

.stacked-photos img {
  border-radius: 6px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.stacked-photos .photo-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 78%;
}

.stacked-photos .photo-front {
  position: relative;
  width: 78%;
  margin-left: 22%;
  margin-top: 60px;
}

/* ---------- Servicios azules band ---------- */
.services-band {
  background-color: var(--color-teal-dark);
  background-image: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.06) 0%, transparent 60%);
  color: #fff;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

.services-band .eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.9;
}

.services-band h2 {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 300;
  margin: 10px 0 0;
}

.services-band .lead-text {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}

.service-photo {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.service-photo-caption {
  position: relative;
}

.service-photo-caption .caption-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.services-band h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-top: 26px;
}

.services-band p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

/* ---------- Intro / about band ---------- */
.about-band {
  background-color: var(--color-light-bg);
  padding: 80px 0 40px;
  text-align: center;
}

.about-band h2 {
  font-size: 2.2rem;
  font-weight: 400;
}

.about-band .about-text {
  max-width: 720px;
  margin: 20px auto 0;
  font-size: 0.95rem;
}

/* ---------- Location strip ---------- */
.location-strip {
  background-color: var(--color-light-bg);
  padding: 30px 0 60px;
}

.location-strip p {
  font-size: 0.88rem;
  text-align: justify;
  color: var(--color-text);
}

/* ---------- Generic content rows (servicio detalle) ---------- */
.content-row {
  padding: 60px 0;
}

.content-row.bg-alt {
  background-color: var(--color-light-bg);
}

.content-row h2, .content-row h3 {
  font-weight: 500;
  margin-bottom: 18px;
}

.content-row img {
  border-radius: 4px;
}

/* ---------- Product grid (accesorios) ---------- */
.product-grid-item {
  text-align: center;
  margin-bottom: 46px;
}

.product-grid-item img {
  margin: 0 auto 18px;
}

.product-grid-item h4 {
  font-size: 1.05rem;
  font-weight: 600;
}

.product-grid-item a.arrow-link {
  color: var(--color-teal-dark);
  font-weight: 700;
}

/* ---------- Video labeled cards (nvr-dvr) ---------- */
.labeled-photo {
  position: relative;
}

.labeled-photo img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  border-radius: 4px;
}

.labeled-photo .overlay-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  background: rgba(10, 28, 68, 0.35);
  border-radius: 4px;
  text-align: center;
  padding: 20px;
}

/* ---------- Videos page ---------- */
.video-section-title {
  text-align: center;
  font-weight: 400;
  margin-bottom: 6px;
}

.video-placeholder-note {
  text-align: center;
  color: #9aa0ab;
  font-size: 0.85rem;
  margin-bottom: 60px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.video-grid iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: 4px;
}

/* ---------- Contacto ---------- */
.contact-cards {
  margin-top: -70px;
  position: relative;
  z-index: 5;
}

.contact-card {
  background-color: var(--color-dark);
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  border-radius: 4px;
  height: 100%;
}

.contact-card svg {
  width: 40px;
  height: 40px;
  stroke: var(--color-teal);
  margin-bottom: 14px;
}

.contact-card h5 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.contact-card p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
}

.contact-form-wrap {
  background-color: #6b5a4a;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 2px, transparent 2px, transparent 40px);
  padding: 30px;
  border-radius: 4px;
}

.contact-form-inner {
  background-color: #fff;
  padding: 40px;
  border-radius: 4px;
}

.contact-form-inner .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.contact-form-inner .form-control {
  border-radius: 3px;
  border: 1px solid #d7dae0;
  padding: 10px 14px;
  font-size: 0.9rem;
}

.contact-form-inner .required {
  color: #d9534f;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 0;
}

.site-footer h5 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 18px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.site-footer ul li a {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer ul li a:hover {
  color: var(--color-teal);
}

.site-footer .categorias li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

.footer-bottom .social-icons {
  display: flex;
  gap: 14px;
}

.footer-bottom .social-icons a {
  color: rgba(255, 255, 255, 0.75);
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.back-to-top {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .page-banner h1 {
    font-size: 2.3rem;
  }
  .stacked-photos .photo-back,
  .stacked-photos .photo-front {
    width: 100%;
    margin-left: 0;
  }
  .stacked-photos .photo-front {
    margin-top: 20px;
  }
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-cards {
    margin-top: 30px;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 46px 0;
  }
  .page-banner {
    padding: 46px 0 40px;
  }
  .page-banner h1 {
    font-size: 1.9rem;
  }
  .about-band h2, .services-band h2 {
    font-size: 1.6rem;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
  .contact-form-inner {
    padding: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
