/* ==========================================================================
   Loomkin × Sound Map, Estudio de Publishing
   Builds on styles.css (Loomkin main style) and the inner-page components in
   estudio-de-diseno.css (st-hero, st-band, st-meta, st-quote).

   Two brands, kept apart on purpose:
   - Loomkin owns the page: dark violet ground, Poppins, nav, buttons, CTA.
   - Sound Map tokens (below) appear ONLY on Sound Map-owned elements: the
     mosaic mark, the light logo band, "La alianza", the localization card,
     its badge, and the line pattern behind the track record.
   ========================================================================== */

:root {
  /* Sound Map palette, as used on soundmap.mx */
  --sm-plum: #360F33;
  --sm-magenta: #EB0095;
  --sm-pink: #FF62C6;
  --sm-yellow: #FFD936;
  --sm-grey: #D9D9E4;
  --sm-ink: #111111;
  /* Mosaic mark keeps the lighter burgundy used on the live page, so it reads on violet. */
  --sm-burgundy: #523854;
}

/* Hero ---------------------------------------------------------------- */
.pb-hero__title { font-size: clamp(2.2rem, 3.8vw, 3.5rem); }
.pb-hero__row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.pb-mosaic { display: grid; place-items: center; }
.pb-mosaic svg { width: auto; height: clamp(180px, 22vw, 280px); }

/* Logo band (Sound Map light) -------------------------------------------- */
.pb-logos {
  position: relative;
  background: var(--sm-pink);
  padding: 44px 0 40px;
  overflow: hidden;
}
.pb-logos__label {
  margin: 0 auto 28px;
  padding-inline: var(--gutter);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--sm-ink);
}
.pb-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.pb-marquee__track { display: flex; width: max-content; animation: pb-scroll 46s linear infinite; }
.pb-logos.is-paused .pb-marquee__track { animation-play-state: paused; }
.pb-marquee__set { display: flex; align-items: center; gap: 16px; padding-right: 16px; }
.pb-marquee__set li {
  display: grid; place-items: center;
  width: 168px; height: 76px;
  border-radius: 18px;
  background: #fff;
}
.pb-marquee__set img { max-height: 30px; max-width: 120px; width: auto; height: auto; object-fit: contain; }
@keyframes pb-scroll { to { transform: translateX(-50%); } }
.pb-marquee__toggle {
  position: absolute; right: var(--gutter); bottom: 10px;
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.35);
  background: #fff;
  color: var(--sm-ink); font-size: 15px;
  transition: border-color 0.3s var(--ease);
}
.pb-marquee__toggle:hover { border-color: var(--sm-ink); }
.pb-marquee__toggle:focus-visible { outline-color: var(--sm-ink); }

/* La brecha ---------------------------------------------------------------- */
.pb-gap { background: var(--ink-2); }
.pb-gap__title { max-width: 22ch; }
.pb-gap__lead { max-width: 62ch; margin-top: 24px; color: var(--muted); }
.pb-vs { margin-top: clamp(48px, 6vw, 80px); grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.pb-vs .door__kicker { font-size: 1.15rem; font-weight: 700; margin-bottom: 18px; }
.pb-vs .door:not(.door--full) li i { color: rgba(231, 223, 255, 0.5); }
.pb-vs .doors__or { font-size: 1rem; text-transform: lowercase; }

/* La alianza (Sound Map light section) -------------------------------------- */
.pb-alliance { background: var(--sm-grey); color: var(--sm-ink); }
.pb-alliance h2, .pb-alliance h3 { color: var(--sm-ink); }
.pb-alliance__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  margin-top: 28px;
}
.pb-alliance__label {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sm-plum);
  margin-bottom: 28px;
}
.pb-alliance__label::before { content: ""; width: 32px; height: 1px; background: currentColor; opacity: 0.7; }
.pb-alliance__title em { font-style: normal; color: var(--sm-magenta); }
.pb-alliance__title { max-width: 20ch; }
.pb-alliance__lead { color: rgba(17, 17, 17, 0.72); max-width: 60ch; }
.pb-alliance__quote {
  margin-top: 36px;
  padding-left: 22px;
  border-left: 4px solid var(--sm-magenta);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.022em;
  color: var(--sm-ink);
  max-width: 32ch;
}
.pb-alliance__quote em { font-style: normal; color: var(--sm-magenta); }
.pb-first {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-outer);
  background: #fff;
}
.pb-first h3 { font-size: 1.1rem; margin-bottom: 12px; color: var(--sm-plum); }
.pb-first p { color: rgba(17, 17, 17, 0.72); font-size: 15.5px; }
.pb-first strong { color: var(--sm-ink); }
.pb-office { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid rgba(17, 17, 17, 0.18); }
.pb-office li {
  display: grid;
  grid-template-columns: 56px minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 24px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.18);
}
.pb-office img { width: 44px; height: 44px; object-fit: contain; }
.pb-office h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); letter-spacing: -0.02em; }
.pb-office p { color: rgba(17, 17, 17, 0.65); font-size: 16px; }
.pb-alliance__wide { margin-top: clamp(40px, 5vw, 64px); max-width: 72ch; color: rgba(17, 17, 17, 0.72); }
.pb-alliance__wide strong { color: var(--sm-ink); }
.pb-alliance :focus-visible { outline-color: var(--sm-ink); }

