:root {
    --navy-950: #020617;
    --navy-900: #0f172a;
    --navy-850: #142033;
    --navy-800: #1e293b;
    --navy-700: #334155;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --amber-300: #fcd34d;
    --silver: #94a3b8;
    --muted: #cbd5e1;
    --white: #f8fafc;
    --green: #22c55e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--navy-900);
    color: var(--white);
    font-family: Lato, Arial, sans-serif;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.font-display { font-family: Montserrat, Arial, sans-serif; }

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand strong { display: block; font-family: Montserrat, Arial, sans-serif; font-size: 1.05rem; line-height: 1; }
.brand span span { display: block; margin-top: 4px; color: var(--silver); font-size: .72rem; }
.nav-links { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: .82rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.nav-links a:hover { color: var(--amber-400); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: white; border-radius: 4px; font-size: 1.35rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 22px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-weight: 900;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber-500); color: #111827; box-shadow: 0 0 28px rgba(245,158,11,.22); }
.btn-primary:hover { background: var(--amber-400); }
.btn-secondary { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.22); color: var(--white); }
.btn-secondary:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.1); }

.eyebrow { color: var(--amber-400); font-size: .75rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.grid-bg { background-image: linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 42px 42px; }
.glass-card {
    background: rgba(30, 41, 59, .75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 32px rgba(0,0,0,.22);
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 130px 0 70px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15,23,42,.86), rgba(15,23,42,.45), var(--navy-900)), url("images/hero/seguridad-perimetral.webp") center/cover no-repeat;
    opacity: 1;
}
.hero::after { content: ""; position: absolute; inset: 0; opacity: .22; pointer-events: none; background-image: linear-gradient(to right, #1e293b 1px, transparent 1px), linear-gradient(to bottom, #1e293b 1px, transparent 1px); background-size: 40px 40px; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr .75fr; gap: 52px; align-items: center; }
.hero h1 { margin: 18px 0 20px; font-family: Montserrat, Arial, sans-serif; font-size: clamp(2.8rem, 6vw, 5.8rem); line-height: 1.05; letter-spacing: 0; }
.hero h1 span { color: transparent; background: linear-gradient(90deg, var(--amber-400), #fde68a, var(--amber-500)); -webkit-background-clip: text; background-clip: text; text-shadow: 0 0 30px rgba(251,191,36,.28); }
.hero p { max-width: 680px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-panel { transform: rotate(1deg); border-radius: 18px; padding: 6px; }
.hero-panel-inner { background: rgba(15,23,42,.92); border-radius: 14px; padding: 24px; overflow: hidden; position: relative; }
.monitor-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 18px; color: var(--silver); font-size: .76rem; font-weight: 900; letter-spacing: .14em; }
.pulse { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #ef4444; box-shadow: 0 0 16px #ef4444; margin-right: 8px; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: rgba(30,41,59,.55); border-left: 2px solid var(--amber-500); padding: 16px; border-radius: 6px; margin-bottom: 12px; }
.status-row small { display: block; color: var(--silver); font-size: .72rem; font-weight: 900; letter-spacing: .12em; margin-bottom: 4px; }
.status-map { height: 132px; display: grid; place-items: center; color: rgba(148,163,184,.55); font-size: .76rem; font-weight: 900; letter-spacing: .16em; border: 1px solid rgba(255,255,255,.06); border-radius: 6px; background-color: rgba(30,41,59,.3); }

section { padding: 86px 0; }
.section-dark { background: var(--navy-900); }
.section-alt { background: var(--navy-800); }
.section-head { margin-bottom: 36px; }
.section-head h2 { margin: 8px 0 12px; font-family: Montserrat, Arial, sans-serif; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; }
.section-head p { max-width: 680px; margin: 0; color: var(--silver); font-size: 1.05rem; line-height: 1.7; }

.sector-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; }
.tab-list { display: grid; gap: 12px; }
.tab-btn { width: 100%; text-align: left; padding: 18px; color: var(--silver); background: rgba(30,41,59,.6); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; font-weight: 900; cursor: pointer; }
.tab-btn.active { background: var(--amber-500); color: #111827; border-color: var(--amber-500); transform: scale(1.02); }
.tab-panel { display: none; min-height: 455px; border-radius: 24px; overflow: hidden; position: relative; }
.tab-panel.active { display: grid; grid-template-columns: 1fr 1fr; }
.tab-panel img { width: 100%; height: 100%; object-fit: cover; }
.tab-copy { padding: 44px; display: flex; flex-direction: column; justify-content: center; background: rgba(15,23,42,.72); }
.tab-copy h3 { margin: 0 0 8px; font-family: Montserrat, Arial, sans-serif; font-size: 2rem; }
.tab-copy .sub { color: var(--amber-400); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.tab-copy p { color: var(--muted); line-height: 1.7; }
.check-list { display: grid; gap: 9px; color: var(--white); font-weight: 700; margin: 18px 0 24px; }

.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.method-card { padding: 28px; border-radius: 14px; background: rgba(15,23,42,.45); border: 1px solid rgba(255,255,255,.06); }
.method-icon { width: 58px; height: 58px; border-radius: 10px; display: grid; place-items: center; background: var(--navy-800); color: var(--amber-400); border: 1px solid rgba(255,255,255,.06); font-size: 1.55rem; }
.method-card h3 { font-family: Montserrat, Arial, sans-serif; margin: 22px 0 10px; }
.method-card p { color: var(--silver); line-height: 1.65; }

.solution-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.solution-card { position: relative; min-height: 250px; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); background: var(--navy-800); }
.solution-card.large { grid-column: span 2; grid-row: span 2; min-height: 520px; }
.solution-card.wide { grid-column: span 2; }
.solution-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .6s ease; }
.solution-card:hover img { transform: scale(1.05); }
.solution-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,.96), rgba(15,23,42,.28)); }
.solution-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 26px; }
.solution-copy h3 { font-family: Montserrat, Arial, sans-serif; margin: 0 0 8px; font-size: 1.35rem; }
.solution-copy p { margin: 0; color: var(--muted); line-height: 1.6; }

