/*
Theme Name: LAPGSYSTEMS
Theme URI: https://www.lapgsystems.shop
Author: LAPGSYSTEMS
Description: Tema propio de LAPGSYSTEMS. Direccion visual Dark Tech + Premium SaaS (Deep Navy, gradiente Purple/Blue/Cyan, Sora + Inter).
Version: 0.4.3
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: lapgsystems
*/

/* ============================================================
   TOKENS DE MARCA  (LAPGSYSTEMS Brand / UI Kit)
   ============================================================ */
:root {
  --lapg-purple: #8B2CFF;
  --electric-blue: #246BFF;
  --digital-cyan: #00D9FF;
  --deep-navy: #050816;
  --dark-surface: #0B1020;
  --border-default: #26324D;
  --text-primary: #FFFFFF;
  --text-muted: #9AA7C7;

  --gradient-brand: linear-gradient(135deg, #8B2CFF 0%, #246BFF 50%, #00D9FF 100%);
  --gradient-text: linear-gradient(90deg, #00D9FF, #246BFF, #8B2CFF);

  --font-heading: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --space-1: 8px;  --space-2: 16px; --space-3: 24px; --space-4: 32px;
  --space-5: 48px; --space-6: 64px; --space-7: 80px; --space-8: 96px;

  --radius-sm: 10px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 20px;
  --radius-pill: 999px;

  --ease-default: cubic-bezier(.2,.8,.2,1);
  --duration-fast: 150ms; --duration-base: 250ms; --duration-slow: 500ms;

  --nav-height: 72px;
  --wrap: 1200px;
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--deep-navy);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; margin: 0 0 var(--space-3); }
h1 { font-size: clamp(38px, 5vw, 62px); letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.01em; }
h3 { font-size: clamp(20px, 2vw, 24px); }
p { margin: 0 0 var(--space-3); color: var(--text-muted); }
a { color: var(--digital-cyan); text-decoration: none; transition: color var(--duration-fast) var(--ease-default); }
a:hover { color: #fff; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--digital-cyan); outline-offset: 3px; }

.lapg-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space-3); }
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============================================================
   NAVBAR + LOGO
   ============================================================ */
.lapg-nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-height);
  background: rgba(5, 8, 22, .85);
  border-bottom: 1px solid rgba(38, 50, 77, .7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.lapg-nav__inner {
  max-width: var(--wrap); margin: 0 auto; height: 100%;
  padding: 0 var(--space-3);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
}

/* --- Logo --- */
.lapg-brand { display: inline-flex; align-items: center; gap: 11px; }
.lapg-brand__mark { width: 30px; height: 30px; display: block; flex: none; }
.lapg-brand__mark svg { width: 100%; height: 100%; display: block; }
.lapg-brand__word {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  white-space: nowrap;
}
.lapg-brand__word .accent {
  background: linear-gradient(90deg, #246BFF 0%, #8B2CFF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --- Menu --- */
.lapg-nav__menu { display: flex; align-items: center; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.lapg-nav__menu a {
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  color: var(--text-muted);
}
.lapg-nav__menu a:hover,
.lapg-nav__menu .current-menu-item > a { color: #fff; }

/* --- CTA boton --- */
.lapg-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 0; border-radius: var(--radius-md);
  background: var(--gradient-brand);
  color: #fff; font-family: var(--font-heading);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: transform var(--duration-base) var(--ease-default), box-shadow var(--duration-base) var(--ease-default);
}
.lapg-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139, 44, 255, .28); color: #fff; }
.lapg-btn--ghost {
  background: transparent; border: 1px solid var(--border-default); color: #fff;
}
.lapg-btn--ghost:hover { border-color: rgba(36, 107, 255, .65); box-shadow: none; }

/* --- Toggle movil --- */
.lapg-nav__toggle {
  display: none; background: transparent; border: 0; cursor: pointer; padding: 8px;
  color: #fff;
}
.lapg-nav__toggle svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .lapg-nav__inner > .lapg-btn { display: none; }
  .lapg-nav__toggle { display: inline-flex; }
  .lapg-nav__menu {
    position: fixed; left: 0; right: 0; top: var(--nav-height);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--deep-navy);
    border-bottom: 1px solid var(--border-default);
    padding: var(--space-2) var(--space-3) var(--space-3);
    transform: translateY(-130%);
    transition: transform var(--duration-base) var(--ease-default);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .4);
  }
  body.lapg-nav-open .lapg-nav__menu { transform: none; }
  .lapg-nav__menu li { padding: 12px 2px; border-bottom: 1px solid rgba(38, 50, 77, .5); }
  .lapg-nav__menu li:last-child { border-bottom: 0; }
  .lapg-nav__menu a { font-size: 16px; }
}

