/* ==========================================================================
   PESTFLOW — DESIGN SYSTEM (DARK EDITION)
   Dirección visual: Consola operativa nocturna, verde bioseguridad,
   superficies carbón con matiz verde, acentos luminosos con propósito.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Superficies (de más profunda a más elevada) */
  --bg:          #050907;
  --bg-alt:      #08100C;
  --surface:     #0C1410;
  --surface-2:   #111B16;
  --surface-3:   #17231D;
  --surface-4:   #1D2B24;

  /* Marca */
  --pf-green:      #22C672;   /* acento principal sobre oscuro */
  --pf-green-600:  #16A05D;   /* verde de marca original */
  --pf-green-glow: rgba(34, 198, 114, 0.35);
  --pf-green-950:  #04140B;

  /* Tokens heredados (re-mapeados para fondo oscuro; usados inline en el HTML) */
  --pf-green-700: #4ADE80;    /* texto de acento */
  --pf-green-800: #6EE7A0;
  --pf-green-900: #BBF7D0;
  --pf-green-200: rgba(34, 198, 114, 0.40);
  --pf-green-100: rgba(34, 198, 114, 0.16);
  --pf-green-50:  rgba(34, 198, 114, 0.09);

  /* Neutros (escala invertida: 900 = texto más claro) */
  --pf-black:    #050907;
  --pf-white:    #F2F7F4;
  --pf-gray-900: #EEF4F0;
  --pf-gray-800: #D6E0DA;
  --pf-gray-700: #B7C4BC;
  --pf-gray-600: #9AA8A0;
  --pf-gray-500: #85938B;
  --pf-gray-400: #76847C;
  --pf-gray-300: #3A4741;
  --pf-gray-200: #26322C;
  --pf-gray-100: #18221D;
  --pf-gray-50:  #121A16;

  /* Estados semánticos (calibrados para contraste en oscuro) */
  --pf-blue:     #60A5FA;
  --pf-blue-bg:  rgba(96, 165, 250, 0.12);
  --pf-amber:    #FBBF24;
  --pf-amber-bg: rgba(251, 191, 36, 0.12);
  --pf-red:      #F87171;
  --pf-red-bg:   rgba(248, 113, 113, 0.12);

  /* Bordes */
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-light:  rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-green:  rgba(34, 198, 114, 0.30);

  /* Tipografía */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Espaciado (base 8px) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px; --sp-32: 128px;

  /* Radios */
  --radius-xs: 6px; --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px;
  --radius-xl: 20px; --radius-2xl: 24px; --radius-full: 9999px;

  /* Sombras (en oscuro: profundidad + filo de luz superior) */
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35), var(--edge);
  --shadow-md: 0 12px 28px -6px rgba(0, 0, 0, 0.55), var(--edge);
  --shadow-lg: 0 24px 48px -10px rgba(0, 0, 0, 0.65), var(--edge);
  --shadow-xl: 0 40px 90px -16px rgba(0, 0, 0, 0.75), var(--edge);

  /* Transiciones */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 150ms ease;
  --t-base: 220ms var(--ease-out);
  --t-slow: 350ms var(--ease-out);

  /* Layout */
  --header-h: 72px;
  --container-w: 1260px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--pf-gray-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body { overflow-x: hidden; line-height: 1.6; font-size: 16px; background: var(--bg); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

::selection { background: rgba(34, 198, 114, 0.35); color: #fff; }

/* ==========================================================================
   TIPOGRAFÍA
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--pf-gray-900);
}

h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.85rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.028em;
}

h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.3rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.018em;
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.text-gradient {
  background: linear-gradient(120deg, #4ADE80 0%, #22C672 45%, #16A05D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #4ADE80;
  background: rgba(34, 198, 114, 0.08);
  border: 1px solid var(--border-green);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-5);
}

.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pf-green);
  box-shadow: 0 0 0 3px rgba(34, 198, 114, 0.18), 0 0 10px var(--pf-green-glow);
}

.p-lg {
  font-size: clamp(1.03rem, 1.2vw, 1.15rem);
  line-height: 1.65;
  color: var(--pf-gray-600);
  max-width: 62ch;
}

.p-md { font-size: 0.96875rem; line-height: 1.65; color: var(--pf-gray-600); }

/* ==========================================================================
   LAYOUT & SECCIONES
   ========================================================================== */
.container { width: 100%; max-width: var(--container-w); margin: 0 auto; padding: 0 var(--sp-6); }
@media (min-width: 768px) { .container { padding: 0 var(--sp-8); } }

section { padding: var(--sp-20) 0; position: relative; }
@media (min-width: 1024px) { section { padding: 112px 0; } }

.section-head { max-width: 720px; margin-bottom: var(--sp-12); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .p-lg { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: var(--sp-4); }

/* Divisor luminoso entre secciones (ritmo visual en oscuro) */
.glow-divider { position: relative; }
.glow-divider::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(900px, 90%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 198, 114, 0.45), transparent);
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), background-color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
  white-space: nowrap; user-select: none;
}
.btn svg { transition: transform var(--t-fast); flex-shrink: 0; }
.btn:hover svg.icon-arrow { transform: translateX(3px); }
.btn:focus-visible { outline: 2px solid var(--pf-green); outline-offset: 3px; }
.btn:active { transform: translateY(0) scale(0.99); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; border-radius: 14px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; border-radius: var(--radius-sm); }

