/* ============================================================
   ClickCloud — Growth Marketing & Legaltech para Negocios B2B
   Design system & global styles
   Marca oficial: rojo #D0122D · navy #0C1B2A (Pantone 296 C)
   Tipografía corporativa: Metropolis
   ============================================================ */

/* ---------- Metropolis (tipografía corporativa, self-hosted) ---------- */
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/metropolis-400.woff2") format("woff2"); }
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/metropolis-500.woff2") format("woff2"); }
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/metropolis-600.woff2") format("woff2"); }
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/metropolis-700.woff2") format("woff2"); }
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 800; font-display: swap; src: url("../assets/fonts/metropolis-800.woff2") format("woff2"); }
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 900; font-display: swap; src: url("../assets/fonts/metropolis-900.woff2") format("woff2"); }

:root {
  /* Brand — navy oficial (Pantone 296 C, RGB 12,27,42) */
  --navy-900: #06101a;
  --navy-800: #0a1622;
  --navy-700: #0c1b2a;
  --navy-600: #14283c;
  --navy-500: #1d3a52;
  /* Brand — rojo oficial (RGB 208,18,45) */
  --red: #d0122d;
  --red-600: #a60f24;
  --red-400: #e8334b;
  --white: #ffffff;
  --gray-100: #eef2f9;
  --gray-300: #c4cee0;
  --gray-400: #9aa7c2;
  --gray-500: #6b7896;

  --bg: #ffffff;
  --text: #0c1b2a;
  --text-soft: #475068;

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --shadow: 0 18px 50px -20px rgba(6, 16, 26, .35);
  --shadow-red: 0 16px 40px -12px rgba(208, 18, 45, .45);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Metropolis", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.accent { color: var(--red); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.section-title { font-size: clamp(2rem, 4.6vw, 3.1rem); text-align: center; }
.section-sub {
  max-width: 680px; margin: 18px auto 0; text-align: center;
  color: var(--text-soft); font-size: 1.08rem;
}
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red);
  background: rgba(208,18,45,.08); padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-weight: 700; font-size: 1rem; border: none; border-radius: 999px;
  padding: 15px 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { transform: translateY(-3px); background: var(--red-400); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }
