/* Condal CrossFit — piezas compartidas: cartel de prueba, credenciales del equipo, reseñas, tarifas, pestañas,
   horario, FAQ, fichas, formularios, mosaicos, Instagram y tarjetas. */

/* Cartel final (CTA) ------------------------------------------------------- */
.poster { padding-block: clamp(64px, 8vw, 120px); border-top: 4px solid var(--black); }
.poster__in { display: grid; gap: 40px; align-items: center; }
.poster__title { font-size: clamp(3.6rem, 10vw, 9rem); line-height: 0.88; }
.poster__lead { max-width: 50ch; margin: 22px 0 10px; font-size: 1.1rem; }
.poster__alt { margin: 0; }
.poster .label { color: var(--white); }
.poster .label b { background: var(--white); color: var(--red); }
.poster .seal { width: clamp(190px, 20vw, 280px); background: var(--black); box-shadow: 0 0 0 4px var(--white); }
.poster .seal:hover { background: var(--white); color: var(--red); }
.poster .seal__price { font-size: clamp(2.6rem, 4vw, 3.8rem); }
@media (min-width: 900px) { .poster__in { grid-template-columns: 1fr auto; } }

/* Credenciales del equipo ------------------------------------------------- */
.badges { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 700px) { .badges { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
.badge { display: flex; flex-direction: column; border: 3px solid var(--black); background: var(--black); }
.badge__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--black); }
.badge__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.badge__bw { filter: grayscale(1) contrast(1.05); }
.badge__color { clip-path: circle(0% at var(--mx, 50%) var(--my, 50%)); transition: clip-path 0.7s var(--ease-io); }
.badge:hover .badge__color { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
.badge__tag { flex: 1; padding: 12px 14px 14px; border-top: 3px solid var(--black); background: var(--black); color: var(--white); }
.badge__name { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1; }
.badge__role { margin: 6px 0 0; font-family: var(--display); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--silver); }
.badge__role .pending { color: var(--black); }

/* Reseñas ------------------------------------------------------------------ */
.qs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.q { position: relative; margin: 0; padding: 54px 22px 20px; background: var(--grey); border-top: 6px solid var(--red); }
.on-grey .q { background: var(--white); }
.q::before { content: "“"; position: absolute; top: 4px; left: 18px; font-family: var(--display); font-weight: 700; font-size: 4.6rem; line-height: 1; color: var(--red); }
.q__text { margin: 0 0 16px; font-size: 1.02rem; }
.q__who { font-weight: 700; }
.q__who span { display: block; font-family: var(--display); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid); }

/* Pestañas de centro ----------------------------------------------------- */
.tabs { display: inline-flex; margin-bottom: 30px; border: 3px solid var(--black); background: var(--white); }
.tab { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 22px; border: 0; background: none; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--black); }
.tab + .tab { border-left: 3px solid var(--black); }
.tab span { font-weight: 500; font-size: 0.9rem; color: var(--mid); }
.tab[aria-selected="true"] { background: var(--black); color: var(--white); }
.tab[aria-selected="true"] span { color: var(--white); background: var(--red); padding: 0 6px; }
.tab-panel + .tab-panel { margin-top: 72px; }
.panel-title { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; font-size: clamp(2rem, 4vw, 3.4rem); }
.panel-title__n { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; background: var(--red); color: var(--white); font-size: 0.7em; }
.mini { margin: 36px 0 14px; font-family: var(--display); font-weight: 500; font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); }

