/* Condal CrossFit — páginas interiores: cabecera partida (bloque sólido + foto), migas y maquetas de contenido. */

/* Cabecera de página: el texto vive en un bloque sólido; la foto va a sangre al lado */
.ph { display: grid; background: var(--black); border-bottom: 4px solid var(--black); }
.ph__text { display: flex; align-items: flex-end; }
.ph__in { width: 100%; padding: clamp(28px, 4vw, 64px) var(--gutter) clamp(32px, 4vw, 60px); max-width: 780px; }
.ph__title { font-size: clamp(2.8rem, 6.4vw, 6.2rem); line-height: 0.92; margin: 0 0 20px; }
.ph__lead { max-width: 52ch; font-size: clamp(1rem, 1.1vw, 1.12rem); color: var(--soft); }
.on-red .ph__lead, .on-dark .ph__lead { color: inherit; }
.ph__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ph__media { position: relative; min-height: 300px; overflow: hidden; background: var(--charcoal); }
.ph__media img { position: absolute; left: 0; top: -5%; width: 100%; height: 110%; object-fit: cover; }
.ph__cap { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); }
.ph--light .ph__text { background: var(--white); }
@media (min-width: 980px) {
  .ph { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: clamp(460px, 64vh, 640px); }
  .ph__text { justify-content: flex-end; }
  .ph__in { padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
  .ph__media { min-height: 0; border-left: 4px solid var(--black); }
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-bottom: 28px; font-family: var(--display); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.crumbs a { display: inline-flex; align-items: center; min-height: 34px; text-decoration: underline; text-decoration-thickness: 1px; }
.crumbs a:hover { text-decoration-thickness: 3px; }
.crumbs [aria-current] { font-weight: 600; }

/* Maquetas ------------------------------------------------------------------- */
.lede { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(1.8rem, 3.8vw, 3.4rem); line-height: 1.02; max-width: 24ch; margin: 0 0 28px; }
.prose { max-width: 70ch; }
.prose p, .prose li { color: var(--soft); }
.prose strong { color: var(--fg); }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 52px 0 16px; padding-top: 14px; border-top: var(--rule); border-top-color: var(--fg); }
.prose h3 { font-size: 1.3rem; margin: 28px 0 8px; }
.prose ul { list-style: square; padding-left: 1.2em; margin: 0 0 1em; }
.cols { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 960px) {
  .cols { grid-template-columns: 1fr 1fr; align-items: start; }
  .cols--wide { grid-template-columns: 1.3fr 1fr; }
  .cols--rev > :first-child { order: 2; }
}
.frame { position: relative; overflow: hidden; border: 4px solid var(--black); background: var(--black); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.note { margin-top: 24px; padding: 14px 18px; border: 2px dashed var(--fg); color: var(--soft); font-size: 0.94rem; }
.note a { color: var(--fg); font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.tag { display: inline-flex; align-items: center; min-height: 36px; padding: 2px 12px; border: 2px solid currentColor; font-family: var(--display); font-weight: 500; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; }
.stack { display: grid; gap: 18px; }

/* Comparador de centros ---------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 4px solid var(--black); }
.compare { width: 100%; border-collapse: collapse; background: var(--white); }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--grey-2); }
.compare thead th { background: var(--black); color: var(--white); font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.6rem; letter-spacing: 0.02em; }
.compare thead th span { display: inline-grid; place-items: center; min-width: 1.5em; margin-right: 8px; background: var(--red); font-size: 0.8em; }
.compare tbody th { width: 24%; font-family: var(--display); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid); }
.compare td + td { border-left: 1px solid var(--grey-2); }
@media (max-width: 640px) {
  .compare, .compare tbody, .compare tr, .compare td, .compare th { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare tbody th { padding-bottom: 4px; background: var(--grey); border-bottom: 0; }
  .compare td + td { border-left: 0; }
  .compare td::before { content: attr(data-label) ": "; font-weight: 700; }
}

/* Beneficios, pasos -------------------------------------------------------- */
.tiles { display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); border: 3px solid var(--black); background: var(--white); color: var(--black); }
.tile { padding: 22px 20px; border-right: 1px solid var(--grey-2); border-bottom: 1px solid var(--grey-2); }
.tile__n { font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--red); }
.tile__t { font-size: 1.5rem; margin: 10px 0 6px; }
.tile p { margin: 0; color: var(--mid); }

/* Blog ------------------------------------------------------------------------ */
.posts { border-top: var(--rule); }
.post { display: grid; gap: 6px 32px; padding: 22px 0; border-bottom: 2px solid var(--black); }
.post__meta { font-family: var(--display); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid); }
.post__t { font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1; }
.post__t a { text-decoration: none; }
.post__t a:hover { color: var(--red); }
.post p { margin: 0; color: var(--mid); }
@media (min-width: 900px) { .post { grid-template-columns: 200px 1fr; } .post > :not(.post__meta) { grid-column: 2; } .post__meta { grid-row: span 3; } }

/* Tarjeta de datos grande (contacto, drop-in) ------------------------------- */
.spot { display: grid; gap: 14px; padding: 20px; border: 4px solid var(--black); background: var(--white); color: var(--black); }
.spot .plaque { border-width: 3px; }
.spot p { margin: 0; }
.spots { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.mt { margin-top: 28px; }
.sec--tight { padding-top: 0; }

/* Tipos de sesión: foto con pie en bloque negro ------------------------------ */
.types { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.type { display: flex; flex-direction: column; border: 4px solid var(--black); background: var(--black); color: var(--white); }
.type img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.9s var(--ease); }
.type:hover img { transform: scale(1.04); }
.type figcaption { display: grid; gap: 6px; padding: 16px 18px 20px; border-top: 4px solid var(--black); flex: 1; }
.type__n { font-family: var(--display); font-weight: 500; letter-spacing: 0.12em; color: var(--silver); }
.type__t { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.9rem; line-height: 1; }
.type__d { color: #d9d9d9; }
.trio { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.trio .frame img { aspect-ratio: 4 / 3; }
@media (max-width: 600px) { .trio { grid-template-columns: 1fr 1fr; } .trio > :first-child { grid-column: span 2; } }
