:root {
      /* D1 Círculo Lima — COLOR only (marca estudio) */
      --it-navy: #121212;       /* charcoal */
      --it-teal: #9AB82E;       /* lima muted (secondary / WA) */
      --it-electric: #C8F542;   /* lima */
      --it-snow: #F4F4F2;       /* paper */
      --it-slate: #6B6B66;
      --it-ink: #121212;
      --it-mist: #E4E4E0;
      --radius: 14px;
      --shadow: 0 10px 30px rgba(18, 18, 18, 0.12);
      --max: 1080px;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      color: var(--it-ink);
      background: var(--it-snow);
      line-height: 1.55;
    }
    a { color: var(--it-teal); text-decoration: none; }
    a:hover { color: var(--it-navy); }
    a:focus-visible, .btn:focus-visible {
      outline: 3px solid var(--it-electric);
      outline-offset: 3px;
    }
    img { max-width: 100%; height: auto; display: block; }
    .skip-link {
      position: absolute;
      left: -9999px;
      top: 0;
      z-index: 100;
      background: var(--it-electric);
      color: var(--it-navy);
      padding: 0.6rem 1rem;
      font-weight: 700;
      border-radius: 0 0 8px 0;
    }
    .skip-link:focus { left: 0; }

    .wrap {
      width: min(100% - 2rem, var(--max));
      margin-inline: auto;
    }

    header {
      position: sticky;
      top: 0;
      z-index: 40;
      background: rgba(18, 18, 18, 0.96);
      backdrop-filter: blur(8px);
      border-bottom: 1px solid rgba(200, 245, 66, 0.45);
    }
    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 0.75rem 0;
    }
    .nav-brand {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      color: #fff;
      font-weight: 700;
      letter-spacing: 0.02em;
    }
    .nav-brand img,
    .nav-brand img.brand-mark {
      width: 40px;
      height: 40px;
      border-radius: 0;
      object-fit: contain;
    }
    .nav-links {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem 0.85rem;
      align-items: center;
    }
    .nav-links a {
      color: #E2E8F0;
      font-size: 0.9rem;
      font-weight: 500;
    }
    .nav-links a:hover { color: var(--it-electric); }
    @media (max-width: 720px) {
      .nav { flex-direction: column; align-items: flex-start; }
      .nav-links { width: 100%; }
      .nav-links .btn { margin-left: auto; }
    }
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.45rem;
      padding: 0.7rem 1.15rem;
      border-radius: 999px;
      font-weight: 600;
      font-size: 0.95rem;
      border: 2px solid transparent;
      cursor: pointer;
      transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
    }
    .btn:hover { transform: translateY(-1px); }
    .btn-primary {
      background: var(--it-electric);
      color: var(--it-navy);
    }
    .btn-primary:hover { background: #D4F76A; color: var(--it-navy); }
    .btn-secondary {
      background: transparent;
      color: #fff;
      border-color: rgba(200, 245, 66, 0.55);
    }
    .btn-secondary:hover { border-color: var(--it-electric); color: var(--it-electric); }
    .btn-teal {
      background: var(--it-teal);
      color: #fff;
    }
    .btn-teal:hover { background: #7A9420; color: #fff; }
    .btn-ghost {
      background: #fff;
      color: var(--it-navy);
      border-color: var(--it-mist);
    }
    .btn-ghost:hover { border-color: var(--it-teal); color: var(--it-teal); }

    .hero {
      background:
        radial-gradient(ellipse 80% 60% at 85% 20%, rgba(200, 245, 66, 0.18), transparent 55%),
        radial-gradient(ellipse 60% 50% at 10% 80%, rgba(200, 245, 66, 0.12), transparent 50%),
        linear-gradient(160deg, #121212 0%, #1a1a1a 55%, #121212 100%);
      color: #fff;
      padding: 3.5rem 0 4rem;
    }
    .hero-grid {
      display: grid;
      gap: 2.5rem;
      align-items: center;
    }
    @media (min-width: 820px) {
      .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
    }
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.3rem 0.75rem;
      border-radius: 999px;
      background: rgba(200, 245, 66, 0.12);
      border: 1px solid rgba(200, 245, 66, 0.40);
      color: var(--it-electric);
      font-size: 0.8rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      margin-bottom: 1rem;
    }
    .hero h1 {
      font-size: clamp(1.85rem, 4.5vw, 2.75rem);
      line-height: 1.15;
      margin-bottom: 0.85rem;
      font-weight: 800;
    }
    .hero h1 span { color: var(--it-electric); }
    .hero .tagline {
      font-size: 1.15rem;
      color: #cbd5e1;
      max-width: 38ch;
      margin-bottom: 1.5rem;
    }
    .hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
    .hero-card {
      /* Paper plate so D1 COLOR wordmark (charcoal+lima) stays readable */
      background: var(--it-snow);
      border: 1px solid color-mix(in srgb, var(--it-electric) 45%, transparent);
      border-radius: var(--radius);
      padding: 1.25rem;
      color: var(--it-ink);
    }
    .hero-card .hero-stats strong { color: var(--it-navy); }
    .hero-card .hero-stats span { color: var(--it-slate); }
    .hero-card img.wordmark {
      width: min(100%, 320px);
      margin: 0 auto 1rem;
      filter: drop-shadow(0 8px 24px rgba(0,0,0,0.25));
    }
    .hero-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0.75rem;
      text-align: center;
    }
    .hero-stats strong {
      display: block;
      font-size: 1.05rem;
      color: var(--it-electric);
    }
    .hero-stats span {
      font-size: 0.75rem;
      color: #94a3b8;
    }

    section { padding: 3.5rem 0; }
    .section-head {
      text-align: center;
      max-width: 42rem;
      margin: 0 auto 2rem;
    }
    .section-head h2 {
      font-size: clamp(1.5rem, 3vw, 2rem);
      color: var(--it-navy);
      margin-bottom: 0.5rem;
    }
    .section-head p { color: var(--it-slate); }
    .eyebrow {
      color: var(--it-teal);
      font-weight: 700;
      font-size: 0.85rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      margin-bottom: 0.4rem;
    }

    #servicios { background: #fff; }
    .services {
      display: grid;
      gap: 1rem;
      grid-template-columns: 1fr;
    }
    @media (min-width: 640px) {
      .services { grid-template-columns: repeat(2, 1fr); }
    }
    @media (min-width: 960px) {
      .services { grid-template-columns: repeat(3, 1fr); }
    }
    .card {
      background: var(--it-snow);
      border: 1px solid var(--it-mist);
      border-radius: var(--radius);
      padding: 1.35rem;
      box-shadow: 0 1px 0 rgba(18,18,18,0.03);
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }
    .card:hover {
      border-color: rgba(200, 245, 66, 0.55);
      box-shadow: var(--shadow);
    }
    .card .icon {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      background: linear-gradient(145deg, var(--it-navy), #2a2a2a);
      color: var(--it-electric);
      font-size: 1.25rem;
      margin-bottom: 0.85rem;
    }
    .card h3 {
      color: var(--it-navy);
      font-size: 1.1rem;
      margin-bottom: 0.35rem;
    }
    .card p { color: var(--it-slate); font-size: 0.95rem; }

    .product-section {
      border-top: 1px solid var(--it-mist);
    }
    #camaras {
      background: linear-gradient(180deg, #fff 0%, var(--it-snow) 100%);
    }
    #alarmas {
      background: #fff;
    }
    #electricidad {
      background: linear-gradient(180deg, var(--it-snow) 0%, #fff 100%);
    }
    #redes {
      background: #fff;
    }
    #acceso {
      background: linear-gradient(180deg, #fff 0%, var(--it-snow) 100%);
    }
    .cam-intro, .sec-intro {
      text-align: center;
      max-width: 42rem;
      margin: 0 auto 1.75rem;
      color: var(--it-slate);
      font-size: 0.98rem;
    }
    .subhead {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin: 0.5rem 0 1.15rem;
      color: var(--it-navy);
      font-size: 1.15rem;
      font-weight: 700;
    }
    .subhead::after {
      content: "";
      flex: 1;
      height: 1px;
      background: var(--it-mist);
    }
    .products {
      display: grid;
      gap: 1rem;
      grid-template-columns: 1fr;
      margin-bottom: 2rem;
    }
    .products:last-child { margin-bottom: 0; }
    @media (min-width: 640px) {
      .products { grid-template-columns: repeat(2, 1fr); }
    }
    @media (min-width: 960px) {
      .products { grid-template-columns: repeat(3, 1fr); }
    }
    .product-card {
      background: #fff;
      border: 1px solid var(--it-mist);
      border-radius: var(--radius);
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 0;
      overflow: hidden;
      box-shadow: 0 1px 0 rgba(18,18,18,0.03);
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }
    .product-card:hover {
      border-color: rgba(200, 245, 66, 0.55);
      box-shadow: var(--shadow);
    }
    .product-media {
      background: linear-gradient(180deg, #F8FAFC 0%, #E2E8F0 100%);
      aspect-ratio: 4 / 3;
      display: grid;
      place-items: center;
      padding: 1rem 1.1rem 0.85rem;
      border-bottom: 1px solid var(--it-mist);
    }
    .product-media img {
      width: auto;
      max-width: 100%;
      max-height: 200px;
      height: auto;
      object-fit: contain;
    }
    .product-body {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      padding: 1.1rem 1.25rem 1.25rem;
      flex: 1;
    }
    .nvr-note {
      text-align: center;
      max-width: 42rem;
      margin: -0.35rem auto 1.5rem;
      color: var(--it-slate);
      font-size: 0.95rem;
    }
    .brand-badge {
      display: inline-flex;
      align-items: center;
      align-self: flex-start;
      padding: 0.22rem 0.65rem;
      border-radius: 999px;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }
    .brand-badge.tiandy {
      background: rgba(13, 148, 136, 0.12);
      color: var(--it-teal);
      border: 1px solid rgba(13, 148, 136, 0.35);
    }
    .brand-badge.hikvision {
      background: rgba(11, 31, 58, 0.08);
      color: var(--it-navy);
      border: 1px solid rgba(11, 31, 58, 0.2);
    }
    .brand-badge.paradox {
      background: rgba(220, 38, 38, 0.08);
      color: #b91c1c;
      border: 1px solid rgba(185, 28, 28, 0.25);
    }
    .brand-badge.omada {
      background: rgba(37, 99, 235, 0.1);
      color: #1d4ed8;
      border: 1px solid rgba(37, 99, 235, 0.3);
    }
    .brand-badge.unifi {
      background: rgba(14, 165, 233, 0.12);
      color: #0369a1;
      border: 1px solid rgba(14, 165, 233, 0.35);
    }
    .brand-badge.zkteco {
      background: rgba(234, 88, 12, 0.1);
      color: #c2410c;
      border: 1px solid rgba(234, 88, 12, 0.3);
    }
    .brand-badge.dahua {
      background: rgba(22, 163, 74, 0.1);
      color: #15803d;
      border: 1px solid rgba(22, 163, 74, 0.3);
    }
    .brand-badge.infra {
      background: rgba(100, 116, 139, 0.12);
      color: var(--it-slate);
      border: 1px solid rgba(100, 116, 139, 0.3);
    }
    .product-card h3 {
      color: var(--it-navy);
      font-size: 1.02rem;
      line-height: 1.3;
      margin: 0;
    }
    .product-card .benefit {
      color: var(--it-slate);
      font-size: 0.9rem;
      margin: 0;
    }
    .product-card ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
      margin: 0;
      flex: 1;
    }
    .product-card ul li {
      position: relative;
      padding-left: 1rem;
      color: var(--it-ink);
      font-size: 0.88rem;
    }
    .product-card ul li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0.55em;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--it-electric);
    }
    .product-card .btn {
      width: 100%;
      margin-top: 0.25rem;
      font-size: 0.88rem;
      padding: 0.6rem 0.9rem;
    }
    .card-link {
      display: inline-block;
      margin-top: 0.65rem;
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--it-teal);
    }
    .card-link:hover { color: var(--it-navy); }

    .feature-grid {
      display: grid;
      gap: 1rem;
      grid-template-columns: 1fr;
    }
    @media (min-width: 640px) {
      .feature-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (min-width: 960px) {
      .feature-grid { grid-template-columns: repeat(4, 1fr); }
    }
    .feature-card {
      background: #fff;
      border: 1px solid var(--it-mist);
      border-radius: var(--radius);
      padding: 1.15rem;
    }
    .feature-card h3 {
      color: var(--it-navy);
      font-size: 1rem;
      margin-bottom: 0.4rem;
    }
    .feature-card p {
      color: var(--it-slate);
      font-size: 0.9rem;
    }
    .feature-card ul {
      list-style: none;
      margin-top: 0.55rem;
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
    }
    .feature-card ul li {
      position: relative;
      padding-left: 0.95rem;
      font-size: 0.86rem;
      color: var(--it-ink);
    }
    .feature-card ul li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0.55em;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--it-teal);
    }

    #nosotros {
      background: linear-gradient(180deg, var(--it-snow), #fff 40%);
    }
    .about-grid {
      display: grid;
      gap: 2rem;
      align-items: center;
    }
    @media (min-width: 800px) {
      .about-grid { grid-template-columns: 1fr 1fr; }
    }
    .about-copy h2 {
      color: var(--it-navy);
      font-size: clamp(1.45rem, 3vw, 1.9rem);
      margin: 0.35rem 0 0.75rem;
    }
    .about-copy p { color: var(--it-slate); margin-bottom: 0.85rem; }
    .pill-list {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-top: 1rem;
    }
    .pill {
      background: #fff;
      border: 1px solid var(--it-mist);
      color: var(--it-navy);
      padding: 0.35rem 0.75rem;
      border-radius: 999px;
      font-size: 0.85rem;
      font-weight: 600;
    }
    .about-panel {
      background: var(--it-navy);
      color: #fff;
      border-radius: calc(var(--radius) + 4px);
      padding: 1.75rem;
      box-shadow: var(--shadow);
    }
    .about-panel h3 {
      color: var(--it-electric);
      margin-bottom: 0.75rem;
      font-size: 1.05rem;
    }
    .about-panel ul { list-style: none; }
    .about-panel li {
      padding: 0.55rem 0;
      border-bottom: 1px solid rgba(226, 232, 240, 0.12);
      color: #e2e8f0;
      display: flex;
      gap: 0.6rem;
      align-items: flex-start;
    }
    .about-panel li:last-child { border-bottom: 0; }
    .about-panel li::before {
      content: "✓";
      color: var(--it-teal);
      font-weight: 800;
    }

    #contacto { background: #fff; }
    .contact-grid {
      display: grid;
      gap: 1.25rem;
    }
    @media (min-width: 720px) {
      .contact-grid { grid-template-columns: 1.1fr 0.9fr; }
    }
    .contact-card {
      background: var(--it-snow);
      border: 1px solid var(--it-mist);
      border-radius: var(--radius);
      padding: 1.5rem;
    }
    .contact-card h3 {
      color: var(--it-navy);
      margin-bottom: 0.35rem;
    }
    .contact-card p { color: var(--it-slate); margin-bottom: 1rem; }
    .contact-actions {
      display: flex;
      flex-direction: column;
      gap: 0.65rem;
    }
    .contact-actions a.btn { width: 100%; }
    .note {
      font-size: 0.85rem;
      color: var(--it-slate);
      margin-top: 0.75rem;
    }
    .ig-hint {
      background: linear-gradient(135deg, rgba(13,148,136,0.08), rgba(34,211,238,0.12));
      border: 1px dashed rgba(200, 245, 66, 0.55);
      border-radius: var(--radius);
      padding: 1.5rem;
    }
    .ig-hint strong { color: var(--it-navy); }

    footer {
      background: var(--it-navy);
      color: #94a3b8;
      padding: 1.75rem 0;
      font-size: 0.9rem;
    }
    .foot {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem 1.5rem;
      align-items: center;
      justify-content: space-between;
    }
    footer a { color: var(--it-electric); }
    footer a:hover { color: #fff; }
  
    /* Service page banner */
    .page-banner {
      background:
        radial-gradient(ellipse 70% 60% at 90% 10%, rgba(34, 211, 238, 0.18), transparent 55%),
        linear-gradient(160deg, #121212 0%, #1a1a1a 100%);
      color: #fff;
      padding: 2.25rem 0 2.5rem;
    }
    .page-banner .eyebrow { color: var(--it-electric); }
    .page-banner h1 {
      font-size: clamp(1.55rem, 3.5vw, 2.15rem);
      line-height: 1.2;
      margin: 0.35rem 0 0.65rem;
      font-weight: 800;
    }
    .page-banner p { color: #cbd5e1; max-width: 48ch; }
    .page-banner .crumbs {
      font-size: 0.85rem;
      color: #94a3b8;
      margin-bottom: 0.75rem;
    }
    .page-banner .crumbs a { color: var(--it-electric); }
    .page-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.65rem;
      margin-top: 1.15rem;
    }
    a.card {
      color: inherit;
      display: block;
      text-decoration: none;
    }
    a.card:hover h3 { color: var(--it-teal); }
    .nav-services {
      position: relative;
    }
    .nav-services summary {
      list-style: none;
      cursor: pointer;
      color: #E2E8F0;
      font-size: 0.9rem;
      font-weight: 500;
    }
    .nav-services summary::-webkit-details-marker { display: none; }
    .nav-services summary:hover { color: var(--it-electric); }
    .nav-services[open] summary { color: var(--it-electric); }
    .nav-services .submenu {
      position: absolute;
      top: calc(100% + 0.45rem);
      left: 0;
      min-width: 12rem;
      background: #fff;
      border: 1px solid var(--it-mist);
      border-radius: 12px;
      box-shadow: var(--shadow);
      padding: 0.4rem;
      z-index: 50;
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
    }
    .nav-services .submenu a {
      color: var(--it-navy) !important;
      padding: 0.45rem 0.7rem;
      border-radius: 8px;
      font-size: 0.88rem;
    }
    .nav-services .submenu a:hover {
      background: var(--it-snow);
      color: var(--it-teal) !important;
    }
    @media (max-width: 720px) {
      .nav-services .submenu {
        position: static;
        box-shadow: none;
        border: 0;
        background: transparent;
        padding: 0.25rem 0 0.25rem 0.75rem;
      }
      .nav-services .submenu a { color: #E2E8F0 !important; }
      .nav-services .submenu a:hover { color: var(--it-electric) !important; background: transparent; }
    }
    .cta-band {
      background: linear-gradient(135deg, rgba(13,148,136,0.1), rgba(34,211,238,0.12));
      border-top: 1px solid var(--it-mist);
      padding: 2.25rem 0;
      text-align: center;
    }
    .cta-band h2 {
      color: var(--it-navy);
      font-size: 1.35rem;
      margin-bottom: 0.5rem;
    }
    .cta-band p { color: var(--it-slate); margin-bottom: 1rem; }