.btn-dark { background: var(--navy-700); color: #fff; }
.btn-dark:hover { transform: translateY(-3px); background: var(--navy-600); }
.btn-lg { padding: 18px 38px; font-size: 1.08rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255,255,255,.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(12,27,42,.07);
  transition: box-shadow .3s, background .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(6,16,26,.4); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-logo img { height: 46px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px;
  font-weight: 600; font-size: .96rem; color: var(--text); transition: color .2s, background .2s;
}
.nav-link:hover, .nav-item:hover .nav-link, .nav-link.active { color: var(--red); }
.nav-link .chev { width: 14px; height: 14px; transition: transform .25s; }
.nav-item:hover .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 280px; background: #fff; border: 1px solid rgba(12,27,42,.08);
  border-radius: 16px; box-shadow: var(--shadow); padding: 10px;
  opacity: 0; visibility: hidden; transition: all .25s var(--ease);
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: flex; gap: 12px; padding: 11px 13px; border-radius: 11px; transition: background .2s; }
.dropdown a:hover { background: var(--gray-100); }
.dropdown .d-ic { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(208,18,45,.1); color: var(--red); }
.dropdown .d-ic svg { width: 18px; height: 18px; }
.dropdown b { font-size: .92rem; }
.dropdown span { display: block; font-size: .8rem; color: var(--text-soft); }

/* Dropdown ancho 2 columnas (LegalTech, 7 servicios) */
.dropdown.lt-grid { left: auto; right: 0; transform: translateY(8px); min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav-item:hover .dropdown.lt-grid { transform: translateY(0); }
@media (max-width: 1100px) { .dropdown.lt-grid { min-width: 440px; } }

/* Tarjetas de servicio con lista (páginas LegalTech) */
.ltcard { background: #fff; border: 1px solid rgba(12,27,42,.08); border-radius: 18px; padding: 28px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.ltcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(208,18,45,.22); }
.ltcard h3 { font-size: 1.15rem; color: var(--red); margin-bottom: 16px; }
.lt-list { display: grid; gap: 10px; }
.lt-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-soft); font-size: .95rem; line-height: 1.45; }
.lt-list .chk { flex: 0 0 22px; height: 22px; border-radius: 6px; background: rgba(208,18,45,.1); color: var(--red); display: grid; place-items: center; margin-top: 1px; }
.lt-list .chk svg { width: 13px; height: 13px; }

/* Sección estelar LegalTech (home) */
.lt-star { position: relative; color: #fff; overflow: hidden; background: radial-gradient(900px 500px at 85% -10%, rgba(208,18,45,.28), transparent 55%), linear-gradient(160deg, var(--navy-700), var(--navy-900)); }
.lt-star .star-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(208,18,45,.9); color: #fff; font-weight: 700; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; padding: 7px 15px; border-radius: 999px; }
.lt-grid7 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.lt-grid7 a { display: flex; flex-direction: column; gap: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 15px; padding: 22px; text-decoration: none; color: #fff; transition: transform .3s var(--ease), background .3s, border-color .3s; }
.lt-grid7 a:hover { transform: translateY(-6px); background: rgba(255,255,255,.09); border-color: rgba(208,18,45,.5); }
.lt-grid7 .g-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(208,18,45,.2); color: #fff; }
.lt-grid7 .g-ic svg { width: 22px; height: 22px; }
.lt-grid7 b { font-size: 1rem; }
.lt-grid7 span { font-size: .85rem; color: var(--gray-300); }
@media (max-width: 980px) { .lt-grid7 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .lt-grid7 { grid-template-columns: 1fr; } }

.nav-right { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text-soft); transition: background .2s, color .2s; }
.lang:hover { background: var(--gray-100); color: var(--red); }
/* Selector de idioma ES/EN — control segmentado */
.lang-switch { display: inline-flex; align-items: center; gap: 3px; background: var(--gray-100); border: 1px solid rgba(12,27,42,.06); border-radius: 999px; padding: 3px; }
.lang-btn { border: none; background: transparent; cursor: pointer; font-family: inherit; font-weight: 700; font-size: .78rem; letter-spacing: .03em; color: var(--text-soft); padding: 6px 13px; border-radius: 999px; line-height: 1; transition: background .25s var(--ease), color .25s, box-shadow .25s, transform .15s; }
.lang-btn:hover { color: var(--red); }
.lang-btn.active {
  background: linear-gradient(135deg, var(--red-400), var(--red));
  color: #fff;
  box-shadow: 0 6px 16px -4px rgba(208,18,45,.6), 0 2px 5px -2px rgba(208,18,45,.5);
}
.lang-btn.active:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px -4px rgba(208,18,45,.7), 0 2px 6px -2px rgba(208,18,45,.55); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; padding: 168px 0 110px; text-align: center; color: #fff;
  background: radial-gradient(1100px 600px at 78% -10%, rgba(208,18,45,.32), transparent 60%),
              radial-gradient(900px 600px at 12% 110%, rgba(29,58,82,.6), transparent 55%),
              linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(circle at 50% 30%, black, transparent 75%); pointer-events: none;
}
/* Constelación animada del hero (red de nodos tipo IA) */
.hero-net-wrap { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-net-wrap svg { position: absolute; top: -8%; left: -8%; width: 116%; height: 116%; opacity: .6; }
.hn-line { stroke: rgba(255,255,255,.12); stroke-width: 1; }
.hn { transform-box: fill-box; transform-origin: center; animation: hnPulse 3.4s ease-in-out infinite; }
.hn-r { fill: var(--red-400); filter: drop-shadow(0 0 4px rgba(232,51,75,.8)); }
.hn-w { fill: rgba(255,255,255,.8); }
@keyframes hnPulse { 0%,100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.25); } }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6.4vw, 5rem); max-width: 14ch; margin: 0 auto; }
.hero p { color: var(--gray-300); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 60ch; margin: 26px auto 0; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; margin-top: 64px; }
.hero-stats .s-num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: #fff; }
.hero-stats .s-lbl { color: var(--gray-400); font-size: .92rem; margin-top: 2px; }
.hero-badges { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-top: 54px; opacity: .75; }
.hero-badges span { color: var(--gray-300); font-weight: 600; font-size: .92rem; letter-spacing: .04em; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 96px 0; }
.section-dark {
  color: #fff;
  background: radial-gradient(900px 500px at 85% 0%, rgba(208,18,45,.16), transparent 55%),
              linear-gradient(180deg, var(--navy-700) 0%, var(--navy-800) 100%);
}
.section-dark .section-title, .section-dark h3 { color: #fff; }
.section-dark .section-sub { color: var(--gray-300); }
.section-tint { background: linear-gradient(180deg, #f7f9fd 0%, #eef2f9 100%); }

/* Card grid */
.grid { display: grid; gap: 24px; margin-top: 56px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid rgba(12,27,42,.08); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  position: relative; overflow: hidden;
}
.card::before { content:""; position:absolute; inset:0 0 auto 0; height:3px; background:linear-gradient(90deg,var(--red),var(--red-400)); transform:scaleX(0); transform-origin:left; transition:transform .4s var(--ease); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgba(208,18,45,.25); }
.card:hover::before { transform: scaleX(1); }
.card .ic { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; background: rgba(208,18,45,.1); color: var(--red); margin-bottom: 20px; }
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.25rem; color: var(--red); margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: .98rem; }

/* Dark card variant */
.section-dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.09); }
.section-dark .card:hover { background: rgba(255,255,255,.07); border-color: rgba(208,18,45,.4); }
.section-dark .card p { color: var(--gray-300); }
.section-dark .card .ic { background: rgba(208,18,45,.18); }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 60px; }
.step { text-align: center; position: relative; }
.step .num {
  width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; box-shadow: var(--shadow-red); position: relative; z-index: 2;
}
.step .num svg { width: 26px; height: 26px; }
.step .num i { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--red); font-size: .8rem; font-weight: 800; font-style: normal; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.steps .step:not(:last-child)::after { content: ""; position: absolute; top: 32px; left: 60%; width: 80%; height: 2px; background: linear-gradient(90deg, rgba(208,18,45,.5), rgba(208,18,45,.05)); z-index: 1; }
.step-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 24px 18px; }
.step h3 { font-size: 1.05rem; color: var(--red); margin-bottom: 8px; }
.step p { color: var(--gray-300); font-size: .9rem; }

