/* =========================================================
   pymIT — Design System CSS
   Child theme Divi · pymit.es
   Tipografía: Montserrat (display) + Inter (body)
   Paleta: logo pymIT 2025
   ========================================================= */

/* ---------------------------------------------------------
   RESET DIVI en front page
--------------------------------------------------------- */
.et_pb_section, .et_pb_row, .et_pb_column, .et_pb_module {
  all: unset;
}
body.home #page-container { padding: 0; }
body.home .et_pb_section { padding: 0 !important; }

/* ---------------------------------------------------------
   DESIGN TOKENS
--------------------------------------------------------- */
:root {
  /* Brand */
  --pymit-blue: #29ABE2;
  --pymit-blue-deep: #1B7BA8;
  --pymit-orange: #F15A29;
  --pymit-orange-deep: #C1421B;
  --pymit-gray: #58595B;
  --pymit-teal: #00B4D8;
  --pymit-teal-deep: #0088A6;

  /* Neutrals light */
  --bg: #FBFAF7;
  --bg-elev: #FFFFFF;
  --bg-subtle: #F2F1EC;
  --ink: #15171A;
  --ink-soft: #3B3E44;
  --ink-mute: #6B6F76;
  --line: rgba(21, 23, 26, 0.09);
  --line-strong: rgba(21, 23, 26, 0.18);

  /* Semantic */
  --primary: var(--pymit-blue);
  --primary-deep: var(--pymit-blue-deep);
  --accent: var(--pymit-orange);
  --accent-deep: var(--pymit-orange-deep);
  --ai: var(--pymit-teal);

  /* Typography */
  --font-display: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;

  /* Geometry */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Layout */
  --container: 1240px;
  --gutter: 24px;
}

[data-theme="dark"] {
  --bg: #0B0D10;
  --bg-elev: #14171C;
  --bg-subtle: #181C22;
  --ink: #F4F5F7;
  --ink-soft: #C8CCD3;
  --ink-mute: #8B919B;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
}

/* ---------------------------------------------------------
   BASE
--------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------------------------------------------------------
   TYPOGRAPHY
--------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  vertical-align: middle;
  margin-right: 8px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------
   BUTTONS
--------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .2s var(--ease), background .2s var(--ease),
              color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); }
.btn-accent { background: var(--primary); color: #fff; }
.btn-accent:hover { background: var(--primary-deep); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-xl { padding: 18px 28px; font-size: 17px; }

.arrow {
  display: inline-flex; width: 18px; height: 18px;
  align-items: center; justify-content: center;
  transition: transform .2s var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------------------------------------------------------
   SECTION SCAFFOLDING
--------------------------------------------------------- */
section { position: relative; }
.section-pad { padding: 120px 0; }
.section-pad-sm { padding: 80px 0; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 720px;
  margin: 12px 0 0;
}
.section-head p {
  max-width: 440px; color: var(--ink-soft); font-size: 17px; margin: 0;
}

/* ---------------------------------------------------------
   UTILITIES
--------------------------------------------------------- */
.text-blue { color: var(--pymit-blue); }
.text-orange { color: var(--pymit-orange); }
.text-teal { color: var(--pymit-teal); }
.text-mute { color: var(--ink-mute); }
.divider { height: 1px; background: var(--line); width: 100%; }

/* Card base */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .3s var(--ease), border-color .2s var(--ease), box-shadow .3s var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -24px rgba(0,0,0,.12);
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: all .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------
   NAV
--------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-img { height: 52px; width: auto; display: block; }
[data-theme="dark"] .nav-logo-img { filter: brightness(1.05) contrast(0.95); mix-blend-mode: screen; }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu a, .nav-menu li > a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-soft);
  transition: background .2s var(--ease), color .2s var(--ease);
  display: block;
}
.nav-menu a:hover, .nav-menu li > a:hover { background: var(--bg-subtle); color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px;
  background: var(--bg-elev);
}
.lang-switch button {
  padding: 5px 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  border-radius: 999px; color: var(--ink-mute);
}
.lang-switch button.on { background: var(--ink); color: var(--bg); }
.nav-cta { padding: 9px 16px; font-size: 14px; }

/* ---------------------------------------------------------
   HERO
--------------------------------------------------------- */
.hero {
  position: relative;
  padding: 80px 0 40px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-brain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .85; }
