/* ==========================================================================
   SEGURIDAD PRIVADA MX — Home (index) stylesheet
   Dark premium · acento azul de marca
   Independiente de style.css (solo lo usa index.html)
   Sin animaciones ni transiciones (solo botones).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Fondos por capas (navy-negro) */
  --bg:         #070b15;
  --bg-soft:    #0b1222;
  --surface:    #0f1830;
  --surface-2:  #131f3b;
  --surface-3:  #18264a;

  /* Líneas */
  --line:       rgba(140,170,230,.14);
  --line-soft:  rgba(140,170,230,.08);

  /* Marca (azul) */
  --brand:        #3b82f6;
  --brand-strong: #2563eb;
  --brand-deep:   #1e40af;
  --brand-soft:   #60a5fa;
  --cyan:         #22d3ee;

  /* Texto */
  --text:   #eef2fb;
  --muted:  #9fb0cc;
  --faint:  #6b7a99;
  --white:  #ffffff;

  /* Estados */
  --success: #34d399;
  --warn:    #fbbf24;
  --danger:  #f87171;

  /* Gradientes */
  --grad-brand: linear-gradient(135deg, #60a5fa 0%, #2563eb 55%, #1e40af 100%);
  --grad-line:  linear-gradient(90deg, transparent, var(--brand), transparent);
  --grad-text:  linear-gradient(120deg, #93c5fd 0%, #3b82f6 50%, #22d3ee 100%);

  /* Tipografía */
  --f-display: 'Archivo', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Radios */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Sombras */
  --sh-card: 0 18px 40px -22px rgba(0,0,0,.85);
  --sh-pop:  0 30px 60px -25px rgba(0,0,0,.9);
  --sh-glow: 0 18px 50px -18px rgba(37,99,235,.55);

  /* Layout — full width */
  --maxw: 100%;
  --pad: clamp(1rem, 2.6vw, 2.75rem);
  --topbar-h: 40px;
  --header-h: 76px;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 16px; }

::selection { background: var(--brand); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--brand-deep); }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.section { padding: clamp(3.5rem, 8vw, 7rem) 0; position: relative; }
.section--alt { background: var(--bg-soft); }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--f-body); font-weight: 600; font-size: .72rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--brand-soft);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }
.eyebrow.center { justify-content: center; }

h1,h2,h3,h4 { font-family: var(--f-display); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: var(--white); }

.section-title { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.section-sub { margin-top: 1.1rem; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 65ch; }
.section-head.center .section-sub { margin-inline: auto; }

/* Encabezado complemento: título (izq) + cuerpo de 2 columnas (der) */
.split-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.split-head-title .section-title { margin-top: .15rem; }
.split-head-body { display: flex; flex-direction: column; gap: 1.1rem; padding-left: clamp(0rem, 2vw, 2rem); border-left: 1px solid var(--line-soft); }
.split-head-body p { color: var(--muted); font-size: .96rem; line-height: 1.75; }
.split-head-body p strong { color: var(--text); font-weight: 600; }
@media (max-width: 1024px) {
  .split-head { grid-template-columns: 1fr; gap: 1.6rem; }
  .split-head-body { padding-left: 0; border-left: none; }
}

.text-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.text-ghost { color: transparent; -webkit-text-stroke: 1.5px rgba(159,176,204,.35); }

/* glow blobs */
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; z-index: 0; }
.glow--brand { background: radial-gradient(circle, rgba(37,99,235,.6), transparent 70%); }
.glow--cyan  { background: radial-gradient(circle, rgba(34,211,238,.35), transparent 70%); }

/* --------------------------------------------------------------------------
   Buttons (únicos con transición/animación)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--f-body); font-weight: 600; font-size: .98rem;
  padding: .92rem 1.5rem; border-radius: var(--r-pill);
  transition: transform .2s ease, box-shadow .3s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: var(--sh-glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -16px rgba(37,99,235,.75); }
.btn--ghost { background: rgba(255,255,255,.04); color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: var(--brand); transform: translateY(-2px); }
.btn--wa { background: #25D366; color: #06281a; box-shadow: 0 18px 40px -18px rgba(37,211,102,.7); }
.btn--wa:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: .45rem; color: var(--brand-soft); font-weight: 600; font-size: .92rem; }
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Image placeholders (marcados, con ratio)
   -------------------------------------------------------------------------- */
