/* ============ VARIABLES ============ */
:root {
  /* Brand palette — Brandbook 4 */
  --violet: #5C4FC5;
  --violet-light: #A29AFD;
  --ink: #1C1E2D;
  --lavender: #EAEAF9;
  --lavender-mid: #ddddf5;   /* un paso más oscuro que lavender para cards */
  --white: #FFFFFF;
  --muted: #6E6E73;

  /* Surface hierarchy (awesome design skill adaptado a Lexo) */
  --surface-base: #FFFFFF;              /* piso de página */
  --surface-card: var(--lavender);      /* tarjetas de contenido */
  --surface-card-mid: var(--lavender-mid); /* tarjetas destacadas */
  --surface-dark: var(--ink);           /* secciones oscuras (stats, proceso, footer) */

  /* Borders */
  --line: rgba(92, 79, 197, .1);
  --hairline: rgba(92, 79, 197, .15);

  /* Fonts — Brandbook 4 */
  --font-display: 'Clash Display', 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;

  /* Border-radius — jerarquía consistente */
  --radius-btn: 980px;     /* botones: pill (identidad Lexo) */
  --radius-sm: 8px;        /* inputs, badges */
  --radius-md: 12px;       /* cards pequeñas */
  --radius-lg: 16px;       /* cards grandes, hero containers */
  --radius-xl: 24px;       /* secciones con borde prominente */

  /* Shadows */
  --shadow-violet: 0 20px 40px -20px rgba(92, 79, 197, .3);
  --shadow-card: 0 1px 3px rgba(28, 30, 45, .06), 0 4px 12px rgba(28, 30, 45, .04);

  --ease: cubic-bezier(.4, 0, .2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 15px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad {
  padding: 150px 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--violet), var(--violet-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 18px;
  display: inline-block;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
  position: relative;
}

.section-head::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--violet-light));
  border-radius: 2px;
  margin: 20px auto 0;
}

.section-head h2 {
  font-size: clamp(32px, 5vw, 56px);
  color: var(--ink);
  margin-bottom: 18px;
}

.section-head p {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.55;
}

.edition-idx {
  display: none;
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-list .reveal:nth-child(1) { transition-delay: 0s; }
.service-list .reveal:nth-child(2) { transition-delay: .04s; }
.service-list .reveal:nth-child(3) { transition-delay: .08s; }
.service-list .reveal:nth-child(4) { transition-delay: .12s; }
.service-list .reveal:nth-child(5) { transition-delay: .16s; }
.service-list .reveal:nth-child(6) { transition-delay: .2s; }
.service-list .reveal:nth-child(7) { transition-delay: .24s; }
.service-list .reveal:nth-child(8) { transition-delay: .28s; }

.products-grid .reveal:nth-child(2) { transition-delay: .08s; }
.diff-grid .reveal:nth-child(2) { transition-delay: .08s; }
.diff-grid .reveal:nth-child(3) { transition-delay: .16s; }
.stats-grid .reveal:nth-child(2) { transition-delay: .06s; }
.stats-grid .reveal:nth-child(3) { transition-delay: .12s; }
.stats-grid .reveal:nth-child(4) { transition-delay: .18s; }
.hub-grid .reveal:nth-child(2) { transition-delay: .06s; }
.hub-grid .reveal:nth-child(3) { transition-delay: .12s; }
.hub-grid .reveal:nth-child(4) { transition-delay: .18s; }

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

/* ---------- accessibility ---------- */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 10001;
  background: var(--ink);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- back link (subpages) ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 28px;
  transition: color .2s ease;
}

.back-link:hover { color: var(--white); }

.back-link svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
}

/* ---------- preloader ---------- */
body.pl-lock {
  overflow: hidden;
  height: 100vh;
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}

#preloader.pl-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pl-cube {
  width: 44px;
  height: 44px;
  animation: plPulse 1.1s ease-in-out infinite;
}

@keyframes plPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.85); opacity: .7; }
}

@media (prefers-reduced-motion: reduce) {
  #preloader { transition: none; }
  .pl-cube { animation: none; }
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 15px 0;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, padding .3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, .86);
  border-bottom-color: var(--line);
  padding: 11px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.logo-full {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: left center;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text .lx-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.logo-text .lx-sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: var(--violet);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  position: relative;
  padding-bottom: 3px;
  transition: color .2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--violet);
  transition: right .25s var(--ease);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