/* Primario y verde comparten el CTA de conversión */
.btn-primary,
.btn-green {
  background: var(--pf-green);
  color: #03130A;
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.35), 0 8px 24px -6px rgba(34, 198, 114, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover,
.btn-green:hover {
  background: #3DDC86;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.5), 0 12px 32px -6px rgba(34, 198, 114, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--pf-gray-900);
  border-color: var(--border-strong);
  box-shadow: var(--edge);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

/* ==========================================================================
   HEADER & NAV MÓVIL
   ========================================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 200;
  background: rgba(5, 9, 7, 0.6);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.header.scrolled {
  background: rgba(5, 9, 7, 0.88);
  border-bottom-color: var(--border-light);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: var(--sp-6); }
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 34px; width: auto; }

.nav-links { display: none; align-items: center; gap: 4px; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--pf-gray-600);
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav-links a:hover { color: var(--pf-gray-900); background: rgba(255, 255, 255, 0.05); }

.header-actions { display: none; align-items: center; gap: 12px; }
@media (min-width: 960px) { .header-actions { display: flex; } }
.header-actions .login-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600;
  color: var(--pf-gray-700);
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: color var(--t-fast), background-color var(--t-fast);
}
.header-actions .login-link:hover { color: #4ADE80; background: rgba(34, 198, 114, 0.08); }

.mobile-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--pf-gray-900);
  cursor: pointer;
}
@media (min-width: 960px) { .mobile-toggle { display: none; } }

.mobile-menu {
  display: none;
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: rgba(8, 16, 12, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  flex-direction: column; gap: var(--sp-2);
  z-index: 190;
}
.mobile-menu.open { display: flex; }
.mobile-menu a.m-link {
  font-size: 15px; font-weight: 600;
  color: var(--pf-gray-800);
  padding: 12px 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: var(--sp-4); }

/* ==========================================================================
   HERO — SPLIT (texto izquierda · consola de producto derecha)
   ========================================================================== */
.hero {
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  background:
    /* Velo lateral: protege la legibilidad del texto a la izquierda */
    linear-gradient(90deg, rgba(5, 9, 7, 0.94) 0%, rgba(5, 9, 7, 0.78) 36%, rgba(5, 9, 7, 0.5) 68%, rgba(5, 9, 7, 0.42) 100%),
    /* Fundido superior (bajo el header) e inferior hacia la siguiente sección */
    linear-gradient(180deg, rgba(5, 9, 7, 0.85) 0%, rgba(5, 9, 7, 0.1) 30%, rgba(5, 9, 7, 0) 65%, var(--bg) 100%),
    /* Fotografía del técnico en terreno */
    url('../img/hero-bg.jpg') 75% center / cover no-repeat,
    var(--bg);
  border-bottom: 1px solid var(--border-light);
}

.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 60% at 20% 35%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 20% 35%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-top { max-width: 840px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.hero-top h1 { margin-bottom: var(--sp-5); }
.hero-top .p-lg { margin: 0 auto var(--sp-8); }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-bottom: var(--sp-6); }

.hero-proof {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 22px;
  font-size: 13px; font-weight: 500;
  color: var(--pf-gray-600);
}
.hero-proof-item { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof-item svg { color: var(--pf-green); flex-shrink: 0; }

.hero-showcase { margin-top: 44px; position: relative; z-index: 2; }

/* Halo detrás de la consola */
.hero-showcase::before {
  content: '';
  position: absolute; inset: 10% 5% -5% 5%;
  background: radial-gradient(ellipse at center, rgba(34, 198, 114, 0.22), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

/* Layout dividido en escritorio amplio */
@media (min-width: 1200px) {
  .hero > .container {
    max-width: 1440px;
    display: grid;
    grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr);
    gap: 56px;
    align-items: center;
  }
  .hero-top { text-align: left; margin: 0; }
  .hero-top h1 { font-size: clamp(2.6rem, 3.4vw, 3.4rem); }
  .hero-top .p-lg { margin: 0 0 var(--sp-8); }
  .hero-actions, .hero-proof { justify-content: flex-start; }
  .hero-proof { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-showcase { margin-top: 0; }
  .workspace-tabs { margin-left: 0; }
  .ws-tab { padding: 7px 12px; font-size: 12.5px; }
  .ws-tab-badge { display: none; }
  .mu-sidebar { width: 178px; }
  .mu-body-row { min-height: 470px; }
  .mu-main { padding: 16px; }
  .mu-stat { padding: 11px 12px; }
  .mu-stat-val { font-size: 21px; }
}

/* Selector de vistas */
.workspace-tabs {
  display: flex; align-items: center; justify-content: flex-start; gap: 4px;
  margin: 0 auto 16px;
  padding: 4px;
  background: rgba(8, 14, 11, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  width: fit-content; max-width: 100%;
  box-shadow: var(--edge);
  overflow-x: auto;
  scrollbar-width: none;
}
.workspace-tabs::-webkit-scrollbar { display: none; }

.ws-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: transparent;
  font-size: 13px; font-weight: 600;
  color: var(--pf-gray-600);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.ws-tab:hover { color: var(--pf-gray-900); }
.ws-tab:focus-visible { outline: 2px solid var(--pf-green); outline-offset: 2px; }
.ws-tab.active {
  background: rgba(34, 198, 114, 0.14);
  border-color: var(--border-green);
  color: #4ADE80;
}
.ws-tab-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--pf-gray-500);
}
.ws-tab.active .ws-tab-badge { background: var(--pf-green); color: #03130A; }

/* Ventana de aplicación */
.mockup-window {
  width: 100%; max-width: 1120px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(34, 198, 114, 0.08),
    0 50px 120px -20px rgba(0, 0, 0, 0.85),
    0 0 80px -20px rgba(34, 198, 114, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.mu-topbar {
  height: 42px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
}
.mu-dots { display: flex; align-items: center; gap: 6px; }
.mu-dot { width: 10px; height: 10px; border-radius: 50%; opacity: 0.85; }
.mu-dot.r { background: #F87171; }
.mu-dot.y { background: #FBBF24; }
.mu-dot.g { background: #34D399; }

.mu-url {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-light);
  padding: 4px 14px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--pf-gray-600);
}

.mu-status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: #4ADE80;
}
.mu-status-pill::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--pf-green);
  box-shadow: 0 0 8px var(--pf-green-glow);
  animation: livePulse 2.4s ease-in-out infinite;
}
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.mu-body-row { display: flex; min-height: 490px; background: var(--bg-alt); }

/* Sidebar */
.mu-sidebar {
  width: 210px;
  background: var(--surface);
  border-right: 1px solid var(--border-light);
  padding: 16px 0;
  display: flex; flex-direction: column;
  flex-shrink: 0;
  text-align: left;
}
.mu-brand {
  padding: 0 14px 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.mu-env-tag {
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  color: #4ADE80;
  background: rgba(34, 198, 114, 0.12);
  border: 1px solid var(--border-green);
  padding: 2px 6px; border-radius: 4px;
}
.mu-nav-section {
  padding: 8px 16px 4px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--pf-gray-400);
  text-transform: uppercase;
}
.mu-nav-item {
  margin: 2px 8px; padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px; font-weight: 500;
  color: var(--pf-gray-600);
  display: flex; align-items: center; gap: 9px;
  cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast);
  position: relative;
}
.mu-nav-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--pf-gray-900); }
.mu-nav-item.active { background: rgba(34, 198, 114, 0.12); color: #6EE7A0; font-weight: 600; }
.mu-nav-item.active::before {
  content: '';
  position: absolute; left: -8px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--pf-green);
  box-shadow: 0 0 10px var(--pf-green-glow);
}
.mu-nav-icon { width: 15px; height: 15px; color: var(--pf-gray-400); flex-shrink: 0; }
.mu-nav-item.active .mu-nav-icon { color: var(--pf-green); }
.mu-nav-count {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: var(--pf-gray-700);
  padding: 1px 6px; border-radius: 99px;
}
.mu-nav-item.active .mu-nav-count { background: rgba(34, 198, 114, 0.2); color: #6EE7A0; }

.mu-sidebar-footer {
  margin-top: auto;
  padding: 12px 14px 0;
  border-top: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: 10px;
}
.mu-avatar {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, #22C672, #0F5C36);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.mu-user-name { font-size: 12px; font-weight: 600; color: var(--pf-gray-900); line-height: 1.2; }
.mu-user-role { font-size: 10.5px; color: var(--pf-gray-500); }

/* Paneles */
.mu-main { flex: 1; min-width: 0; padding: 20px; text-align: left; overflow: hidden; }
.ws-pane { display: none; flex-direction: column; gap: 14px; animation: fadeInPane 220ms ease; }
.ws-pane.active { display: flex; }
@keyframes fadeInPane { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.mu-page-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.mu-page-title { font-size: 15px; font-weight: 700; color: var(--pf-gray-900); letter-spacing: -0.02em; }
.mu-page-sub { font-size: 11.5px; color: var(--pf-gray-500); }
.mu-header-actions { display: flex; gap: 8px; align-items: center; }

.mu-btn-outline {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 7px; padding: 6px 11px;
  font-size: 11.5px; font-weight: 600; color: var(--pf-gray-700);
  display: inline-flex; align-items: center; gap: 6px;
}
.mu-btn-solid {
  background: var(--pf-green);
  border-radius: 7px; padding: 6px 12px;
  font-size: 11.5px; font-weight: 700; color: #03130A;
  display: inline-flex; align-items: center; gap: 5px;
  box-shadow: 0 4px 14px -4px rgba(34, 198, 114, 0.6);
}

/* KPIs */
.mu-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mu-stat {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 13px 15px;
  box-shadow: var(--edge);
}
.mu-stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 6px; }
.mu-stat-label {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  color: var(--pf-gray-500); text-transform: uppercase; letter-spacing: 0.05em;
}
.mu-stat-icon {
  width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0;
  background: rgba(34, 198, 114, 0.12); color: var(--pf-green);
  display: flex; align-items: center; justify-content: center;
}
.mu-stat-icon.amber { background: var(--pf-amber-bg); color: var(--pf-amber); }
.mu-stat-icon.blue  { background: var(--pf-blue-bg);  color: var(--pf-blue); }
.mu-stat-val {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--pf-gray-900); line-height: 1;
}
.mu-stat-trend { font-size: 10.5px; color: #4ADE80; font-weight: 600; margin-top: 5px; }
.mu-stat-trend.warn { color: var(--pf-amber); }

.mu-bottom-row { display: grid; grid-template-columns: 1.45fr 1fr; gap: 10px; }

.mu-card {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--edge);
}
.mu-card-header {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.mu-card-title { font-size: 12px; font-weight: 700; color: var(--pf-gray-900); }
.mu-card-link { font-size: 10.5px; color: #4ADE80; font-weight: 600; white-space: nowrap; }

.mu-table-row {
  display: flex; align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 10px;
  transition: background-color var(--t-fast);
}
.mu-table-row:hover { background: rgba(255, 255, 255, 0.02); }
.mu-table-row:last-child { border-bottom: none; }
.mu-order-num {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  color: var(--pf-gray-700);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 3px 7px; border-radius: 5px;
}
.mu-order-info { flex: 1; min-width: 0; }
.mu-order-name { font-size: 11.5px; font-weight: 600; color: var(--pf-gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-order-meta { font-size: 10.5px; color: var(--pf-gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mu-tag {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  padding: 3px 8px; border-radius: 99px;
  flex-shrink: 0; white-space: nowrap;
  border: 1px solid transparent;
}
.mu-tag.green  { background: rgba(34, 198, 114, 0.12); color: #4ADE80; border-color: rgba(34, 198, 114, 0.25); }
.mu-tag.blue   { background: var(--pf-blue-bg);  color: var(--pf-blue);  border-color: rgba(96, 165, 250, 0.25); }
.mu-tag.yellow { background: var(--pf-amber-bg); color: var(--pf-amber); border-color: rgba(251, 191, 36, 0.25); }
.mu-tag.gray   { background: rgba(255, 255, 255, 0.05); color: var(--pf-gray-600); border-color: var(--border-light); }

.mu-agenda-item {
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.mu-agenda-item:last-child { border-bottom: none; }
.mu-agenda-time { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; color: var(--pf-gray-600); min-width: 40px; }
.mu-agenda-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pf-green); flex-shrink: 0; box-shadow: 0 0 8px var(--pf-green-glow); }
.mu-agenda-dot.b { background: var(--pf-blue);  box-shadow: 0 0 8px rgba(96, 165, 250, 0.4); }
.mu-agenda-dot.o { background: var(--pf-amber); box-shadow: 0 0 8px rgba(251, 191, 36, 0.4); }
.mu-agenda-info { flex: 1; min-width: 0; }
.mu-agenda-title { font-size: 11.5px; font-weight: 600; color: var(--pf-gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-agenda-tec { font-size: 10.5px; color: var(--pf-gray-500); }

/* Paneles 2 y 3 */
.pane-grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }

.field-check-list { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.field-check-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 11.5px;
  color: var(--pf-gray-700);
}
.field-check-row strong { color: var(--pf-gray-900); }

.chem-box { padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chem-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 10px;
}
.chem-label { font-family: var(--font-mono); font-size: 9.5px; color: var(--pf-gray-500); text-transform: uppercase; }
.chem-val { font-size: 12px; font-weight: 700; color: var(--pf-gray-900); margin-top: 2px; }

/* ==========================================================================
   FRANJA DE SECTORES
   ========================================================================== */
.industry-strip {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
  padding: 26px 0;
}
.industry-strip-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.industry-strip-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--pf-gray-500);
}
.industry-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.industry-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  font-size: 13px; font-weight: 600;
  color: var(--pf-gray-700);
}
.industry-pill svg { color: var(--pf-green); }

/* ==========================================================================
   PROBLEMA vs SOLUCIÓN
   ========================================================================== */
.compare-section { background: var(--bg); border-bottom: 1px solid var(--border-light); }

.compare-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: stretch; }
@media (min-width: 960px) { .compare-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

.compare-panel {
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.compare-panel.legacy {
  background: var(--surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--edge);
}
.compare-panel.modern {
  background: linear-gradient(160deg, rgba(34, 198, 114, 0.12) 0%, var(--surface) 55%);
  border: 1px solid var(--border-green);
  box-shadow: 0 0 0 1px rgba(34, 198, 114, 0.06), 0 30px 80px -20px rgba(34, 198, 114, 0.25), var(--edge);
  position: relative; overflow: hidden;
}
.compare-panel.modern::before {
  content: '';
  position: absolute; top: -90px; right: -90px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(34, 198, 114, 0.3) 0%, transparent 70%);
  pointer-events: none;
}
.compare-panel > * { position: relative; }

.cp-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 5px 12px; border-radius: var(--radius-full);
  width: fit-content; margin-bottom: 20px;
}
.cp-badge.red { background: var(--pf-red-bg); color: var(--pf-red); border: 1px solid rgba(248, 113, 113, 0.25); }
.cp-badge.green { background: rgba(34, 198, 114, 0.14); color: #4ADE80; border: 1px solid var(--border-green); }

.compare-panel h3 { font-size: 22px; margin-bottom: 8px; }

.compare-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.compare-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 14px; line-height: 1.5;
}
.compare-panel.legacy .compare-list li {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  color: var(--pf-gray-600);
}
.compare-panel.modern .compare-list li {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(34, 198, 114, 0.14);
  color: var(--pf-gray-700);
}
.compare-list li strong { display: block; color: var(--pf-gray-900); margin-bottom: 2px; }

/* ==========================================================================
   FLUJO 6 PASOS
   ========================================================================== */
#flujo { background: var(--bg-alt); }

.workflow-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .workflow-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .workflow-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.wf-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  display: flex; flex-direction: column;
  box-shadow: var(--edge);
}
.wf-card::after {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 198, 114, 0.6), transparent);
  opacity: 0;
  transition: opacity var(--t-base);
}
.wf-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-green); }
.wf-card:hover::after { opacity: 1; }

.wf-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.wf-num {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
  color: #4ADE80;
  background: rgba(34, 198, 114, 0.1);
  border: 1px solid var(--border-green);
  padding: 4px 10px; border-radius: var(--radius-full);
}
.wf-actor { font-family: var(--font-mono); font-size: 11px; color: var(--pf-gray-500); }
.wf-card h3 { font-size: 18px; margin-bottom: 8px; }
.wf-card p { font-size: 14px; color: var(--pf-gray-600); line-height: 1.6; }

/* ==========================================================================
   PRODUCTO — SPLITS
   ========================================================================== */
#producto { background: var(--bg); }

.feature-split { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; margin-bottom: 112px; }
.feature-split:last-child { margin-bottom: 0; }
@media (min-width: 1024px) {
  .feature-split { grid-template-columns: 5fr 6.5fr; gap: 72px; }
  .feature-split.reverse { grid-template-columns: 6.5fr 5fr; }
  .feature-split.reverse .fs-content { order: 2; }
  .feature-split.reverse .fs-visual { order: 1; }
}

.fs-content h2 { margin-bottom: 18px; }
.fs-checks { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.fs-checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--pf-gray-800); font-weight: 500; }
.fs-check-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(34, 198, 114, 0.14);
  border: 1px solid var(--border-green);
  color: #4ADE80;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}