.hero-wash {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 85% 40%, color-mix(in oklab, var(--pymit-teal) 14%, transparent), transparent 70%),
    radial-gradient(ellipse 60% 50% at 10% 80%, color-mix(in oklab, var(--pymit-orange) 10%, transparent), transparent 70%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: 620px;
}
.hero-eyebrow { margin-bottom: 28px; }
.hero-title {
  font-size: clamp(44px, 6.5vw, 92px);
  margin: 0 0 28px;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.hero-swap {
  display: inline-block;
  position: relative;
  min-width: 4ch;
  vertical-align: baseline;
  color: var(--primary);
}
.hero-swap .swap-word {
  display: inline-block;
  opacity: 0;
  position: absolute;
  left: 0; top: 0;
  white-space: nowrap;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  transform: translateY(16px);
  font-style: italic;
}
.hero-swap .swap-word.active { opacity: 1; transform: translateY(0); }
.hero-swap::after {
  content: 'ITIL';
  display: inline-block;
  visibility: hidden;
  font-style: italic;
}
.hero-dot { color: var(--accent); }
.hero-sub { font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 540px; margin: 0 0 36px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-trust { border-top: 1px solid var(--line); padding-top: 24px; }
.trust-label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 14px; }
.trust-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.trust-logo { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--ink-soft); opacity: .75; }
.trust-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

/* Stat card */
.hero-side { display: flex; align-items: stretch; }
.stat-card {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: 0 30px 80px -40px rgba(12, 127, 176, 0.25), 0 4px 12px -6px rgba(0,0,0,.06);
  position: relative;
  transform: rotate(.4deg);
}
.stat-card::before {
  content: '';
  position: absolute; inset: -1px; border-radius: inherit;
  background: linear-gradient(135deg, color-mix(in oklab, var(--pymit-blue) 30%, transparent), transparent 60%);
  z-index: -1;
}
.stat-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.stat-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
  padding: 4px 10px 4px 6px;
  background: var(--bg-subtle); border-radius: 999px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pymit-blue); position: relative;
}
.pulse::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--pymit-blue); opacity: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(.5); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
.stat-chip { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; padding: 3px 8px; border-radius: 4px; background: var(--pymit-blue); color: white; }
.stat-title { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 24px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.stat-sub { color: var(--ink-mute); font-weight: 500; margin: 0 4px; }
.stat-lab { font-size: 12px; color: var(--ink-mute); margin-top: 4px; line-height: 1.4; }
.stat-foot { display: flex; align-items: center; gap: 12px; padding-top: 18px; }
.stat-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #29ABE2, #1B7BA8); color: white; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); }
.stat-bio-name { font-weight: 600; font-size: 14px; }
.stat-bio-role { font-size: 12px; color: var(--ink-mute); line-height: 1.4; }

/* Hero marquee */
.hero-marquee {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex; gap: 28px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 14px; letter-spacing: 0.04em;
  color: var(--ink-mute);
  white-space: nowrap;
  animation: marquee 45s linear infinite;
  width: max-content;
}
.marquee-track span:nth-child(even) { color: var(--pymit-blue); font-weight: 800; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------------------------------------------------------
   PILLARS / SERVICIOS
--------------------------------------------------------- */
.pillars { background: var(--bg); }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { position: relative; padding: 36px 32px; }
.pillar-num { position: absolute; top: 24px; right: 28px; font-family: var(--font-display); font-weight: 800; font-size: 56px; color: transparent; -webkit-text-stroke: 1px var(--line-strong); line-height: 1; }
.pillar-icon { width: 56px; height: 56px; border-radius: 14px; background: color-mix(in oklab, var(--c) 12%, transparent); color: var(--c); display: flex; align-items: center; justify-content: center; margin-bottom: 28px; }
.pillar h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; margin: 0 0 14px; }
.pillar p { color: var(--ink-soft); margin: 0 0 24px; font-size: 15px; line-height: 1.6; }
.pillar-link { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.pillar-link:hover { border-color: var(--ink); }

/* ---------------------------------------------------------
   CATÁLOGO FORMACIÓN
--------------------------------------------------------- */
.catalog { background: var(--bg-subtle); }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter { padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--ink-soft); background: var(--bg-elev); border: 1px solid var(--line); border-radius: 999px; transition: all .2s var(--ease); cursor: pointer; }
.filter.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter:not(.on):hover { border-color: var(--line-strong); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.course { background: var(--bg-elev); border-radius: var(--radius-lg); padding: 0 0 24px; overflow: hidden; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); display: flex; flex-direction: column; }
.course:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(0,0,0,.18); }
.course-band { background: var(--band); color: white; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.course-band .course-level { opacity: .85; font-weight: 500; }
.course.featured { border: 1px solid color-mix(in oklab, var(--pymit-blue) 40%, transparent); }
.course.featured.ai { border: 1px solid color-mix(in oklab, var(--pymit-teal) 45%, transparent); background: linear-gradient(180deg, color-mix(in oklab, var(--pymit-teal) 4%, var(--bg-elev)), var(--bg-elev)); }
.course h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; margin: 20px 20px 10px; line-height: 1.25; }
.course p { color: var(--ink-soft); font-size: 14px; margin: 0 20px 16px; line-height: 1.55; flex: 1; }
.course-meta { display: flex; gap: 16px; padding: 12px 20px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-mute); font-weight: 500; }
.course.hidden { display: none; }