.nav-links a.active {
  color: var(--violet);
  font-weight: 500;
}

.nav-links a.active::after { right: 0; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 12px 24px;
  min-height: 44px;
  border-radius: var(--radius-btn);
  transition: background .2s ease, color .2s ease, border-color .2s ease,
              box-shadow .2s ease, transform .2s var(--ease);
  white-space: nowrap;
  letter-spacing: 0;
}

.btn:hover { transform: translateY(-1px) scale(1.02); }
.btn:active { transform: translateY(0) scale(.98); }

.btn-violet {
  background: linear-gradient(135deg, var(--violet) 0%, #7066d8 100%);
  color: var(--white);
  box-shadow: 0 8px 24px -10px rgba(92, 79, 197, .5);
}

.btn-violet:hover {
  background: linear-gradient(135deg, #4a3eb5 0%, var(--violet) 100%);
  box-shadow: 0 12px 30px -8px rgba(92, 79, 197, .7);
}

.btn-white {
  background: var(--white);
  color: var(--ink);
}

.btn-white:hover { opacity: .82; }

.btn-outline-white {
  border: 1px solid rgba(255, 255, 255, .4);
  color: var(--white);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .7);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 12.5px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 22px;
  height: 16px;
  position: relative;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 0 90px;
  background: var(--ink);
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

.hero-glow-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 1100px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 50% at 50% 30%, rgba(162, 154, 253, .3), transparent 65%);
  animation: heroGlow 9s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { opacity: .8; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow { animation: none; }
}

.hero-bg-word {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(180px, 32vw, 460px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, .035);
  white-space: nowrap;
  user-select: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, .62);
  margin-bottom: 26px;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-light);
}

.hero h1 {
  font-size: clamp(38px, 6.4vw, 84px);
  color: var(--white);
  margin-bottom: 26px;
  letter-spacing: -0.03em;
}

.hero p.sub {
  font-size: clamp(17px, 2vw, 21px);
  color: rgba(255, 255, 255, .68);
  line-height: 1.55;
  max-width: 46ch;
  margin: 0 auto 44px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 76px;
}

.hero-stat-row {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.hero-stat-row .stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.hero-stat-row .num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  color: var(--violet-light);
}

.hero-stat-row .label {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .55);
}

/* ============ LOGOS CLIENTES ============ */
.logos-section {
  background: var(--lavender);
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.logos-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}

.logos-marquee {
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: logosScroll 26s linear infinite;
}

.logos-section:hover .logos-track { animation-play-state: paused; }

@keyframes logosScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  width: 190px;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid rgba(162,154,253,.25);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px -16px rgba(28, 30, 45, .15);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}

.logo-slot:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-violet);
  border-color: rgba(92, 79, 197, .3);
}

.logo-slot img {
  max-height: 38px;
  max-width: 70%;
  width: auto;
  filter: saturate(1.15);
  transition: transform .3s ease;
}

.logo-slot:hover img { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  .logos-track { animation: none; }
}

@media (max-width: 560px) {
  .logo-slot { width: 150px; height: 70px; }
  .logo-slot img { max-height: 30px; }
}

/* ============ HOME HUB GRID ============ */
.hub-section {
  background: var(--lavender);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(210px, auto);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hub-tile {
  background: var(--surface-card);
  padding: 36px 28px;
  transition: background .25s ease, transform .25s var(--ease), box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 0;
  border-top: 2px solid transparent;
}

.hub-tile:not(.is-featured):hover {
  background: var(--surface-card-mid);
  border-top-color: var(--violet-light);
  box-shadow: var(--shadow-card);
}

.hub-tile.is-featured {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--ink);
  color: var(--white);
  justify-content: flex-end;
}

.hub-tile.is-featured:hover { background: var(--ink); }

.hub-tile.is-featured .hub-tile-icon {
  width: 52px;
  height: 52px;
  color: var(--violet-light);
  margin-bottom: 28px;
}

