/* Condal CrossFit — portada: pantalla partida Gràcia | Poblenou, calles, «CrossFit para…», carteles de barrio,
   clases en scroll horizontal anclado, equipo y muro de carteles. */

/* Pantalla partida ------------------------------------------------------- */
.split { display: flex; flex-direction: column; height: calc(100svh - var(--header-h)); min-height: 660px; max-height: 1040px; background: var(--black); }
.split__head { border-bottom: 1px solid #262626; }
.split__head-in { display: grid; gap: 10px 48px; padding-block: clamp(22px, 3vw, 36px); }
.split__title { font-size: clamp(2.2rem, 4.4vw, 4.4rem); line-height: 0.98; color: var(--white); }
.split__title span { display: block; color: var(--white); }
.split__title span::before { content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-right: 0.22em; background: var(--red); vertical-align: 0.12em; }
.split__lead { margin: 0; max-width: 54ch; color: var(--silver); }
@media (min-width: 1000px) { .split__head-in { grid-template-columns: auto minmax(0, 46ch); align-items: end; justify-content: space-between; } }
.split__halves { position: relative; display: flex; flex: 1; min-height: 420px; }
.half { position: relative; flex: 1; min-width: 0; display: block; overflow: hidden; text-decoration: none; color: var(--white); transition: flex 0.8s var(--ease-io); }
.half + .half { border-left: 4px solid var(--black); }
.half__img { position: absolute; left: 0; top: -5%; width: 100%; height: 110%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s; }
.half__stack { position: absolute; left: clamp(14px, 2.4vw, 36px); bottom: clamp(14px, 2.4vw, 36px); display: grid; width: max-content; max-width: calc(100% - 2 * clamp(14px, 2.4vw, 36px)); }
.half--poblenou .half__stack { left: auto; right: clamp(14px, 2.4vw, 36px); }
.half__plaque { box-shadow: 10px 10px 0 var(--black); }
.plaque__k, .plaque__name, .plaque__sub { display: block; }
.half__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 10px; padding: 10px 14px; background: var(--black); color: var(--white); font-size: 0.88rem; font-weight: 600; }
.half__meta { display: inline-flex; align-items: center; gap: 4px; }
.half__go { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-family: var(--display); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); }
.half__go .ico { transition: transform 0.35s var(--ease); }
@media (hover: hover) {
  .split__halves:has(.half:hover) .half:not(:hover) .half__img { filter: grayscale(1) brightness(0.7); }
  .half:hover { flex: 1.45; }
  .half:hover .half__img { transform: scale(1.04); }
  .half:hover .half__go .ico { transform: translateX(6px); }
}
.split__seal { position: absolute; left: 50%; top: 48%; z-index: 2; transform: translate(-50%, -50%); pointer-events: none; transition: left 0.8s var(--ease-io); }
.split__seal .seal { pointer-events: auto; }
.split__halves:has(.half--gracia:hover) .split__seal { left: 59%; }
.split__halves:has(.half--poblenou:hover) .split__seal { left: 41%; }