/* --- Reveal on scroll (progresivo) --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease-default), transform .5s var(--ease-default);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.lapg-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3.5vw, 48px) 0 clamp(16px, 2vw, 28px);
  background:
    radial-gradient(44% 55% at 88% 6%, rgba(139, 44, 255, .20), transparent 62%),
    radial-gradient(40% 50% at 2% 40%, rgba(36, 107, 255, .14), transparent 60%);
}
.lapg-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.lapg-hero__copy { max-width: 40rem; }
.lapg-hero__copy .lapg-badge { margin-bottom: var(--space-2); }
.lapg-hero__copy h1 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}
.lapg-hero__copy > p {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
  max-width: 46ch;
  margin-bottom: var(--space-3);
}

.lapg-hero__actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: var(--space-3);
}

.lapg-hero__proof { font-size: 14px; color: var(--text-muted); margin: 0; }
.lapg-hero__proof strong { color: #fff; font-family: var(--font-heading); }

.lapg-hero__visual { position: relative; }
.lapg-hero__visual::before {
  content: "";
  position: absolute; inset: 8% 6% 12%;
  background: radial-gradient(closest-side, rgba(36, 107, 255, .26), transparent 76%);
  filter: blur(40px);
  z-index: 0;
}
.lapg-hero__visual img {
  position: relative; z-index: 1;
  display: block; width: 100%; height: auto;
  animation: lapg-float 7s var(--ease-default) infinite;
}
@keyframes lapg-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .lapg-hero__visual img { animation: none; }
}

@media (max-width: 980px) {
  .lapg-hero__grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .lapg-hero__copy { max-width: none; }
  .lapg-hero__copy > p { max-width: 52ch; }
  .lapg-hero__visual { max-width: 560px; margin: 0 auto; }
}

/* ============================================================
   SECCION: encabezado generico
   ============================================================ */
.lapg-section-head { text-align: center; max-width: 46rem; margin: 0 auto clamp(32px, 5vw, 56px); }
.lapg-section-head h2 { text-wrap: balance; }
.lapg-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.lapg-section-head h2 { margin-bottom: var(--space-2); }
.lapg-section-head p { font-size: 16px; margin: 0; }

/* ============================================================
   CARD base (UI Kit)
   ============================================================ */
.lapg-card {
  background: var(--dark-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  transition: transform var(--duration-base) var(--ease-default),
              border-color var(--duration-base) var(--ease-default);
}
.lapg-card:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 107, 255, .65);
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.lapg-services {
  padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--border-default);
  background: #070B1C;
}
.lapg-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.lapg-service { display: flex; flex-direction: column; }
.lapg-service h3 { margin-bottom: 10px; }
.lapg-service p { font-size: 15px; margin-bottom: var(--space-3); }

.lapg-service__icon {
  --accent: var(--electric-blue);
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid rgba(36, 107, 255, .38);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: rgba(36, 107, 255, .13);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.lapg-service__icon svg { width: 26px; height: 26px; }
.lapg-service:nth-child(3n+1) .lapg-service__icon { --accent: var(--lapg-purple); }
.lapg-service:nth-child(3n+2) .lapg-service__icon { --accent: var(--electric-blue); }
.lapg-service:nth-child(3n)   .lapg-service__icon { --accent: var(--digital-cyan); }

.lapg-service__link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading); font-size: 14px; font-weight: 600;
  color: var(--digital-cyan);
}
.lapg-service__link svg { transition: transform var(--duration-fast) var(--ease-default); }
.lapg-service:hover .lapg-service__link svg { transform: translateX(3px); }