.hub-tile.is-featured .hub-tile-icon svg {
  width: 30px;
  height: 30px;
}

.hub-tile.is-featured h3 {
  font-size: 26px;
  color: var(--white);
}

.hub-tile.is-featured p {
  font-size: 15px;
  color: rgba(255, 255, 255, .62);
  max-width: 32ch;
}

.hub-tile.is-featured .go { color: var(--violet-light); }

.hub-tile.is-featured.hub-tile-photo {
  background-image: linear-gradient(180deg, rgba(20, 18, 35, .35) 0%, rgba(15, 14, 26, .92) 78%), url('../clientes/oficina.jpg');
  background-size: cover;
  background-position: center;
}

.hub-tile.is-featured.hub-tile-photo:hover {
  background-image: linear-gradient(180deg, rgba(20, 18, 35, .25) 0%, rgba(15, 14, 26, .9) 78%), url('../clientes/oficina.jpg');
}

.hub-tile:hover {
  background: var(--lavender);
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-violet);
  z-index: 1;
}

.hub-tile:hover .hub-tile-icon {
  color: var(--violet);
  background: linear-gradient(135deg, rgba(162,154,253,.32), rgba(92,79,197,.18));
  transform: scale(1.12) rotate(-4deg);
}

.hub-tile-icon {
  width: 40px;
  height: 40px;
  color: var(--violet);
  background: linear-gradient(135deg, rgba(162,154,253,.18), rgba(92,79,197,.08));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: transform .3s var(--ease), color .3s ease;
}

.hub-tile-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.4;
}

.hub-tile .n { display: none; }

.hub-tile h3 {
  font-size: 19px;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
}

.hub-tile p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 26px;
}

.hub-tile .go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--violet);
}

.hub-tile .go svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  transition: transform .2s ease;
}

.hub-tile:hover .go svg { transform: translate(3px, -3px); }

@media (max-width: 980px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-tile.is-featured { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 560px) {
  .hub-grid { grid-template-columns: 1fr; }
  .hub-tile.is-featured { grid-column: span 1; }
}

/* ============ SERVICIOS ============ */
.services { background: var(--lavender); }

.services-layout {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.services-intro {
  position: sticky;
  top: 130px;
}

.services-intro-photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 28px;
}

.services-intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-intro h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  color: var(--ink);
  margin-bottom: 18px;
}

.services-intro p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 38ch;
  margin-bottom: 36px;
}

.services-count {
  display: flex;
  gap: 30px;
}

.services-count div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.services-count .n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
}

.services-count .l {
  font-size: 12px;
  color: var(--muted);
}

.service-list {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  grid-template-columns: 44px 1fr auto 24px;
  gap: 22px;
  align-items: center;
  padding: 30px 20px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background .25s var(--ease), padding-left .25s var(--ease);
}

.service-list .service-row:first-child { border-top: 1px solid var(--line); }

.service-row:hover {
  background: var(--lavender);
  padding-left: 26px;
}

.service-row:hover .service-row-arrow { color: var(--violet); }

.service-row-icon {
  width: 40px;
  height: 40px;
  color: var(--violet);
  background: linear-gradient(135deg, rgba(162,154,253,.15), rgba(92,79,197,.06));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s var(--ease);
}

.service-row:hover .service-row-icon {
  transform: scale(1.12);
  background: linear-gradient(135deg, rgba(162,154,253,.28), rgba(92,79,197,.14));
}

.service-row-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.4;
}

.service-row-body h3 {
  font-size: 17px;
  text-transform: none;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 5px;
}

.service-row-body p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 48ch;
}

.service-row-badge {
  font-size: 12.5px;
  font-weight: 400;
  white-space: nowrap;
  color: var(--muted);
  justify-self: end;
}

.service-row-arrow {
  width: 22px;
  height: 22px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-6px, 0);
  transition: opacity .25s var(--ease), transform .25s var(--ease), color .25s ease;
}

.card-cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--violet);
  letter-spacing: .02em;
  transition: color .2s var(--ease), gap .2s;
}

.service-row.is-featured .card-cta { color: rgba(255,255,255,.85); }
.service-row:hover .card-cta { color: var(--violet-light); }
.service-row.is-featured:hover .card-cta { color: #fff; }

.service-row-arrow svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.service-row:hover .service-row-arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--ink);
}