.ui-stage {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(34, 198, 114, 0.12), transparent 65%),
    var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: 22px;
  box-shadow: var(--edge);
}
@media (min-width: 768px) { .ui-stage { padding: 30px; } }

.ui-card {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.ui-card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface-3);
}
.ui-card-body { padding: 20px; }

.schedule-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .schedule-grid { grid-template-columns: 1fr 1fr; } }

.sched-item {
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--pf-green);
  border-radius: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.sched-item.blue  { border-left-color: var(--pf-blue); }
.sched-item.amber { border-left-color: var(--pf-amber); }

.trace-timeline { display: flex; flex-direction: column; gap: 10px; position: relative; }
.trace-step {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.02);
}
.trace-step.highlight {
  background: rgba(34, 198, 114, 0.1);
  border-color: var(--border-green);
  box-shadow: 0 0 30px -10px rgba(34, 198, 114, 0.4);
}
.trace-badge {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  padding: 4px 8px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--pf-gray-700);
  flex-shrink: 0;
}
.trace-step.highlight .trace-badge { background: var(--pf-green); color: #03130A; }

/* ==========================================================================
   PORTAL MANDANTE
   ========================================================================== */
.dark-section {
  background: var(--bg-alt);
  color: var(--pf-gray-900);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.dark-section::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 90vw; height: 480px;
  background: radial-gradient(ellipse, rgba(34, 198, 114, 0.14) 0%, transparent 70%);
  pointer-events: none;
}
.dark-section .container { position: relative; }

.portal-mockup {
  margin-top: 48px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: 0 50px 120px -20px rgba(0, 0, 0, 0.8), 0 0 80px -30px rgba(34, 198, 114, 0.3), var(--edge);
  overflow: hidden;
}
.pm-header {
  padding: 18px 28px;
  border-bottom: 1px solid var(--border-light);
  background: var(--surface-2);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
}
.pm-client-badge { display: flex; align-items: center; gap: 12px; }
.pm-client-avatar {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(34, 198, 114, 0.16);
  border: 1px solid var(--border-green);
  color: #4ADE80;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.pm-audit-ready {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: #4ADE80;
  background: rgba(34, 198, 114, 0.12);
  border: 1px solid var(--border-green);
  padding: 6px 12px; border-radius: var(--radius-full);
}

.pm-body { padding: 32px 28px; display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 960px) { .pm-body { grid-template-columns: 1fr 2.1fr; gap: 40px; } }

.pm-kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pm-kpi {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--edge);
}
.pm-stat-v {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--pf-gray-900); line-height: 1.1;
}
.pm-stat-l {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--pf-gray-500);
  text-transform: uppercase; letter-spacing: 0.06em; margin-top: 6px;
}