/* ---------------------------------------------------------
   CONSULTORÍA
--------------------------------------------------------- */
.consulting { background: var(--bg); }
.consulting-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.consulting-copy h2 { font-size: clamp(32px, 4vw, 54px); margin: 18px 0 24px; letter-spacing: -0.025em; line-height: 1.05; }
.consulting-copy > p { font-size: 18px; color: var(--ink-soft); margin: 0 0 32px; max-width: 520px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.check-list li strong { color: var(--ink); margin-right: 4px; font-weight: 600; }
.check-list li:last-child { border-bottom: 1px solid var(--line); }
.check-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-top: 8px; flex-shrink: 0; }

/* Case card */
.case-card { background: var(--ink); color: #E8E8EA; border-radius: var(--radius-xl); padding: 32px; position: relative; overflow: hidden; isolation: isolate; }
.case-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 50% 40% at 80% 20%, rgba(241, 90, 41, 0.25), transparent 60%), radial-gradient(ellipse 60% 50% at 20% 90%, rgba(41, 171, 226, 0.18), transparent 60%); }
.case-head { display: flex; justify-content: space-between; margin-bottom: 28px; }
.case-flag { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pymit-orange); display: inline-flex; align-items: center; gap: 6px; }
.case-flag::before { content: ''; width: 6px; height: 6px; background: var(--pymit-orange); border-radius: 50%; }
.case-meta { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: rgba(255,255,255,.55); padding: 3px 8px; border: 1px solid rgba(255,255,255,.15); border-radius: 4px; }
.case-title { font-family: var(--font-display); font-weight: 800; font-size: 44px; letter-spacing: -0.025em; margin: 0; color: white; }
.case-sub { color: rgba(255,255,255,.75); font-size: 15px; margin: 10px 0 28px; max-width: 380px; }
.case-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); padding: 20px 0; margin-bottom: 24px; }
.case-num { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: white; display: block; letter-spacing: -0.01em; }
.case-lab { font-size: 11px; color: rgba(255,255,255,.55); margin-top: 4px; display: block; }
.case-body { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.8); margin-bottom: 24px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case-tags span { font-size: 11px; padding: 4px 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: rgba(255,255,255,.7); }