.ph {
  position: relative; width: 100%; overflow: hidden; border-radius: var(--r-md);
  background:
    linear-gradient(135deg, rgba(59,130,246,.10), rgba(34,211,238,.05)),
    var(--surface-2);
  border: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: center;
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(140,170,230,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,170,230,.06) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5;
}
.ph-tag {
  position: relative; z-index: 1; text-align: center; padding: 1rem; color: var(--faint);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.ph-tag svg { width: 30px; height: 30px; opacity: .55; }
.ph-tag b { font-family: var(--f-body); font-weight: 600; font-size: .82rem; color: var(--muted); letter-spacing: .01em; }
.ph-tag span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.ph--16x9 { aspect-ratio: 16/9; }
.ph--4x3  { aspect-ratio: 4/3; }
.ph--3x2  { aspect-ratio: 3/2; }
.ph--1x1  { aspect-ratio: 1/1; }
.ph--3x4  { aspect-ratio: 3/4; }
.ph--21x9 { aspect-ratio: 21/9; }
.ph--fill { position: absolute; inset: 0; height: 100%; border-radius: inherit; }

/* --------------------------------------------------------------------------
   Topbar
   -------------------------------------------------------------------------- */
.topbar {
  background: #050810; border-bottom: 1px solid var(--line-soft);
  font-size: .8rem; color: var(--muted); position: relative; z-index: 60;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--topbar-h); }
.topbar-left { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar-item svg { width: 14px; height: 14px; color: var(--brand-soft); }
.topbar a.topbar-item:hover { color: #fff; }
.topbar-dot { color: var(--success); }
.topbar-lead { color: var(--text); font-weight: 500; }
.topbar-lead .topbar-dot { color: var(--brand-soft); }
.topbar-wa { display: inline-flex; align-items: center; gap: .4rem; background: rgba(37,211,102,.14); color: #4ade80; padding: .28rem .7rem; border-radius: var(--r-pill); font-weight: 600; }
.topbar-wa svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.header {
  position: relative; z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--f-display); font-weight: 800; font-size: 1.18rem; color: #fff; letter-spacing: -.02em; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--grad-brand); display: grid; place-items: center; box-shadow: var(--sh-glow); flex: none; }
.logo-mark svg { width: 19px; height: 19px; color: #fff; }
.logo b { color: var(--brand-soft); }

.nav-menu { display: flex; align-items: center; gap: .35rem; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .85rem; border-radius: var(--r-sm); color: var(--muted); font-weight: 500; font-size: .94rem; }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.05); }
.nav-link .caret { width: 14px; height: 14px; }

.nav-item-dropdown { position: relative; }
.nav-item-dropdown:hover .caret { transform: rotate(180deg); }
/* Puente invisible para que no se cierre el submenú al cruzar el hueco */
.nav-item-dropdown::before { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  min-width: 280px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: .55rem; box-shadow: var(--sh-pop);
  opacity: 0; visibility: hidden; z-index: 40;
}
.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; }
.dropdown-menu a { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: var(--r-sm); color: var(--muted); font-size: .9rem; }
.dropdown-menu a:hover { background: rgba(59,130,246,.12); color: #fff; }
.dropdown-menu a .di { width: 30px; height: 30px; border-radius: 8px; background: rgba(59,130,246,.14); display: grid; place-items: center; flex: none; }
.dropdown-menu a .di svg { width: 16px; height: 16px; color: var(--brand-soft); }
.dropdown-menu a b { display: block; color: #fff; font-weight: 600; font-size: .9rem; }
.dropdown-menu a small { color: var(--faint); font-size: .76rem; }

.nav-cta { display: flex; align-items: center; gap: .75rem; }
.nav-phone { display: inline-flex; align-items: center; gap: .45rem; color: var(--text); font-weight: 600; font-size: .92rem; }
.nav-phone svg { width: 16px; height: 16px; color: var(--brand-soft); }

.mobile-menu-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); position: relative; }
.mobile-menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.mobile-menu-toggle span:nth-child(1) { top: 15px; }
.mobile-menu-toggle span:nth-child(2) { top: 21px; }
.mobile-menu-toggle span:nth-child(3) { top: 27px; }
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(4.5rem, 9vw, 8rem) 0 0; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .glow--brand { width: 620px; height: 620px; top: -220px; left: -120px; }
.hero-bg .glow--cyan { width: 460px; height: 460px; top: 120px; right: -160px; }
.hero-grid-tex { position: absolute; inset: 0; background-image: linear-gradient(rgba(140,170,230,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(140,170,230,.04) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 40%, transparent 100%); }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; padding-bottom: clamp(4rem, 7vw, 6.5rem); }

.hero-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border-radius: var(--r-pill); background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.28); color: var(--brand-soft); font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.4rem; }
.hero-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