@media (max-width: 900px) {
  .lapg-services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .lapg-services__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PROCESO ("Como trabajamos")
   ============================================================ */
.lapg-process {
  background: #070B1C;
  padding: clamp(8px, 2vw, 24px) 0 clamp(56px, 8vw, 96px);
}
.lapg-process__panel {
  position: relative;
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 40px);
  background:
    linear-gradient(#0A0F20, #0A0F20) padding-box,
    var(--gradient-brand) border-box;
}
.lapg-process__panel::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 70px rgba(139, 44, 255, .14);
  pointer-events: none;
}
.lapg-process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.lapg-step { text-align: center; }
.lapg-step__num {
  font-family: var(--font-heading);
  font-size: 12px; font-weight: 700; letter-spacing: .16em;
  color: var(--text-muted);
}
.lapg-step__icon {
  --accent: var(--electric-blue);
  display: grid; place-items: center;
  width: 60px; height: 60px;
  margin: 10px auto 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(38, 50, 77, .9);
  background: rgba(36, 107, 255, .12);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.lapg-step__icon svg { width: 26px; height: 26px; }
.lapg-step:nth-child(4n+1) .lapg-step__icon { --accent: var(--digital-cyan); }
.lapg-step:nth-child(4n+2) .lapg-step__icon { --accent: var(--lapg-purple); }
.lapg-step:nth-child(4n+3) .lapg-step__icon { --accent: var(--electric-blue); }
.lapg-step:nth-child(4n)   .lapg-step__icon { --accent: var(--lapg-purple); }
.lapg-step h3 { font-size: 18px; margin-bottom: 6px; }
.lapg-step p { font-size: 14px; margin: 0; }

@media (max-width: 820px) {
  .lapg-process__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4) var(--space-3); }
}
@media (max-width: 480px) {
  .lapg-process__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   POR QUE ELEGIRNOS ("Somos tu aliado tecnologico")
   ============================================================ */
.lapg-why { padding: clamp(48px, 7vw, 88px) 0; }
.lapg-why__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.lapg-why__copy .lapg-eyebrow { margin-bottom: var(--space-2); }
.lapg-why__copy > p { font-size: 16px; max-width: 44ch; margin-bottom: var(--space-3); }

.lapg-why__list { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; gap: 12px; }
.lapg-why__list li { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 15px; }
.lapg-why__list svg { color: #34D399; flex: none; }

/* --- Cluster de tarjetas flotantes --- */
.lapg-why__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.6vw, 18px);
}
.lapg-mini {
  padding: 18px;
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 4px;
  animation: lapg-float 8s var(--ease-default) infinite;
}
.lapg-mini--b { animation-delay: -2s; }
.lapg-mini--c { animation-delay: -4s; }
.lapg-mini--d { animation-delay: -6s; }
@media (prefers-reduced-motion: reduce) { .lapg-mini { animation: none; } }

.lapg-mini__label { font-size: 13px; color: var(--text-muted); }
.lapg-mini__value { font-family: var(--font-heading); font-size: 26px; font-weight: 700; color: #fff; line-height: 1.1; }
.lapg-mini__sub { font-size: 12px; color: var(--text-muted); }
.lapg-mini__spark { width: 100%; height: 30px; margin-top: 6px; }
.lapg-mini__icon {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  display: grid; place-items: center; margin-bottom: 4px;
}
.lapg-mini__icon--bolt { background: rgba(245, 197, 24, .16); color: #F5C518; }
.lapg-mini__icon svg { width: 20px; height: 20px; }

.lapg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lapg-chip {
  width: 34px; height: 34px; border-radius: var(--radius-pill);
  display: grid; place-items: center;
  font-family: var(--font-heading); font-size: 10px; font-weight: 700; letter-spacing: .02em;
  color: #fff;
  background: color-mix(in srgb, var(--c) 26%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
}
.lapg-bot__head { display: flex; align-items: center; gap: 10px; }
.lapg-bot__avatar {
  width: 34px; height: 34px; border-radius: var(--radius-pill);
  display: grid; place-items: center;
  background: rgba(139, 44, 255, .18); color: var(--lapg-purple); flex: none;
}
.lapg-bot__head strong { font-family: var(--font-heading); font-size: 14px; }
.lapg-bot__head small { color: var(--text-muted); font-size: 12px; }
.lapg-bot__msg {
  margin: 12px 0 0; padding: 10px 12px;
  background: rgba(255, 255, 255, .05);
  border-radius: 12px 12px 12px 4px;
  font-size: 13px; color: #fff;
}

@media (max-width: 980px) {
  .lapg-why__grid { grid-template-columns: 1fr; }
  .lapg-why__visual { order: 2; }
}
@media (max-width: 440px) {
  .lapg-why__cards { grid-template-columns: 1fr; }
}

/* ============================================================
   STACK DE TECNOLOGIAS
   ============================================================ */
.lapg-stack {
  padding: clamp(28px, 4vw, 44px) 0 clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--border-default);
}
.lapg-stack__title {
  text-align: center; margin: 0 0 var(--space-3);
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-muted);
}
.lapg-stack__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(20px, 4vw, 52px);
}
.lapg-stack__list li {
  font-family: var(--font-heading);
  font-size: clamp(15px, 1.6vw, 19px); font-weight: 700; letter-spacing: .01em;
  color: #fff; opacity: .5;
  transition: opacity var(--duration-base) var(--ease-default);
}
.lapg-stack__list li:hover { opacity: 1; }
.lapg-stack__list li:last-child { font-weight: 500; color: var(--text-muted); opacity: 1; }

