/**
 * product-bici.css  — v2
 * Layout: galería edge-to-edge (flex: 1) + panel fijo 380px sticky
 */

/* ══════════════════════════════════════════════════════════════
   BASE
══════════════════════════════════════════════════════════════ */
.bici-hero,
.bici-gallery,
.bici-gallery__track,
.bici-gallery__slide,
.bici-panel,
.bici-panel__scroll,
.bici-panel__footer,
.bici-highlights,
.bici-highlight,
.bici-specs,
.bici-related,
.bici-modal,
.bici-modal__dialog {
  box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.bici-hero {
  display: flex;
  align-items: flex-start;
  width: 100%;
  background: #fff;
}

/* ══════════════════════════════════════════════════════════════
   GALERÍA
══════════════════════════════════════════════════════════════ */
.bici-gallery {
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
  /* height: establecida por JS según posición real del hero */
  background: #fff;
}

/* Track: flex row — JS establece width de cada slide */
.bici-gallery__track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.bici-gallery__slide {
  flex-shrink: 0;
  height: 100%;
  /* width establecido por JS */
}

.bici-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Breadcrumb — esquina superior izquierda */
.bici-gallery__breadcrumb {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.88);
  padding: 7px 12px;
  border-radius: 20px;
  max-width: calc(100% - 36px);
  backdrop-filter: blur(4px);
}

.bici-gallery__bc-link {
  color: #555;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}

.bici-gallery__bc-link:hover {
  color: #111;
  text-decoration: underline;
}

.bici-gallery__bc-sep {
  color: #bbb;
  flex-shrink: 0;
}

.bici-gallery__bc-current {
  color: #111;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Botones info (geo / guia) — esquina inferior izquierda */
.bici-gallery__info-btns {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.bici-gallery__info-btn {
  height: 44px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.88);
  border: none;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 500;
  color: #111;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.bici-gallery__info-btn:hover {
  background: #fff;
}

/* Flechas — juntas en esquina inferior derecha */
.bici-gallery__btn {
  position: absolute;
  bottom: 18px;
  top: auto;
  transform: none;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  transition: background 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  padding: 0;
}

.bici-gallery__btn:hover {
  background: #fff;
}

.bici-gallery__btn--prev { right: 70px; left: auto; }
.bici-gallery__btn--next { right: 18px; left: auto; }

/* Indicadores — rayitas centradas abajo */
.bici-gallery__dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 10;
}

.bici-gallery__dot {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  border: none;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, height 0.2s, transform 0.2s;
}

.bici-gallery__dot:hover {
  height: 5px;
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.38);
}

.bici-gallery__dot.is-active {
  background: rgba(0, 0, 0, 0.75);
}

.bici-gallery__dot.is-active:hover {
  background: rgba(0, 0, 0, 0.75);
}

/* ══════════════════════════════════════════════════════════════
   PANEL DERECHO
══════════════════════════════════════════════════════════════ */
.bici-panel {
  flex: 0 0 450px;
  width: 450px;
  position: sticky;
  /* top y height establecidos por JS según posición real del hero */
  top: 90px;
  height: calc(100vh - 90px);
  margin: 0 5px 0 0;  /* 5px separación del borde derecho */
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.10);
  overflow: hidden;
}

/* Área scrollable */
.bici-panel__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 15px 18px 10px;
  -webkit-overflow-scrolling: touch;
}

.bici-panel__scroll::-webkit-scrollbar {
  width: 3px;
}
.bici-panel__scroll::-webkit-scrollbar-track {
  background: transparent;
}
.bici-panel__scroll::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}

/* Eyebrow */
.bici-panel__eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin: 0 0 8px;
  line-height: 1.4;
}

/* Título */
.bici-panel__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 14px;
  color: #111;
}

