/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: #141235;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
.product-card__media img,
.about__gallery-item img,
.testimonial-card__avatar img,
.blog-card__media img,
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; appearance: none; -webkit-appearance: none; background: none; border: none; padding: 0; color: inherit; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 30px; }
/* El hueco entre dos secciones lo pagan las dos: con el token entero, 120px
   declarados se veían como 240px de vacío. Cada sección pone la mitad, así
   el aire que se declara es el que se ve. */
.section { padding: calc(var(--section-spacing) / 2) 30px; }
.section--alt { background: #f7f6fc; }
.section--dark { background: #1a1442; color: #fff; }

.eyebrow { margin: 0 0 14px; color: var(--accent); font-weight: 600; font-size: 18px; }
.eyebrow--light { color: var(--accent-light); }
.h2 { font-size: 46px; line-height: 1.1; font-weight: 700; letter-spacing: -0.8px; color: #141235; }
.h2--light { color: #fff; }
.lead { margin-top: 20px; font-size: 18px; line-height: 1.65; color: #5b5878; max-width: 640px; }
.lead--light { color: #c8c5e4; }
.section-head { margin-bottom: 50px; }
.section-head--center { text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

.badge {
  display: inline-block; margin: 0 0 20px; font-size: 14.5px; font-weight: 600;
  color: #d7d5ef; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  padding: 8px 16px; border-radius: 999px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-weight: 600; font-size: 16px; padding: 15px 26px; border-radius: var(--corner-radius);
  border: 1.5px solid transparent; transition: background .2s, border-color .2s, color .2s, transform .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { border-color: rgba(20,18,53,.25); color: #141235; }
.btn--ghost:hover { background: rgba(20,18,53,.05); color: #141235; }
.section--dark .btn--ghost, .hero .btn--ghost, .prod-hero .btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover, .prod-hero .btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--sm { padding: 11px 20px; font-size: 14.5px; }
.btn--lg { padding: 18px 32px; font-size: 17px; }
.btn__icon { display: inline-flex; transition: transform .2s; }
.btn:hover .btn__icon { transform: translateX(3px); }
.link-underline { font-weight: 600; border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; }

.ph-block {
  width: 100%; height: 100%; min-height: 160px; border-radius: 6px;
  background: linear-gradient(135deg, #e9e8f5 0%, #dcdaee 100%); position: relative; overflow: hidden;
}
.ph-block::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,.5), transparent 60%);
}

@keyframes mdsysFade { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.reveal { animation: mdsysFade .7s ease both; }

/* ============ SPLASH ============ */
#mdsys-splash {
  position: fixed; inset: 0; z-index: 999; background: #1a1442;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); transition: opacity .4s ease, visibility .4s ease;
}
#mdsys-splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-mark { animation: mdsysPulse 1s ease infinite; }
@keyframes mdsysPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.15); opacity: .7; } }

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  box-shadow: 0 1px 0 rgba(20,18,53,.06), 0 6px 18px rgba(20,18,53,.04);
}
.site-header__inner {
  max-width: 1320px; margin: 0 auto; padding: 0 30px; height: 80px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; color: #141235; }
.brand__mark { width: 34px; height: 34px; flex: none; display: block; }
.brand__name { font-size: 24px; font-weight: 700; letter-spacing: -.5px; }
.brand__name--lg { font-size: 30px; }
.site-footer__brand .brand__mark { width: 40px; height: 40px; }
/* En pantallas chicas basta el hexágono; el nombre ocuparía espacio de la navegación. */
@media (max-width: 420px) {
  .site-header .brand__name { display: none; }
}
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; margin-right: 8px; }
.main-nav__link {
  position: relative; padding: 6px 0; font-size: 15.5px; font-weight: 500; color: #1c1a3d; transition: color .2s;
}
.main-nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: center; transition: transform .25s ease;
}
.main-nav__link:hover, .main-nav__link.is-active { color: var(--accent); }
.main-nav__link:hover::after, .main-nav__link.is-active::after { transform: scaleX(1); }
.nav-cta { padding: 11px 22px; font-size: 14.5px; border-radius: 10px; }
.burger { display: none; background: none; border: none; padding: 8px; color: #141235; }
.mobile-nav { padding: 8px 30px 22px; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid #eeedf6; }
.mobile-nav[hidden] { display: none; }
.mobile-nav__link { padding: 12px 4px; font-size: 16px; font-weight: 500; color: #1c1a3d; border-bottom: 1px solid #f3f2f9; }
.mobile-nav__cta { margin-top: 14px; text-align: center; justify-content: center; }

@media (max-width: 1100px) {
  .main-nav, .nav-cta { display: none !important; }
  .burger { display: flex; }
}

/* ============ HERO ============ */
.hero { position: relative; background: #1a1442; color: #fff; overflow: hidden; padding-top: 64px; }
.hero__spotlight {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0;
  transition: opacity .4s ease;
  background: radial-gradient(560px circle at var(--sx, 30%) var(--sy, 40%), rgba(var(--accent-light-rgb), .22), transparent 62%);
}
.hero:hover .hero__spotlight, .hero.is-spotlight-active .hero__spotlight { opacity: 1; }
.hero__bg {
  position: absolute; inset: 0; left: 38%; background: var(--accent-deep);
  clip-path: ellipse(70% 130% at 78% 50%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-bottom: 30px; }

/* Hero con foto/mockup real (mac.jpg) en vez del panel dibujado */
.hero--photo .hero__inner { grid-template-columns: 1.2fr .8fr; }
.hero__mockup--photo {
  position: absolute; top: 0; bottom: 0; right: -40px; left: 48%;
  perspective: 1400px; pointer-events: none;
}
.hero__photo {
  width: 100%; height: 100%; object-fit: contain; object-position: right center;
  transform: rotateX(0deg) rotateY(0deg);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}
.mockup__floating--photo {
  position: absolute; left: 46%; right: auto; top: auto; bottom: 6%; pointer-events: none;
  width: max-content; max-width: 240px;
  box-shadow: 0 20px 40px rgba(10, 8, 30, .5); border: 1px solid rgba(255,255,255,.6);
}
@media (max-width: 1100px) { .mockup__floating--photo { display: none; } }
@media (max-width: 1100px) { .hero--photo .hero__inner { grid-template-columns: 1fr; } }
.hero__content { max-width: 640px; }
.hero__headline { font-size: 60px; line-height: 1.06; font-weight: 700; letter-spacing: -1.2px; margin-bottom: 26px; }
.hero__headline span { margin-right: 12px; display: inline-block; }
.hero__headline .hl { color: var(--accent-light); }
.hero__subtitle { font-size: 19px; line-height: 1.55; color: #c8c5e4; max-width: 560px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 34px; }
.hero__pills { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-bottom: 40px; }
.hero__pills li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: #d7d5ef; }
.hero__pills li svg { color: var(--accent-light); flex: none; }
.hero__stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero__stat-value { font-size: 34px; font-weight: 700; color: #fff; line-height: 1; }
.hero__stat-label { margin-top: 8px; font-size: 14.5px; color: var(--accent-light); }

.mockup {
  position: relative; background: #17123a; border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.4);
}
.mockup__topbar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: rgba(255,255,255,.04); }
.mockup__topbar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.mockup__topbar em { margin-left: 10px; font-style: normal; font-size: 12.5px; color: #8a86b8; }
.mockup__body { display: grid; grid-template-columns: 130px 1fr; min-height: 380px; }
.mockup__sidebar { background: rgba(255,255,255,.03); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.mockup__sidebar-brand { font-size: 12px; font-weight: 700; color: #8a86b8; margin-bottom: 12px; letter-spacing: .3px; }
.mockup__sidebar-item { font-size: 13px; color: #b6b2dd; padding: 9px 10px; border-radius: 7px; }
.mockup__sidebar-item.is-active { background: var(--accent); color: #fff; }
.mockup__main { padding: 20px; }
.mockup__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.mockup__kpi { background: rgba(255,255,255,.04); border-radius: 10px; padding: 12px; }
.mockup__kpi.is-highlight { background: rgba(var(--accent-light-rgb),.16); }
.mockup__kpi-label { font-size: 11px; color: #8a86b8; }
.mockup__kpi-value { font-size: 16px; font-weight: 700; color: #fff; margin-top: 4px; }
.mockup__kpi-delta { font-size: 11px; color: #7fe0a8; margin-top: 2px; }
.mockup__kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mockup__col { background: rgba(255,255,255,.03); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.mockup__col.is-active { background: rgba(var(--accent-light-rgb),.1); }
.mockup__col-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #b6b2dd; margin-bottom: 4px; }
.mockup__col-head .tag { background: rgba(255,255,255,.08); border-radius: 5px; padding: 2px 6px; font-size: 9.5px; }
.mockup__card { background: rgba(255,255,255,.05); border-radius: 7px; padding: 7px 8px; display: flex; flex-direction: column; gap: 2px; }
.mockup__card span { font-size: 10.5px; color: #d7d5ef; }
.mockup__card strong { font-size: 11.5px; color: #fff; }
.mockup__floating {
  position: absolute; right: -14px; bottom: -14px; background: #fff; color: #141235;
  border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 16px 30px rgba(0,0,0,.25);
}
.mockup__floating svg { color: var(--accent); }
.mockup__floating strong { display: block; font-size: 16px; }
.mockup__floating span { font-size: 11.5px; color: #7c799a; }

@media (max-width: 1100px) { .hero__inner { grid-template-columns: 1fr; } .hero__mockup { display: none; } .hero__headline { font-size: 44px; } }

/* ============ MARQUEE ============ */
.marquee { background: #f7f6fc; padding: 26px 0; border-bottom: 1px solid #ecebf4; border-top: 1px solid #ecebf4; overflow: hidden; }
.marquee__title { text-align: center; font-size: 14px; font-weight: 600; color: #7c799a; margin-bottom: 18px; text-transform: uppercase; letter-spacing: .5px; }
.marquee__track { display: flex; }
.marquee__group { display: flex; flex-shrink: 0; gap: 48px; padding-right: 48px; animation: mdsysMarquee 32s linear infinite; }
.marquee__item { font-size: 20px; font-weight: 700; color: #4a4768; white-space: nowrap; }
@keyframes mdsysMarquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ============ LOGOS (carrusel) ============ */
.logos { background: #f7f6fc; padding: 54px 0; border-top: 1px solid #ecebf4; border-bottom: 1px solid #ecebf4; overflow: hidden; }
.logos__title { text-align: center; font-size: 15px; font-weight: 600; color: #7c799a; margin-bottom: 36px; text-transform: uppercase; letter-spacing: .5px; }
.logos__track { display: flex; }
.logos__group { display: flex; flex-shrink: 0; align-items: center; gap: 72px; padding-right: 72px; animation: mdsysMarquee 34s linear infinite; }
.logos__item {
  flex: none; height: 34px; display: flex; align-items: center;
  opacity: .8; transition: opacity .2s ease, transform .2s ease;
}
.logos__item:hover { opacity: 1; transform: translateY(-2px); }
.logos__item img { height: 100%; width: auto; object-fit: contain; }
.logos__item span { font-size: 19px; font-weight: 800; letter-spacing: -.3px; color: #4a4768; white-space: nowrap; }
.logos:hover .logos__group { animation-play-state: paused; }

/* ============ BENEFITS ============ */
.benefits__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 34px; }
.benefits__item { padding: 8px 6px; }
.benefits__icon { color: var(--accent); margin-bottom: 16px; }
.benefits__item-title { font-size: 20px; font-weight: 600; color: #141235; margin-bottom: 10px; }
.benefits__item-text { font-size: 16.5px; line-height: 1.55; color: #5b5878; }

/* ============ ABOUT ============ */
/* La galería llega a ras del borde inferior mientras el texto va centrado, así
   que el aire estándar de aquí abajo se lee como vacío, no como respiro. Media
   ración a cada lado del corte con problemas. */
.about { padding-bottom: calc(var(--section-spacing) / 4); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about__gallery { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 14px; }
.about__gallery-item { border-radius: 8px; overflow: hidden; }
.about__gallery-item.is-span { grid-column: span 2; grid-row: span 2; }
.about__stats { display: flex; gap: 40px; margin-top: 32px; }
.about__stat-value { font-size: 34px; font-weight: 700; color: var(--accent); line-height: 1; }
.about__stat-label { margin-top: 6px; font-size: 15px; color: #5b5878; }

@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } }

/* ============ PROBLEMS ============ */
.problems { padding-top: calc(var(--section-spacing) / 4); padding-bottom: calc(var(--section-spacing) / 4); }
.problems__list { position: relative; display: flex; flex-direction: column; }

/* Espina vertical que atraviesa las fichas y se llena con el scroll. */
.problems__spine {
  position: absolute; top: 34px; bottom: 34px; left: 50%; width: 2px;
  transform: translateX(-50%); background: #eae8f3; border-radius: 2px;
}
.problems__spine-fill {
  position: absolute; inset: 0; background: var(--accent); border-radius: 2px;
  transform: scaleY(0); transform-origin: top center;
}

.problems__row {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px;
  padding: 34px 18px; border-bottom: 1px solid #ececf6;
  transition: background .25s ease;
}
.problems__list .problems__row:first-child { border-top: 1px solid #ececf6; }
.problems__row:hover { background: #faf9fd; }

.problems__problem { text-align: right; }
.problems__solution { text-align: left; }
.problems__label {
  position: relative; display: inline-block; font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px;
}
.problems__label--bad { color: #c23a3a; }
/* La tachadura del "Antes" se dibuja de izquierda a derecha al entrar la fila. */
.problems__label--bad::after {
  content: ''; position: absolute; left: -2px; right: -2px; top: 52%; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .4s cubic-bezier(.4,.2,.2,1);
}
.problems__label--bad.is-struck::after { transform: scaleX(1); }
.problems__label--good { color: var(--accent); }
.problems__problem p, .problems__solution p { margin: 0; font-size: 17px; line-height: 1.5; color: #2a2750; font-weight: 500; }

/* Ficha que gira del problema a la solución. */
.problems__figure { position: relative; width: 66px; height: 66px; flex: none; perspective: 900px; }
.problems__ring {
  position: absolute; inset: -7px; border-radius: 24px;
  border: 2px solid var(--accent); opacity: 0; pointer-events: none;
}
.problems__tile {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; transform: rotateY(180deg);
  transition: box-shadow .3s ease;
}
.problems__face {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  border-radius: 18px; color: #fff;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.problems__face--problem { background: #1a1442; }
.problems__face--solution { background: var(--accent); transform: rotateY(180deg); }
.problems__row:hover .problems__face--solution { box-shadow: 0 10px 24px -8px rgba(var(--accent-rgb), .75); }

@media (max-width: 800px) {
  .problems { padding-bottom: 32px; }
  .problems__row { grid-template-columns: 1fr; gap: 18px; text-align: center; padding: 28px 6px; }
  .problems__problem, .problems__solution { text-align: center; }
  .problems__figure { justify-self: center; }
  .problems__spine { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .problems__spine-fill { transform: scaleY(1); }
  .problems__label--bad::after { transform: scaleX(1); }
}

/* ============ PRODUCTS ============ */
/* La lista de problemas cierra con su propio borde y productos abre con
   cabecera centrada: dos remates fuertes seguidos no necesitan el aire
   completo entre medias. Media ración, igual que en el corte anterior. */
.products { padding-top: calc(var(--section-spacing) / 4); }
.products__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #ececf6; border-radius: 20px; overflow: hidden;
  transition: box-shadow .35s ease, transform .35s cubic-bezier(.3,.8,.35,1), border-color .35s ease;
}
.product-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 3;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 30px 56px -22px rgba(20,18,53,.34); border-color: #dedbf7; }
.product-card:hover::before { transform: scaleX(1); }
.product-card:active { transform: translateY(-4px) scale(.994); transition-duration: .1s; }

/* Cabecera de marca: sin foto de stock, el ícono del producto es el motivo gráfico. */
.product-card__panel {
  position: relative; height: 136px; overflow: hidden; flex: none;
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 100%);
}
.product-card__panel::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 13px 13px; opacity: .55;
}
/* La imagen del JSON queda como textura tenue, no como protagonista. */
.product-card__texture {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .14; mix-blend-mode: luminosity; filter: grayscale(1);
  transition: opacity .5s ease, transform .6s cubic-bezier(.3,.8,.35,1);
}
.product-card:hover .product-card__texture { opacity: .2; transform: scale(1.06); }
/* Halo que sigue al cursor, mismo lenguaje que el spotlight del hero. */
.product-card__glow {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
  background: radial-gradient(220px circle at var(--px, 50%) var(--py, 50%), rgba(255,255,255,.3), transparent 68%);
}
.product-card:hover .product-card__glow { opacity: 1; }
.product-card__mark {
  position: absolute; right: -18px; bottom: -30px; color: #fff; opacity: .17; line-height: 0;
  transform: rotate(-8deg); transform-origin: center;
  transition: transform .55s cubic-bezier(.3,.8,.35,1), opacity .45s ease;
}
.product-card:hover .product-card__mark { transform: rotate(-3deg) scale(1.1); opacity: .26; }

.product-card__rubro {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600;
  color: var(--accent); background: rgba(255,255,255,.95);
  padding: 7px 13px; border-radius: 999px; box-shadow: 0 6px 16px rgba(20,18,53,.1);
}
.product-card__rubro--onpanel {
  position: absolute; top: 18px; left: 18px; z-index: 2; backdrop-filter: blur(4px);
  transition: transform .35s cubic-bezier(.3,.8,.35,1);
}
.product-card:hover .product-card__rubro--onpanel { transform: translateY(-2px); }

.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 28px; }
.product-card__name { font-size: 22px; font-weight: 700; line-height: 1.2; color: #141235; margin-bottom: 10px; }

/* Descripción y capacidades ocupan la misma celda del grid: la más alta manda
   y el intercambio en hover no mueve ni un píxel del resto de la tarjeta. */
.product-card__swap { display: grid; flex: 1; margin-bottom: 22px; }
.product-card__swap > * { grid-area: 1 / 1; }
.product-card__desc {
  font-size: 15px; line-height: 1.55; color: #5b5878;
  transition: opacity .3s ease, transform .35s cubic-bezier(.3,.8,.35,1);
}
.product-card:hover .product-card__desc { opacity: 0; transform: translateY(-8px); }
.product-card__features {
  align-self: start; display: flex; flex-direction: column; gap: 9px;
  opacity: 0; pointer-events: none;
}
.product-card:hover .product-card__features { opacity: 1; }
.product-card__features li {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; color: #2a2750;
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s ease, transform .4s cubic-bezier(.3,.8,.35,1);
}
.product-card__features li svg { color: var(--accent); flex: none; }
.product-card:hover .product-card__features li { opacity: 1; transform: none; }
.product-card:hover .product-card__features li:nth-child(1) { transition-delay: .04s; }
.product-card:hover .product-card__features li:nth-child(2) { transition-delay: .09s; }
.product-card:hover .product-card__features li:nth-child(3) { transition-delay: .14s; }
.product-card:hover .product-card__features li:nth-child(4) { transition-delay: .19s; }

.product-card__cta {
  align-self: start; display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--accent);
}
.product-card__cta-icon { display: inline-flex; transition: transform .3s cubic-bezier(.3,.8,.35,1); }
.product-card:hover .product-card__cta-icon { transform: translateX(5px); }

@media (prefers-reduced-motion: reduce) {
  .product-card, .product-card__desc, .product-card__features li,
  .product-card__mark, .product-card__texture { transition: none; }
  .product-card:hover { transform: none; }
}

.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20,18,53,.55); backdrop-filter: blur(2px); }
.modal__panel {
  position: relative; background: #fff; border-radius: 16px; max-width: 620px; width: 100%;
  max-height: 88vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.modal__close { position: absolute; top: 16px; right: 16px; background: #fff; border-radius: 50%; padding: 8px; border: 1px solid #eeedf6; color: #141235; z-index: 2; }
.modal__media { position: relative; height: 220px; border-radius: 16px 16px 0 0; overflow: hidden; }
/* Variante sin captura: misma franja de marca que la tarjeta de producto. */
.modal__media--brand { background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 100%); }
.modal__media--brand::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 13px 13px; opacity: .55;
}
.modal__media--brand .product-card__mark { right: 26px; bottom: -34px; opacity: .22; }

/* Aclaración bajo el título de una sección (ejemplos, notas de alcance). */
.section-note {
  margin: 14px auto 0; max-width: 620px; font-size: 14px; line-height: 1.55; color: #8a86b8;
}
.logos__note { margin-top: -24px; margin-bottom: 32px; text-align: center; font-size: 13px; color: #a5a2bd; }
.modal__body { padding: 30px 34px 34px; }
.modal__body h3 { font-size: 28px; font-weight: 700; margin: 14px 0 14px; color: #141235; }
.modal__body p#product-modal-desc { font-size: 16.5px; line-height: 1.6; color: #5b5878; margin-bottom: 22px; }
.modal__features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 28px; }
.modal__features li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: #2a2750; }
.modal__features li svg { color: var(--accent); flex: none; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 560px) { .modal__features { grid-template-columns: 1fr; } }

/* ============ DEMO ============ */
.demo__panel { position: relative; }

/* Barra de pestañas: segmented control con indicador deslizante */
.demo__tabs { display: flex; justify-content: center; margin-bottom: 46px; }
.demo__rail {
  position: relative; display: inline-flex; align-items: stretch; gap: 2px;
  max-width: 100%; padding: 5px; border-radius: 999px;
  background: #fff; border: 1px solid #e8e6f4;
  box-shadow: 0 1px 2px rgba(20,18,53,.05), 0 14px 34px -18px rgba(20,18,53,.45);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scrollbar-width: none; -ms-overflow-style: none;
}
.demo__rail::-webkit-scrollbar { display: none; }
.demo__rail-thumb {
  position: absolute; top: 5px; left: 0; width: 0; height: calc(100% - 10px);
  border-radius: 999px; background: var(--accent); pointer-events: none;
  box-shadow: 0 6px 16px -6px rgba(var(--accent-rgb),.75);
}
.demo__rail.is-ready .demo__rail-thumb {
  transition: transform .42s cubic-bezier(.34,.9,.28,1), width .42s cubic-bezier(.34,.9,.28,1);
}
.demo__tab {
  position: relative; z-index: 1; flex: none; scroll-snap-align: center;
  padding: 12px 24px; border-radius: 999px; white-space: nowrap;
  font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -.2px;
  color: #6f6c8e; transition: color .3s ease;
}
.demo__tab:hover { color: #141235; }
.demo__tab.is-active { color: #fff; }
.demo__tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- Panel: una ventana de aplicación por sistema ---- */
.demo__screen { display: none; }
.demo__screen.is-active { display: block; animation: demoScreenIn .5s cubic-bezier(.22,.68,.3,1) both; }
@keyframes demoScreenIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.demo__app {
  max-width: 960px; margin: 0 auto; border-radius: 18px; overflow: hidden; background: #fff;
  border: 1px solid rgba(20,18,53,.1);
  box-shadow: 0 40px 80px -44px rgba(6,4,26,.62), 0 2px 6px rgba(6,4,26,.05);
}
.demo__app-bar {
  display: flex; align-items: center; gap: 14px; padding: 0 18px; height: 46px;
  background: #f2f1f8; border-bottom: 1px solid rgba(20,18,53,.08);
}
.demo__app-dots { display: flex; gap: 6px; flex: none; }
.demo__app-dots i { width: 9px; height: 9px; border-radius: 50%; background: #d3d0e2; display: block; }
.demo__app-name { font-family: var(--font-display); font-size: 14.5px; font-weight: 600; color: #2a2750; }
.demo__live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: #1f9d63; }
.demo__live i { width: 7px; height: 7px; border-radius: 50%; background: #1f9d63; display: block; animation: mdsysPulse 1.4s ease infinite; }
.demo__app-body { padding: 26px 28px 28px; }

.demo__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.demo__kpi { background: #f7f6fc; border-radius: 12px; padding: 15px 17px; }
.demo__kpi-value { font-family: var(--font-display); font-size: 23px; font-weight: 700; color: #141235; font-variant-numeric: tabular-nums; }
.demo__kpi-label { font-size: 12.5px; color: #7c799a; margin-top: 3px; }

.demo__hint { margin-top: 20px; font-size: 13.5px; line-height: 1.55; color: #8a86b8; }

/* Etiquetas de estado, compartidas por varios paneles */
.demo__tag { font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.demo__tag--good { background: rgba(31,157,99,.12); color: #1a8a57; }
.demo__tag--warn { background: rgba(214,140,20,.14); color: #a86a06; }
.demo__tag--new  { background: var(--accent-soft); color: var(--accent); }
.demo__tag--live { background: rgba(var(--accent-rgb),.14); color: var(--accent); }

.demo__rows { display: flex; flex-direction: column; gap: 9px; }
.demo__rows--tight { gap: 8px; }
.demo__row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #f7f6fc; border-radius: 11px; padding: 13px 16px;
}
.demo__row-main { font-size: 14.5px; font-weight: 600; color: #2a2750; }
.demo__row-meta { font-size: 12.5px; color: #7c799a; margin-top: 3px; }

/* ---- CRM: kanban ---- */
.demo__kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.demo__col { position: relative; background: #f7f6fc; border-radius: 12px; padding: 13px; min-height: 196px; }
.demo__col-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: #7c799a; margin-bottom: 11px;
}
.demo__col-head span { font-variant-numeric: tabular-nums; color: #a5a2bd; }
.demo__col-body { display: flex; flex-direction: column; gap: 9px; }
.demo__card {
  background: #fff; border-radius: 9px; padding: 11px 13px;
  border: 1px solid #eceaf5; box-shadow: 0 2px 5px rgba(20,18,53,.05);
}
.demo__card p { font-size: 13.5px; font-weight: 600; color: #2a2750; }
.demo__card span { font-size: 12.5px; color: var(--accent); font-weight: 700; }
.demo__col:last-child .demo__card { border-color: rgba(var(--accent-rgb),.35); }

/* ---- HotelPro: plano de habitaciones ---- */
.demo__rooms { display: grid; grid-template-columns: repeat(var(--cols, 14), minmax(0, 1fr)); gap: 6px; }
.demo__room { display: block; height: 34px; border-radius: 6px; background: #eceaf5; }
.demo__room.is-good { background: var(--accent); }
.demo__room.is-warn { background: #f0b429; }
.demo__room.is-free { background: #eceaf5; }
.demo__legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; }
.demo__legend-item { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #7c799a; }
.demo__legend-item i { width: 13px; height: 13px; border-radius: 4px; flex: none; }

/* ---- MediCitas: agenda del día ---- */
.demo__agenda { display: flex; flex-direction: column; }
.demo__slot { display: grid; grid-template-columns: 54px 18px 1fr; align-items: center; gap: 0 4px; }
.demo__slot-time { font-size: 12.5px; font-weight: 700; color: #a5a2bd; font-variant-numeric: tabular-nums; }
.demo__slot-line { position: relative; height: 100%; }
.demo__slot-line::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  transform: translateX(-50%); background: #eceaf5;
}
.demo__slot-line::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px;
  transform: translate(-50%, -50%); border-radius: 50%; background: #d3d0e2;
}
.demo__slot:first-child .demo__slot-line::before { top: 50%; }
.demo__slot:last-child .demo__slot-line::before { bottom: 50%; }
.demo__slot-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 5px 0 5px 10px; padding: 12px 15px; border-radius: 11px;
  background: #f7f6fc; border-left: 3px solid #d3d0e2;
}
.demo__slot-card p { font-size: 14px; font-weight: 600; color: #2a2750; }
.demo__slot-card span { font-size: 11.5px; font-weight: 700; color: #7c799a; white-space: nowrap; }
.demo__slot-card--good { border-left-color: #1f9d63; }
.demo__slot-card--good span { color: #1a8a57; }
.demo__slot-card--live { border-left-color: var(--accent); background: var(--accent-soft); }
.demo__slot-card--live span { color: var(--accent); }
.demo__slot-card--new { border-left-color: var(--accent-light); }
.demo__slot-card--warn { border-left-color: #f0b429; }
.demo__slot-card--warn span { color: #a86a06; }

/* ---- StockPro: niveles que bajan ---- */
.demo__bars { display: flex; flex-direction: column; gap: 17px; }
.demo__bar-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.demo__bar-head span { font-size: 14px; font-weight: 600; color: #2a2750; }
.demo__bar-head b { font-size: 12.5px; font-weight: 700; color: #7c799a; font-variant-numeric: tabular-nums; }
.demo__bar-track { position: relative; height: 10px; border-radius: 999px; background: #eceaf5; overflow: hidden; }
.demo__bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--accent); width: 0; }
.demo__bar.is-low .demo__bar-fill { background: #e0533d; }
.demo__bar-min { position: absolute; top: -3px; bottom: -3px; width: 2px; background: rgba(224,83,61,.55); z-index: 1; border-radius: 2px; }
.demo__alert {
  display: flex; align-items: center; gap: 11px; margin-top: 20px; padding: 13px 16px;
  border-radius: 11px; background: rgba(224,83,61,.09); color: #b83f2b;
  font-size: 13.5px; font-weight: 600; opacity: 0;
}
.demo__alert svg { flex: none; }

/* ---- GymPro: ingresos y anillo de socios ---- */
.demo__access { display: grid; grid-template-columns: 210px 1fr; gap: 26px; align-items: center; }
.demo__ring { position: relative; width: 100%; max-width: 190px; margin: 0 auto; }
.demo__ring svg { width: 100%; height: auto; transform: rotate(-90deg); display: block; }
.demo__ring-track { fill: none; stroke: #eceaf5; stroke-width: 11; }
.demo__ring-fill {
  fill: none; stroke: var(--accent); stroke-width: 11; stroke-linecap: round;
  stroke-dasharray: 327; stroke-dashoffset: 327;
}
.demo__ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.demo__ring-text strong { font-family: var(--font-display); font-size: 33px; font-weight: 700; color: #141235; font-variant-numeric: tabular-nums; }
.demo__ring-text span { font-size: 12px; color: #7c799a; margin-top: 2px; }

@media (max-width: 820px) {
  .demo__app-body { padding: 20px; }
  .demo__kpis { grid-template-columns: 1fr; gap: 10px; }
  .demo__kanban { grid-template-columns: 1fr; }
  .demo__col { min-height: 0; }
  .demo__access { grid-template-columns: 1fr; gap: 20px; }
  .demo__rooms { --cols: 7 !important; }
  .demo__slot { grid-template-columns: 46px 16px 1fr; }
  .demo__app-name { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo__screen.is-active { animation: none; }
  .demo__live i { animation: none; }
  .demo__alert { opacity: 1; }
}


/* ============ SOLUTIONS ============ */
.solutions__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
/* La intro acompaña al recorrido: se queda fija mientras la lista pasa. */
.solutions__intro { position: sticky; top: 118px; }

/* Contador del recorrido: dice en qué rubro vas de cuántos. */
.solutions__counter { margin-top: 40px; max-width: 260px; }
.solutions__counter-nums { display: flex; align-items: baseline; gap: 7px; font-family: var(--font-display); }
.solutions__counter-nums strong {
  font-size: 42px; font-weight: 700; line-height: 1; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.solutions__counter-nums span { font-size: 17px; font-weight: 600; color: #a5a2bd; font-variant-numeric: tabular-nums; }
.solutions__counter-track { margin-top: 16px; height: 3px; border-radius: 3px; background: #e7e5f1; overflow: hidden; }
.solutions__counter-bar {
  display: block; height: 100%; border-radius: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .5s cubic-bezier(.3,.8,.35,1);
}
.solutions__counter-label {
  margin-top: 12px; font-size: 14px; font-weight: 600; color: #5b5878;
  transition: opacity .25s ease;
}

.solutions__list { display: flex; flex-direction: column; }
.solutions__item {
  position: relative; display: flex; align-items: center; gap: 20px;
  padding: 22px 16px; border-top: 1px solid #eae9f3; color: inherit;
  transition: background .3s ease, padding-left .35s cubic-bezier(.3,.8,.35,1);
}
.solutions__item:last-child { border-bottom: 1px solid #eae9f3; }
/* Barra de acento que crece en el borde izquierdo de la fila en curso. */
.solutions__item::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  border-radius: 3px; background: var(--accent);
  transform: scaleY(0); transform-origin: center; opacity: 0;
  transition: transform .4s cubic-bezier(.3,.8,.35,1), opacity .3s ease;
}
.solutions__item.is-active::before, .solutions__item:hover::before { transform: scaleY(1); opacity: 1; }
.solutions__item.is-active, .solutions__item:hover { background: #f7f6fc; padding-left: 24px; }

/* El ícono vive en una ficha que se rellena al activarse la fila. */
.solutions__icon {
  flex: none; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
  border-radius: 15px; color: var(--accent); background: var(--accent-soft);
  transition: background .35s ease, color .35s ease, transform .45s cubic-bezier(.3,.8,.35,1);
}
.solutions__item.is-active .solutions__icon, .solutions__item:hover .solutions__icon {
  background: var(--accent); color: #fff; transform: scale(1.06) rotate(-4deg);
}

.solutions__item h3 {
  font-size: 19px; font-weight: 600; color: #141235; margin-bottom: 6px;
  transition: color .3s ease;
}
.solutions__item.is-active h3, .solutions__item:hover h3 { color: var(--accent); }
.solutions__item p { font-size: 15px; line-height: 1.5; color: #5b5878; }
.solutions__go {
  margin-left: auto; color: #b6b2cf; flex: none;
  transition: color .3s ease, transform .4s cubic-bezier(.3,.8,.35,1);
}
.solutions__item.is-active .solutions__go, .solutions__item:hover .solutions__go {
  color: var(--accent); transform: translateX(6px);
}

@media (max-width: 900px) {
  .solutions__grid { grid-template-columns: 1fr; gap: 30px; }
  .solutions__intro { position: static; }
  .solutions__counter { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .solutions__item, .solutions__icon, .solutions__go,
  .solutions__item::before, .solutions__counter-bar { transition: none; }
}

/* ============ PROCESS ============ */
.process__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.process__step { position: relative; background: #fff; border: 1px solid #eeedf6; border-radius: 14px; padding: 28px 24px; }
.process__number { position: absolute; top: 20px; right: 22px; font-size: 26px; font-weight: 700; color: #eae9f3; }
.process__icon { color: var(--accent); margin-bottom: 18px; }
.process__step h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.process__step p { font-size: 15px; line-height: 1.55; color: #5b5878; }

/* ============ COMPARISON ============ */
.comparison__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.comparison__col { border-radius: 16px; padding: 36px 34px; }
.comparison__col--before { background: #f7f6fc; }
.comparison__col--after { background: #1a1442; color: #fff; }
.comparison__col--after .eyebrow { color: var(--accent-light); }
.comparison__col h3 { font-size: 24px; font-weight: 700; margin-bottom: 22px; }
.comparison__col ul { display: flex; flex-direction: column; gap: 14px; }
.comparison__col li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; }
.comparison__col--before li { color: #5b5878; }
.comparison__col--before svg { color: #c23a3a; flex: none; }
.comparison__col--after svg { color: #7fe0a8; flex: none; }
@media (max-width: 800px) { .comparison__grid { grid-template-columns: 1fr; } }

/* ============ CTA BANNER ============ */
.cta-banner { background: #f7f6fc; }
.cta-banner__inner {
  background: linear-gradient(120deg, #1a1442, var(--accent-deep)); border-radius: 18px; padding: 56px 54px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; color: #fff;
}
.cta-banner .h2 { color: #fff; max-width: 480px; }
.cta-banner .lead { color: #c8c5e4; margin-top: 14px; }

/* ============ RESULTS ============ */
.results__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-top: 50px; }
.results__item { border-left: 2px solid rgba(var(--accent-light-rgb),.4); padding-left: 22px; }
.results__value { font-size: 46px; font-weight: 700; color: var(--accent-light); line-height: 1; }
.results__label { margin-top: 12px; font-size: 15.5px; color: #c8c5e4; line-height: 1.5; }
.results__action { text-align: center; margin-top: 50px; }

/* ============ TESTIMONIALS ============ */
.testimonials__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.testimonial-card__quote {
  position: relative; background: #f1f0f8; border-radius: 12px; padding: 40px 36px 44px; min-height: 260px;
}
.testimonial-card__quote svg { color: #dad7ea; margin-bottom: 18px; }
.testimonial-card__quote p { font-size: 17px; line-height: 1.55; color: #2a2750; font-weight: 500; }
.testimonial-card figcaption { display: flex; align-items: center; gap: 14px; padding: 20px 6px 0; }
.testimonial-card__avatar { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; flex: none; }
.testimonial-card__author { font-size: 16.5px; font-weight: 700; color: #141235; }
.testimonial-card__role { margin-top: 2px; font-size: 14px; color: #5b5878; }

/* ============ TECH ============ */
.tech__grid { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.tech__grid li { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid #e0dded; padding: 11px 18px; border-radius: 10px; font-size: 15px; font-weight: 600; color: #2a2750; }
.tech__grid li svg { color: var(--accent); }

/* ============ GUARANTEES ============ */
.guarantees__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.guarantees__item { padding: 26px; border-radius: 14px; background: #f7f6fc; }
.guarantees__icon { color: var(--accent); margin-bottom: 16px; }
.guarantees__item h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.guarantees__item p { font-size: 15px; line-height: 1.55; color: #5b5878; }

/* ============ PLANS ============ */
.plans__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; align-items: stretch; }
.plan-card { position: relative; background: #fff; border: 1px solid #e6e4f0; border-radius: 16px; padding: 36px 32px; display: flex; flex-direction: column; }
.plan-card.is-featured { background: #1a1442; color: #fff; border-color: transparent; transform: translateY(-10px); box-shadow: 0 26px 60px rgba(26,20,66,.28); }
.plan-card__badge { position: absolute; top: -13px; right: 28px; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.plan-card__name { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.plan-card__subtitle { font-size: 14.5px; color: #7c799a; }
.plan-card.is-featured .plan-card__subtitle { color: var(--accent-light); }
.plan-card__price { font-size: 20px; font-weight: 700; margin: 20px 0 26px; color: var(--accent); }
.plan-card.is-featured .plan-card__price { color: var(--accent-light); }
.plan-card__features { display: flex; flex-direction: column; gap: 13px; margin-bottom: 30px; flex: 1; }
.plan-card__features li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.plan-card__features svg { color: var(--accent); flex: none; }
.plan-card.is-featured .plan-card__features svg { color: #7fe0a8; }
.plan-card__cta { justify-content: center; }

/* ============ FAQ ============ */
.faq__list { display: flex; flex-direction: column; gap: 12px; max-width: 800px; margin: 0 auto; }
.faq__item { border: 1px solid #eeedf6; border-radius: 12px; overflow: hidden; }
.faq__question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fff; border: none; padding: 20px 24px; text-align: left; font-size: 17px; font-weight: 600; color: #141235; }
.faq__toggle { flex: none; color: var(--accent); transition: transform .25s; }
.faq__toggle svg { transform: rotate(90deg); }
.faq__item.is-open .faq__toggle { transform: rotate(90deg); }
.faq__answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__answer p { padding: 0 24px 22px; font-size: 15.5px; line-height: 1.6; color: #5b5878; }
.faq__item.is-open .faq__answer { max-height: 400px; }

/* ============ BLOG ============ */
.blog__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 46px; }
.blog__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.blog-card__media { height: 170px; border-radius: 8px; overflow: hidden; margin-bottom: 18px; }
.blog-card__category { display: inline-block; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 5px; margin-bottom: 12px; }
.blog-card__body h3 { font-size: 21px; font-weight: 600; line-height: 1.3; margin-bottom: 12px; }
.blog-card__body h3 a { color: #141235; }
.blog-card__body h3 a:hover { color: var(--accent); }
.blog-card__body p { font-size: 15px; line-height: 1.55; color: #5b5878; margin-bottom: 14px; }

/* ============ CONTACT ============ */
.contact__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.contact__methods { margin-top: 34px; display: flex; flex-direction: column; gap: 16px; }
.contact__method { display: flex; align-items: center; gap: 16px; background: #f7f6fc; border-radius: 12px; padding: 16px 20px; color: inherit; }
a.contact__method:hover { background: #efedf9; }
.contact__method-icon { color: var(--accent); flex: none; }
.contact__method strong { display: block; font-size: 15.5px; color: #141235; }
.contact__method span span { font-size: 14px; color: #5b5878; }
.contact-form { background: #f7f6fc; border-radius: 16px; padding: 34px; }
.contact-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 26px; }
.contact-form__field { grid-column: span 2; display: flex; flex-direction: column; gap: 8px; }
.contact-form__field.is-half { grid-column: span 1; }
.contact-form__field label { font-size: 14px; font-weight: 600; color: #2a2750; }
.contact-form__field input, .contact-form__field textarea {
  font: inherit; font-size: 15.5px; padding: 13px 16px; border-radius: 10px; border: 1px solid #dedbec;
  background: #fff; color: #141235; resize: vertical;
}
.contact-form__field input:focus, .contact-form__field textarea:focus { outline: none; border-color: var(--accent); }
.contact-form__submit { width: 100%; }
.contact-form__legal { margin-top: 14px; font-size: 13.5px; line-height: 1.55; color: #8a86b8; text-align: center; }
.contact-form__legal a { color: #5b5878; border-bottom: 1px solid #d5d2e6; }
.contact-form__legal a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.contact-form__feedback { margin-top: 20px; padding: 16px 18px; border-radius: 10px; background: #e6f6ee; }
.contact-form__feedback.is-error { background: #fde8e8; }
.contact-form__feedback h4 { font-size: 15.5px; margin-bottom: 4px; color: #141235; }
.contact-form__feedback p { font-size: 14.5px; color: #5b5878; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } .contact-form__field { grid-column: span 2 !important; } }

/* ============ FOOTER ============ */
.site-footer { background: #f7f6fc; padding: 72px 30px 100px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.site-footer__desc { margin: 26px 0 20px; font-size: 15.5px; line-height: 1.6; color: #5b5878; max-width: 290px; }
.site-footer__line { margin: 0 0 8px; font-size: 15.5px; color: #4a4768; }
.site-footer__line strong { color: var(--accent); }
.site-footer__col h4 { font-size: 18px; font-weight: 700; margin-bottom: 22px; }
.site-footer__col ul { display: flex; flex-direction: column; gap: 14px; }
.site-footer__col a { font-size: 15.5px; color: #4a4768; }
.site-footer__col a:hover { color: var(--accent); }
.site-footer__bottom { border-top: 1px solid #e3e1ee; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; color: #7c799a; }

@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

.whatsapp-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 60; background: #25D366; color: #fff;
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.4); transition: transform .2s;
}
.whatsapp-fab:hover { transform: scale(1.08); color: #fff; }

/* ============ COOKIES ============ */
.cookie-banner {
  position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 90; max-width: 560px;
  background: #1a1442; color: #fff; border-radius: 14px; padding: 20px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
  transform: translateY(140%); transition: transform .4s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner p { font-size: 14px; line-height: 1.5; color: #c8c5e4; flex: 1; min-width: 200px; }
.cookie-banner a { color: var(--accent-light); text-decoration: underline; }

/* ============ RESPONSIVE TYPE SCALE ============ */
@media (max-width: 780px) {
  .h2 { font-size: 32px; }
  .hero__headline { font-size: 34px; }
  .section { padding: calc(var(--section-spacing) * .3) 20px; }
  .wrap { padding: 0 20px; }
}

/* ============ FICHA DE PRODUCTO ============ */

/* Encabezados de sección alineados a la izquierda: centrar todo es lo que
   hace que una página se lea como plantilla. */
.prod-head { max-width: 620px; margin-bottom: 54px; }
.prod-head .h2 { font-size: 42px; letter-spacing: -1px; }

/* ---- Marco de navegador: da contexto de producto real a cada captura ---- */
.prod-frame {
  border-radius: 14px; overflow: hidden; background: #fff;
  border: 1px solid rgba(20,18,53,.12);
  box-shadow: 0 40px 80px -40px rgba(6,4,26,.7), 0 2px 6px rgba(6,4,26,.06);
}
.prod-frame__bar {
  display: flex; align-items: center; gap: 14px; padding: 0 14px; height: 38px;
  background: #f2f1f8; border-bottom: 1px solid rgba(20,18,53,.09);
}
.prod-frame__dots { display: flex; gap: 6px; flex: none; }
.prod-frame__dots i { width: 9px; height: 9px; border-radius: 50%; background: #d3d0e2; display: block; }
.prod-frame__url {
  flex: 1; font-size: 11.5px; color: #8a86b8; background: #fff; border-radius: 6px;
  padding: 4px 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.prod-frame__screen { background: #f7f6fc; }
.prod-frame__screen img { width: 100%; height: auto; display: block; transition: opacity .2s ease; }

/* ---- Hueco de imagen pendiente (solo mientras se arma el sitio) ---- */
.prod-slot {
  border: 1.5px dashed rgba(20,18,53,.2); border-radius: 14px;
  background: repeating-linear-gradient(-45deg, rgba(20,18,53,.022) 0 12px, transparent 12px 24px);
  aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.prod-hero .prod-slot { border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.035); }
.prod-slot__inner { text-align: center; max-width: 280px; }
.prod-slot__badge {
  display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--accent); background: var(--accent-soft);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 14px;
}
.prod-hero .prod-slot__badge { color: #fff; background: rgba(255,255,255,.16); }
.prod-slot__title { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: #2a2750; }
.prod-slot__meta { margin-top: 6px; font-size: 12.5px; color: #8a86b8; font-variant-numeric: tabular-nums; }
.prod-hero .prod-slot__title { color: #fff; }
.prod-hero .prod-slot__meta { color: rgba(255,255,255,.55); }

/* ---- Encabezado de la ficha: banda oscura, tipografía grande ---- */
.prod-hero {
  position: relative; background: #1a1442; color: #fff; overflow: hidden;
  padding: 0 30px 96px;
}
.prod-hero::before {
  content: ''; position: absolute; top: -30%; right: -10%; width: 60%; aspect-ratio: 1;
  background: var(--accent-deep); border-radius: 50%; filter: blur(90px); opacity: .55;
  pointer-events: none;
}
.prod-hero > .wrap { position: relative; }
.prod-crumbs { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: rgba(255,255,255,.45); padding: 30px 0 0; }
.prod-crumbs a { color: rgba(255,255,255,.7); }
.prod-crumbs a:hover { color: #fff; }
.prod-crumbs__here { color: #fff; font-weight: 600; }

.prod-hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; padding-top: 58px; }
.prod-hero--solo .prod-hero__grid { grid-template-columns: 1fr; max-width: 780px; }
.prod-hero__rubro {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  padding: 8px 15px; border-radius: 999px;
}
.prod-hero__title {
  font-size: clamp(46px, 6vw, 76px); line-height: .98; font-weight: 700;
  letter-spacing: -2.4px; color: #fff; margin: 24px 0 22px;
}
.prod-hero__desc { font-size: 19px; line-height: 1.62; color: #c8c5e4; max-width: 560px; }
.prod-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.prod-hero__meta {
  margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.13);
  font-size: 14.5px; color: rgba(255,255,255,.62);
}
.prod-hero__meta strong { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.prod-hero__meta span { margin: 0 8px; opacity: .4; }

/* ---- Qué resuelve: tabla comparativa, no tarjetas repetidas ---- */
.prod-compare__heads {
  display: grid; grid-template-columns: 52px 1fr 44px 1fr; gap: 0 20px;
  padding: 0 0 14px; border-bottom: 2px solid #141235;
}
.prod-compare__head {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
}
.prod-compare__head--bad { grid-column: 2; color: #8a86b8; }
.prod-compare__head--good { grid-column: 4; color: var(--accent); }
.prod-compare__row {
  display: grid; grid-template-columns: 52px 1fr 44px 1fr; gap: 0 20px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid #ececf6;
  transition: background .25s ease;
}
.prod-compare__row:hover { background: #faf9fd; }
.prod-compare__num {
  font-family: var(--font-display); font-size: 14px; font-weight: 700; color: #cfccdf;
  font-variant-numeric: tabular-nums; transition: color .25s ease;
}
.prod-compare__row:hover .prod-compare__num { color: var(--accent); }
.prod-compare__bad { font-size: 16px; line-height: 1.5; color: #8a86b8; }
.prod-compare__good { font-size: 16.5px; line-height: 1.5; color: #141235; font-weight: 500; }
.prod-compare__arrow {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; color: var(--accent); background: var(--accent-soft);
  transition: transform .35s cubic-bezier(.3,.8,.35,1), background .25s ease, color .25s ease;
}
.prod-compare__row:hover .prod-compare__arrow { background: var(--accent); color: #fff; transform: translateX(3px); }

/* ---- Módulos: índice editorial, sin rejilla de tarjetas ---- */
.prod-modules__wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.prod-modules__aside { position: sticky; top: 118px; }
.prod-modules__count {
  font-family: var(--font-display); font-size: 88px; line-height: 1; font-weight: 700;
  color: var(--accent); opacity: .16; margin-top: 34px; font-variant-numeric: tabular-nums;
}
.prod-modules__note { margin-top: 18px; font-size: 14.5px; line-height: 1.6; color: #7c799a; max-width: 260px; }

/* El reset global solo cubre ul; este ol necesita el suyo o sale la viñeta. */
.prod-modules__list { border-top: 1px solid #e2e0ee; margin: 0; padding: 0; list-style: none; }
.prod-mod {
  display: grid; grid-template-columns: 46px 44px 1fr; gap: 0 16px; align-items: start;
  padding: 26px 16px 26px 0; border-bottom: 1px solid #e2e0ee;
  transition: padding-left .35s cubic-bezier(.3,.8,.35,1), background .25s ease;
}
.prod-mod:hover { background: #fff; padding-left: 16px; }
.prod-mod__num {
  font-family: var(--font-display); font-size: 13px; font-weight: 700; color: #b6b2cf;
  padding-top: 13px; font-variant-numeric: tabular-nums; transition: color .25s ease;
}
.prod-mod:hover .prod-mod__num { color: var(--accent); }
.prod-mod__icon {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 13px; color: var(--accent); background: var(--accent-soft);
  transition: background .3s ease, color .3s ease, transform .4s cubic-bezier(.3,.8,.35,1);
}
.prod-mod:hover .prod-mod__icon { background: var(--accent); color: #fff; transform: rotate(-5deg) scale(1.05); }
.prod-mod__copy h3 { font-size: 19px; font-weight: 600; line-height: 1.3; color: #141235; padding-top: 8px; }
.prod-mod__copy p { margin-top: 7px; font-size: 15px; line-height: 1.6; color: #5b5878; max-width: 520px; }

/* ---- Capturas ---- */
.prod-shots__stage { max-width: 1000px; }
.prod-shots__caption { margin-top: 18px; font-size: 14.5px; line-height: 1.5; color: #5b5878; max-width: 620px; }
.prod-shots__thumbs { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.prod-shots__thumb {
  width: 138px; height: 88px; border-radius: 10px; overflow: hidden; padding: 0;
  border: 2px solid transparent; opacity: .5;
  transition: opacity .25s ease, border-color .25s ease, transform .3s cubic-bezier(.3,.8,.35,1);
}
.prod-shots__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.prod-shots__thumb:hover { opacity: .85; transform: translateY(-3px); }
.prod-shots__thumb.is-active { opacity: 1; border-color: var(--accent); }
.prod-shots__slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }

/* ---- Cierre ---- */
.prod-cta__inner { max-width: 720px; }
.prod-cta__inner .lead { margin-left: 0; }

.prod-others__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.prod-other {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; color: inherit;
  background: #fff; border: 1px solid #ececf6; border-radius: 16px;
  transition: border-color .3s ease, transform .3s cubic-bezier(.3,.8,.35,1), box-shadow .3s ease;
}
.prod-other:hover { transform: translateY(-3px); border-color: #dedbf7; box-shadow: 0 20px 40px -24px rgba(20,18,53,.45); }
.prod-other__icon {
  display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: none;
  border-radius: 13px; color: var(--accent); background: var(--accent-soft);
}
.prod-other h3 { font-size: 16.5px; font-weight: 600; color: #141235; }
.prod-other p { font-size: 13.5px; color: #7c799a; margin-top: 3px; }
.prod-other__go { margin-left: auto; color: #b6b2cf; flex: none; transition: transform .3s cubic-bezier(.3,.8,.35,1), color .3s ease; }
.prod-other:hover .prod-other__go { color: var(--accent); transform: translateX(5px); }

.prod-404__inner { max-width: 720px; }
.prod-404 .prod-hero__actions { margin-bottom: 56px; }

@media (max-width: 1000px) {
  .prod-hero__grid, .prod-modules__wrap { grid-template-columns: 1fr; gap: 40px; }
  .prod-modules__aside { position: static; }
  .prod-modules__count { display: none; }
}
@media (max-width: 720px) {
  .prod-hero { padding-bottom: 64px; }
  .prod-hero__title { letter-spacing: -1.2px; }
  .prod-head .h2 { font-size: 32px; letter-spacing: -.6px; }
  .prod-compare__heads { display: none; }
  .prod-compare__row { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .prod-compare__num { padding-top: 0; }
  .prod-compare__arrow { transform: rotate(90deg); margin: 2px 0; }
  .prod-compare__row:hover .prod-compare__arrow { transform: rotate(90deg); }
  .prod-mod { grid-template-columns: 40px 1fr; gap: 0 14px; }
  .prod-mod__icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .prod-mod, .prod-compare__row, .prod-other, .prod-shots__thumb,
  .prod-compare__arrow, .prod-mod__icon, .prod-frame__screen img { transition: none; }
}

/* Texto solo para lectores de pantalla. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- En preparación: decir qué falta da más confianza que ocultarlo ---- */
.prod-roadmap { padding: 30px 0 6px; }
.prod-roadmap__title {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
  color: #a5a2bd; margin-bottom: 16px;
}
.prod-roadmap ul { display: flex; flex-direction: column; gap: 11px; }
.prod-roadmap li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14.5px; line-height: 1.5; }
.prod-roadmap strong { font-weight: 600; color: #6f6c8e; }
.prod-roadmap strong::before { content: '○'; margin-right: 9px; color: #c4c1d6; font-size: 11px; vertical-align: 1px; }
.prod-roadmap span { color: #a5a2bd; }

/* ---- Para quién es ---- */
.prod-who__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px 34px; }
.prod-who__item { border-top: 2px solid #141235; padding-top: 20px; }
.prod-who__icon { display: inline-flex; color: var(--accent); margin-bottom: 14px; }
.prod-who__item h3 { font-size: 17.5px; font-weight: 600; line-height: 1.3; color: #141235; }
.prod-who__item p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: #5b5878; }

/* ---- Planes: tabla comparativa ---- */
.prod-plans__scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.prod-plans__table { width: 100%; min-width: 620px; border-collapse: collapse; text-align: left; }
.prod-plans__table th, .prod-plans__table td { padding: 15px 18px; font-size: 15px; }
.prod-plans__table thead th {
  font-family: var(--font-display); font-size: 19px; font-weight: 700; color: #141235;
  padding-top: 0; padding-bottom: 18px; vertical-align: bottom; border-bottom: 2px solid #141235;
}
.prod-plans__table thead th.is-featured { color: var(--accent); }
.prod-plans__tag {
  display: block; margin-top: 7px; font-family: var(--font-body); font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .7px; color: var(--accent);
}
.prod-plans__table tbody th { font-weight: 500; color: #5b5878; padding-left: 0; }
.prod-plans__table tbody tr { border-bottom: 1px solid #e2e0ee; }
.prod-plans__table tbody tr:hover { background: rgba(255,255,255,.75); }
.prod-plans__table td { color: #2a2750; font-weight: 600; font-variant-numeric: tabular-nums; }
.prod-plans__table td.is-featured { background: rgba(var(--accent-rgb), .05); }
.prod-plans__table tr.is-price td { font-family: var(--font-display); font-size: 25px; font-weight: 700; color: #141235; padding-top: 22px; }
.prod-plans__table tr.is-price td.is-featured { color: var(--accent); }
.prod-plans__yes { display: inline-flex; color: var(--accent); }
.prod-plans__no { color: #c4c1d6; }
.prod-plans__note { margin-top: 26px; font-size: 14px; line-height: 1.65; color: #7c799a; max-width: 640px; }

@media (max-width: 720px) {
  .prod-plans__table th, .prod-plans__table td { padding: 12px 14px; font-size: 14px; }
  .prod-plans__table tr.is-price td { font-size: 21px; }
  .prod-who__grid { gap: 30px 24px; }
}

/* ---- Qué es: cita de apertura + texto de posicionamiento ---- */
.prod-intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.prod-intro__quote {
  margin: 0; padding-left: 26px; border-left: 3px solid var(--accent);
  font-family: var(--font-display); font-size: 23px; line-height: 1.48; font-weight: 500;
  color: #141235; letter-spacing: -.3px;
}
.prod-intro__body p { font-size: 16.5px; line-height: 1.72; color: #5b5878; }
.prod-intro__body p + p { margin-top: 20px; }
.prod-intro__lead { color: #2a2750; }

/* ---- Quién lo usa: tabla de dos columnas con filetes ---- */
.prod-roles__list { border-top: 2px solid #141235; }
.prod-roles__row {
  display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: baseline;
  padding: 20px 12px 20px 0; border-bottom: 1px solid #e2e0ee;
  transition: background .25s ease, padding-left .3s cubic-bezier(.3,.8,.35,1);
}
.prod-roles__row:hover { background: #fff; padding-left: 12px; }
.prod-roles__who { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: #141235; }
.prod-roles__does { font-size: 15.5px; line-height: 1.55; color: #5b5878; }

/* ---- Lo que se gana el primer mes ---- */
.prod-gain__inner { max-width: 900px; }
.prod-gain__label {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .9px;
  color: var(--accent); margin-bottom: 20px;
}
.prod-gain__text {
  font-family: var(--font-display); font-size: 30px; line-height: 1.4; font-weight: 500;
  color: #141235; letter-spacing: -.6px;
}

@media (max-width: 900px) {
  .prod-intro__grid { grid-template-columns: 1fr; gap: 34px; }
  .prod-intro__quote { font-size: 20px; }
  .prod-roles__row { grid-template-columns: 1fr; gap: 6px; }
  .prod-gain__text { font-size: 22px; letter-spacing: -.3px; }
}
@media (prefers-reduced-motion: reduce) { .prod-roles__row { transition: none; } }

/* ---- Bloque de pruebas: argumentos numerados + cifras al costado ---- */
.prod-proof__grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 60px; align-items: start; }
.prod-proof__list { margin: 0; padding: 0; list-style: none; counter-reset: prueba; border-top: 1px solid #e2e0ee; }
.prod-proof__list li { counter-increment: prueba; padding: 24px 0; border-bottom: 1px solid #e2e0ee; }
.prod-proof__list h3 {
  display: flex; gap: 14px; font-size: 18px; font-weight: 600; line-height: 1.35; color: #141235;
}
.prod-proof__list h3::before {
  content: counter(prueba, decimal-leading-zero);
  font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--accent);
  padding-top: 4px; flex: none; font-variant-numeric: tabular-nums;
}
.prod-proof__list p { margin-top: 8px; padding-left: 30px; font-size: 15px; line-height: 1.62; color: #5b5878; }

.prod-proof__stats { position: sticky; top: 118px; display: flex; flex-direction: column; gap: 26px; }
.prod-stat { border-left: 3px solid var(--accent); padding-left: 18px; }
.prod-stat__value {
  font-family: var(--font-display); font-size: 40px; line-height: 1; font-weight: 700;
  color: #141235; font-variant-numeric: tabular-nums; letter-spacing: -1.5px;
}
.prod-stat__label { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: #7c799a; }

@media (max-width: 1000px) {
  .prod-proof__grid { grid-template-columns: 1fr; gap: 40px; }
  .prod-proof__stats { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; }
}

/* ---- Fleet: semáforo de pautas por unidad ---- */
.demo__fleet { display: flex; flex-direction: column; gap: 18px; }
.demo__unit-head { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; }
.demo__unit-placa {
  font-family: var(--font-display); font-size: 14.5px; font-weight: 700; color: #141235;
  letter-spacing: .3px;
}
.demo__unit-pauta { font-size: 12.5px; color: #7c799a; }
.demo__unit-head .demo__tag { margin-left: auto; }
.demo__unit-track { position: relative; height: 10px; border-radius: 999px; background: #eceaf5; overflow: hidden; }
.demo__unit-goal { position: absolute; right: 0; top: 0; bottom: 0; width: 3px; background: rgba(224,83,61,.5); z-index: 1; }
.demo__unit-fill { display: block; height: 100%; border-radius: 999px; background: var(--accent); width: 0; }
.demo__unit.is-warn .demo__unit-fill { background: #f0b429; }
.demo__unit.is-over .demo__unit-fill { background: #e0533d; }
.demo__unit-km { margin-top: 7px; font-size: 12.5px; color: #8a86b8; font-variant-numeric: tabular-nums; }

/* ---- Docs: los avisos escritos por adelantado ---- */
.demo__doc {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 17px; border-radius: 12px; background: #f7f6fc; margin-bottom: 26px;
}
.demo__doc-name { font-family: var(--font-display); font-size: 15.5px; font-weight: 600; color: #141235; }
.demo__doc-due { font-size: 13px; font-weight: 600; color: var(--accent); }

.demo__marks { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 26px; }
.demo__marks-line { position: absolute; left: 10%; right: 10%; top: 6px; height: 2px; background: #eceaf5; border-radius: 2px; }
.demo__marks-line i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 2px; }
.demo__mark { position: relative; text-align: center; padding-top: 20px; }
.demo__mark-dot {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 13px; height: 13px; border-radius: 50%; background: #fff;
  border: 2px solid #d3d0e2; box-sizing: border-box;
}
.demo__mark-label { font-size: 13px; font-weight: 700; color: #a5a2bd; font-variant-numeric: tabular-nums; }
.demo__mark-channel { margin-top: 3px; font-size: 11px; line-height: 1.35; color: #b6b2cf; }
.demo__mark.is-on .demo__mark-dot { background: var(--accent); border-color: var(--accent); }
.demo__mark.is-on .demo__mark-label { color: #141235; }
.demo__mark.is-on .demo__mark-channel { color: #7c799a; }
.demo__mark.is-live .demo__mark-dot { background: var(--accent); border-color: var(--accent); }
.demo__mark.is-live .demo__mark-label { color: var(--accent); }

.demo__tag--bad { background: rgba(224,83,61,.12); color: #b83f2b; }

@media (max-width: 820px) {
  .demo__unit-head { flex-wrap: wrap; gap: 6px 10px; }
  .demo__unit-head .demo__tag { margin-left: 0; }
  .demo__marks { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .demo__mark-channel { display: none; }
  .demo__doc { flex-direction: column; gap: 4px; }
}

/* ---- Vista de aplicación densa: menú, barra de herramientas y tabla ----
   El software real es apretado. El error típico de una maqueta es padding
   generoso en todo, que deja las tarjetas huecas en vez de espaciosas. */
.demo__app--dense { max-width: 1000px; }
.demo__ui { display: grid; grid-template-columns: 178px 1fr; min-height: 430px; }
.demo__nav {
  display: flex; flex-direction: column; gap: 1px; padding: 14px 10px;
  background: #fbfaff; border-right: 1px solid #eceaf5;
}
.demo__nav-item {
  padding: 8px 11px; border-radius: 7px; font-size: 13px; font-weight: 500; color: #7c799a;
}
.demo__nav-item.is-on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.demo__main { display: flex; flex-direction: column; min-width: 0; }
.demo__toolbar {
  display: flex; align-items: center; gap: 12px; padding: 13px 18px;
  border-bottom: 1px solid #f0eef8;
}
.demo__search {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0;
  padding: 7px 12px; border-radius: 8px; border: 1px solid #e7e5f3; background: #fbfaff;
  font-size: 12.5px; color: #a5a2bd; overflow: hidden; white-space: nowrap;
}
.demo__search svg { flex: none; color: #b6b2cf; }
.demo__btn {
  flex: none; padding: 7px 14px; border-radius: 8px; background: var(--accent); color: #fff;
  font-size: 12.5px; font-weight: 600;
}
.demo__filters { display: flex; gap: 4px; padding: 11px 18px 0; }
.demo__filter {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 7px;
  font-size: 12.5px; font-weight: 500; color: #7c799a;
}
.demo__filter b { font-weight: 700; color: #a5a2bd; font-variant-numeric: tabular-nums; }
.demo__filter.is-on { background: #f2f1f8; color: #141235; }
.demo__filter.is-on b { color: #5b5878; }

.demo__table-wrap { position: relative; flex: 1; overflow: hidden; padding: 8px 0 0; }
.demo__table { width: 100%; border-collapse: collapse; }
.demo__table th {
  text-align: left; padding: 8px 14px; font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; color: #b6b2cf;
  border-bottom: 1px solid #eceaf5; white-space: nowrap;
}
.demo__table th:first-child, .demo__table td:first-child { padding-left: 18px; }
.demo__table td {
  padding: 9px 14px; font-size: 12.5px; color: #2a2750; border-bottom: 1px solid #f4f3fa;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.demo__table tbody tr { transition: background .3s ease; }
.demo__td-code { color: #a5a2bd; font-variant-numeric: tabular-nums; }
.demo__td-name { font-weight: 600; color: #141235; max-width: 190px; }
.demo__td-ent { color: #5b5878; max-width: 150px; }
.demo__td-due { font-variant-numeric: tabular-nums; }
.demo__td-next { color: #7c799a; }
.demo__chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.demo__chip--good { background: rgba(31,157,99,.11); color: #1a8a57; }
.demo__chip--warn { background: rgba(214,140,20,.14); color: #a86a06; }
.demo__chip--bad  { background: rgba(224,83,61,.12); color: #b83f2b; }

/* La tabla se corta abajo: es una ventana a algo más grande, no una lista completa. */
.demo__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 72px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 82%);
}
.demo__hint--out { max-width: 1000px; margin: 16px auto 0; }

@media (max-width: 820px) {
  .demo__ui { grid-template-columns: 1fr; min-height: 340px; }
  .demo__nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #eceaf5; padding: 10px; }
  .demo__nav-item { white-space: nowrap; }
  .demo__td-ent, .demo__td-next { display: none; }
  .demo__table th:nth-child(3), .demo__table th:nth-child(5) { display: none; }
}

/* ============ PÁGINAS LEGALES ============ */
/* Documento largo con índice fijo al costado: se consulta por saltos, no se lee entero. */
.legal-hero {
  position: relative; background: #1a1442; color: #fff; overflow: hidden;
  padding: 0 30px 72px;
}
.legal-hero::before {
  content: ''; position: absolute; top: -55%; left: -8%; width: 46%; aspect-ratio: 1;
  background: var(--accent-deep); border-radius: 50%; filter: blur(100px); opacity: .5;
  pointer-events: none;
}
.legal-hero > .wrap { position: relative; }
.legal-hero__body { max-width: 720px; padding-top: 46px; }
.legal-hero__eyebrow {
  font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--accent-light);
}
.legal-hero__title {
  font-size: clamp(38px, 5vw, 58px); line-height: 1.02; font-weight: 700;
  letter-spacing: -1.6px; color: #fff; margin: 18px 0 22px;
}
.legal-hero__intro { font-size: 17.5px; line-height: 1.68; color: #c8c5e4; }
.legal-hero__updated {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13);
  font-size: 14px; color: rgba(255,255,255,.6);
}
.legal-hero__updated strong { color: #fff; font-weight: 600; }

.legal-body { padding-top: 74px; padding-bottom: 90px; }
.legal-body__wrap { display: grid; grid-template-columns: 268px 1fr; gap: 76px; align-items: start; }

.legal-index { position: sticky; top: 118px; }
.legal-index__title {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
  color: #b6b2cf; padding-bottom: 14px; border-bottom: 1px solid #ececf6;
}
.legal-index__list { list-style: none; margin: 0; padding: 0; }
.legal-index__list a {
  display: flex; gap: 12px; padding: 11px 0; font-size: 14.5px; line-height: 1.4;
  color: #5b5878; border-bottom: 1px solid #f4f3fa; transition: color .2s ease;
}
.legal-index__list a:hover { color: var(--accent); }
.legal-index__num {
  flex: none; font-family: var(--font-display); font-size: 12px; font-weight: 700;
  color: #cfccdf; font-variant-numeric: tabular-nums; padding-top: 2px;
}
.legal-index__list a:hover .legal-index__num { color: var(--accent); }

.legal-index__help {
  margin-top: 26px; padding: 20px; border-radius: var(--corner-radius);
  background: #f7f6fc; border: 1px solid #ececf6;
}
.legal-index__help > p { font-size: 14px; font-weight: 600; color: #141235; margin-bottom: 12px; }
.legal-index__wa {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600;
  color: var(--accent);
}
.legal-index__mail { display: block; margin-top: 8px; font-size: 13.5px; color: #7c799a; word-break: break-all; }
.legal-index__mail:hover { color: var(--accent); }

.legal-doc { max-width: 760px; }
.legal-block { padding-bottom: 42px; margin-bottom: 42px; border-bottom: 1px solid #ececf6; scroll-margin-top: 110px; }
.legal-block:last-of-type { border-bottom: 0; }
.legal-block__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.legal-block__num {
  flex: none; font-family: var(--font-display); font-size: 14px; font-weight: 700;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.legal-block__title { font-size: 27px; line-height: 1.2; font-weight: 700; letter-spacing: -.5px; color: #141235; }
.legal-block__body { padding-left: 46px; }
.legal-p { font-size: 16.5px; line-height: 1.72; color: #4a4768; }
.legal-p + .legal-p { margin-top: 16px; }
.legal-p a { font-weight: 600; border-bottom: 1.5px solid var(--accent); padding-bottom: 1px; }

.legal-list { margin: 18px 0 0; padding: 0; list-style: none; }
.legal-list + .legal-p { margin-top: 18px; }
.legal-list li {
  position: relative; padding-left: 24px; font-size: 16px; line-height: 1.68; color: #4a4768;
}
.legal-list li + li { margin-top: 11px; }
.legal-list li::before {
  content: ''; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px;
  border-radius: 2px; background: var(--accent); opacity: .45;
}

/* El bloque de WhatsApp es el que casi todos vienen a leer: va destacado. */
.legal-block--wa {
  background: var(--accent-soft); border: 1px solid rgba(var(--accent-rgb), .18);
  border-radius: var(--corner-radius); padding: 32px 34px; margin-bottom: 42px;
}
.legal-block--wa .legal-block__body { padding-left: 0; }
.legal-block--wa .legal-list li::before { opacity: .75; }

.legal-close {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
  margin-top: 10px; padding: 28px 32px; border-radius: var(--corner-radius);
  background: #1a1442; color: #fff;
}
.legal-close__text { font-size: 16.5px; line-height: 1.6; color: #c8c5e4; max-width: 420px; }

@media (max-width: 980px) {
  .legal-body__wrap { grid-template-columns: 1fr; gap: 40px; }
  .legal-index { position: static; }
  .legal-index__list { columns: 2; column-gap: 26px; }
  .legal-index__list li { break-inside: avoid; }
}
@media (max-width: 640px) {
  .legal-body { padding-top: 52px; }
  .legal-index__list { columns: 1; }
  .legal-block__body { padding-left: 0; }
  .legal-block--wa { padding: 24px 20px; }
  .legal-close { padding: 24px 22px; }
}
