:root {
    --green: #0b2f24;
    --green-deep: #071c16;
    --green-mid: #134233;
    --gold: #c9a45b;
    --gold-soft: #e4cc8a;
    --cream: #f7f3ea;
    --paper: #fffdf8;
    --ink: #14201c;
    --muted: #5d6b66;
    --line: #e6ddd0;
    --shadow: 0 18px 50px rgba(7, 28, 22, 0.12);
    --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: "Outfit", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

h1, h2, h3, .display {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.eyebrow {
    display: inline-block;
    color: var(--gold);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}
.gold-rule {
    width: 64px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: 16px 0 22px;
}

.btn, .btn-gold, .btn-outline, .btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 600;
    font-size: 14px;
    border: 0;
    cursor: pointer;
    transition: 0.25s ease;
}
.btn-gold { background: var(--gold); color: var(--green-deep); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn-outline { border: 1px solid rgba(201,164,91,.5); color: var(--gold-soft); background: transparent; }
.btn-outline:hover { background: rgba(201,164,91,.12); }
.btn-dark { background: var(--green); color: #fff; }
.btn-dark:hover { background: var(--green-mid); }

.site-header { position: sticky; top: 0; z-index: 40; }
.header-top {
    background: var(--green-deep);
    color: #d8c89a;
    font-size: 13px;
}
.header-top-inner, .header-main-inner, .footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.header-top-inner { min-height: 38px; }
.header-top a, .header-top span { display: inline-flex; align-items: center; gap: 6px; }
.header-top .material-symbols-outlined { font-size: 16px; }
.header-main {
    background: rgba(255,253,248,.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.header-main-inner { min-height: 78px; }
.site-header.is-scrolled .header-main { box-shadow: 0 8px 24px rgba(7,28,22,.08); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 46px; width: auto; object-fit: contain; }
.brand-mark {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    color: var(--gold);
    background: var(--green);
    position: relative;
}
.brand-mark::after {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(201,164,91,.45);
    border-radius: 50%;
    transform: rotate(-18deg);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { letter-spacing: .18em; font-size: 15px; }
.brand-text small { letter-spacing: .28em; font-size: 9px; color: var(--muted); }
.brand-light .brand-text small { color: #b8c4be; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav > a, .has-sub > a {
    font-size: 14px;
    font-weight: 500;
    color: var(--green);
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.site-nav a.is-active, .has-sub.is-active > a { color: var(--gold); }
.has-sub { position: relative; }
.submenu {
    position: absolute; top: 120%; left: 0;
    min-width: 210px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow);
    display: none;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { display: grid; }
.submenu a { padding: 9px 12px; border-radius: 10px; font-size: 13px; }
.submenu a:hover { background: var(--cream); }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; }
.nav-toggle span { display: block; height: 2px; background: var(--green); margin: 7px 8px; }

.hero {
    position: relative;
    min-height: 86vh;
    display: grid;
    place-items: center;
    color: #fff;
    overflow: hidden;
    background:
        linear-gradient(115deg, rgba(7,28,22,.88) 0%, rgba(11,47,36,.55) 48%, rgba(7,28,22,.78) 100%),
        url("../images/identity-cameras.jpg") center/cover no-repeat;
}
.hero-inner { width: min(1100px, calc(100% - 40px)); padding: 90px 0 80px; }
.hero h1 { font-size: clamp(48px, 8vw, 86px); max-width: 760px; color: #fff; }
.hero p { max-width: 560px; color: #e8e1d2; margin: 18px 0 30px; font-size: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 54px;
    max-width: 640px;
}
.hero-stats div {
    border-top: 1px solid rgba(201,164,91,.4);
    padding-top: 14px;
}
.hero-stats strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 32px; color: var(--gold-soft); }

.section { padding: 84px 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(34px, 5vw, 52px); }
.section.alt { background: var(--cream); }
.section.dark {
    background: linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%);
    color: #fff;
}
.section.dark p, .section.dark .muted { color: #c9d4ce; }

.split {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}
.split img, .media-card {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    object-fit: cover;
}
.icon-grid, .card-grid, .client-grid, .blog-grid, .lead-grid {
    display: grid;
    gap: 18px;
}
.icon-grid { grid-template-columns: repeat(4, 1fr); }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.client-grid { grid-template-columns: repeat(2, 1fr); }
.blog-grid { grid-template-columns: repeat(3, 1fr); }

.icon-item, .card, .client-card, .blog-card, .form-card, .admin-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
}
.icon-item { text-align: center; }
.icon-item .material-symbols-outlined,
.feature-icon {
    width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center; margin: 0 auto 12px;
    background: var(--green); color: var(--gold);
}
.icon-item h3, .card h3 { font-size: 22px; margin-bottom: 8px; }
.card img { height: 190px; width: 100%; object-fit: cover; border-radius: 14px; margin-bottom: 16px; }
.card:hover, .blog-card:hover, .client-card:hover { transform: translateY(-4px); transition: .25s ease; box-shadow: var(--shadow); }

.page-hero {
    background:
        linear-gradient(120deg, rgba(7,28,22,.9), rgba(11,47,36,.72)),
        url("../images/ptz-hero.jpg") center/cover;
    color: #fff;
    padding: 86px 0 70px;
}
.page-hero h1 { font-size: clamp(40px, 6vw, 68px); }
.page-hero p { max-width: 640px; color: #e4dccb; margin-top: 12px; }

.list-check { list-style: none; display: grid; gap: 12px; }
.list-check li {
    display: flex; gap: 10px; align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--line);
}
.list-check .num {
    min-width: 28px; height: 28px; border-radius: 50%;
    background: var(--green); color: var(--gold);
    display: grid; place-items: center; font-size: 13px; font-weight: 700;
}

.client-card img { height: 230px; width: 100%; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }
.client-list { columns: 2; column-gap: 40px; }
.client-list li {
    list-style: none;
    break-inside: avoid;
    padding: 10px 0;
    border-bottom: 1px dotted var(--line);
    display: flex; gap: 8px; align-items: center;
}
.client-list .dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}

.blog-card img { height: 200px; width: 100%; object-fit: cover; border-radius: 14px; }
.blog-card .meta { color: var(--muted); font-size: 13px; margin: 12px 0 8px; }
.blog-body { max-width: 820px; }
.blog-body p { margin-bottom: 16px; font-size: 17px; }

.form-card { padding: 32px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    margin-bottom: 14px;
}
textarea { min-height: 130px; resize: vertical; }
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; }
.alert-ok { background: #e9f7ef; color: #146c43; }
.alert-err { background: #fdecea; color: #9b1c1c; }

.site-footer {
    background: var(--green-deep);
    color: #d7ddd9;
    position: relative;
    margin-top: 40px;
}
.footer-wave {
    height: 28px;
    background: linear-gradient(90deg, var(--gold), transparent 55%);
    opacity: .55;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .8fr 1fr;
    gap: 36px;
    padding: 54px 0 30px;
}
.footer-grid h4 { color: var(--gold-soft); margin-bottom: 16px; font-size: 24px; }
.footer-grid a, .footer-grid p { display: block; margin-bottom: 8px; color: #c9d2cd; }
.footer-tag { color: var(--gold); letter-spacing: .12em; text-transform: uppercase; font-size: 12px; margin: 16px 0; }
.footer-claim { display: flex; gap: 8px; align-items: center; color: var(--gold-soft); margin-top: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom-inner { min-height: 58px; font-size: 13px; color: #9aa8a2; }

.whatsapp-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 30;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; display: grid; place-items: center;
    box-shadow: 0 10px 24px rgba(37,211,102,.4);
}

.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: var(--green-deep); color: #d8e0dc; padding: 28px 18px; }
.admin-side a { display: block; padding: 11px 12px; border-radius: 10px; margin-bottom: 6px; }
.admin-side a.is-active, .admin-side a:hover { background: rgba(201,164,91,.16); color: var(--gold-soft); }
.admin-main { padding: 28px; background: #f4efe6; }
.table-wrap { overflow: auto; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
th { background: var(--cream); color: var(--green); }
.badge { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-new { background: #fff3cd; color: #7a5b00; }
.badge-contacted { background: #d1e7dd; color: #0f5132; }
.badge-closed { background: #e2e3e5; color: #41464b; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--green-deep); }
.login-card { width: min(420px, calc(100% - 28px)); background: #fff; border-radius: 22px; padding: 36px; }

.cta-band {
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    background: var(--green); color: #fff; border-radius: 24px; padding: 36px;
}
.cta-band h2 { color: #fff; font-size: 40px; }

@media (max-width: 980px) {
    .split, .icon-grid, .card-grid, .client-grid, .blog-grid, .footer-grid, .admin-shell, .hero-stats {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid, .admin-shell { grid-template-columns: 1fr; }
    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        right: 20px; top: 120px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        min-width: 230px;
        box-shadow: var(--shadow);
    }
    .site-nav.is-open { display: flex; }
    .submenu { position: static; display: grid; box-shadow: none; border: 0; padding: 0 0 0 10px; }
    .hide-sm { display: none !important; }
}
@media (max-width: 720px) {
    .icon-grid, .card-grid, .client-grid, .blog-grid, .hero-stats { grid-template-columns: 1fr; }
    .client-list { columns: 1; }
    .cta-band, .header-top-inner { flex-direction: column; align-items: flex-start; }
}