/* Precio */
.bici-panel__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.bici-price--normal,
.bici-price--sale {
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

.bici-price--sale .woocommerce-Price-amount,
.bici-price--normal .woocommerce-Price-amount {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.bici-price--regular {
  font-size: 15px;
  color: #aaa;
  text-decoration: line-through;
}

.bici-price__badge {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #d00;
  padding: 3px 7px;
  border-radius: 3px;
  letter-spacing: 0.03em;
}

/* Overview */
.bici-panel__overview {
  font-size: 12.5px;
  line-height: 1.65;
  color: #666;
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

/* Sección (color / talla) */
.bici-panel__section {
  margin-bottom: 22px;
}

.bici-panel__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.bici-panel__section-head--left {
  justify-content: flex-start;
}

.bici-panel__section-label {
  font-size: 12px;
  font-weight: 700;
  color: #111;
}

.bici-panel__color-name {
  font-size: 13px;
  color: #777;
}

.bici-panel__size-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 16px;
}

.bici-panel__text-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  color: #888;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  line-height: 1;
}

.bici-panel__text-btn:hover {
  color: #111;
}

/* Swatches de color */
.bici-panel__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bici-swatch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 6px;
  border: 2px solid transparent;
  outline: 2px solid transparent;
  outline-offset: 2px;
  text-decoration: none;
  overflow: hidden;
  transition: outline-color 0.15s;
}

.bici-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.bici-swatch span {
  font-size: 10px;
  font-weight: 700;
  color: #111;
  background: #ebebeb;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

/* Hover: solo borde sutil, nunca quita el outline del activo */
.bici-swatch:hover {
  border-color: #ccc;
}

.bici-swatch.is-active {
  outline-color: #111;
  border-color: transparent;
}

.bici-swatch.is-active:hover {
  outline-color: #111;
  border-color: transparent;
}

/* Botones de talla */
.bici-panel__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bici-size-btn {
  min-width: 40px;
  height: 34px;
  padding: 0 10px;
  border: 1.5px solid #d0d0d0;
  border-radius: 5px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  letter-spacing: 0.02em;
}

.bici-size-btn:hover:not(:disabled) {
  border-color: #111;
}

.bici-size-btn.is-selected {
  border-color: #111;
  background: #111;
  color: #fff;
}

.bici-size-btn.is-disabled,
.bici-size-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Mensaje de stock */
.bici-panel__stock-msg {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: #276e3b;
  font-weight: 600;
  min-height: 1em;
  opacity: 0;
  transition: opacity 0.2s;
}

.bici-panel__stock-msg.is-visible {
  opacity: 1;
}

.bici-panel__stock-msg.is-urgent {
  color: #c05000;
}

/* Aviso agotado — dentro de sección tallas */
.bici-panel__soldout {
  font-size: 12.5px;
  color: #999;
  margin: 10px 0 0;
  line-height: 1.4;
}

/* Footer agotado */
.bici-panel__soldout-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 15px;
  background: #333;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}

.bici-panel__soldout-icon {
  display: flex;
  align-items: center;
  color: #aaa;
}

/* Footer solo sucursal */
.bici-panel__sucursal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 15px;
  background: #f0f4f8;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: #444;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
}

.bici-panel__sucursal-footer:hover {
  background: #e6ecf2;
}

.bici-panel__sucursal-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: #666;
}

.bici-panel__sucursal-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: inherit;
  color: #111;
  text-decoration: underline;
  text-decoration-color: #aaa;
  cursor: pointer;
}

.bici-panel__sucursal-link:hover {
  text-decoration-color: #111;
}

/* Botón disponibilidad */
.bici-panel__avail-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 6px;
}

.bici-panel__avail-btn:hover {
  color: #111;
}

/* Link "Ver especificaciones" en panel */
.bici-panel__specs-link {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 18px;
  font-size: 12.5px;
  color: #666;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #ccc;
}

.bici-panel__specs-link:hover {
  color: #111;
  text-decoration-color: #666;
}

/* Footer: botón añadir al carrito */
.bici-panel__footer {
  flex-shrink: 0;
  padding: 16px 18px;
  background: #fff;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.07);
  display: flex !important;
  align-items: center !important;
  justify-content: center;
}

#biciCartForm {
  width: 100%;
  margin: 0 !important;
}

.bici-panel__cart-btn {
  display: block;
  width: 100%;
  padding: 14px 15px;
  background: #e10600;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.01em;
  text-align: center;
}

.bici-panel__cart-btn:hover:not(:disabled) {
  background: #c40500;
}

.bici-panel__cart-btn:disabled {
  background: #c8c8c8;
  cursor: not-allowed;
}

/* ══════════════════════════════════════════════════════════════
   BANNER OVERLAY
══════════════════════════════════════════════════════════════ */
.bici-banner__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 64px 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
}

.bici-banner__title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