.pm-cert-list { display: flex; flex-direction: column; gap: 10px; }
.pm-row {
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.pm-row:hover { background: var(--surface-3); border-color: var(--border-green); }
.pm-dl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: #4ADE80;
  background: rgba(34, 198, 114, 0.12);
  border: 1px solid var(--border-green);
  padding: 7px 12px; border-radius: 8px;
}

/* ==========================================================================
   BENTO
   ========================================================================== */
#beneficios { background: var(--bg); }

.bento { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .bento-card.span-2 { grid-column: span 2; }
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 30px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base), background-color var(--t-base);
  box-shadow: var(--edge);
}
.bento-card:hover { background: var(--surface-2); border-color: var(--border-green); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.bento-card.span-2 {
  background: linear-gradient(140deg, rgba(34, 198, 114, 0.1) 0%, var(--surface) 50%);
}

.bento-icon-box {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(34, 198, 114, 0.12);
  border: 1px solid var(--border-green);
  color: #4ADE80;
  display: flex; align-items: center; justify-content: center;
}
.bento-meta { display: flex; align-items: center; justify-content: space-between; }
.bento-n { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; color: var(--pf-gray-400); }
.bento-t { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.bento-d { font-size: 14.5px; color: var(--pf-gray-600); line-height: 1.6; }
.bento-mini-ui {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 12.5px;
  color: var(--pf-gray-700);
}
.bento-mini-ui strong { color: var(--pf-gray-900); }

/* ==========================================================================
   PRECIOS & FAQ
   ========================================================================== */
.pricing-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.pricing { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: stretch; }
@media (min-width: 960px) { .pricing { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.pr-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 34px 28px;
  display: flex; flex-direction: column;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  box-shadow: var(--edge);
}
.pr-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.pr-card.pro {
  background: linear-gradient(180deg, rgba(34, 198, 114, 0.12) 0%, var(--surface) 45%);
  border: 1px solid rgba(34, 198, 114, 0.55);
  box-shadow: 0 0 0 4px rgba(34, 198, 114, 0.06), 0 30px 80px -20px rgba(34, 198, 114, 0.35), var(--edge);
  position: relative;
}
.pr-badge {
  position: absolute; top: -12px; left: 28px;
  background: var(--pf-green);
  color: #03130A;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: var(--radius-full);
  letter-spacing: 0.05em; text-transform: uppercase;
  box-shadow: 0 4px 16px -4px rgba(34, 198, 114, 0.7);
}
.pr-name { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.pr-desc { font-size: 13.5px; color: var(--pf-gray-600); margin-bottom: 22px; }
.pr-price {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 800; letter-spacing: -0.035em;
  color: var(--pf-gray-900); line-height: 1; margin-bottom: 6px;
}
.pr-price span { font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--pf-gray-500); letter-spacing: 0; }
.pr-tax {
  font-family: var(--font-mono); font-size: 11px; color: var(--pf-gray-500);
  padding-bottom: 22px; margin-bottom: 22px;
  border-bottom: 1px solid var(--border-light);
}
.pr-features { list-style: none; margin-bottom: 32px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.pr-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--pf-gray-700); }
.pr-features li strong { color: var(--pf-gray-900); }
.pr-features li svg { width: 18px; height: 18px; color: var(--pf-green); flex-shrink: 0; margin-top: 2px; }

.faq-wrap { max-width: 820px; margin: 80px auto 0; }
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--t-fast);
}
.faq-item.open { border-color: var(--border-green); }
.faq-q {
  width: 100%;
  padding: 18px 22px;
  background: none; border: none;
  text-align: left;
  font-size: 15.5px; font-weight: 600;
  color: var(--pf-gray-900);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer;
}
.faq-q:focus-visible { outline: 2px solid var(--pf-green); outline-offset: -2px; }
.faq-q svg { color: var(--pf-gray-500); transition: transform var(--t-base); flex-shrink: 0; }
.faq-item.open .faq-q svg { transform: rotate(180deg); color: var(--pf-green); }
.faq-a { display: none; padding: 0 22px 18px; font-size: 14.5px; color: var(--pf-gray-600); line-height: 1.65; }
.faq-item.open .faq-a { display: block; }