/* ============================================================
   PAGINA: SERVICIOS
   ============================================================ */
.lapg-page-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(139, 44, 255, .20), transparent 62%),
    radial-gradient(40% 50% at 12% 60%, rgba(36, 107, 255, .14), transparent 60%);
}
.lapg-page-hero .lapg-eyebrow { margin-bottom: var(--space-2); }
.lapg-page-hero h1 {
  max-width: 20ch; margin: 0 auto var(--space-3);
  font-size: clamp(32px, 4.4vw, 54px); line-height: 1.1;
}
.lapg-page-hero > .lapg-wrap > p {
  max-width: 56ch; margin: 0 auto var(--space-4); font-size: 17px;
}
.lapg-page-hero__actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.lapg-page-hero__actions .lapg-btn { min-height: 48px; }

/* --- Pilares --- */
.lapg-pillars { padding: clamp(32px, 5vw, 56px) 0; }
.lapg-pillars__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.lapg-pillar { text-align: center; }
.lapg-pillar .lapg-service__icon { margin-left: auto; margin-right: auto; }
.lapg-pillar h3 { margin-bottom: 8px; }
.lapg-pillar p { font-size: 15px; margin: 0; }

/* --- Servicios en detalle --- */
.lapg-srv {
  padding: clamp(48px, 7vw, 88px) 0;
  border-top: 1px solid var(--border-default);
  background: #070B1C;
}
.lapg-srv__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
}
.lapg-srv__card { display: flex; flex-direction: column; scroll-margin-top: 96px; }
.lapg-srv__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-2);
}
.lapg-srv__num {
  font-family: var(--font-heading); font-size: 26px; font-weight: 800;
  color: rgba(255, 255, 255, .10);
}
.lapg-srv__card h3 { margin-bottom: 8px; }
.lapg-srv__card > p { font-size: 15px; margin-bottom: var(--space-3); }
.lapg-srv__includes {
  list-style: none; margin: 0 0 var(--space-3); padding: 0;
  display: grid; gap: 10px;
}
.lapg-srv__includes li { display: flex; gap: 10px; font-size: 14px; color: #fff; }
.lapg-srv__includes svg { color: var(--digital-cyan); flex: none; margin-top: 2px; }
.lapg-srv__card .lapg-service__link { margin-top: auto; }

/* --- Para quien es --- */
.lapg-audience { padding: clamp(48px, 7vw, 88px) 0; }
.lapg-audience__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.lapg-audience__card h3 { font-size: 19px; margin-bottom: 8px; }
.lapg-audience__card p { font-size: 14px; margin: 0; }

/* --- FAQ --- */
.lapg-faq {
  padding: clamp(48px, 7vw, 88px) 0;
  border-top: 1px solid var(--border-default);
  background: #070B1C;
}
.lapg-faq__list { max-width: 46rem; margin: 0 auto; display: grid; gap: 12px; }
.lapg-faq__item {
  background: var(--dark-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 4px 18px;
  transition: border-color var(--duration-base) var(--ease-default);
}
.lapg-faq__item[open] { border-color: rgba(36, 107, 255, .55); }
.lapg-faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; cursor: pointer;
  font-family: var(--font-heading); font-size: 16px; font-weight: 600; color: #fff;
  list-style: none;
}
.lapg-faq__item summary::-webkit-details-marker { display: none; }
.lapg-faq__item summary svg { flex: none; color: var(--text-muted); transition: transform var(--duration-base) var(--ease-default); }
.lapg-faq__item[open] summary svg { transform: rotate(180deg); }
.lapg-faq__item p { margin: 0 0 14px; font-size: 14px; }

/* --- Banda CTA final --- */
.lapg-cta-band { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 96px); }
.lapg-cta-band__panel {
  position: relative;
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px);
  text-align: center;
  background:
    linear-gradient(#0A0F20, #0A0F20) padding-box,
    var(--gradient-brand) border-box;
}
.lapg-cta-band__panel::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 80px rgba(139, 44, 255, .16); pointer-events: none;
}
.lapg-cta-band__panel h2 { margin-bottom: var(--space-2); }
.lapg-cta-band__panel p { max-width: 52ch; margin: 0 auto var(--space-3); }
.lapg-cta-band__panel .lapg-btn { min-height: 48px; }