.service-row.is-featured {
  background: linear-gradient(135deg, var(--violet), var(--violet-light));
  border-radius: var(--radius-md);
  border: none;
  margin-bottom: 10px;
  padding: 32px 26px;
}

.service-row.is-featured .service-row-body h3 { color: var(--white); }
.service-row.is-featured .service-row-body p { color: rgba(255, 255, 255, .6); }
.service-row.is-featured .service-row-icon { color: var(--white); }
.service-row.is-featured .service-row-badge { color: rgba(255, 255, 255, .6); }
.service-row.is-featured .service-row-arrow { color: rgba(255, 255, 255, .6); }

.service-row.is-featured:hover {
  background: var(--ink);
  padding-left: 26px;
}

.service-row.is-featured:hover .service-row-arrow { color: var(--white); }

/* ============ PRODUCTOS SAAS ============ */
.products {
  background: var(--lavender);
  color: var(--ink);
}

.products .section-head h2 { color: var(--ink); }
.products .section-head p { color: var(--muted); }

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.product-card {
  background: var(--surface-card);
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s ease, background .2s ease;
  position: relative;
  z-index: 0;
  border-top: 3px solid var(--violet-light);
}

.product-card:hover {
  background: var(--surface-card-mid);
  transform: translateY(-4px);
  box-shadow: var(--shadow-violet);
  z-index: 1;
}

.product-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(92,79,197,.1);
  border-radius: 9999px;
  padding: 4px 12px;
  margin-bottom: 22px;
}

.product-card h3 {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--ink);
}

.product-card > p.desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 28px;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 32px;
}

.product-features span {
  font-size: 13px;
  color: var(--muted);
  position: relative;
  padding-left: 14px;
}

.product-features span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--violet);
}

.product-plans {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  margin-bottom: 32px;
}

.product-plans div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.product-plans .plan-name {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.product-plans .plan-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--violet);
}

.product-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ============ DIFERENCIADORES ============ */

.diff-row {
  display: grid;
  grid-template-columns: 72px 1fr 2fr;
  gap: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.diff-row {
  display: grid;
  grid-template-columns: 72px 1fr 2fr;
  gap: 32px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s var(--ease);
}

.diff-row:hover {
  padding-left: 10px;
  background: var(--lavender);
  border-radius: var(--radius-sm);
  margin: 0 -16px;
  padding-left: 26px;
  padding-right: 16px;
}

.diff-row:hover .diff-icon {
  transform: scale(1.12);
  color: var(--violet);
  background: linear-gradient(135deg, rgba(162,154,253,.30), rgba(92,79,197,.15));
}

.diff-row:last-child { border-bottom: none; }

.diff-icon {
  width: 52px;
  height: 52px;
  color: var(--violet);
  background: linear-gradient(135deg, rgba(162,154,253,.16), rgba(92,79,197,.07));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s var(--ease), color .3s ease;
}

.diff-icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  stroke-width: 1.3;
}

.diff-row h3 {
  font-size: 22px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.diff-row p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 56ch;
}

/* ============ STATS ============ */
.stats {
  background: linear-gradient(135deg, var(--ink) 0%, #2b2450 45%, var(--violet) 80%, rgba(162,154,253,.6) 130%);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item .num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 48px);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  color: var(--violet-light);
}

.stat-item .label {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .55);
}

.stat-quote {
  border-left: 2px solid var(--violet-light);
  padding-left: 16px;
  display: flex;
  align-items: center;
}

.stat-quote p {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, .75);
  line-height: 1.5;
  font-style: italic;
}

/* ============ CONTACTO ============ */
.contact { background: var(--lavender); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--violet-light);
  border-radius: var(--radius-md);
  padding: 44px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 16px;
  min-height: 44px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--violet-light);
  box-shadow: 0 0 0 3px rgba(162,154,253,.18);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #E0475A;
}

.form-error-msg {
  font-size: 12px;
  color: #E0475A;
  display: none;
}

.form-group.error .form-error-msg { display: block; }

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.form-success {
  display: none;
  background: var(--lavender);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  margin-top: 16px;
}