/* ══════════════════════════════════════════════════════════════
   BANNER
══════════════════════════════════════════════════════════════ */
.bici-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  max-height: 300px;
}

.bici-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ══════════════════════════════════════════════════════════════
   HIGHLIGHTS — zebra stripe, imagen 25%
══════════════════════════════════════════════════════════════ */
.bici-highlights {
  width: 100%;
}

/* Zebra: par = blanco, impar = gris */
.bici-highlight:nth-child(odd)  { background: #fff; }
.bici-highlight:nth-child(even) { background: #f5f5f5; }

.bici-highlight {
  display: grid;
  grid-template-columns: 2fr 3fr;  /* imagen ~40% — texto ~60% */
  align-items: center;
  padding: 36px 64px;
  gap: 48px;
}

/* Alterna: imagen a la derecha */
.bici-highlight--alt {
  grid-template-columns: 3fr 2fr;
}

.bici-highlight--alt .bici-highlight__img  { order: 2; }
.bici-highlight--alt .bici-highlight__text { order: 1; }

/* Sin imagen: texto centrado en ancho completo */
.bici-highlight--no-img {
  display: block;
  padding: 36px 64px;
}

.bici-highlight--no-img .bici-highlight__text {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: none;
  padding: 0;
}

.bici-highlight__img {
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 9 / 5;
}

.bici-highlight__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bici-highlight__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: none;
  padding: 0;
}

.bici-highlight__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: #111;
  margin: 0 0 12px;
}

.bici-highlight__body {
  font-size: 14px;
  line-height: 1.75;
  color: #555;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   ESPECIFICACIONES
══════════════════════════════════════════════════════════════ */
.bici-specs {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
  border-top: 1px solid #e0e0e0;
}

.bici-specs__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 26px 0;
  background: none;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  font-size: 17px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  text-align: left;
  gap: 12px;
}

.bici-specs__trigger[aria-expanded="true"] {
  border-bottom-color: transparent;
}

/* Ícono +/− */
.bici-specs__icon {
  display: block;
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.bici-specs__icon::before,
.bici-specs__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: #111;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.bici-specs__icon::before {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.bici-specs__icon::after {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.bici-specs__trigger[aria-expanded="true"] .bici-specs__icon::before {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

/* Tabla de specs */
.bici-specs__body {
  padding-bottom: 36px;
}

.bici-specs__inner {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 24px;
}

.bici-specs__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.bici-specs__group-row th {
  padding: 16px 0 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  text-align: left;
  border-top: 1px solid #f0f0f0;
}

.bici-specs__group-row:first-child th {
  border-top: none;
  padding-top: 0;
}

.bici-specs__table tr:not(.bici-specs__group-row) td {
  padding: 9px 0;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: top;
}

.bici-specs__key {
  color: #666;
  width: 50%;
  padding-right: 16px !important;
}

.bici-specs__val {
  color: #111;
  font-weight: 500;
}

.bici-specs__note {
  font-size: 12px;
  color: #bbb;
  margin: 20px 0 0;
  line-height: 1.55;
}

/* ══════════════════════════════════════════════════════════════
   BICICLETAS RELACIONADAS
══════════════════════════════════════════════════════════════ */
.bici-related {
  max-width: 1400px;
  margin: 56px auto;
  padding: 0 32px;
}

.bici-related__title {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 0 0 22px;
}

.bici-related__wrap {
  position: relative;
}

.bici-related__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.bici-related__track::-webkit-scrollbar {
  display: none;
}

.bici-related__card {
  flex: 0 0 260px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.bici-related__img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: #f4f4f4;
  margin-bottom: 12px;
}

.bici-related__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.bici-related__card:hover {
  text-decoration: none;
}

.bici-related__card:hover .bici-related__img img {
  transform: scale(1.04);
}

.bici-related__info {
  padding: 0 4px;
}

.bici-related__name {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin: 0 0 6px;
  line-height: 1.3;
}

.bici-related__price {
  display: flex;
  gap: 6px;
  align-items: baseline;
  flex-wrap: wrap;
}

.bici-related__price .bici-price--normal,
.bici-related__price .bici-price--sale {
  font-size: 15px;
  font-weight: 700;
}

.bici-related__price .bici-price--regular {
  font-size: 13px;
}

.bici-related__arrow {
  position: absolute;
  top: calc(50% - 24px);
  transform: translateY(-50%);
  z-index: 5;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.09);
  color: #333;
  padding: 0;
}