/* Hero — two columns */
.hero-top { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.hero-top .hero-badge { margin-bottom: 1.4rem; }
.hero-h1 { font-size: clamp(2.1rem, 3.4vw, 3.4rem); line-height: 1.06; font-weight: 900; letter-spacing: -.02em; }
.hero-h1 .text-grad { display: inline; }
.hero-lead { margin-top: 1.3rem; font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: var(--muted); max-width: 54ch; }
.hero-lead strong { color: var(--text); font-weight: 600; }
.hero-cta { margin-top: 1.9rem; display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-trustbar { margin-top: 1.7rem; display: flex; flex-wrap: wrap; gap: .7rem 1.6rem; color: var(--muted); font-size: .88rem; }
.hero-trustbar li { display: inline-flex; align-items: center; gap: .45rem; position: relative; }
.hero-trustbar li:not(:last-child)::after { content: ""; position: absolute; right: -.8rem; top: 50%; transform: translateY(-50%); width: 1px; height: 15px; background: var(--line); }
.hero-trustbar b { color: var(--brand-soft); font-family: var(--f-display); font-weight: 800; }
.hero-stars { color: var(--warn); letter-spacing: 2px; }
.hero-trustbar .hero-stars { letter-spacing: 1px; }

/* Columna derecha: descripción de empresa */
.hero-about { display: flex; flex-direction: column; gap: 1.1rem; padding-left: clamp(1rem, 2.5vw, 2.4rem); border-left: 1px solid var(--line-soft); }
.hero-about p { color: var(--muted); font-size: .96rem; line-height: 1.75; }
.hero-about p strong { color: var(--text); font-weight: 600; }

@media (max-width: 1024px) {
  .hero-about { border-left: none; padding-left: 0; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); }
}
@media (max-width: 768px) {
  .hero-trustbar li:not(:last-child)::after { display: none; }
}

/* Hero chip strip */
.hero-strip { position: relative; z-index: 1; background: var(--grad-brand); }
.hero-strip-inner { display: grid; grid-template-columns: repeat(6,1fr); }
.hero-chip { display: flex; align-items: center; gap: .7rem; padding: 1.15rem 1.2rem; color: rgba(255,255,255,.95); border-right: 1px solid rgba(255,255,255,.16); }
.hero-chip:last-child { border-right: none; }
.hero-chip:hover { background: rgba(255,255,255,.1); }
.hero-chip svg { width: 22px; height: 22px; flex: none; opacity: .95; }
.hero-chip b { display: block; font-family: var(--f-body); font-weight: 700; font-size: .9rem; }
.hero-chip small { font-size: .74rem; opacity: .82; }

/* --------------------------------------------------------------------------
   Trust strip (certs + rating)
   -------------------------------------------------------------------------- */
.trust { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--bg-soft); }
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 1.4rem 0; }
.trust-label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.trust-badges { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.trust-badge { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-weight: 600; font-size: .9rem; }
.trust-badge svg { width: 18px; height: 18px; color: var(--brand-soft); }

/* --------------------------------------------------------------------------
   Pilares (4 cards)
   -------------------------------------------------------------------------- */
.pillars-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
.pillar-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.pillar-card:hover { border-color: rgba(59,130,246,.4); box-shadow: var(--sh-card); }
.pillar-media { position: relative; }
.pillar-media .ph { border: none; border-radius: 0; aspect-ratio: 4/3; }
.pillar-badge { position: absolute; top: .8rem; right: .8rem; z-index: 2; background: rgba(7,11,21,.7); backdrop-filter: blur(6px); border: 1px solid var(--line); color: var(--brand-soft); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .6rem; border-radius: var(--r-pill); }
.pillar-icon { position: absolute; top: .8rem; left: .8rem; z-index: 2; width: 42px; height: 42px; border-radius: 11px; background: var(--grad-brand); display: grid; place-items: center; box-shadow: var(--sh-glow); }
.pillar-icon svg { width: 22px; height: 22px; color: #fff; }
.pillar-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.pillar-body h3 { font-size: 1.22rem; margin-bottom: .6rem; }
.pillar-body p { color: var(--muted); font-size: .9rem; flex: 1; }
.pillar-incl { margin-top: 1.1rem; }
.pillar-incl .lbl { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: .55rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .65rem; border-radius: var(--r-pill); background: rgba(255,255,255,.04); border: 1px solid var(--line-soft); color: var(--muted); font-size: .76rem; }
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); flex: none; }
.pillar-link { margin-top: 1.2rem; }