.form-success.show { display: block; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.contact-info-card {
  background: var(--surface-card);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-left: 3px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}

.contact-info-card:hover {
  background: var(--surface-card-mid);
  border-left-color: var(--violet-light);
}

.contact-info-card:hover .contact-info-icon {
  color: var(--violet);
  transform: scale(1.1);
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s var(--ease), color .3s ease;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.4;
}

.contact-info-card h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--ink);
}

.contact-info-card p,
.contact-info-card a {
  font-size: 14px;
  color: var(--muted);
}

.contact-info-card a:hover { color: var(--ink); }

/* ============ BOTONES FLOTANTES ============ */
.float-btns {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  pointer-events: auto;
}

.wa-float,
.ig-float {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s var(--ease), box-shadow .25s ease;
}

.wa-float {
  box-shadow: 0 8px 24px -6px rgba(37,211,102,.55);
}

.wa-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 14px 30px -6px rgba(37,211,102,.65);
}

.ig-float {
  box-shadow: 0 8px 24px -6px rgba(197,42,139,.45);
}

.ig-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 14px 30px -6px rgba(197,42,139,.6);
}

.wa-float img,
.ig-float img {
  width: 52px;
  height: 52px;
  display: block;
  border-radius: 50%;
}

/* ============ FOOTER SOCIAL ============ */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(28,30,45,.14);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease);
}

.footer-social a:hover {
  transform: translateY(-3px);
  color: var(--white);
  border-color: transparent;
}

.footer-social a.wa:hover  { background: #25D366; }
.footer-social a.ig:hover  { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.footer-social a.li:hover  { background: #0A66C2; }

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-social a.li svg {
  stroke: currentColor;
  fill: none;
}

.footer-social a.wa svg,
.footer-social a.ig svg {
  stroke: none;
  fill: currentColor;
}

/* ============ FOOTER ============ */
footer {
  background: var(--lavender);
  color: var(--ink);
  padding: 88px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}

.footer-brand .logo-text .lx-name { color: var(--ink); }

.footer-brand p.tagline {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--muted);
  margin: 18px 0 14px;
  font-size: 14px;
}

.footer-brand p.desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 30ch;
}

.footer-col h5 {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-col a {
  font-size: 13.5px;
  color: var(--ink);
}

.footer-col a:hover { color: var(--violet); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* ============ PAGE HERO (subpages) ============ */
.page-hero {
  position: relative;
  padding: 168px 0 84px;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  text-align: center;
  border-bottom: 3px solid var(--lavender);
}

.page-hero .container {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.page-hero .eyebrow { color: rgba(255, 255, 255, .6); }

.page-hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.page-hero p.lead {
  font-size: 18px;
  color: rgba(255, 255, 255, .66);
  max-width: 54ch;
  line-height: 1.55;
  margin: 0 auto;
}

/* ============ TILT 3D (hover) ============ */
.tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ============ FOTOS DISTRIBUIDAS ============ */
.hero-proof {
  position: absolute;
  right: 6%;
  bottom: 14%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(14px);
  border-radius: 980px;
  padding: 8px 18px 8px 8px;
}

.hero-proof .stk { display: flex; }

.hero-proof .stk img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ink);
  margin-left: -10px;
}

.hero-proof .stk img:first-child { margin-left: 0; }

.hero-proof span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .75);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .hero-proof { display: none; }
}

.stats-photo-split {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.stats-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  transform: rotate(-1.5deg);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .5);
}

.stats-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats .stats-grid {
  grid-template-columns: repeat(2, 1fr);
  text-align: left;
  gap: 36px;
}

.stats .stat-item .num { text-align: left; }

@media (max-width: 860px) {
  .stats-photo-split { grid-template-columns: 1fr; gap: 32px; }
  .stats-photo { max-width: 320px; margin: 0 auto; }
}

.cta-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .5);
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  transform: rotate(-6deg);
}

.cta-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============ MINI CTA ============ */
.mini-cta {
  background: linear-gradient(135deg, var(--violet) 0%, #4a3eb5 60%, #3a2f9e 100%);
  color: var(--white);
  padding: 110px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mini-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(162,154,253,.22), transparent 70%);
  pointer-events: none;
}