/* Sello redondo (CTA principal) --------------------------------------- */
.seal { position: relative; overflow: hidden; display: grid; place-items: center; width: clamp(150px, 13vw, 200px); aspect-ratio: 1; border-radius: 50%; background: var(--red); color: var(--white); text-decoration: none; border: 4px solid var(--black); box-shadow: 0 0 0 4px var(--white); transition: transform 0.4s var(--ease), background-color 0.3s; }
.seal:hover { transform: scale(1.06); background: var(--black); }
.seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; fill: currentColor; font-family: var(--display); font-weight: 600; font-size: 15.5px; letter-spacing: 0.18em; text-transform: uppercase; }
.seal__core { display: grid; justify-items: center; gap: 2px; width: 58%; text-align: center; }
.seal__price { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 2.8vw, 2.7rem); line-height: 1; }
.seal__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seal__core .ico { width: 26px; height: 26px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Cinta de calles (recta, desplazada por el scroll) -------------------- */
.streets { overflow: hidden; border-block: 4px solid var(--black); background: var(--black); }
.streets__track { display: flex; width: max-content; gap: 0; will-change: transform; }
.streets__item { display: inline-flex; align-items: center; gap: 18px; padding: 16px 22px; border-right: 2px solid #2b2b2b; font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 1.8vw, 1.6rem); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; color: var(--white); }
.streets__item::before { content: ""; width: 12px; height: 12px; background: var(--red); flex: none; }

/* CrossFit para… -------------------------------------------------------- */
.why__grid { display: grid; gap: 40px 64px; }
.why__p { max-width: 46ch; color: var(--mid); margin-top: 18px; }
.nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; border-top: var(--rule); }
.num { display: grid; gap: 4px; padding: 16px 12px 16px 0; border-bottom: 2px solid var(--black); }
.num:nth-child(odd) { border-right: 2px solid var(--black); }
.num:nth-child(even) { padding-left: 16px; }
.num__n { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 4.4vw, 4rem); line-height: 1; }
.num__l { font-family: var(--display); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid); }
.why__list { border-top: var(--rule); }
.why__item { display: flex; align-items: baseline; gap: clamp(14px, 2vw, 28px); padding: 10px 0; border-bottom: 2px solid var(--black); }
.why__n { font-family: var(--display); font-weight: 500; font-size: 1rem; letter-spacing: 0.1em; color: var(--mid); min-width: 2.2em; }
.why__w { position: relative; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.2rem, 5.6vw, 5.4rem); line-height: 1.02; transition: color 0.4s; }
.why__w::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.12em; height: 0.16em; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-io); z-index: -1; }
.why__item.is-on .why__w { color: var(--red); }
.why__item:hover .why__w::after { transform: scaleX(1); }
@media (min-width: 1000px) {
  .why__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); align-items: start; }
  .why__side { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* Carteles de barrio ------------------------------------------------------ */
.barrios__grid { display: grid; gap: 18px; }
.barrio { display: grid; gap: 18px; align-content: start; padding: clamp(18px, 2.4vw, 32px); border: 4px solid var(--black); }
.barrio__top { display: flex; align-items: flex-end; gap: 16px; padding-bottom: 14px; border-bottom: 3px solid currentColor; }
.barrio__num { font-family: var(--display); font-weight: 700; font-size: clamp(4.4rem, 8vw, 7.4rem); line-height: 0.8; color: var(--red); }
.barrio--poblenou .barrio__num { color: var(--white); -webkit-text-stroke: 0; background: var(--red); padding: 0.06em 0.1em 0; }
.barrio__k { margin: 0 0 4px; font-family: var(--display); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); }
.barrio__name { font-size: clamp(2.8rem, 5.4vw, 5rem); line-height: 0.88; }
.barrio__pics { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }
.barrio__pic { overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--black); }
.barrio__pic--b { margin-top: 28%; aspect-ratio: 3 / 4; }
.barrio--poblenou .barrio__pics { grid-template-columns: 1fr 1.6fr; }
.barrio--poblenou .barrio__pic--a { order: 2; }
.barrio__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.barrio:hover .barrio__pic img { transform: scale(1.05); }
.barrio__text { margin: 0; font-size: 1.05rem; max-width: 52ch; }
.barrio__facts { margin: 0; border-top: 2px solid currentColor; }
.barrio__facts div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.barrio__facts dt { font-family: var(--display); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); padding-top: 2px; }
.barrio__facts dd { margin: 0; font-weight: 600; }
.chips-s { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-s { padding: 2px 8px; border: 2px solid currentColor; font-family: var(--display); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.barrio__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.barrio--poblenou .btn--red { --fill: var(--white); --fill-fg: var(--black); }
@media (min-width: 960px) { .barrios__grid { grid-template-columns: 1fr 1fr; } }

/* Clases: scroll horizontal anclado (sin JS: carril desplazable) -------- */
.classes { position: relative; overflow: hidden; }
.classes__pin { padding-block: clamp(64px, 8vw, 110px); }
.classes__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 40px; margin-bottom: clamp(26px, 3.4vw, 44px); }
.classes__head .label { width: 100%; margin: 0; }
.classes__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 14px; }
.classes__track { display: flex; gap: 16px; width: max-content; padding-inline: var(--gutter); }
.cls { flex: none; width: min(86vw, 860px); scroll-snap-align: start; }
.cls__link { display: grid; height: 100%; background: var(--white); color: var(--black); text-decoration: none; border: 4px solid var(--black); }
.cls__media { overflow: hidden; aspect-ratio: 16 / 10; background: var(--black); border-bottom: 4px solid var(--black); }
.cls__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.cls__link:hover .cls__media img { transform: scale(1.05); }
.cls__body { display: grid; gap: 8px; align-content: start; padding: 20px 22px 24px; }
.cls__n { font-family: var(--display); font-weight: 500; letter-spacing: 0.12em; color: var(--red); }
.cls__t { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 0.9; }
.cls__meta { display: inline-block; justify-self: start; padding: 2px 10px; background: var(--black); color: var(--white); font-family: var(--display); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.cls__d { color: var(--mid); max-width: 42ch; }
.cls__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-family: var(--display); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.cls__go .ico { transition: transform 0.35s var(--ease); }
.cls__link:hover .cls__go .ico { transform: translateX(6px); }
@media (min-width: 900px) {
  .cls__link { grid-template-columns: 1.15fr 1fr; }
  .cls__media { aspect-ratio: auto; min-height: 440px; border-bottom: 0; border-right: 4px solid var(--black); }
  .cls__body { align-content: end; padding: 28px; }
}
/* Con GSAP el carril se mueve con el scroll vertical (la sección queda anclada) */
.has-hscroll .classes__viewport { overflow: visible; scroll-snap-type: none; padding-bottom: 0; }

/* Personas ------------------------------------------------------------------ */
.people__sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: clamp(56px, 7vw, 96px) 0 20px; padding-top: 16px; border-top: var(--rule); font-size: clamp(1.8rem, 3vw, 2.6rem); }
.people__sub span { font-family: var(--display); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.14em; color: var(--mid); }