/* --------------------------------------------------------------------------
   Servicios (6 cards)
   -------------------------------------------------------------------------- */
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.service-card { position: relative; flex: 0 1 calc(25% - 1.125rem); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.service-card:hover { border-color: rgba(59,130,246,.4); box-shadow: var(--sh-card); }
.service-media { position: relative; }
.service-media .ph { border: none; border-radius: 0; aspect-ratio: 16/9; }
.service-badge { position: absolute; top: .8rem; left: .8rem; z-index: 2; display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; padding: 0 .55rem; border-radius: var(--r-pill); background: rgba(7,11,21,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid var(--line); color: var(--brand-soft); font-family: var(--f-display); font-weight: 800; font-size: .82rem; }
.service-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { font-size: 1.16rem; margin-bottom: .55rem; }
.service-body > p { color: var(--muted); font-size: .9rem; line-height: 1.6; margin-bottom: 1.2rem; }
.service-feats { display: grid; gap: .5rem; margin-bottom: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft); }
.service-feats li { display: flex; align-items: flex-start; gap: .6rem; color: var(--muted); font-size: .85rem; }
.service-feats li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; margin-top: .45rem; }
.service-body .link-arrow { margin-top: auto; }

/* --------------------------------------------------------------------------
   Diferenciadores (why us)
   -------------------------------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,4vw,3.5rem); align-items: center; }
.why-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.why-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.4rem; }
.why-card:hover { border-color: rgba(59,130,246,.4); }
.why-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--grad-brand); display: grid; place-items: center; margin-bottom: 1rem; box-shadow: var(--sh-glow); }
.why-ic svg { width: 22px; height: 22px; color: #fff; }
.why-card h4 { font-size: 1.05rem; margin-bottom: .45rem; }
.why-card p { color: var(--muted); font-size: .85rem; }

/* --------------------------------------------------------------------------
   Proceso (steps)
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.7rem 1.4rem 1.4rem; }
.step-num { font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(59,130,246,.5); margin-bottom: .8rem; }
.step h4 { font-size: 1.1rem; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .86rem; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 2.6rem; right: -.85rem; width: 1.7rem; height: 2px; background: var(--line); z-index: 1; }

/* --------------------------------------------------------------------------
   Sectores (community types)
   -------------------------------------------------------------------------- */
.sectors-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
.sector-card { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); min-height: 320px; display: flex; align-items: flex-end; }
.sector-card:hover { box-shadow: var(--sh-card); }
.sector-card .ph { position: absolute; inset: 0; border: none; border-radius: 0; height: 100%; align-items: flex-start; }
.sector-card .ph .ph-tag { padding-top: 1.6rem; }
.sector-overlay { position: relative; z-index: 2; width: 100%; padding: 1.4rem; background: linear-gradient(to top, rgba(7,11,21,.95) 10%, rgba(7,11,21,.55) 60%, transparent); }
.sector-overlay .tag { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-soft); font-weight: 700; }
.sector-overlay h4 { font-size: 1.18rem; margin: .35rem 0 .5rem; }
.sector-overlay p { color: var(--muted); font-size: .84rem; margin-bottom: .8rem; }