/* Split / feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .lead { font-size: 1.05rem; color: var(--text-soft); margin: 18px 0 26px; }
.section-dark .split .lead { color: var(--gray-300); }
.feat-list { display: grid; gap: 16px; margin-top: 24px; }
.feat-list li { display: flex; gap: 14px; align-items: flex-start; }
.feat-list .chk { flex: 0 0 26px; height: 26px; border-radius: 8px; background: rgba(208,18,45,.12); color: var(--red); display: grid; place-items: center; margin-top: 2px; }
.feat-list .chk svg { width: 15px; height: 15px; }
.feat-list b { display: block; font-size: 1rem; }
.feat-list span { color: var(--text-soft); font-size: .94rem; }
.section-dark .feat-list span { color: var(--gray-300); }

.visual-card {
  background: linear-gradient(155deg, var(--navy-700), var(--navy-600));
  border: 1px solid rgba(255,255,255,.08); border-radius: 22px; padding: 34px;
  box-shadow: var(--shadow); color: #fff;
}
.visual-card .vc-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.visual-card .vc-row:last-child { border-bottom: none; }
.visual-card .vc-ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(208,18,45,.2); color: #fff; display: grid; place-items: center; flex: 0 0 44px; }
.visual-card .vc-ic svg { width: 20px; height: 20px; }
.visual-card .vc-bar { flex: 1; }
.visual-card .vc-bar b { font-size: .95rem; }
.visual-card .vc-bar .bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.1); margin-top: 8px; overflow: hidden; }
.visual-card .vc-bar .bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--red), var(--red-400)); }

/* Sectors / logos strip */
.sectors { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 48px; }
.chip { padding: 12px 22px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; font-weight: 600; font-size: .95rem; }
.section-tint .chip, .section:not(.section-dark) .chip { background: #fff; border-color: rgba(12,27,42,.1); color: var(--text); box-shadow: 0 6px 18px -12px rgba(6,16,26,.3); }

/* Stat band */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-band .stat { text-align: center; padding: 10px; }
.stat-band .s-num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; color: #fff; }
.stat-band .s-lbl { color: var(--gray-300); margin-top: 6px; font-size: .96rem; }

/* CTA band */
.cta-band {
  text-align: center; color: #fff; border-radius: 28px; padding: 70px 40px; position: relative; overflow: hidden;
  background: radial-gradient(700px 400px at 50% -30%, rgba(208,18,45,.4), transparent 60%), linear-gradient(150deg, var(--navy-700), var(--navy-900));
  border: 1px solid rgba(255,255,255,.08);
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-band p { color: var(--gray-300); max-width: 56ch; margin: 16px auto 32px; }

/* ---------- Valor diferenciador (interactivo) ---------- */
.vshow { display: grid; grid-template-columns: 330px 1fr; gap: 22px; margin-top: 50px; }
.vtabs { display: flex; flex-direction: column; gap: 12px; }
.vtab { display: flex; align-items: center; gap: 14px; text-align: left; background: #fff; border: 1px solid rgba(12,27,42,.1); border-radius: 14px; padding: 15px 18px; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 1rem; color: var(--text); transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s; }
.vtab .vt-ic { flex: 0 0 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(208,18,45,.1); color: var(--red); transition: .25s; }
.vtab .vt-ic svg { width: 20px; height: 20px; }
.vtab:hover { border-color: rgba(208,18,45,.35); transform: translateX(3px); }
.vtab.active { background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); color: #fff; border-color: transparent; box-shadow: var(--shadow); }
.vtab.active .vt-ic { background: var(--red); color: #fff; }
.vpanel { position: relative; background: #fff; border: 1px solid rgba(12,27,42,.1); border-radius: 18px; padding: 38px; min-height: 280px; overflow: hidden; }
.vpanel::before { content: ""; position: absolute; top: -40px; right: -40px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(208,18,45,.13), transparent 70%); pointer-events: none; }
.vcard { display: none; position: relative; z-index: 1; }
.vcard.active { display: block; animation: vfade .45s var(--ease); }
@keyframes vfade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.vcard .vbig { font-size: 2.6rem; font-weight: 800; color: var(--red); letter-spacing: -.02em; line-height: 1; }
.vcard h3 { font-size: 1.45rem; margin: 8px 0 12px; }
.vcard p { color: var(--text-soft); font-size: 1.06rem; max-width: 54ch; }
.vcard .vfeat { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.vcard .vpill { background: rgba(208,18,45,.08); color: var(--red); font-weight: 700; font-size: .85rem; padding: 8px 15px; border-radius: 999px; }

/* ---------- Sección IA animada ---------- */
.ai-orb { position: relative; height: 340px; display: grid; place-items: center; }
.ai-core { width: 124px; height: 124px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, var(--red-400), var(--red)); display: grid; place-items: center; color: #fff; z-index: 4; animation: aiPulse 2.6s ease-in-out infinite; }
.ai-core svg { width: 56px; height: 56px; }
@keyframes aiPulse { 0%,100% { transform: scale(1); box-shadow: 0 0 50px rgba(208,18,45,.5); } 50% { transform: scale(1.06); box-shadow: 0 0 90px rgba(208,18,45,.8); } }
.ai-ring { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; transform: translate(-50%,-50%); }
.ai-ring.r1 { width: 200px; height: 200px; animation: aiSpin 16s linear infinite; }
.ai-ring.r2 { width: 280px; height: 280px; animation: aiSpin 26s linear infinite reverse; }
.ai-ring.r3 { width: 360px; height: 360px; animation: aiSpin 36s linear infinite; }
@keyframes aiSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.ai-ring .ai-dot { position: absolute; top: -6px; left: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 14px var(--red); }
.ai-ring.r2 .ai-dot { background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.7); }
.ai-chip { position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; font-size: .78rem; font-weight: 600; padding: 6px 13px; border-radius: 999px; backdrop-filter: blur(6px); animation: aiFloat 5s ease-in-out infinite; }
.ai-chip.c1 { top: 8%; left: 4%; }
.ai-chip.c2 { top: 18%; right: 2%; animation-delay: 1s; }
.ai-chip.c3 { bottom: 12%; left: 8%; animation-delay: 2s; }
.ai-chip.c4 { bottom: 6%; right: 10%; animation-delay: .5s; }
@keyframes aiFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 760px) {
  .vshow { grid-template-columns: 1fr; }
  .vtabs { flex-direction: row; overflow-x: auto; }
  .vtab { white-space: nowrap; }
  .ai-orb { height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-core, .ai-ring, .ai-chip { animation: none !important; }
}

/* ---------- Tarjetas-CTA de subservicios ---------- */
.subcta { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 44px; }
.subcta a { display: flex; flex-direction: column; align-items: flex-start; background: #fff; border: 1px solid rgba(12,27,42,.1); border-radius: 16px; padding: 26px; text-decoration: none; color: var(--text); position: relative; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.subcta a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg,var(--red),var(--red-400)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.subcta a:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(208,18,45,.3); }
.subcta a:hover::after { transform: scaleX(1); }
.subcta .sc-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(208,18,45,.1); color: var(--red); margin-bottom: 14px; }
.subcta .sc-ic svg { width: 22px; height: 22px; }
.subcta h3 { font-size: 1.12rem; margin-bottom: 6px; }
.subcta p { color: var(--text-soft); font-size: .92rem; margin-bottom: 16px; }
.subcta .sc-go { margin-top: auto; color: var(--red); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.subcta .sc-go svg { width: 16px; height: 16px; transition: transform .25s; }
.subcta a:hover .sc-go svg { transform: translateX(4px); }
.section-dark .subcta a { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.09); color: #fff; }
.section-dark .subcta p { color: var(--gray-300); }
@media (max-width: 760px) { .subcta { grid-template-columns: 1fr; } }

/* ---------- Visuales animados por página (sutiles) ---------- */
.fxbox { position: relative; height: 300px; display: grid; place-items: center; }
.fxbox svg { width: 100%; max-width: 380px; height: auto; overflow: visible; }
/* Funnel (Marketing B2B) */
.fx-funnel .seg { transform-origin: center; animation: fnPulse 2.4s ease-in-out infinite; }
.fx-funnel .seg:nth-child(2){animation-delay:.3s} .fx-funnel .seg:nth-child(3){animation-delay:.6s} .fx-funnel .seg:nth-child(4){animation-delay:.9s}
@keyframes fnPulse { 0%,100%{ opacity:.55; } 50%{ opacity:1; } }
.fx-funnel .drop { animation: fnDrop 2.4s linear infinite; }
@keyframes fnDrop { 0%{ transform: translateY(-20px); opacity:0;} 15%{opacity:1;} 85%{opacity:1;} 100%{ transform: translateY(130px); opacity:0;} }
/* Curva de crecimiento (Growth) */
.fx-curve .ln { stroke-dasharray: 600; stroke-dashoffset: 600; animation: drawLn 3s var(--ease) infinite; }
@keyframes drawLn { 0%{ stroke-dashoffset:600;} 60%,100%{ stroke-dashoffset:0;} }
.fx-curve .pt { animation: ptPop 3s ease-in-out infinite; }
@keyframes ptPop { 0%,55%{ opacity:0; transform:scale(0);} 70%{ opacity:1; transform:scale(1.3);} 100%{opacity:1; transform:scale(1);} }
/* Barras de ranking (Performance/SEO) */
.fx-bars rect.br { transform-box: fill-box; transform-origin: bottom; animation: brRise 2.6s ease-in-out infinite; }
.fx-bars rect.br:nth-of-type(2){animation-delay:.25s} .fx-bars rect.br:nth-of-type(3){animation-delay:.5s} .fx-bars rect.br:nth-of-type(4){animation-delay:.75s} .fx-bars rect.br:nth-of-type(5){animation-delay:1s}
@keyframes brRise { 0%,100%{ transform: scaleY(.45);} 50%{ transform: scaleY(1);} }
/* Flujo de demanda (Demand gen) */
.fx-flow .fd { animation: fdFlow 2.8s linear infinite; }
.fx-flow .fd.d2{animation-delay:.5s}.fx-flow .fd.d3{animation-delay:1s}.fx-flow .fd.d4{animation-delay:1.5s}.fx-flow .fd.d5{animation-delay:2s}
@keyframes fdFlow { 0%{ transform: translateX(-120px); opacity:0;} 14%{opacity:1;} 86%{opacity:1;} 100%{ transform: translateX(0); opacity:0;} }
/* Escudo (Legaltech) */
.fx-shield .sh { animation: shGlow 3s ease-in-out infinite; transform-origin:center; }
@keyframes shGlow { 0%,100%{ filter: drop-shadow(0 0 6px rgba(208,18,45,.4)); } 50%{ filter: drop-shadow(0 0 22px rgba(208,18,45,.85)); } }
.fx-shield .scan { animation: shScan 2.6s ease-in-out infinite; }
@keyframes shScan { 0%{ transform: translateY(-46px); opacity:0;} 20%,80%{opacity:.9;} 100%{ transform: translateY(46px); opacity:0;} }
/* Grid de puntos (ClickTech) */
.fx-grid circle { transform-box: fill-box; transform-origin: center; animation: gPulse 2.6s ease-in-out infinite; }
@keyframes gPulse { 0%,100%{ opacity:.25; transform: scale(.6);} 50%{ opacity:1; transform: scale(1.15);} }
/* Señales neuronales (Soluciones IA) */
.fx-neural line { stroke-dasharray: 70; stroke-dashoffset: 70; animation: nFlow 2.2s linear infinite; }
@keyframes nFlow { to { stroke-dashoffset: 0; } }
.fx-neural circle { transform-box: fill-box; transform-origin: center; animation: gPulse 2.6s ease-in-out infinite; }
/* Código tecleando (Desarrollo Web) */
.fx-code rect.cl { transform-box: fill-box; transform-origin: left; animation: cType 3.8s ease-in-out infinite; }
.fx-code rect.cl.l2{animation-delay:.3s}.fx-code rect.cl.l3{animation-delay:.6s}.fx-code rect.cl.l4{animation-delay:.9s}.fx-code rect.cl.l5{animation-delay:1.2s}
@keyframes cType { 0%{ transform: scaleX(0);} 22%{ transform: scaleX(1);} 92%{ transform: scaleX(1);} 100%{ transform: scaleX(0);} }
.fx-code .cur { animation: curBlink 1s steps(1) infinite; }
@keyframes curBlink { 50%{ opacity: 0; } }
/* Ecualizador de datos (Data & Analytics) */
.fx-eq rect { transform-box: fill-box; transform-origin: bottom; animation: eqMove 1.2s ease-in-out infinite; }
.fx-eq rect:nth-child(2){animation-duration:.85s}.fx-eq rect:nth-child(3){animation-duration:1.05s}.fx-eq rect:nth-child(4){animation-duration:.7s}.fx-eq rect:nth-child(5){animation-duration:1.25s}
@keyframes eqMove { 0%,100%{ transform: scaleY(.3);} 50%{ transform: scaleY(1);} }
/* Check de cumplimiento (Compliance) */
.fx-check .ring2 { stroke-dasharray: 320; stroke-dashoffset: 320; animation: drawRing 2.8s ease-in-out infinite; }
@keyframes drawRing { 0%{ stroke-dashoffset: 320;} 60%,100%{ stroke-dashoffset: 0;} }
.fx-check .tick { stroke-dasharray: 70; stroke-dashoffset: 70; animation: drawTick 2.8s ease-in-out infinite; }
@keyframes drawTick { 0%,55%{ stroke-dashoffset: 70;} 82%,100%{ stroke-dashoffset: 0;} }
/* Firma (Contratos) */
.fx-sign .sig { stroke-dasharray: 480; stroke-dashoffset: 480; animation: drawSig 3.4s ease-in-out infinite; }
@keyframes drawSig { 0%{ stroke-dashoffset: 480;} 72%,100%{ stroke-dashoffset: 0;} }
/* Balanza (Propiedad Intelectual) */
.fx-scale .beam { transform-box: fill-box; transform-origin: center; animation: tilt 3.2s ease-in-out infinite; }
@keyframes tilt { 0%,100%{ transform: rotate(-7deg);} 50%{ transform: rotate(7deg);} }
/* Envío (Contacto) */
.fx-send .ring { transform-box: fill-box; transform-origin: center; animation: sendRing 2.6s ease-out infinite; }
.fx-send .ring.r2{animation-delay:.8s}.fx-send .ring.r3{animation-delay:1.6s}
@keyframes sendRing { 0%{ transform: scale(.3); opacity:.8;} 100%{ transform: scale(1.7); opacity:0;} }
.fx-send .plane { animation: planeFloat 3s ease-in-out infinite; }
@keyframes planeFloat { 0%,100%{ transform: translate(0,0);} 50%{ transform: translate(6px,-6px);} }

@media (prefers-reduced-motion: reduce) { .fxbox * { animation: none !important; } }

/* ---------- Testimonials ---------- */
.t-card { background:#fff; border:1px solid rgba(12,27,42,.08); border-radius:var(--radius); padding:32px; }
.t-card .quote { font-size:2.4rem; line-height:1; color:var(--red); font-weight:800; }
.t-card p { color:var(--text-soft); margin:10px 0 22px; font-size:1.02rem; }
.t-card .who { display:flex; align-items:center; gap:14px; }
.t-card .av { width:46px; height:46px; border-radius:50%; background:linear-gradient(135deg,var(--red),var(--navy-600)); color:#fff; display:grid; place-items:center; font-weight:800; }
.t-card .who b { display:block; font-size:.95rem; }
.t-card .who span { font-size:.85rem; color:var(--text-soft); }

/* ---------- FAQ / accordion ---------- */
.faq { max-width: 820px; margin: 52px auto 0; }
.faq-item { border-bottom: 1px solid rgba(12,27,42,.1); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-size: 1.08rem; font-weight: 700; color: var(--text); }
.faq-q .pm { flex: 0 0 26px; height: 26px; border-radius: 50%; background: rgba(208,18,45,.1); color: var(--red); display: grid; place-items: center; transition: transform .3s; font-size: 1.2rem; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { color: var(--text-soft); padding: 0 0 22px; }

/* ============================================================
   PAGE HEADER (interior pages)
   ============================================================ */
.page-hero {
  padding: 150px 0 80px; text-align: center; color: #fff;
  background: radial-gradient(900px 500px at 80% -20%, rgba(208,18,45,.28), transparent 55%), linear-gradient(160deg, var(--navy-800), var(--navy-900));
  position: relative; overflow: hidden;
}
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero p { color: var(--gray-300); max-width: 60ch; margin: 18px auto 0; font-size: 1.12rem; }
.breadcrumb { display: flex; gap: 8px; justify-content: center; color: var(--gray-400); font-size: .9rem; margin-bottom: 22px; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 56px; }
.post {
  background: #fff; border: 1px solid rgba(12,27,42,.08); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.post { display: block; color: inherit; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post:hover h3 { color: var(--red); }

/* ---------- Artículo (post individual) ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article .a-cover { height: 240px; border-radius: var(--radius); margin-bottom: 34px; }
.article h2 { font-size: 1.6rem; margin: 36px 0 12px; }
.article h3 { font-size: 1.22rem; color: var(--red); margin: 28px 0 10px; }
.article p { color: var(--text-soft); font-size: 1.06rem; margin: 0 0 18px; }
.article ul { margin: 0 0 18px; padding-left: 4px; }
.article li { color: var(--text-soft); font-size: 1.06rem; display: flex; gap: 12px; margin-bottom: 10px; }
.article li::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--red); }
.article a { color: var(--red); font-weight: 600; }
.article strong { color: var(--text); }
.a-meta { display: flex; align-items: center; gap: 14px; color: var(--text-soft); font-size: .92rem; margin-bottom: 26px; }
.a-meta .av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--navy-600)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.a-share { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(12,27,42,.1); }
/* Los botones dentro del artículo no deben heredar el color de enlace rojo */
.article a.btn-primary, .article a.btn-dark, .article a.btn-ghost { color: #fff; font-weight: 700; }
.article a.btn:hover { color: #fff; }
/* Portada con imagen: legibilidad del texto/badge */
.thumb { background-size: cover; background-position: center; text-shadow: 0 2px 10px rgba(6,16,26,.45); }
.a-cover { background-size: cover; background-position: center; }
.post .thumb { height: 190px; position: relative; background-size: cover; background-position: center; }
.post .thumb .thumb-tag { position: absolute; top: 12px; left: 12px; background: rgba(6,16,26,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #fff; font-weight: 700; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.post .pbody { padding: 24px; }
.post .tag { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.post h3 { font-size: 1.2rem; margin: 10px 0; color: var(--text); }
.post p { color: var(--text-soft); font-size: .95rem; }
.post .meta { margin-top: 18px; font-size: .85rem; color: var(--gray-500); }

/* ---------- Contact form ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.form-card { background: #fff; border: 1px solid rgba(12,27,42,.08); border-radius: 22px; padding: 36px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(12,27,42,.14);
  font-family: inherit; font-size: 1rem; color: var(--text); background: #fbfcfe; transition: border .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(208,18,45,.12); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--gray-500); margin-top: 6px; }
.contact-info .ci-row { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info .ci-ic { flex: 0 0 48px; height: 48px; border-radius: 13px; background: rgba(208,18,45,.1); color: var(--red); display: grid; place-items: center; }
.contact-info b { display: block; }
.contact-info span, .contact-info a { color: var(--text-soft); }
.form-success { display:none; background:rgba(34,160,90,.1); border:1px solid rgba(34,160,90,.3); color:#1c7a48; padding:14px 16px; border-radius:12px; margin-bottom:18px; font-weight:600; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-900); color: var(--gray-300); padding: 72px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-top img { height: 54px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; font-size: .95rem; color: var(--gray-400); }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-col a { display: block; padding: 7px 0; color: var(--gray-400); font-size: .94rem; transition: color .2s; }
.footer-col a:hover { color: var(--red-400); }
/* Botones dentro del footer: texto blanco legible (no heredan el color de enlace) */
.site-footer a.btn { display: inline-flex; color: #fff; padding: 14px 26px; }
.site-footer a.btn.btn-primary, .site-footer a.btn.btn-primary:hover { color: #fff; }
.site-footer a.btn:hover { color: #fff; }
.social { display: flex; gap: 12px; margin-top: 20px; }
.social a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.06); display: grid; place-items: center; color: #fff; transition: background .2s, transform .2s; }
.social a:hover { background: var(--red); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 50px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.08); font-size: .86rem; color: var(--gray-500); }
.footer-bottom a:hover { color: var(--red-400); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps .step::after { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-menu, .nav-right .lang { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 76px; left: 0; right: 0; background: #fff; padding: 14px;
    border-bottom: 1px solid rgba(12,27,42,.08); box-shadow: var(--shadow);
  }
  .nav-menu.open .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 4px 0 4px 48px; min-width: auto; }
  .nav-menu.open .nav-link { justify-content: space-between; }
  .split, .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .post-grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .hero { padding: 140px 0 80px; }
  .hero-stats { gap: 30px; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-band { padding: 50px 24px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