.mini-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.mini-cta h2 {
  font-size: clamp(28px, 4.4vw, 46px);
  max-width: 18ch;
  letter-spacing: -0.02em;
  color: var(--white);
}

.mini-cta p {
  color: rgba(255,255,255,.75);
  font-size: 17px;
  max-width: 50ch;
}

.mini-cta .eyebrow {
  background: linear-gradient(90deg, var(--violet-light), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mini-cta .btn-white {
  background: rgba(255,255,255,.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
}

.mini-cta .btn-white:hover {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.6);
}

/* ============ RESPONSIVE ============ */

/* Tablet */
@media (max-width: 980px) {
  .services-layout { grid-template-columns: 1fr; gap: 32px; }
  .services-intro { position: static; }
  .service-row { grid-template-columns: 40px 1fr auto; }
  .service-row-arrow { display: none; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .diff-row { grid-template-columns: 56px 1fr; }
  .diff-row p { grid-column: 2 / 3; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-form { padding: 32px 28px; }
  .section-head { margin-bottom: 52px; }
}

/* Mobile grande */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-right .btn-sm.desktop-only { display: none; }

  .section-pad { padding: 80px 0; }

  /* Hero */
  .hero { padding-top: 120px; min-height: auto; padding-bottom: 60px; }
  .hero h1 { font-size: clamp(32px, 9vw, 52px); }
  .hero-sub { font-size: 16px; max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: center; gap: 12px; margin-bottom: 44px; }
  .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
  .hero-stat-row { gap: 24px; padding-top: 28px; }
  .hero-stat-row .num { font-size: 22px; }

  /* Page hero */
  .page-hero { padding: 120px 0 48px; }
  .page-hero h1 { font-size: clamp(28px, 7vw, 44px); }

  /* Servicios */
  .service-row { grid-template-columns: 36px 1fr; row-gap: 10px; padding: 20px 16px; }
  .service-row-badge { grid-column: 2; justify-self: start; }

  /* Productos */
  .products-grid { grid-template-columns: 1fr; }

  /* Contacto */
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .contact-info-card { padding: 20px; }

  /* Diferenciadores */
  .diff-row { grid-template-columns: 48px 1fr; gap: 20px; padding: 22px 0; }
  .diff-row h3 { font-size: 18px; }
  .diff-row p { grid-column: 1 / -1; margin-top: -8px; }
  .diff-icon { width: 44px; height: 44px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  /* Mini CTA */
  .mini-cta { padding: 80px 0; }

  /* Hub */
  .hub-section .section-head { margin-bottom: 40px; }
}

/* Mobile pequeño */
@media (max-width: 480px) {
  .section-pad { padding: 64px 0; }
  .hero { padding-top: 110px; }
  .hero h1 { font-size: clamp(28px, 10vw, 40px); }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stat-item .num { font-size: clamp(26px, 8vw, 38px); }

  .products-grid { grid-template-columns: 1fr; }
  .product-card { padding: 28px 20px; }

  .diff-row { grid-template-columns: 1fr; gap: 12px; }
  .diff-row p { grid-column: 1 / -1; }
  .diff-icon { margin-bottom: 4px; }

  .contact-form { padding: 24px 16px; }
  .contact-grid { gap: 24px; }

  .footer-top { gap: 28px; }
  .footer-nav h4 { font-size: 12px; margin-bottom: 14px; }

  .mini-cta { padding: 64px 0; }
  .mini-cta h2 { font-size: clamp(22px, 7vw, 32px); }
}

/* mobile nav panel */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--lavender);
  display: flex;
  flex-direction: column;
  padding: 100px 32px 40px;
  gap: 26px;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav a {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}

.mobile-nav a.active { color: var(--violet); }

.mobile-nav .btn {
  margin-top: 12px;
  align-self: flex-start;
}

body.nav-open { overflow: hidden; }

/* ============ PROCESO (5 pasos brandbook) ============ */
.proceso {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.proceso::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 50%, rgba(162,154,253,.08), transparent 65%);
  pointer-events: none;
}

.proceso-grid {
  display: grid;
  grid-template-columns: .45fr 1fr;
  gap: 80px;
  align-items: center;
}

.proceso-intro .eyebrow { color: var(--violet-light); }

.proceso-intro h2 {
  font-size: clamp(28px, 3.8vw, 46px);
  color: var(--white);
  margin-bottom: 20px;
}

.proceso-intro p {
  font-size: 16px;
  color: rgba(255,255,255,.62);
  line-height: 1.65;
  max-width: 38ch;
}

.proceso-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 1px;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.paso {
  background: rgba(255,255,255,.03);
  padding: 32px 28px;
  position: relative;
  transition: background .3s var(--ease);
  cursor: default;
}

.paso:hover { background: rgba(92,79,197,.12); }

.paso:hover .paso-num { color: var(--violet-light); }

.paso:last-child {
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}

.paso-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  background: linear-gradient(90deg, var(--violet), var(--violet-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: .14em;
  color: rgba(255,255,255,.28);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
  transition: color .3s ease;
}

.paso-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(92,79,197,.2);
  border: 1px solid rgba(92,79,197,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet-light);
  flex-shrink: 0;
  transition: background .3s ease, border-color .3s ease;
}

.paso:hover .paso-icon { background: rgba(92,79,197,.35); border-color: rgba(162,154,253,.5); }

.paso-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
}

.paso-body {}

.paso h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.paso p {
  font-size: 13.5px;
  color: rgba(255,255,255,.5);
  line-height: 1.55;
}

.paso:last-child .paso-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--violet-light));
  color: var(--white);
  font-size: 14px;
  margin-bottom: 0;
  letter-spacing: 0;
}