/* --------------------------------------------------------------------------
   Tecnología band (split)
   -------------------------------------------------------------------------- */
.tech-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem,4vw,3.5rem); align-items: center; }
.tech-list { display: grid; gap: 1rem; margin-top: 1.6rem; }
.tech-item { display: flex; gap: .9rem; }
.tech-item .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.22); display: grid; place-items: center; flex: none; }
.tech-item .ic svg { width: 22px; height: 22px; color: var(--brand-soft); }
.tech-item h4 { font-size: 1.02rem; margin-bottom: .25rem; }
.tech-item p { color: var(--muted); font-size: .86rem; }
.tech-mock { position: relative; }
.tech-mock .glow--brand { width: 360px; height: 360px; top: 10%; left: 20%; opacity: .35; }

/* --------------------------------------------------------------------------
   Testimonios
   -------------------------------------------------------------------------- */
.tst-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.tst-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; display: flex; flex-direction: column; }
.tst-card:hover { border-color: rgba(59,130,246,.4); }
.tst-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.tst-stars { color: var(--warn); letter-spacing: 2px; }
.tst-verified { display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; font-weight: 600; color: var(--success); background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.25); padding: .22rem .6rem; border-radius: var(--r-pill); white-space: nowrap; }
.tst-quote { color: var(--text); font-size: .96rem; line-height: 1.6; flex: 1; }
.tst-quote::before { content: "“"; font-family: var(--f-display); font-size: 2.2rem; color: var(--brand); line-height: 0; vertical-align: -.4em; margin-right: .15rem; }
.tst-author { display: flex; align-items: center; gap: .8rem; margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft); }
.tst-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--f-display); flex: none; }
.tst-author b { display: block; color: #fff; font-size: .92rem; }
.tst-author span { color: var(--faint); font-size: .8rem; }

/* --------------------------------------------------------------------------
   Cobertura / zonas
   -------------------------------------------------------------------------- */
.zones-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,3vw,2.5rem); }
.zone-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; }
.zone-block h3 { font-size: 1.1rem; margin-bottom: 1.1rem; display: flex; align-items: center; gap: .55rem; }
.zone-block h3 svg { width: 20px; height: 20px; color: var(--brand-soft); }
.zone-list { display: grid; grid-template-columns: repeat(2,1fr); gap: .5rem; }
.zone-list a { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .88rem; padding: .35rem .2rem; }
.zone-list a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }
.zone-list a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-wrap { max-width: 1080px; margin-inline: auto; display: grid; gap: .8rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.faq-item.active { border-color: rgba(59,130,246,.45); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; text-align: left; font-family: var(--f-body); font-weight: 600; font-size: 1rem; color: #fff; }
.faq-icon { width: 22px; height: 22px; color: var(--brand-soft); flex: none; }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; }
.faq-item.active .faq-answer { max-height: 600px; }
.faq-answer p { padding: 0 1.4rem 1.3rem; color: var(--muted); font-size: .92rem; }
.faq-cta { text-align: center; margin-top: 2rem; }
.faq-cta p { color: var(--muted); margin-bottom: 1rem; }
.faq-cta .btns { display: inline-flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }

/* --------------------------------------------------------------------------
   Cotización (form)
   -------------------------------------------------------------------------- */
.quote { position: relative; overflow: hidden; }
.quote .glow--brand { width: 540px; height: 540px; top: -180px; right: -120px; }
.quote-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem,4vw,3.5rem); align-items: start; }
.quote-info h2 { font-size: clamp(1.8rem,3.5vw,2.6rem); }
.quote-info .section-sub { margin-top: 1rem; }
.quote-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin: 1.8rem 0; }
.quote-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.2rem; }
.quote-stat b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; color: var(--brand-soft); line-height: 1; }
.quote-stat span { color: var(--faint); font-size: .82rem; }
.quote-benefits { display: grid; gap: .9rem; }
.quote-benefit { display: flex; gap: .7rem; }
.quote-benefit svg { width: 22px; height: 22px; color: var(--success); flex: none; margin-top: 2px; }
.quote-benefit b { color: #fff; font-size: .94rem; }
.quote-benefit p { color: var(--muted); font-size: .85rem; }

.quote-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem,3vw,2.1rem); box-shadow: var(--sh-card); }
.quote-card h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.quote-card .sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: .45rem; }
.form-control { width: 100%; padding: .85rem 1rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text); }
.form-control::placeholder { color: var(--faint); }
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(59,130,246,.18); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239fb0cc' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.check { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .85rem; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.form-note { color: var(--faint); font-size: .78rem; margin-top: .9rem; text-align: center; }
.form-consent { font-size: .82rem; color: var(--muted); }
.form-consent a { color: var(--brand-soft); text-decoration: underline; }

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; text-align: center; }
.contact-card:hover { border-color: rgba(59,130,246,.4); }
.contact-card .ic { width: 52px; height: 52px; border-radius: 14px; background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.22); display: grid; place-items: center; margin: 0 auto 1rem; }
.contact-card .ic svg { width: 24px; height: 24px; color: var(--brand-soft); }
.contact-card h3 { font-size: 1rem; margin-bottom: .55rem; }
.contact-card p, .contact-card a { color: var(--muted); font-size: .88rem; }
.contact-card a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: #050810; border-top: 1px solid var(--line); padding-top: clamp(3rem,6vw,5rem); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-soft); }
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); font-size: .88rem; max-width: 34ch; margin-bottom: 1.2rem; }
.footer-rating { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .85rem; }
.footer-rating .s { color: var(--warn); letter-spacing: 2px; }
.footer-col h4 { font-family: var(--f-body); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { color: var(--muted); font-size: .87rem; }
.footer-col a:hover { color: var(--brand-soft); }
.footer-tech { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.6rem 0; border-bottom: 1px solid var(--line-soft); color: var(--faint); font-size: .82rem; }
.footer-tech .brands { display: flex; gap: 1.2rem; flex-wrap: wrap; color: var(--muted); font-weight: 600; }
.footer-certs { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-cert { display: inline-flex; align-items: center; gap: .4rem; }
.footer-cert svg { width: 15px; height: 15px; color: var(--success); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.5rem 0; color: var(--faint); font-size: .82rem; }
.footer-bottom a { color: var(--faint); }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Floats (botones)
   -------------------------------------------------------------------------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 14px 34px -8px rgba(37,211,102,.6); transition: transform .25s ease; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }

.to-top { position: fixed; left: 22px; bottom: 22px; z-index: 80; width: 46px; height: 46px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .3s ease, background .2s ease; }
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--brand-deep); }
.to-top svg { width: 20px; height: 20px; color: #fff; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .pillars-grid, .steps, .sectors-grid, .contact-grid { grid-template-columns: repeat(2,1fr); }
  .hero-strip-inner { grid-template-columns: repeat(3,1fr); }
  .hero-chip:nth-child(3n) { border-right: none; }
  .tst-grid { grid-template-columns: repeat(2,1fr); }
  .service-card { flex-basis: calc(50% - .75rem); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .why-grid, .tech-grid { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
}

@media (max-width: 768px) {
  .topbar-left .hide-mb { display: none; }
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: .6rem var(--pad) 1.2rem;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    opacity: 0; visibility: hidden;
  }
  .nav-menu.active { opacity: 1; visibility: visible; }
  .nav-link { padding: .9rem .5rem; border-radius: 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; justify-content: space-between; }
  .nav-item-dropdown { display: block; }
  .nav-item-dropdown::before { display: none; }
  .dropdown-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; background: transparent; min-width: 0; padding: 0 0 .5rem; max-height: 0; overflow: hidden; }
  .nav-item-dropdown.active .dropdown-menu { max-height: 600px; }
  .nav-item-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; }
  .nav-cta .nav-phone { display: none; }
  .mobile-menu-toggle { display: block; }
  .tst-grid, .contact-grid, .pillars-grid, .steps, .sectors-grid { grid-template-columns: 1fr; }
  .service-card { flex-basis: 100%; }
  .quote-grid { grid-template-columns: 1fr; }
  .zones-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row, .checks { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  :root { --header-h: 64px; }
  .topbar { font-size: .72rem; }
  .topbar-left { gap: .8rem; }
  .hero-strip-inner { grid-template-columns: 1fr 1fr; }
  .hero-chip:nth-child(3n) { border-right: 1px solid rgba(255,255,255,.16); }
  .hero-chip:nth-child(2n) { border-right: none; }
  .hero-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .why-cards, .quote-stats { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: clamp(1.7rem, 7vw, 2.1rem); }
}