/* Tarifas ------------------------------------------------------------------ */
.enrol { display: grid; gap: 6px 26px; padding: 20px 22px; border: 3px solid var(--black); background: var(--white); }
.enrol__price { margin: 0; font-family: var(--display); font-weight: 700; font-size: 3.4rem; line-height: 1; color: var(--red); }
.enrol__price span { font-size: 0.5em; }
.enrol__name { margin: 0 0 4px; font-family: var(--display); font-weight: 600; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.04em; }
.enrol__txt { margin: 0; color: var(--mid); }
@media (min-width: 760px) { .enrol { grid-template-columns: auto 1fr; align-items: center; } }
.prices { display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); border: 3px solid var(--black); background: var(--white); }
.price { position: relative; display: grid; align-content: start; gap: 4px; padding: 22px 20px; border-right: 1px solid var(--grey-2); border-bottom: 1px solid var(--grey-2); transition: background-color 0.3s; }
.price:hover { background: var(--grey); }
.price--hot { background: var(--black); color: var(--white); }
.price--hot:hover { background: var(--charcoal); }
.price__badge { justify-self: start; margin-bottom: 6px; padding: 2px 8px; background: var(--red); color: var(--white); font-family: var(--display); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.price__name { font-size: 1.5rem; }
.price__amount { margin: 6px 0 0; display: flex; align-items: baseline; gap: 2px; }
.price__num { font-family: var(--display); font-weight: 700; font-size: clamp(3.4rem, 5vw, 4.4rem); line-height: 0.9; }
.price__cur { font-family: var(--display); font-weight: 600; font-size: 1.8rem; }
.price__unit { margin-left: 8px; font-family: var(--display); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid); }
.price--hot .price__unit { color: var(--silver); }
.price__quota { margin: 0; font-weight: 700; }
.price__items { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.price__items li { padding: 1px 7px; border: 1.5px solid currentColor; font-family: var(--display); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* Horario ------------------------------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.chip { min-height: 42px; padding: 0 14px; border: 2px solid var(--black); background: var(--white); color: var(--black); cursor: pointer; font-family: var(--display); font-weight: 500; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; }
.chip.is-on { background: var(--black); color: var(--white); }
.sch { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 0; overflow-x: auto; border: 3px solid var(--black); background: var(--white); scroll-snap-type: x proximity; }
.sch__day { scroll-snap-align: start; min-width: 0; border-right: 1px solid var(--grey-2); }
.sch__dname { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--black); color: var(--white); font-size: 1.25rem; letter-spacing: 0.04em; }
.sch__today { display: none; padding: 1px 8px; background: var(--white); color: var(--red); font-size: 0.75rem; letter-spacing: 0.1em; }
.sch__day.is-today { background: #fff6f6; }
.sch__day.is-today .sch__dname { background: var(--red); }
.sch__day.is-today .sch__today { display: inline-block; }
.sch__item { display: grid; grid-template-columns: 52px 1fr; gap: 0 8px; padding: 9px 10px; border-bottom: 1px solid var(--grey-2); transition: opacity 0.3s; }
.sch__item.is-dim { opacity: 0.16; }
.sch__time { font-family: var(--display); font-weight: 600; font-size: 1rem; }
.sch__name { font-weight: 700; text-transform: uppercase; font-size: 0.86rem; letter-spacing: 0.02em; }
.sch__name::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: var(--mid); vertical-align: 1px; }
.sch__item--wod .sch__name::before { background: var(--red); }
.sch__item--metcon .sch__name::before { background: var(--red); border-radius: 50%; }
.sch__item--strength .sch__name::before { background: var(--black); }
.sch__item--skill .sch__name::before { background: transparent; border: 2px solid var(--black); }
.sch__item--hybrid .sch__name::before { background: var(--black); border-radius: 50%; }
.sch__item--open .sch__name::before { background: var(--grey-2); border: 1px solid var(--mid); }
.sch__item--teens .sch__name::before { background: var(--red); transform: rotate(45deg); }
.sch__coach { grid-column: 2; font-size: 0.78rem; color: var(--mid); }
.sch__empty { padding: 14px 10px; color: var(--mid); font-size: 0.9rem; }
@media (min-width: 1240px) { .sch { grid-auto-columns: minmax(0, 1fr); overflow: visible; } }

/* FAQ ------------------------------------------------------------------------ */
.faq { border-top: var(--rule); border-top-color: var(--fg); }
.faq__item { border-bottom: 2px solid var(--fg); }
.faq__q { display: flex; align-items: center; gap: 16px; min-height: 66px; padding: 12px 0; cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__n { font-family: var(--display); font-weight: 500; color: var(--soft); min-width: 2em; }
.faq__h { flex: 1; font-family: var(--text); font-weight: 700; text-transform: none; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.3; letter-spacing: 0; }
.faq__plus { position: relative; width: 34px; height: 34px; flex: none; border: 2px solid currentColor; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 7px; right: 7px; top: 14px; height: 2px; background: currentColor; transition: transform 0.35s var(--ease); }
.faq__plus::after { transform: rotate(90deg); }
.faq__item[open] .faq__plus { background: var(--red); border-color: var(--red); color: var(--white); }
.faq__item[open] .faq__plus::after { transform: rotate(0); }
.faq__a { padding: 0 0 22px 3.1em; max-width: 72ch; color: var(--soft); }
.faq__a p { margin: 0; }

/* Ficha de datos --------------------------------------------------------- */
.facts { border-top: var(--rule); border-top-color: var(--fg); }
.facts__row { display: grid; grid-template-columns: 22px minmax(96px, 0.45fr) 1fr; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts__row .ico { color: var(--red); margin-top: 2px; }
.on-dark .facts__row .ico, .on-red .facts__row .ico { color: inherit; }
.facts__k { font-family: var(--display); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); padding-top: 2px; }
.facts__v a { font-weight: 700; }

/* Formularios ----------------------------------------------------------------- */
.form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 34px); background: var(--white); color: var(--black); border: 4px solid var(--black); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.94rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid var(--black); background: var(--white); color: var(--black); font: inherit; border-radius: 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--red); outline-offset: 0; }
.field--check { grid-template-columns: 26px 1fr; align-items: start; gap: 10px; }
.field--check input { min-height: 0; width: 24px; height: 24px; margin: 0; accent-color: var(--red); }
.field--check label { font-weight: 400; }
.form .btn { justify-self: start; }
.form__note { margin: 0; font-size: 0.85rem; color: var(--mid); }

/* Mosaico e Instagram ------------------------------------------------------ */
.mosaic { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.mosaic__item { overflow: hidden; background: var(--black); aspect-ratio: 4 / 3; border: 3px solid var(--black); }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mosaic__item:hover img { transform: scale(1.05); }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(120px, 12vw, 190px); }
  .mosaic__item { aspect-ratio: auto; grid-column: span 2; }
  .mosaic__item--1 { grid-column: span 3; grid-row: span 2; }
  .mosaic__item--2 { grid-column: span 3; }
  .mosaic__item--3 { grid-column: span 3; }
}
.ig { display: grid; gap: 16px; }
.ig__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ig__grid a { display: block; aspect-ratio: 9 / 14; overflow: hidden; background: var(--black); border: 3px solid var(--black); }
.ig__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.ig__grid a:hover img { transform: scale(1.06); }
@media (min-width: 900px) { .ig__grid { grid-template-columns: repeat(6, 1fr); } }

/* Tarjetas enlace -------------------------------------------------------- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.card { display: flex; flex-direction: column; background: var(--white); color: var(--black); text-decoration: none; border: 4px solid var(--black); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--red); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--black); border-bottom: 4px solid var(--black); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: grid; gap: 8px; padding: 18px 18px 20px; flex: 1; align-content: start; }
.card__k { font-family: var(--display); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.card__t { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.9rem, 2.6vw, 2.4rem); line-height: 0.95; }
.card__d { color: var(--mid); }
.card__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-family: var(--display); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.price--link { color: inherit; text-decoration: none; }
.price--link .card__go { margin-top: 10px; }