@media (max-width: 900px) {
  .lapg-pillars__grid,
  .lapg-audience__grid { grid-template-columns: 1fr; }
  .lapg-srv__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGINA: NOSOTROS
   ============================================================ */
.lapg-story { padding: clamp(40px, 6vw, 72px) 0; }
.lapg-story__grid {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.lapg-story__copy .lapg-eyebrow { margin-bottom: var(--space-2); }
.lapg-story__copy h2 { margin-bottom: var(--space-2); }
.lapg-story__copy p { font-size: 16px; }
.lapg-story__copy p:last-child { margin-bottom: 0; }
.lapg-story__quote {
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 44px);
  background:
    linear-gradient(#0A0F20, #0A0F20) padding-box,
    var(--gradient-brand) border-box;
}
.lapg-story__quote p {
  margin: 0;
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px); line-height: 1.25;
}
@media (max-width: 900px) { .lapg-story__grid { grid-template-columns: 1fr; } }

.lapg-values {
  padding: clamp(48px, 7vw, 88px) 0;
  border-top: 1px solid var(--border-default);
  background: #070B1C;
}
.lapg-values__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.lapg-value { display: flex; gap: 16px; align-items: flex-start; }
.lapg-value .lapg-service__icon { margin-bottom: 0; flex: none; }
.lapg-value h3 { font-size: 18px; margin-bottom: 6px; }
.lapg-value p { font-size: 14px; margin: 0; }
.lapg-values__grid > article:nth-child(4n+1) .lapg-service__icon { --accent: var(--lapg-purple); }
.lapg-values__grid > article:nth-child(4n+2) .lapg-service__icon { --accent: var(--electric-blue); }
.lapg-values__grid > article:nth-child(4n+3) .lapg-service__icon { --accent: var(--digital-cyan); }
.lapg-values__grid > article:nth-child(4n)   .lapg-service__icon { --accent: var(--electric-blue); }
@media (max-width: 720px) { .lapg-values__grid { grid-template-columns: 1fr; } }

.lapg-process--flat { background: transparent; padding: clamp(48px, 7vw, 88px) 0; }

/* ============================================================
   PAGINA DE SERVICIO: ASESORIAS E-COMMERCE
   ============================================================ */
.lapg-shero {
  position: relative; overflow: hidden;
  padding: clamp(32px, 5vw, 72px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(46% 60% at 92% 4%, rgba(139, 44, 255, .22), transparent 62%),
    radial-gradient(40% 50% at 0% 46%, rgba(36, 107, 255, .16), transparent 60%);
}
.lapg-shero__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.lapg-shero__copy .lapg-badge {
  display: inline-block; padding: 6px 14px; border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 217, 255, .25); background: rgba(11, 16, 32, .7);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: var(--space-2);
}
.lapg-shero__copy h1 {
  font-size: clamp(30px, 3.8vw, 48px); line-height: 1.1; margin-bottom: var(--space-2);
}
.lapg-shero__copy > p { font-size: 16px; max-width: 46ch; margin-bottom: var(--space-3); }

.lapg-shero__benefits {
  list-style: none; margin: 0 0 var(--space-3); padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--space-3);
}
.lapg-shero__benefits li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #fff; font-family: var(--font-heading); font-weight: 600; }
.lapg-shero__benefits small { color: var(--text-muted); font-weight: 400; font-family: var(--font-body); }
.lapg-shero__benefits .lapg-service__icon {
  width: 40px; height: 40px; margin: 0; --accent: var(--electric-blue);
}
.lapg-shero__benefits li:nth-child(2) .lapg-service__icon { --accent: var(--lapg-purple); }
.lapg-shero__benefits li:nth-child(3) .lapg-service__icon { --accent: var(--digital-cyan); }
.lapg-shero__benefits .lapg-service__icon svg { width: 20px; height: 20px; }

.lapg-shero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--space-3); }
.lapg-shero__actions .lapg-btn { min-height: 48px; }
.lapg-shero__note { font-size: 13px; color: var(--text-muted); margin: 0; }