.cta-band { background: linear-gradient(90deg, rgba(15,23,42,.98), rgba(15,23,42,.86)), url("images/productos/concertina.webp") center/cover no-repeat; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.lead-box { max-width: 880px; margin: 0 auto; text-align: center; border-radius: 24px; padding: 48px; border: 1px solid rgba(251,191,36,.22); background: rgba(30,41,59,.72); box-shadow: 0 0 60px rgba(251,191,36,.07); }
.lead-box h2 { margin: 8px 0 12px; font-family: Montserrat, Arial, sans-serif; font-size: clamp(2rem,4vw,3.1rem); }
.lead-box p { color: var(--silver); line-height: 1.7; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; margin-top: 28px; }
.lead-form input { min-height: 54px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(2,6,23,.78); color: white; padding: 0 16px; font: inherit; }

.page-hero { padding: 150px 0 70px; position: relative; overflow: hidden; background: linear-gradient(to bottom, rgba(15,23,42,.92), var(--navy-900)), url("images/hero/seguridad-perimetral.webp") center/cover no-repeat; }
.page-hero h1 { margin: 12px 0; font-family: Montserrat, Arial, sans-serif; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 1.05; }
.page-hero p { color: var(--muted); max-width: 760px; font-size: 1.15rem; line-height: 1.7; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.catalog-card { border-radius: 18px; overflow: hidden; background: var(--navy-800); border: 1px solid rgba(255,255,255,.08); }
.catalog-card img { width: 100%; height: 220px; object-fit: cover; }
.catalog-body { padding: 22px; }
.catalog-body h2 { font-family: Montserrat, Arial, sans-serif; font-size: 1.28rem; margin: 0 0 8px; }
.catalog-body p { color: var(--muted); line-height: 1.65; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tag { color: var(--amber-300); border: 1px solid rgba(251,191,36,.25); background: rgba(251,191,36,.08); border-radius: 999px; padding: 5px 9px; font-size: .76rem; font-weight: 900; }
.card-cta { width: 100%; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: white; }
.card-cta:hover { background: var(--amber-500); color: #111827; border-color: var(--amber-500); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.about-card { padding: 30px; border-radius: 18px; }
.about-card h2 { margin: 0 0 12px; font-family: Montserrat, Arial, sans-serif; }
.about-card p { color: var(--muted); line-height: 1.75; }
.about-card.feature { grid-column: span 2; }

.footer { background: var(--navy-950); padding: 50px 0; border-top: 1px solid rgba(255,255,255,.06); }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; align-items: flex-start; }
.footer p { color: rgba(148,163,184,.72); max-width: 520px; line-height: 1.7; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-weight: 900; }
.credits { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.06); display: flex; justify-content: space-between; gap: 18px; color: rgba(148,163,184,.6); font-size: .85rem; }
.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; box-shadow: 0 14px 32px rgba(34,197,94,.34); }
.brand-icon {
    width: 1.18em;
    height: 1.18em;
    flex: 0 0 auto;
    display: inline-block;
}
.btn .brand-icon {
    width: 1.25em;
    height: 1.25em;
}
.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.footer-links .brand-icon-whatsapp { color: #25d366; }
.footer-links .brand-icon-facebook { color: #1877f2; }
.whatsapp-float .brand-icon {
    width: 31px;
    height: 31px;
}

@media (max-width: 980px) {
    .menu-toggle { display: grid; place-items: center; }
    .nav-links { display: none; position: absolute; left: 0; right: 0; top: 82px; padding: 18px; flex-direction: column; align-items: stretch; background: rgba(15,23,42,.98); }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 0; }
    .hero-grid, .sector-layout, .tab-panel.active, .method-grid, .solution-grid, .catalog-grid, .about-grid, .lead-form { grid-template-columns: 1fr; }
    .hero-panel { display: none; }
    .solution-card.large, .solution-card.wide, .about-card.feature { grid-column: span 1; grid-row: span 1; }
    .footer-grid, .credits { flex-direction: column; }
}

@media (max-width: 620px) {
    .brand span span { display: none; }
    section { padding: 64px 0; }
    .lead-box { padding: 28px 18px; }
}