.bici-related__arrow--prev { left: -18px; }
.bici-related__arrow--next { right: -18px; }

/* Body lock al abrir modal — sobreescribe el wrap-lock del tema para soportar top dinámico */
body.wrap-lock {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════
   MODALES — BASE
══════════════════════════════════════════════════════════════ */
.bici-modal {
  position: fixed;
  inset: 0;
  height: 100dvh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.bici-modal[hidden] {
  display: none;
}

.bici-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.bici-modal__dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 10px;
  width: min(520px, 100%);
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}

.bici-modal__dialog--wide {
  width: min(80vw, calc(100vw - 32px));
}

.bici-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
  gap: 12px;
}

.bici-modal__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: #111;
  line-height: 1.2;
}

.bici-modal__close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #999;
  padding: 0;
  margin: -4px -4px -4px 0;
  flex-shrink: 0;
  transition: color 0.15s;
}

.bici-modal__close:hover {
  color: #111;
}

.bici-modal__body {
  overflow-y: auto;
  padding: 24px;
  flex: 1;
}

/* ── Modal Geometría ── */
.bici-modal__geo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  min-height: 100%;
}

/* Columna izquierda: tabla con scroll propio */
.bici-modal__table-wrap {
  overflow-y: auto;
  overflow-x: auto;
  max-height: calc(80vh - 120px);
  /* scrollbar tenue */
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}

.bici-modal__table-wrap::-webkit-scrollbar {
  width: 4px;
}
.bici-modal__table-wrap::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}

/* Prefijo #biciGeoModal para ganar especificidad sobre estilos globales de Enfold */
#biciGeoModal .bici-geo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

/* Resetear borders de Enfold en todas las celdas */
#biciGeoModal .bici-geo-table th,
#biciGeoModal .bici-geo-table td {
  border: none;
  background: none;
  box-shadow: none;
}

/* Cabecera — solo border inferior */
#biciGeoModal .bici-geo-table thead th {
  padding: 0 14px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aaa;
  text-align: center;
  border-bottom: 2px solid #111 !important;
  white-space: nowrap;
}

/* Primera columna de header: alineada a la izquierda */
#biciGeoModal .bici-geo-table thead th:first-child {
  text-align: left;
  padding-left: 0;
}

/* Filas de datos */
#biciGeoModal .bici-geo-table tbody tr {
  transition: background 0.1s;
  background: none;
}

#biciGeoModal .bici-geo-table tbody tr:hover {
  background: #f9f9f9 !important;
}

#biciGeoModal .bici-geo-table tbody th {
  padding: 11px 14px 11px 0;
  font-size: 12px;
  font-weight: 400;
  color: #444;
  text-align: left;
  border-bottom: 1px solid #f0f0f0 !important;
  white-space: nowrap;
}

#biciGeoModal .bici-geo-table tbody td {
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #111;
  text-align: center;
  border-bottom: 1px solid #f0f0f0 !important;
  white-space: nowrap;
}

#biciGeoModal .bici-geo-table tbody tr:last-child th,
#biciGeoModal .bici-geo-table tbody tr:last-child td {
  border-bottom: none !important;
}

/* Columna derecha: imagen centrada verticalmente */
.bici-modal__geo-img {
  align-self: center;
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bici-modal__geo-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* ── Modal Guía de tallas ── */
.bici-modal__guia-layout {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 32px;
  align-items: center;
}

.bici-modal__guia-img {
  align-self: center;
  position: sticky;
  top: 0;
}

.bici-modal__guia-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.bici-modal__guia-data {
  overflow-y: auto;
  max-height: calc(80vh - 120px);
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}

.bici-modal__guia-data::-webkit-scrollbar { width: 4px; }
.bici-modal__guia-data::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.bici-modal__guia-text {
  font-size: 14px;
  line-height: 1.65;
  color: #555;
  margin: 0;
}

.bici-modal__divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 0;
}

.bici-guia-table-wrap {
  width: 100%;
}

/* Prefijo #biciGuiaModal para ganar especificidad sobre Enfold */
#biciGuiaModal .bici-guia-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

#biciGuiaModal .bici-guia-table th,
#biciGuiaModal .bici-guia-table td {
  border: none !important;
  background: none !important;
  box-shadow: none;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0 !important;
}

