:root {
  color-scheme: dark;
  --bg: #070706;
  --bg-soft: #11100d;
  --panel: rgba(18, 16, 13, .68);
  --text: #f6f0e5;
  --muted: #bdb2a1;
  --line: rgba(234, 190, 99, .2);
  --gold: #d5a642;
  --gold-2: #ffe0a0;
  --gold-3: #8b6424;
  --shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f4ee;
  --bg-soft: #fffaf0;
  --panel: rgba(255, 255, 255, .74);
  --text: #14110d;
  --muted: #62594d;
  --line: rgba(143, 98, 24, .22);
  --shadow: 0 24px 70px rgba(80, 62, 26, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 18% 8%, rgba(213, 166, 66, .15), transparent 30%), var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
.cursor-glow {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(213,166,66,.2), transparent 62%);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  backdrop-filter: blur(22px);
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark {
  position: relative;
  width: 72px;
  height: 50px;
  display: grid;
  place-items: center;
  overflow: hidden;
  filter: drop-shadow(0 0 22px rgba(213, 166, 66, .34));
}
.brand-mark::after, .premium-logo .logo-shine {
  content: "";
  position: absolute;
  inset: -30% auto -30% -90%;
  width: 46%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.92), transparent);
  transform: skewX(-18deg);
  animation: shine 4.2s infinite;
}
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { letter-spacing: .08em; font-size: .9rem; }
.brand-copy small { color: var(--muted); font-size: .72rem; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { text-decoration: none; color: var(--muted); font-size: .94rem; }
.main-nav a:hover { color: var(--gold-2); }
.nav-toggle { display: none; }
.theme-toggle {
  width: 54px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  padding: 3px;
  cursor: pointer;
}
.theme-toggle span {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  transition: transform .28s ease;
}
[data-theme="light"] .theme-toggle span { transform: translateX(23px); }

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  align-items: center;
  gap: 34px;
  padding: 128px clamp(20px, 6vw, 84px) 72px;
  overflow: hidden;
}
.hero-video, .hero-motion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}
.hero-motion {
  z-index: -2;
  background:
    linear-gradient(rgba(7,7,6,.58), rgba(7,7,6,.9)),
    url("../img/hero-poster.svg") center/cover;
  animation: scanMove 16s linear infinite;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28vh;
  background: linear-gradient(transparent, var(--bg));
  z-index: -1;
}
.hero-content { max-width: 980px; }
.premium-logo {
  position: relative;
  width: min(360px, 72vw);
  margin-bottom: 22px;
  overflow: hidden;
  filter: drop-shadow(0 0 42px rgba(213, 166, 66, .42));
  animation: logoFloat 6s ease-in-out infinite;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .76rem;
  font-weight: 800;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 960px;
  font-size: clamp(2.6rem, 6vw, 6.4rem);
  line-height: .95;
  letter-spacing: 0;
  margin-bottom: 24px;
}
h2 { font-size: clamp(2rem, 4vw, 4.2rem); line-height: 1; letter-spacing: 0; }
h3 { font-size: 1.25rem; }
.lead { max-width: 760px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.24rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.btn-primary {
  color: #1b1205;
  background: linear-gradient(120deg, var(--gold-3), var(--gold), var(--gold-2), var(--gold));
  background-size: 220% 100%;
  animation: goldFlow 4s ease-in-out infinite;
  box-shadow: 0 0 34px rgba(213, 166, 66, .28);
}
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); }
.glass {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}
.hero-panel {
  align-self: end;
  padding: 28px;
  border-radius: 8px;
}
.hero-panel span { color: var(--muted); }
.hero-panel strong { display: block; font-size: 4rem; line-height: 1; color: var(--gold-2); }
.hero-panel p { color: var(--muted); line-height: 1.6; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 clamp(18px, 4vw, 64px);
  border: 1px solid var(--line);
  background: var(--line);
}
.trust-strip div { background: var(--bg-soft); padding: 28px; }
.trust-strip strong { display: block; font-size: 2.5rem; color: var(--gold-2); }
.trust-strip span { color: var(--muted); }