/* ---------------------------------------------------------
   PRODUCTOS
--------------------------------------------------------- */
.products { background: var(--bg-subtle); }
.products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.product-card { background: var(--bg-elev); border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.product-visual { height: 220px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card.sinergias .product-visual { background: radial-gradient(circle at 30% 30%, rgba(241, 90, 41, 0.18), transparent 55%), linear-gradient(135deg, #FFF3E6 0%, #FFE2C3 100%); }
.product-card.pymitia .product-visual { background: radial-gradient(circle at 70% 50%, rgba(0, 180, 216, 0.25), transparent 55%), linear-gradient(135deg, #0A2B36 0%, #0E4558 100%); }
.s365-logo { position: relative; font-family: var(--font-display); font-weight: 900; z-index: 2; }
.s365-s { font-size: 88px; color: var(--pymit-orange-deep); letter-spacing: -0.04em; }
.s365-365 { font-size: 28px; color: var(--pymit-gray); position: absolute; right: -34px; top: 6px; }
.s365-ring { position: absolute; inset: -20px -70px -20px -20px; border-radius: 50%; border: 2px solid rgba(241, 90, 41, 0.3); border-top-color: var(--pymit-orange); animation: spin 18s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.s365-apps { position: absolute; inset: 0; display: flex; flex-wrap: wrap; gap: 6px; padding: 18px; align-content: space-between; pointer-events: none; }
.app-chip { font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.75); backdrop-filter: blur(6px); color: var(--ink-soft); letter-spacing: 0.02em; }
.app-chip.app-copilot { background: var(--pymit-orange); color: white; }
.synapse-svg { width: 100%; height: 100%; }
.product-body { padding: 28px 32px 32px; }
.product-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 12px; }
.product-body h3 { font-family: var(--font-display); font-weight: 800; font-size: 36px; letter-spacing: -0.03em; margin: 0 0 12px; line-height: 1; }
.product-body p { color: var(--ink-soft); font-size: 15px; margin: 0 0 20px; line-height: 1.6; }
.product-body em { font-style: normal; color: var(--ink); font-weight: 600; }
.product-feats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.product-feats span { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--bg-subtle); color: var(--ink-soft); }
.product-link { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--pymit-orange); display: inline-flex; align-items: center; gap: 6px; }
.product-link-teal { color: var(--pymit-teal); }

/* ---------------------------------------------------------
   AI MANIFESTO + PYMITIA COMPANION
--------------------------------------------------------- */
.ai-manifesto {
  background: #0A2B36;
  color: white;
  padding: 140px 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.ai-manifesto::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0, 180, 216, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 90%, rgba(41, 171, 226, 0.15), transparent 60%);
}
.ai-manifesto::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(0,180,216,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,180,216,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}
.ai-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 80px; align-items: center; }
.ai-copy { max-width: 640px; }
.ai-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  color: rgba(255,255,255,.7);
  margin-bottom: 28px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
}
.ai-title { font-size: clamp(36px, 4.5vw, 64px); letter-spacing: -0.035em; margin: 0 0 28px; }
.ai-accent { background: linear-gradient(120deg, #00B4D8, #6EE4FF); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.ai-sub { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.75); max-width: 560px; margin: 0 0 44px; }
.ai-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
.ai-pillar { padding: 22px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); }
.ai-pill-num { font-family: var(--font-display); font-weight: 700; font-size: 12px; color: var(--pymit-teal); letter-spacing: 0.1em; }
.ai-pillar h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; margin: 8px 0 8px; color: white; }
.ai-pillar p { font-size: 13.5px; color: rgba(255,255,255,.7); margin: 0; line-height: 1.5; }

/* pymITIA companion */
.ai-companion { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.companion-frame {
  position: relative;
  width: 100%; max-width: 420px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 90%, rgba(0,180,216,.35), transparent 70%), linear-gradient(180deg, #13394A 0%, #0A2B36 100%);
  border: 1px solid rgba(0,180,216,.25);
  box-shadow: 0 40px 100px -30px rgba(0,180,216,.4), inset 0 1px 0 rgba(255,255,255,.08);
  isolation: isolate;
}
.companion-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(rgba(0,180,216,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(0,180,216,.12) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 90%);
}
.companion-img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 30px 40px rgba(0,0,0,.4)); }
.companion-orbit { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; border-radius: inherit; }
.orbit-tag {
  position: absolute;
  font-family: var(--font-display); font-weight: 600;
  font-size: 11px; letter-spacing: 0.06em;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(10,43,54,.85); color: var(--pymit-teal);
  border: 1px solid rgba(0,180,216,.35);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.orbit-1 { top: 10%; left: 8px; animation-delay: 0s; }
.orbit-2 { top: 28%; right: 8px; animation-delay: 1.5s; }
.orbit-3 { bottom: 38%; left: 8px; animation-delay: 3s; }
.orbit-4 { bottom: 18%; right: 8px; animation-delay: 4.5s; color: white; background: rgba(0,180,216,.25); border-color: rgba(0,180,216,.55); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.companion-status {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 4;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  background: rgba(10,43,54,.92); color: rgba(255,255,255,.9);
  border: 1px solid rgba(0,180,216,.35); backdrop-filter: blur(10px);
}
.pulse-teal { width: 7px; height: 7px; border-radius: 50%; background: var(--pymit-teal); animation: pulseTeal 2s infinite; }
@keyframes pulseTeal { 0% { box-shadow: 0 0 0 0 rgba(0,180,216,.7); } 70% { box-shadow: 0 0 0 8px rgba(0,180,216,0); } 100% { box-shadow: 0 0 0 0 rgba(0,180,216,0); } }
.companion-meta { text-align: center; max-width: 360px; }
.companion-label { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--pymit-teal); margin-bottom: 8px; }
.companion-name { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.025em; color: white; margin-bottom: 12px; }
.teal-accent { color: var(--pymit-teal); font-style: italic; }
.companion-bio { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.7); margin-bottom: 20px; }
.companion-cta { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--pymit-teal); letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.companion-cta:hover { border-bottom-color: var(--pymit-teal); }