.paso:last-child h3 { font-size: 17px; }
.paso:last-child p { font-size: 14px; }

@media (max-width: 980px) {
  .proceso-grid { grid-template-columns: 1fr; gap: 44px; }
  .proceso-steps { grid-template-columns: 1fr 1fr; }
  .paso:last-child { grid-column: span 2; }
}

@media (max-width: 560px) {
  .proceso-steps { grid-template-columns: 1fr; }
  .paso:last-child { grid-column: auto; display: block; }
  .paso:last-child .paso-num {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    -webkit-text-fill-color: rgba(255,255,255,.28);
    background: none;
    border-radius: 0;
    width: auto;
    height: auto;
    margin-bottom: 16px;
  }
  .paso { padding: 24px 20px; }
}

/* ============ CURSOR GLOW ============ */
.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92,79,197,.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity .4s ease;
  mix-blend-mode: screen;
}

body:not(:hover) .cursor-glow { opacity: 0; }

/* ============ OFFICE PHOTO ============ */
.office-photo-section {
  padding: 0 0 80px;
  background: var(--lavender);
}

.office-photo-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 21/8;
  background: var(--ink);
}

.office-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
  filter: saturate(1.1);
  transition: transform 6s ease, opacity .4s ease;
}

.office-photo-frame:hover img {
  transform: scale(1.03);
  opacity: 1;
}

.office-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 36px 28px;
  background: linear-gradient(to top, rgba(28,30,45,.88) 0%, transparent 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.office-photo-caption .eyebrow {
  color: var(--violet-light);
  margin-bottom: 0;
}

.office-photo-caption p {
  font-size: 15px;
  color: rgba(255,255,255,.75);
}

@media (max-width: 720px) {
  .office-photo-frame { aspect-ratio: 4/3; }
}

/* ── Team section ── */
.team-section { background: var(--lavender); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.team-card {
  background: var(--ink);
  border-radius: 16px;
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  border: 1px solid rgba(162,154,253,.1);
  transition: border-color .25s ease, background .25s ease;
}

.team-card:hover {
  border-color: rgba(162,154,253,.3);
  background: #252840;
}
.team-card-idx {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 11px;
  color: var(--violet-light);
  opacity: .5;
  font-family: var(--mono, monospace);
}
.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.team-role {
  font-size: 12px;
  color: var(--violet-light);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.team-bio {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin-top: 8px;
  line-height: 1.6;
}
.team-social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.team-social a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  transition: color .2s, border-color .2s;
}
.team-social a svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}
.team-social a:hover {
  color: var(--violet-light);
  border-color: var(--violet-light);
}