#biciGuiaModal .bici-guia-table thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #aaa;
  font-weight: 700;
  border-bottom: 2px solid #111 !important;
}

#biciGuiaModal .bici-guia-table tbody th {
  font-weight: 700;
  color: #111;
}

#biciGuiaModal .bici-guia-table tbody tr:last-child th,
#biciGuiaModal .bici-guia-table tbody tr:last-child td {
  border-bottom: none !important;
}

.bici-guia-range {
  font-weight: 500;
  color: #333;
}

/* ── Modal Disponibilidad ── */
.bici-avail-row {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.bici-avail-row:last-of-type {
  border-bottom: none;
}

.bici-avail-row__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.bici-avail-row__header strong {
  font-size: 14px;
  color: #111;
}

.bici-avail-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d0d0d0;
  flex-shrink: 0;
}

.bici-avail-dot.is-green {
  background: #22c55e;
}

.bici-avail-row__stock {
  font-size: 13px;
  color: #333;
  margin: 3px 0 2px 17px;
}

.bici-avail-row__none {
  font-size: 13px;
  color: #aaa;
  margin: 3px 0 2px 17px;
}

.bici-avail-row__addr {
  font-size: 12px;
  color: #bbb;
  margin: 2px 0 0 17px;
}

/* Nota genérica en modales */
.bici-modal__note {
  font-size: 12px;
  color: #bbb;
  margin: 16px 0 0;
  line-height: 1.5;
}

/* ── Modal Especificaciones — grid estilo catálogo ── */
.bici-specs-group {
  margin-bottom: 8px;
}

.bici-specs-group--sep {
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid #eee;
}

.bici-specs-group__title {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bici-specs-group__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
}

.bici-specs-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bici-specs-item__label {
  font-size: 11px;
  font-weight: 700;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.bici-specs-item__value {
  font-size: 13px;
  color: #555;
  line-height: 1.45;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE  ≤ 767px
══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  /* Hero: columna */
  .bici-hero {
    flex-direction: column;
  }

  /* Galería */
  .bici-gallery {
    width: 100%;
    height: 72vw;
    min-height: 260px;
  }

  .bici-gallery__btn {
    display: none;
  }

  /* Panel */
  .bici-panel {
    flex: none;
    width: 100%;
    height: auto;
    position: static;
    border-left: none;
    border-top: 1px solid #e8e8e8;
  }

  .bici-panel__scroll {
    overflow-y: visible;
    padding: 20px 18px 16px;
  }

  .bici-panel__footer {
    padding: 12px 18px 18px;
    position: sticky;
    bottom: 0;
    z-index: 50;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.07);
  }

  /* Banner overlay */
  .bici-banner__overlay {
    padding: 32px 20px 20px;
  }

  .bici-banner__title {
    font-size: 20px;
  }

  /* Highlights */
  .bici-highlight {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    gap: 20px;
  }

  .bici-highlight--alt {
    grid-template-columns: 1fr;
  }

  .bici-highlight--alt .bici-highlight__img  { order: 0; }
  .bici-highlight--alt .bici-highlight__text { order: 1; }

  .bici-highlight--no-img {
    padding: 28px 20px;
  }

  .bici-highlight__img {
    aspect-ratio: 9 / 5;
    border-radius: 6px;
    background: #f5f5f5;
  }

  .bici-highlight__img img {
    object-fit: contain;
  }

  .bici-highlight__title {
    font-size: 18px;
  }

  .bici-highlight__body {
    font-size: 15px;
  }

  /* Specs */
  .bici-specs {
    padding: 0 18px;
  }

  /* Related */
  .bici-related {
    margin: 40px auto;
    padding: 0 18px;
  }

  .bici-related__card {
    flex: 0 0 200px;
  }

  .bici-related__arrow {
    display: none;
  }

  /* Modales */
  .bici-modal__geo-layout,
  .bici-modal__guia-layout {
    grid-template-columns: 1fr;
  }

  .bici-modal__guia-img {
    position: static;
  }

  .bici-modal__guia-data {
    max-height: none;
    overflow-y: visible;
  }

  .bici-guia-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .bici-specs-group__grid {
    grid-template-columns: 1fr !important;
  }

  .bici-modal__body {
    padding: 18px;
  }

  .bici-modal__header {
    padding: 16px 18px;
  }
}