/* Nuestra solución: the split of work, by brand ------------------------------- */
.pb-solution { background: var(--ink); padding-bottom: calc(var(--sec-y) * 0.75); }
.pb-solution__title { max-width: 22ch; }
.pb-solution__lead { margin-top: 20px; color: var(--muted); }
.pb-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(48px, 6vw, 80px);
}
.pb-card {
  padding: clamp(28px, 3.4vw, 44px);
  border-radius: var(--r-outer);
}
.pb-card h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; line-height: 1.15; margin: 14px 0 22px; }
.pb-card li { padding: 12px 0; font-size: 15.5px; border-top: 1px solid var(--hair); }
.pb-card li:last-child { border-bottom: 1px solid var(--hair); }
/* Side-by-side cards share rows (badge, title, list) so both lists start on the same line. */
.pb-split > .pb-card:not(.pb-card--wide) { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.pb-card h3 { align-self: start; }
.pb-card--sm { background: var(--sm-yellow); }
.pb-card--sm h3 { color: var(--sm-ink); }
.pb-card--sm li { color: rgba(17, 17, 17, 0.82); border-color: rgba(17, 17, 17, 0.14); }
.pb-card--lk { background: var(--tile-glow), var(--ink-2); border: 1px solid var(--hair); }
.pb-card--lk li { color: var(--lilac); }
/* Wide card: heading left, the four specialties as a 2x2 grid right. */
.pb-card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 5vw, 72px); align-items: center; }
.pb-card--wide h3 { margin-bottom: 0; }
.pb-card--wide ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.pb-card--wide li { color: #fff; font-size: 17px; font-weight: 500; padding: 18px 0; }
.pb-card--wide li:nth-last-child(2) { border-bottom: 1px solid var(--hair); }
.pb-badge { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--peri); }
.pb-badge--sm { color: var(--sm-plum); }
.pb-solution__note { margin-top: clamp(28px, 3vw, 40px); text-align: center; font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 600; color: #fff; }

/* Cómo funciona ---------------------------------------------------------------- */
.pb-process { background: var(--ink-2); }
.pb-process__title { max-width: 22ch; }
.pb-process__steps { margin-top: clamp(48px, 6vw, 80px); }
.pb-process__note { margin-top: clamp(40px, 5vw, 64px); max-width: 72ch; color: var(--muted); }
.pb-process__note strong { color: #fff; }

/* Trayectoria (Sound Map line pattern in the background) ------------------------ */
.pb-track { background: var(--ink-3); overflow: hidden; }
.pb-track__bg {
  position: absolute;
  top: -5%;
  left: -10%;
  width: 130%;
  max-width: none;
  height: auto;
  opacity: 0.12;
  pointer-events: none;
}
.pb-track__content { position: relative; z-index: 1; }
/* Fade the line pattern out before the CTA so it never ends in a hard cut. */
.pb-track::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(to bottom, transparent, var(--ink-3) 85%); pointer-events: none; }
.pb-track__title { max-width: 20ch; }
.pb-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 48px;
  margin-top: clamp(48px, 6vw, 80px);
}
.pb-stats > div { padding: 0 clamp(16px, 2.2vw, 32px); border-left: 1px solid var(--hair); }
.pb-stats > div:nth-child(4n + 1) { padding-left: 0; border-left: 0; }
.pb-stats dt { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -0.045em; padding-bottom: 6px; margin-bottom: 12px; }
.pb-stats dd { color: var(--muted); font-size: 15px; max-width: 28ch; }
.pb-track__quote { max-width: 34ch; font-size: clamp(1.4rem, 2.6vw, 2.2rem); }
/* Sentences here are too long to stay on one line: each one wraps on its own, balanced. */
.pb-track__quote span { display: block; white-space: normal; text-wrap: balance; }
.pb-track__quote span + span { margin-top: 0.15em; }

/* CTA lockup (both brands, side by side, as on the live page) -------------------- */
/* Right column of the CTA, framed like the landing's "Qué te llevas". */
.pb-lockup { align-self: end; padding-left: 28px; border-left: 1px solid rgba(231, 223, 255, 0.28); }
.pb-lockup__logos { display: flex; align-items: center; gap: 22px; }
.pb-lockup__logos img:first-child { height: 48px; width: auto; }
.pb-lockup__sm { display: block; border-radius: 8px; transition: opacity 0.3s var(--ease); }
.pb-lockup__sm:hover { opacity: 0.8; }
.pb-lockup__sm img { display: block; height: 34px; width: auto; }
.pb-lockup__x { font-size: 22px; font-weight: 300; color: rgba(231, 223, 255, 0.5); }
.pb-lockup__tagline { margin-top: 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(231, 223, 255, 0.7); }

/* Motion + responsive ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .pb-marquee__track { animation: none; }
  .pb-marquee__set[aria-hidden="true"], .pb-marquee__toggle { display: none; }
  .pb-marquee__set { flex-wrap: wrap; justify-content: center; row-gap: 24px; padding-inline: var(--gutter); }
}
@media (max-width: 1080px) {
  .pb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pb-stats > div:nth-child(n) { padding-left: clamp(16px, 2.2vw, 32px); border-left: 1px solid var(--hair); }
  .pb-stats > div:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
  .pb-card--wide { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .pb-hero__row, .pb-alliance__grid, .pb-split, .pb-vs { grid-template-columns: minmax(0, 1fr); }
  .pb-mosaic { justify-items: start; }
  .pb-vs .doors__or { justify-self: center; }
  .pb-office li { grid-template-columns: 48px minmax(0, 1fr); }
  .pb-office p { grid-column: 2; }
}
@media (max-width: 560px) {
  .pb-stats { grid-template-columns: minmax(0, 1fr); }
  .pb-stats > div:nth-child(n) { padding-left: 0; border-left: 0; }
  .pb-card--wide ul { grid-template-columns: minmax(0, 1fr); }
  .pb-card--wide li:nth-last-child(2) { border-bottom: 0; }
  .pb-lockup__logos img:first-child { height: 44px; }
  .pb-lockup__sm img { height: 32px; }
}