/* ==========================================================================
   CTA FINAL & FOOTER
   ========================================================================== */
.cta-final {
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 112px 0;
}
.cta-final .cta-box {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 32px;
  border-radius: 28px;
  border: 1px solid var(--border-green);
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, rgba(34, 198, 114, 0.28), transparent 70%),
    var(--surface);
  box-shadow: 0 40px 120px -30px rgba(34, 198, 114, 0.45), var(--edge);
  overflow: hidden;
}
.cta-final .cta-box::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
  pointer-events: none;
}
.cta-final .cta-box > * { position: relative; }
.cta-final h2 { color: var(--pf-gray-900); max-width: 18ch; margin: 0 auto 20px; }

.footer { padding: 72px 0 40px; background: var(--bg-alt); border-top: 1px solid var(--border-light); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 56px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px; } }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--pf-gray-900); margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: var(--pf-gray-600); transition: color var(--t-fast); }
.footer-links a:hover { color: #4ADE80; }
.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 13px; color: var(--pf-gray-500);
}
.footer-bottom a:hover { color: #4ADE80; }

/* ==========================================================================
   CONTACTO EN PÁGINA & FORMULARIO
   ========================================================================== */
.contact-section { padding: 104px 0; background: var(--bg-alt); border-top: 1px solid var(--border-light); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); grid-template-areas: "form info"; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-info { grid-area: info; }
.contact-form-card { grid-area: form; }
.contact-info { padding-top: 24px; }
.contact-info h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.04em; margin: 18px 0; }
.contact-info > p { color: var(--pf-gray-600); line-height: 1.7; }
.contact-details { display: grid; gap: 20px; margin: 38px 0; }
.contact-details > * { display: flex; align-items: center; gap: 14px; color: var(--pf-gray-900); font-size: 15px; font-weight: 600; }
.contact-details small { display: block; color: var(--pf-gray-500); font-size: 12px; font-weight: 500; margin-bottom: 3px; }
.contact-detail-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; border: 1px solid var(--border-green); border-radius: 12px; color: var(--pf-green); background: var(--pf-green-50); font-size: 18px; }
.contact-live-link { color: var(--pf-green-700); font-size: 14px; font-weight: 700; }
.contact-form-card { padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--border-light); border-radius: 20px; box-shadow: var(--shadow-lg); }
.modal-title { font-size: 22px; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 8px; }
.modal-desc { font-size: 14.5px; color: var(--pf-gray-600); margin-bottom: 24px; line-height: 1.55; }
@media (max-width: 760px) { .contact-section { padding: 72px 0; } .contact-layout { grid-template-columns: 1fr; grid-template-areas: "info" "form"; gap: 36px; } .contact-info { padding-top: 0; } }