/* ===== Sección fusionada: Preguntas frecuentes + Cotización ===== */
.quote-stats--row { grid-template-columns: repeat(4, 1fr); max-width: 1080px; margin-inline: auto; }
.faq-quote-grid { margin-top: clamp(2rem, 4vw, 3rem); align-items: start; }
.faq-quote-grid .faq-wrap { max-width: 100%; margin: 0; }
.faq-col-title { font-family: var(--f-display, inherit); font-size: 1.3rem; margin-bottom: 1.1rem; color: var(--text); }
.faq-quote-grid .faq-cta { text-align: left; margin-top: 1.6rem; }
.faq-quote-grid .faq-cta .btns { justify-content: flex-start; }
@media (max-width: 560px) {
  .quote-stats--row { grid-template-columns: 1fr 1fr; }
}

/* ===== CTA band (página de servicios) ===== */
.cta-band { position: relative; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(2.2rem,5vw,3.6rem) 1.5rem; text-align: center; }
.cta-band .glow--brand { top: -160px; left: 50%; transform: translateX(-50%); width: 460px; height: 460px; }
.cta-band-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta-band-inner .section-sub { margin-top: 1rem; }
.cta-band .hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
@media (max-width: 560px) { .cta-band .hero-actions .btn { width: 100%; justify-content: center; } }