.section { padding: 110px clamp(20px, 6vw, 84px); }
.section-head { max-width: 860px; margin-bottom: 40px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.service-card {
  min-height: 290px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--panel) 80%, transparent), rgba(213,166,66,.05));
  transform-style: preserve-3d;
  transition: transform .22s ease, border-color .22s ease;
}
.service-card:hover { border-color: rgba(255, 224, 160, .58); }
.service-card p { color: var(--muted); line-height: 1.65; }
.icon {
  display: block;
  width: 54px;
  height: 54px;
  margin-bottom: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  mask: var(--mask) center/30px no-repeat;
}
.alarm { --mask: url("../icons/icon-alarm.svg"); }
.camera { --mask: url("../icons/icon-camera.svg"); }
.gate { --mask: url("../icons/icon-gate.svg"); }
.intercom { --mask: url("../icons/icon-intercom.svg"); }
.network { --mask: url("../icons/icon-network.svg"); }
.server { --mask: url("../icons/icon-server.svg"); }

.producer-marquee { overflow: hidden; padding: 28px 0; border-radius: 8px; }
.producer-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.producer-track span {
  display: inline-flex;
  align-items: center;
  min-height: 82px;
  margin: 0 10px;
  padding: 0 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--gold-2);
  font-weight: 900;
  font-size: clamp(1.2rem, 2vw, 2rem);
  background: rgba(255,255,255,.035);
}

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filters button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.filters .active { color: #1b1205; background: var(--gold-2); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.gallery-item {
  position: relative;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(12px);
}
.gallery-item.is-hidden { display: none; }

.process {
  background: var(--bg);
}
.process-panel {
  min-height: 100vh;
  display: grid;
  align-content: center;
  padding: 120px clamp(20px, 10vw, 140px);
  border-top: 1px solid var(--line);
  position: sticky;
  top: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(213,166,66,.16), transparent 30%),
    var(--bg);
}
.process-panel p:not(.eyebrow) { max-width: 680px; color: var(--muted); font-size: 1.18rem; line-height: 1.7; }

.contact-card {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 34px;
  padding: clamp(24px, 5vw, 54px);
  border-radius: 8px;
}
.contact-card p { color: var(--muted); line-height: 1.7; }
.contact-lines { display: grid; gap: 10px; margin-top: 24px; }
.contact-lines a { color: var(--gold-2); font-weight: 800; }
.contact-form { display: grid; gap: 12px; }
.contact-form label { display: grid; gap: 7px; color: var(--muted); }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  color: var(--text);
  padding: 14px 15px;
  font: inherit;
}
textarea { resize: vertical; }
.hp { position: absolute; left: -10000px; }
.form-status { min-height: 22px; margin: 0; }
.map-wrap { height: 380px; margin-top: 22px; border-radius: 8px; overflow: hidden; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: saturate(.9) contrast(1.05); }

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  gap: 10px;
}
.floating-contact a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: 0 0 22px rgba(213,166,66,.22);
  position: relative;
}
.floating-contact a::before {
  content: "";
  position: absolute;
  inset: 13px;
  background: var(--gold-2);
  mask: var(--mask) center/contain no-repeat;
}
.phone { --mask: url("../icons/icon-phone.svg"); }
.whatsapp { --mask: url("../icons/icon-whatsapp.svg"); }
.messenger { --mask: url("../icons/icon-messenger.svg"); }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 34px clamp(20px, 6vw, 84px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer img { width: 110px; }

@keyframes shine { 0%, 18% { left: -90%; } 42%, 100% { left: 140%; } }
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes goldFlow { 0%, 100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scanMove { to { background-position: center, 120px 80px; } }

@media (max-width: 980px) {
  .hero, .contact-card { grid-template-columns: 1fr; }
  .hero-panel { align-self: auto; }
  .service-grid, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .site-header { padding: 10px 16px; }
  .brand-copy { display: none; }
  .nav-toggle {
    display: grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: 12px;
  }
  .nav-toggle span { height: 2px; background: var(--text); }
  .main-nav {
    position: fixed;
    inset: 72px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-soft);
  }
  .main-nav.is-open { display: flex; }
  .hero { padding-top: 110px; }
  .service-grid, .gallery-grid, .trust-strip { grid-template-columns: 1fr; }
  .site-footer { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