.mf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .mf-row { grid-template-columns: 1fr; } }
.mf-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.mf-label { font-size: 13px; font-weight: 600; color: var(--pf-gray-800); }

.mf-input {
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--pf-gray-900);
  background: rgba(0, 0, 0, 0.3);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
  outline: none; width: 100%;
}
.mf-input::placeholder { color: var(--pf-gray-400); }
.mf-input:hover { border-color: rgba(255, 255, 255, 0.24); }
.mf-input:focus { border-color: var(--pf-green); box-shadow: 0 0 0 3px rgba(34, 198, 114, 0.2); }
.mf-input.filled { background: rgba(34, 198, 114, 0.05); }
.mf-input.error { border-color: var(--pf-red); box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18); }
.mf-input:disabled { opacity: 0.5; cursor: not-allowed; }
.mf-select option { background: var(--surface-2); color: var(--pf-gray-900); }

.mf-select {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239AA8A0' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}
.mf-textarea { resize: vertical; min-height: 84px; }

.mf-submit {
  width: 100%; height: 50px;
  background: var(--pf-green);
  color: #03130A;
  border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 8px;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
  box-shadow: 0 8px 24px -6px rgba(34, 198, 114, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.mf-submit:hover { background: #3DDC86; transform: translateY(-1px); box-shadow: 0 12px 30px -6px rgba(34, 198, 114, 0.7); }
.mf-submit:focus-visible { outline: 2px solid var(--pf-green); outline-offset: 3px; }
.mf-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.mf-legal { font-size: 12px; color: var(--pf-gray-500); text-align: center; margin-top: 12px; }

.mf-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--pf-green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  box-shadow: 0 0 0 12px rgba(34, 198, 114, 0.14), 0 0 40px rgba(34, 198, 114, 0.5);
}

/* ==========================================================================
   REVEAL & RESPONSIVE
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out); }
.reveal.active { opacity: 1; transform: translateY(0); }
.d-1 { transition-delay: 80ms; }
.d-2 { transition-delay: 160ms; }
.d-3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mu-status-pill::before { animation: none; }
}

@media (max-width: 1199px) {
  /* En pantallas apiladas: foto anclada arriba con velo uniforme para legibilidad centrada */
  .hero {
    background:
      linear-gradient(180deg, rgba(5, 9, 7, 0.8) 0%, rgba(5, 9, 7, 0.72) 35%, rgba(5, 9, 7, 0.92) 60%, var(--bg) 75%),
      url('../img/hero-bg.jpg') 72% top / auto 70% no-repeat,
      var(--bg);
  }
}

@media (max-width: 960px) {
  .mu-sidebar { display: none; }
  .mu-stats-row { grid-template-columns: repeat(2, 1fr); }
  .mu-bottom-row, .pane-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { padding-top: calc(var(--header-h) + 36px); }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .mu-url { display: none; }
  .ws-tab-badge { display: none; }
  .ws-tab { padding: 7px 12px; font-size: 12.5px; }
  .compare-panel { padding: 24px 20px; }
  .pm-body { padding: 22px 18px; }
  .cta-final .cta-box { padding: 48px 20px; }
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #25D366;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.whatsapp-float svg { width: 32px; height: 32px; }
.whatsapp-float:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38); }
.whatsapp-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 600px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
}