/* ===== Páginas L2: grids de features / pasos / beneficios ===== */
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.bene-num { font-family: var(--f-display); font-weight: 800; font-size: 2rem; color: var(--brand-soft); line-height: 1; display: block; margin-bottom: .5rem; }
.steps--5 { grid-template-columns: repeat(5,1fr); }
.cross-card { display: flex; align-items: center; gap: .8rem; }
.cross-card .why-ic { margin: 0; flex: none; }
@media (max-width: 920px) { .feat-grid { grid-template-columns: 1fr 1fr; } .steps--5 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } .steps--5 { grid-template-columns: 1fr; } }

/* ===== Páginas legales (tema oscuro) ===== */
.legal-prose { max-width: 820px; margin: 0 auto; }
.legal-prose h2 { font-size: 1.4rem; margin: 2.2rem 0 .8rem; }
.legal-prose h3 { font-size: 1.1rem; margin: 1.6rem 0 .5rem; color: var(--text); }
.legal-prose p, .legal-prose li { color: var(--muted); line-height: 1.8; font-size: .95rem; }
.legal-prose p { margin-bottom: 1rem; }
.legal-prose ul { margin: 0 0 1rem; padding-left: 1.3rem; display: grid; gap: .4rem; }
.legal-prose a { color: var(--brand-soft); }
.legal-prose strong { color: var(--text); }
.legal-note { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--r-md); padding: 1rem 1.2rem; margin: 1.4rem 0; color: var(--muted); font-size: .92rem; }
.legal-updated { display: inline-block; background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.22); color: var(--brand-soft); font-size: .82rem; font-weight: 600; padding: .35rem .8rem; border-radius: var(--r-pill); margin-bottom: 1.2rem; }
.err-wrap { text-align: center; max-width: 640px; margin: 0 auto; }
.err-code { font-family: var(--f-display); font-weight: 800; font-size: clamp(5rem,18vw,9rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(59,130,246,.55); }