/* ---------------------------------------------------------
   PARTNERS
--------------------------------------------------------- */
.partners { background: var(--bg); }
.partners-head { text-align: center; margin-bottom: 40px; }
.partners-head .eyebrow { justify-content: center; display: inline-flex; align-items: center; }
.partners-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 28px; margin: 8px 0 0; letter-spacing: -0.02em; }
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.partner-badge { padding: 22px 20px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-md); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; transition: all .2s var(--ease); }
.partner-badge:hover { border-color: var(--pymit-blue); transform: translateY(-2px); }
.pb-name { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); }
.pb-role { font-size: 12px; color: var(--ink-mute); }

/* ---------------------------------------------------------
   TEAM
--------------------------------------------------------- */
.team { background: var(--bg-subtle); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.member { background: var(--bg-elev); border-radius: var(--radius-lg); padding: 28px 24px; border: 1px solid var(--line); }
.member-avatar { width: 72px; height: 72px; border-radius: 50%; font-family: var(--font-display); font-weight: 800; font-size: 22px; color: white; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.avatar-julian { background: linear-gradient(135deg, #29ABE2, #1B7BA8); }
.avatar-petri { background: linear-gradient(135deg, #F15A29, #C1421B); }
.avatar-orlando { background: linear-gradient(135deg, #8E44AD, #5B37A0); }
.avatar-network { background: linear-gradient(135deg, #15171A, #3B3E44); position: relative; overflow: hidden; }
.avatar-network .net-dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--pymit-blue); }
.avatar-network .net-dot:nth-child(1) { top: 18px; left: 22px; }
.avatar-network .net-dot:nth-child(2) { top: 24px; right: 20px; background: var(--pymit-teal); }
.avatar-network .net-dot:nth-child(3) { bottom: 22px; left: 20px; background: var(--pymit-orange); }
.avatar-network .net-dot:nth-child(4) { bottom: 18px; right: 24px; background: white; }
.avatar-network .net-dot:nth-child(5) { top: 50%; left: 50%; transform: translate(-50%,-50%); background: white; }
.member h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.015em; margin: 0 0 4px; }
.member-role { font-size: 13px; font-weight: 600; color: var(--primary); margin: 0 0 14px; }
.member-bio { font-size: 14px; color: var(--ink-soft); margin: 0 0 12px; line-height: 1.55; }
.member-link { font-size: 13px; font-weight: 600; color: var(--pymit-blue); }
.member-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------
   FAQ
--------------------------------------------------------- */
.faq-inner { max-width: 880px; margin: 0 auto; }
.faq-head { text-align: center; margin-bottom: 48px; }
.faq-head .display { font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.035em; }
.faq-head .eyebrow { justify-content: center; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.faq-item[open] { border-color: var(--line-strong); box-shadow: 0 6px 24px -12px rgba(0,0,0,.08); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.015em; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-plus::before, .faq-plus::after { content: ''; position: absolute; background: var(--pymit-blue); border-radius: 1px; transition: transform .25s var(--ease); }
.faq-plus::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-1px); }
.faq-plus::after { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-1px); }
.faq-item[open] .faq-plus::after { transform: translateX(-1px) rotate(90deg); opacity: 0; }
.faq-body { padding: 0 24px 22px; font-size: 15px; line-height: 1.65; color: var(--ink-soft); max-width: 720px; }

/* ---------------------------------------------------------
   CTA / CONTACTO
--------------------------------------------------------- */
.cta { background: var(--ink); color: white; padding: 120px 0; position: relative; overflow: hidden; isolation: isolate; }
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 50% 40% at 80% 20%, rgba(241,90,41,.2), transparent 60%), radial-gradient(ellipse 60% 50% at 15% 80%, rgba(41,171,226,.18), transparent 60%); }
.cta-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
.cta-title { font-size: clamp(36px, 4.5vw, 62px); letter-spacing: -0.03em; margin: 20px 0 20px; color: white; }
.cta-sub { color: rgba(255,255,255,.72); font-size: 17px; max-width: 520px; margin: 0; line-height: 1.6; }
.cta .eyebrow { color: rgba(255,255,255,.5); }
.cta .eyebrow .dot { background: var(--pymit-orange); }
.cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-actions .btn-accent { background: var(--pymit-orange); color: white; box-shadow: 0 20px 40px -14px rgba(241,90,41,.6); }
.cta-actions .btn-accent:hover { background: var(--pymit-orange-deep); }
.cta-actions .btn-ghost { color: white; border-color: rgba(255,255,255,.2); }
.cta-actions .btn-ghost:hover { background: white; color: var(--ink); }
.cta-foot { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); width: 100%; font-size: 14px; }
.cta-foot .text-mute { color: rgba(255,255,255,.5); }

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */
.footer { background: var(--bg); padding: 80px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 3fr; gap: 80px; padding-bottom: 60px; }
.footer-brand img { height: 120px; width: auto; margin-bottom: 16px; }
.footer-tag { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--pymit-orange); margin: 0; }
.footer-mini { font-size: 14px; color: var(--ink-mute); margin: 16px 0 0; max-width: 260px; line-height: 1.5; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-cols h5 { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 20px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 10px; }
.footer-cols a { font-size: 14px; color: var(--ink-soft); transition: color .2s var(--ease); }
.footer-cols a:hover { color: var(--primary); }
.footer-legal { border-top: 1px solid var(--line); padding: 24px 0; }
.footer-legal-inner { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--ink-mute); flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--ink); }

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 1080px) {
  .ai-layout { grid-template-columns: 1fr; gap: 60px; }
  .ai-copy { max-width: none; }
  .ai-companion { order: -1; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; gap: 40px; }
  .hero-side { max-width: 460px; }
  .consulting-grid { grid-template-columns: 1fr; gap: 40px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .nav-menu { display: none; }
  .section-pad { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .ai-manifesto { padding: 80px 0; }
  .ai-pillars { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .orbit-1, .orbit-2, .orbit-3, .orbit-4 { font-size: 10px; padding: 4px 8px; }
}
@media (max-width: 680px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .case-stats { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* =========================================================
   Móvil: menú hamburguesa + saneamiento de desbordes
   ========================================================= */
html, body { overflow-x: clip; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 11px 10px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
  }
  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav.nav-open .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg, #fff);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 48px -20px rgba(0,0,0,.22);
    padding: 10px 20px 16px;
    gap: 2px;
  }
  .nav.nav-open .nav-menu a {
    display: block;
    padding: 13px 12px;
    font-size: 16px;
    border-radius: 10px;
  }
}

@media (max-width: 680px) {
  .case-title { font-size: clamp(28px, 9.5vw, 40px); overflow-wrap: anywhere; }
  .product-card h3, .products-grid h3 { overflow-wrap: anywhere; }
  .hero-copy, .hero-side, .stat-card, .partner-badge { max-width: 100%; }
  .nav-cta { padding: 9px 13px; font-size: 13px; }
}

/* =========================================================
   Móvil v2: corregir la CAUSA de los desbordes
   (tracks 1fr = minmax(auto,1fr): el min-content de la
   stat-card inflaba la columna más allá del contenedor)
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid > *,
  .stat-grid > *,
  .partners-grid > * { min-width: 0; }
  .stat-card, .partner-badge { max-width: 100%; box-sizing: border-box; }
  .stat-num { font-size: clamp(20px, 6.5vw, 28px); overflow-wrap: anywhere; }
  .stat-card, .stat-grid { overflow-wrap: anywhere; }
}
@media (max-width: 680px) {
  .display-name, .contact-line, .text-mute { overflow-wrap: anywhere; }
  .marquee-track { will-change: transform; }
}