/* --- Hub de marketplaces --- */
.lapg-shero__visual { position: relative; }
.lapg-hub {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 20px) clamp(40px, 8vw, 88px);
}
.lapg-hub::before {
  content: ""; position: absolute; inset: 10% 20%;
  background: radial-gradient(closest-side, rgba(36, 107, 255, .28), transparent 75%);
  filter: blur(38px); z-index: 0;
}
.lapg-hub__core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 88px; height: 88px; border-radius: var(--radius-pill);
  display: grid; place-items: center; z-index: 2;
  border: 1px solid transparent;
  background:
    linear-gradient(#0A0F20, #0A0F20) padding-box,
    var(--gradient-brand) border-box;
  box-shadow: 0 0 44px rgba(139, 44, 255, .35);
}
.lapg-hub__mark { width: 40px; height: 40px; display: block; }
.lapg-hub__mark svg { width: 100%; height: 100%; }
.lapg-hub__node {
  position: relative; z-index: 1;
  background: var(--dark-surface); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.lapg-hub__node strong { font-family: var(--font-heading); font-size: 13px; color: #fff; }
.lapg-hub__status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); }
.lapg-hub__status i { width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 8px #34D399; }
.lapg-hub__stat { margin-top: var(--space-2); padding: 14px 16px; }

@media (max-width: 980px) {
  .lapg-shero__grid { grid-template-columns: 1fr; }
  .lapg-hub { grid-template-columns: 1fr 1fr; gap: 12px; }
  .lapg-hub__core { position: static; transform: none; margin: 0 auto 4px; grid-column: 1 / -1; }
  .lapg-hub::before { inset: 20% 10%; }
}

/* --- Flujo de 5 pasos --- */
.lapg-flow {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}
.lapg-flow__step { position: relative; }
.lapg-flow__step:not(:last-child)::after {
  content: ""; position: absolute; top: 44px; right: calc(-1 * clamp(12px, 1.6vw, 20px) / 2);
  width: 8px; height: 8px; border-top: 2px solid rgba(36, 107, 255, .6);
  border-right: 2px solid rgba(36, 107, 255, .6); transform: translateX(50%) rotate(45deg);
}
@media (max-width: 900px) {
  .lapg-flow { grid-template-columns: repeat(2, 1fr); }
  .lapg-flow__step::after { display: none; }
}
@media (max-width: 480px) { .lapg-flow { grid-template-columns: 1fr; } }

/* --- Automatizaciones + dashboard --- */
.lapg-autos { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--border-default); background: #070B1C; }
.lapg-autos__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.lapg-autos__copy h2 { margin-bottom: var(--space-3); }
.lapg-autos__copy .lapg-btn { margin-top: var(--space-2); }

.lapg-dash {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: clamp(10px, 1.6vw, 18px); align-items: center;
  padding: clamp(16px, 2.4vw, 24px);
  background: var(--deep-navy); border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
}
.lapg-dash__side { display: flex; flex-direction: column; gap: 8px; min-width: 92px; }
.lapg-dash__side-label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.lapg-dash__chip, .lapg-dash__row {
  background: var(--dark-surface); border: 1px solid var(--border-default);
  border-radius: var(--radius-sm); padding: 8px 10px; font-size: 11px; color: #fff;
}
.lapg-dash__row { display: flex; flex-direction: column; }
.lapg-dash__row small { color: var(--text-muted); }
.lapg-dash__main { padding: 16px; }
.lapg-dash__main-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lapg-dash__main-head span:first-child { font-family: var(--font-heading); font-weight: 600; font-size: 13px; }
.lapg-dash__pill { font-size: 10px; color: var(--text-muted); border: 1px solid var(--border-default); border-radius: var(--radius-pill); padding: 3px 8px; }
.lapg-dash__chart { width: 100%; height: 84px; }
.lapg-dash__tags { display: flex; gap: 6px; margin-top: 10px; }
.lapg-dash__tags span { font-size: 10px; color: var(--text-muted); border: 1px solid var(--border-default); border-radius: var(--radius-pill); padding: 3px 8px; }

@media (max-width: 980px) {
  .lapg-autos__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .lapg-dash { grid-template-columns: 1fr; }
}

/* --- Capacidades (reemplaza banda de stats) --- */
.lapg-caps { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.lapg-caps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
.lapg-cap { text-align: center; }
.lapg-cap .lapg-service__icon { margin-left: auto; margin-right: auto; }
.lapg-cap:nth-child(4n+1) .lapg-service__icon { --accent: var(--lapg-purple); }
.lapg-cap:nth-child(4n+2) .lapg-service__icon { --accent: var(--electric-blue); }
.lapg-cap:nth-child(4n+3) .lapg-service__icon { --accent: var(--digital-cyan); }
.lapg-cap:nth-child(4n)   .lapg-service__icon { --accent: var(--electric-blue); }
.lapg-cap h3 { font-size: 17px; margin-bottom: 6px; }
.lapg-cap p { font-size: 13px; margin: 0; }
@media (max-width: 900px) { .lapg-caps__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .lapg-caps__grid { grid-template-columns: 1fr; } }

/* ============================================================
   PAGINA DE SERVICIO: DISENO WEB (mockup de navegador)
   ============================================================ */
.lapg-browser {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--dark-surface);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45), 0 0 60px rgba(36, 107, 255, .12);
  animation: lapg-float 8s var(--ease-default) infinite;
}
@media (prefers-reduced-motion: reduce) { .lapg-browser { animation: none; } }
.lapg-browser__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-default);
  background: var(--deep-navy);
}
.lapg-browser__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(154, 167, 199, .35); }
.lapg-browser__url {
  margin-left: 10px; flex: 1;
  font-size: 11px; color: var(--text-muted);
  background: var(--dark-surface); border: 1px solid var(--border-default);
  border-radius: var(--radius-pill); padding: 4px 12px;
}
.lapg-browser__body { padding: 22px; display: grid; gap: 14px; }
.lapg-browser__hl { height: 14px; border-radius: 7px; width: 72%; background: rgba(255, 255, 255, .55); }
.lapg-browser__hl--sm { width: 46%; height: 9px; background: rgba(255, 255, 255, .22); }
.lapg-browser__btn { width: 128px; height: 34px; border-radius: var(--radius-md); background: var(--gradient-brand); }
.lapg-browser__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.lapg-browser__card {
  height: 72px; border-radius: var(--radius-md);
  border: 1px solid var(--border-default); background: var(--deep-navy);
}