/* Muro de carteles ------------------------------------------------------- */
.wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.wall__item { overflow: hidden; background: var(--charcoal); border: 6px solid var(--white); transition: transform 0.5s var(--ease); }
.wall__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.wall__item:nth-child(3n + 1) { transform: rotate(-1.2deg); }
.wall__item:nth-child(3n + 2) { transform: rotate(0.9deg); }
.wall__item:hover { transform: rotate(0) scale(1.03); z-index: 2; }
@media (min-width: 900px) {
  .wall { grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(120px, 11vw, 170px); gap: 16px; }
  .wall__item img { aspect-ratio: auto; }
  .wall__item--1 { grid-column: 1 / 6; grid-row: span 3; }
  .wall__item--2 { grid-column: 6 / 10; grid-row: span 2; }
  .wall__item--3 { grid-column: 10 / 13; grid-row: span 2; }
  .wall__item--4 { grid-column: 6 / 9; grid-row: span 2; }
  .wall__item--5 { grid-column: 9 / 13; grid-row: span 2; }
  .wall__item--6 { grid-column: 1 / 6; grid-row: span 1; }
}
.wallsec .head__p a { color: var(--white); }

@media (max-width: 760px) {
  .split { height: auto; min-height: 0; max-height: none; }
  .split__halves { flex-direction: column; min-height: 0; }
  .half { min-height: 440px; }
  .half + .half { border-left: 0; border-top: 4px solid var(--black); }
  .half--poblenou .half__stack { left: clamp(14px, 2.4vw, 36px); right: auto; }
  .split__seal { top: calc(50% + 16px); left: auto; right: 14px; transform: none; }
  .split__halves:has(.half:hover) .split__seal { left: auto; }
  .seal { width: 120px; }
  .seal__price { font-size: 1.7rem; }
  .seal__ring { font-size: 15px; }
}
.half__st { display: inline-flex; align-items: center; margin-right: 8px; }