/* ============================================================
   PAGINA DE SERVICIO: ADMINISTRACION DE CATALOGO
   ============================================================ */
.lapg-admin {
  display: grid; grid-template-columns: 52px 1fr;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--dark-surface);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45), 0 0 60px rgba(139, 44, 255, .12);
  animation: lapg-float 8s var(--ease-default) infinite;
}
@media (prefers-reduced-motion: reduce) { .lapg-admin { animation: none; } }
.lapg-admin__side {
  background: var(--deep-navy); border-right: 1px solid var(--border-default);
  padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.lapg-admin__side i { width: 22px; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.lapg-admin__side i:first-child { background: var(--gradient-brand); }
.lapg-admin__main { padding: 16px; display: grid; gap: 12px; }
.lapg-admin__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lapg-admin__title { font-family: var(--font-heading); font-weight: 600; font-size: 13px; color: #fff; }
.lapg-admin__pill {
  font-size: 10px; color: #34D399;
  border: 1px solid rgba(52, 211, 153, .35); border-radius: var(--radius-pill);
  padding: 3px 9px; white-space: nowrap;
}
.lapg-admin__sync { display: flex; gap: 6px; flex-wrap: wrap; }
.lapg-admin__sync span {
  font-size: 10px; color: var(--text-muted);
  border: 1px solid var(--border-default); border-radius: var(--radius-pill);
  padding: 3px 8px; display: flex; align-items: center; gap: 5px;
}
.lapg-admin__sync span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34D399; }
.lapg-admin__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lapg-admin__cell {
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  background: var(--deep-navy); aspect-ratio: 1; position: relative; overflow: hidden;
}
.lapg-admin__cell::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 6px;
  height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .14);
}
.lapg-admin__cell:nth-child(1) { background: linear-gradient(135deg, rgba(139, 44, 255, .45), rgba(0, 217, 255, .3)); }
.lapg-admin__cell:nth-child(4) { background: linear-gradient(135deg, rgba(36, 107, 255, .4), rgba(139, 44, 255, .28)); }
.lapg-admin__cell:nth-child(6) { background: linear-gradient(135deg, rgba(0, 217, 255, .32), rgba(36, 107, 255, .3)); }
.lapg-admin__tools { display: flex; gap: 6px; flex-wrap: wrap; }
.lapg-admin__tools span {
  font-size: 10px; color: var(--text-muted);
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  padding: 4px 9px;
}
.lapg-admin__tools span:last-child { color: #fff; border-color: rgba(36, 107, 255, .55); }

.lapg-platform {
  padding: clamp(48px, 7vw, 88px) 0;
  border-top: 1px solid var(--border-default);
  background: #070B1C;
}
.lapg-platform__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.lapg-platform__copy .lapg-eyebrow { margin-bottom: var(--space-2); }
.lapg-platform__copy h2 { margin-bottom: var(--space-2); }
.lapg-platform__copy > p { font-size: 16px; margin-bottom: var(--space-3); max-width: 46ch; }
@media (max-width: 980px) {
  .lapg-platform__grid { grid-template-columns: 1fr; }
  .lapg-platform__visual { order: 2; }
}

/* ============================================================
   PAGINA DE SERVICIO: CHATBOT (mock de bandeja de chat)
   ============================================================ */
.lapg-inbox {
  display: grid; grid-template-columns: 118px 1fr;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--dark-surface);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45), 0 0 60px rgba(0, 217, 255, .12);
  animation: lapg-float 8s var(--ease-default) infinite;
}
@media (prefers-reduced-motion: reduce) { .lapg-inbox { animation: none; } }
.lapg-inbox__list {
  background: var(--deep-navy); border-right: 1px solid var(--border-default);
  padding: 10px; display: grid; gap: 8px; align-content: start;
}
.lapg-inbox__item {
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  padding: 8px; display: grid; gap: 5px; background: var(--dark-surface);
}
.lapg-inbox__item.is-active { border-color: rgba(0, 217, 255, .5); }
.lapg-inbox__ch {
  font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted);
  display: flex; align-items: center; gap: 5px;
}
.lapg-inbox__ch::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--gradient-brand); }
.lapg-inbox__ln { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .14); }
.lapg-inbox__ln--sm { width: 60%; }
.lapg-inbox__thread { padding: 16px; display: grid; gap: 10px; align-content: start; }
.lapg-inbox__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lapg-inbox__title { font-family: var(--font-heading); font-weight: 600; font-size: 12px; color: #fff; }
.lapg-inbox__agent {
  font-size: 10px; color: var(--text-muted);
  border: 1px solid var(--border-default); border-radius: var(--radius-pill);
  padding: 3px 8px; white-space: nowrap;
}
.lapg-inbox__bubble { max-width: 74%; padding: 8px 12px; font-size: 12px; line-height: 1.4; }
.lapg-inbox__bubble--in { justify-self: start; background: rgba(255, 255, 255, .06); border-radius: 12px 12px 12px 4px; color: #fff; }
.lapg-inbox__bubble--bot { justify-self: end; background: var(--gradient-brand); border-radius: 12px 12px 4px 12px; color: #fff; }
.lapg-inbox__bubble--out { justify-self: end; background: rgba(36, 107, 255, .18); border: 1px solid rgba(36, 107, 255, .4); border-radius: 12px 12px 4px 12px; color: #fff; }
@media (max-width: 560px) { .lapg-inbox { grid-template-columns: 96px 1fr; } }

/* ============================================================
   PLACEHOLDER DE CONTENIDO (se ira reemplazando por secciones)
   ============================================================ */
.lapg-hello {
  min-height: calc(100vh - var(--nav-height));
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: var(--space-3);
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(139, 44, 255, .18), transparent 60%),
    radial-gradient(50% 50% at 0% 40%, rgba(36, 107, 255, .14), transparent 60%);
}
.lapg-hello .lapg-badge {
  display: inline-block; padding: 6px 14px; border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 217, 255, .25); background: rgba(11, 16, 32, .7);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
}

.lapg-footer {
  border-top: 1px solid var(--border-default);
  background: #070B1C;
  color: var(--text-muted);
  font-size: 14px;
  padding: clamp(40px, 6vw, 72px) 0 var(--space-4);
}
.lapg-footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--border-default);
}
.lapg-footer__brand .lapg-brand { margin-bottom: var(--space-2); }
.lapg-footer__brand p { margin: 0 0 8px; max-width: 34ch; }
.lapg-footer__tag {
  font-family: var(--font-heading);
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted);
}
.lapg-footer__col h3 {
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; margin-bottom: var(--space-2);
}
.lapg-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lapg-footer__col a { color: var(--text-muted); font-size: 14px; }
.lapg-footer__col a:hover { color: #fff; }
.lapg-footer__cta p { margin: 0 0 var(--space-3); font-size: 14px; }

.lapg-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-3);
  font-size: 13px;
}
.lapg-footer__legal { display: flex; gap: var(--space-3); }
.lapg-footer__legal a { color: var(--text-muted); }
.lapg-footer__legal a:hover { color: #fff; }

@media (max-width: 900px) {
  .lapg-footer__top { grid-template-columns: 1fr 1fr; }
  .lapg-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .lapg-footer__top { grid-template-columns: 1fr; }
  .lapg-footer__bottom { justify-content: flex-start; }
}
