/* ===============================================================
   ORTHO BARUC | SOLUCIONES - CSS INDEPENDIENTE
   Sólo afecta el catálogo general; conserva el navbar y el CTA global.
================================================================ */
.ob-page-shell {
  --ob-navy: #082c4d;
  --ob-blue: #087cc6;
  --ob-ink: #173047;
  --ob-muted: #718297;
  --ob-border: #e6edf4;
  --ob-page: #f7f9fc;
  --ob-container: 1200px;

  box-sizing: border-box;
  color: var(--ob-ink);
  background: var(--ob-page);
  font-family: var(--font-primary, "Nunito", sans-serif);
}

.ob-page-shell *,
.ob-page-shell *::before,
.ob-page-shell *::after {
  box-sizing: border-box;
}

.ob-page-shell a {
  text-decoration: none;
}

.ob-page-shell button,
.ob-page-shell input {
  font: inherit;
}

/* Las acciones utilizan Poppins; el buscador sigue utilizando Nunito. */
.ob-page-shell button {
  font-family: var(--font-heading);
}

.ob-page-shell button {
  cursor: pointer;
}

.ob-page-shell [hidden] {
  display: none !important;
}

.ob-container {
  width: min(calc(100% - 64px), var(--ob-container));
  margin-inline: auto;
}

.ob-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ob-page-shell :focus-visible {
  outline: 3px solid #35bcfa;
  outline-offset: 4px;
}

/* ===============================================================
   HERO · PALETA CLARA COMPARTIDA CON "NOSOTROS"
   Se conserva el diseño y sus órbitas/etiquetas flotantes.
================================================================ */
.ob-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #142a43;
  background:
    radial-gradient(circle at 78% 22%, rgba(8, 127, 196, 0.08), transparent 23%),
    linear-gradient(135deg, #f9fcfe 0%, #eef6fb 53%, #e8f2f8 100%);
}

.ob-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 630px;
  height: 630px;
  top: -55px;
  right: -245px;
  border: 1px solid rgba(8, 127, 196, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(8, 127, 196, 0.026),
    0 0 0 140px rgba(8, 127, 196, 0.018);
  pointer-events: none;
}

.ob-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.62;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(8, 127, 196, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 127, 196, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.18) 78%, transparent 100%);
}

.ob-hero__inner {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  min-height: 438px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ob-hero__copy {
  padding: 35px 0 49px;
}

.ob-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 47px;
  font-size: 11px;
  font-weight: 500;
  color: #91a5b5;
}

.ob-breadcrumb a {
  color: #849bb1;
}

.ob-breadcrumb a:hover {
  color: #087fc4;
}

.ob-breadcrumb i {
  font-size: 8px;
}

/* Distintivo existente de about.html · misma clase y medidas.
   Cuando estas reglas se muevan a main.css compartido, retirar
   este bloque de catalog.css para tener una única fuente de estilos. */
.ob-about-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 17px;
  border: 1px solid #c6deed;
  border-radius: 999px;
  background: rgba(228, 240, 248, 0.88);
  color: #087fc4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ob-about-eyebrow-line {
  width: 18px;
  height: 1px;
  flex-shrink: 0;
  background: #087fc4;
  opacity: 0.6;
}

/* Mantiene el kicker existente para el resto del catálogo. */
.ob-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  letter-spacing: .18em;
  font-size: 10px;
  font-weight: 800;
  color: var(--ob-blue);
  text-transform: uppercase;
}

.ob-eyebrow__line {
  width: 22px;
  height: 2px;
  border-radius: 4px;
  background: currentColor;
}

.ob-eyebrow--light {
  color: #087fc4;
}

.ob-hero h1 {
  margin: 19px 0 20px;
  font-size: clamp(35px, 4.1vw, 57px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.045em;
  color: #142a43;
}

.ob-hero h1 span {
  color: #087fc4;
}

.ob-hero__copy>p {
  max-width: 580px;
  margin: 0;
  color: #60748a;
  font-size: 13.5px;
  line-height: 1.85;
}

.ob-hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 29px;
}

.ob-hero__stats>div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ob-hero__stats strong {
  font-size: 21px;
  font-weight: 800;
  color: #142a43;
}

.ob-hero__stats span:not(.ob-hero__divider) {
  color: #60748a;
  font-size: 11px;
}

.ob-hero__stats .ob-hero__divider {
  width: 1px;
  height: 22px;
  background: #c3d6e4;
}

.ob-hero__art {
  height: 100%;
  min-height: 410px;
  position: relative;
  display: grid;
  place-items: center;
}

.ob-hero__orbit {
  position: absolute;
  border: 1px solid rgba(8, 127, 196, .18);
  border-radius: 50%;
}

.ob-hero__orbit--outer {
  width: 355px;
  height: 355px;
}

.ob-hero__orbit--inner {
  width: 270px;
  height: 270px;
  border-style: dashed;
  border-color: rgba(8, 127, 196, .23);
}

.ob-hero__cross {
  height: 195px;
  width: 195px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 28% 22%, #f8fcff 0%, #e0f0f9 65%, #d2e8f5 100%);
  border: 1px solid #c0dce9;
  box-shadow: 0 0 0 21px rgba(8, 127, 196, .035), 0 23px 65px rgba(8, 72, 118, .10);
}

.ob-hero__cross i {
  color: #c6deed;
  font-size: 103px;
  line-height: 1;
}

.ob-hero__floating {
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  color: #31526c;
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(154, 192, 216, .53);
  border-radius: 11px;
  padding: 12px 16px;
  box-shadow: 0 16px 32px rgba(22, 72, 111, .08);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 600;
}

.ob-hero__floating i {
  font-size: 20px;
  color: #087fc4;
}

.ob-hero__floating--top {
  top: 90px;
  right: -7px;
}

.ob-hero__floating--bottom {
  bottom: 66px;
  left: -21px;
}

.ob-hero__dot {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #60b7e6;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(8, 127, 196, .08);
}

.ob-hero__dot--one {
  top: 85px;
  left: 90px;
}

.ob-hero__dot--two {
  bottom: 100px;
  right: 23px;
  width: 5px;
  height: 5px;
}

.ob-hero__dot--three {
  top: 167px;
  right: 40px;
  width: 4px;
  height: 4px;
}

/* TÍTULO Y CONTROLES */
.ob-catalog {
  padding-top: 76px;
  padding-bottom: 42px;
}

.ob-catalog__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 34px;
}

.ob-catalog__heading h2 {
  margin: 13px 0 8px;
  color: #132c45;
  font-size: clamp(23px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -.035em;
}

.ob-catalog__heading p {
  color: var(--ob-muted);
  line-height: 1.7;
  font-size: 13px;
  margin: 0;
}

.ob-catalog__counter {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #e9f3fb;
  color: #24658e;
  border: 1px solid #d9eaf5;
  border-radius: 100px;
  padding: 10px 15px;
  font-size: 11px;
  font-weight: 700;
}

.ob-catalog__counter i {
  font-size: 14px;
}

.ob-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.ob-search {
  position: relative;
  width: min(100%, 510px);
}

.ob-search>i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #93a6b6;
  pointer-events: none;
}

.ob-search input {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 45px 0 49px;
  border: 1px solid #dfe8f0;
  background: white;
  box-shadow: 0 4px 13px rgba(18, 53, 81, .025);
  border-radius: 10px;
  color: #173047;
  font-size: 12.5px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.ob-search input::placeholder {
  color: #9aa8b6;
}

.ob-search input:focus {
  border-color: #69b7e8;
  box-shadow: 0 0 0 4px rgba(13, 155, 221, .10);
}

.ob-search__clear {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  background: #edf3f7;
  border: 0;
  color: #62798b;
  border-radius: 50%;
  font-size: 10px;
}

.ob-result-count {
  color: #8a99a7;
  font-size: 11px;
  margin: 0;
  white-space: nowrap;
}

.ob-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.ob-filter {
  background: white;
  color: #65788b;
  border: 1px solid #e3eaf0;
  border-radius: 8px;
  min-height: 37px;
  padding: 0 14px;
  font-size: 11px !important;
  font-weight: 600;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}

.ob-filter:hover {
  color: var(--ob-blue);
  border-color: #aacfe7;
  transform: translateY(-1px);
}

.ob-filter.is-active {
  background: var(--ob-navy);
  color: white;
  border-color: var(--ob-navy);
  box-shadow: 0 4px 11px rgba(8, 44, 77, .14);
}

/* TARJETAS */
.ob-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ob-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--ob-border);
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 7px 29px rgba(26, 66, 104, .035);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}

.ob-card:hover {
  transform: translateY(-5px);
  border-color: #c8e0f2;
  box-shadow: 0 20px 38px rgba(23, 63, 96, .10);
}

/* ==========================================================
   CARD - IMÁGENES DE CATEGORÍAS
========================================================== */

/* Misma altura para imágenes WEBP e íconos antiguos. */
.ob-card__visual {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  height: 205px;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 27%, var(--ob-glow), transparent 44%),
    linear-gradient(125deg, var(--ob-visual-start), var(--ob-visual-end));
}

/* Imagen base */
.ob-card__image {
  position: absolute;
  inset: 0;
  z-index: 0;

  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;
  object-position: center center;

  transition: transform 0.5s ease;
}

/* Elementos visibles por encima */
.ob-card__number,
.ob-card__art-caption {
  z-index: 2;
}

/* Hover */
.ob-card:hover .ob-card__image {
  transform: scale(1.04);
}

/* Encuadre personalizado; funciona con class="ob-card__image". */
.ob-card__visual--insumos .ob-card__image {
  object-position: center 35%;
}


.ob-card__visual::before,
.ob-card__visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.ob-card__visual::before {
  height: 220px;
  width: 220px;
  right: -58px;
  top: -77px;
}

.ob-card__visual::after {
  height: 155px;
  width: 155px;
  left: -63px;
  bottom: -83px;
}

.ob-card__visual--trauma {
  --ob-visual-start: #dbeaf5;
  --ob-visual-end: #c1dae9;
  --ob-glow: #f9fcff;
  --ob-visual-ink: #225b81;
}

.ob-card__visual--ortopedia {
  --ob-visual-start: #e0e9ef;
  --ob-visual-end: #c9dce6;
  --ob-glow: #fff;
  --ob-visual-ink: #38718a;
}

.ob-card__visual--artroscopia {
  --ob-visual-start: #d9eaf0;
  --ob-visual-end: #bddfe1;
  --ob-glow: #f5fffe;
  --ob-visual-ink: #3e858f;
}

.ob-card__visual--columna {
  --ob-visual-start: #e2e4f0;
  --ob-visual-end: #c9d4e9;
  --ob-glow: #fbfaff;
  --ob-visual-ink: #5474a6;
}

.ob-card__visual--artroplastia {
  --ob-visual-start: #e6ebf2;
  --ob-visual-end: #cbd9e7;
  --ob-glow: #fff;
  --ob-visual-ink: #5c7593;
}

.ob-card__visual--biomateriales {
  --ob-visual-start: #e2ebec;
  --ob-visual-end: #c6dedd;
  --ob-glow: #fcffff;
  --ob-visual-ink: #538d87;
}

.ob-card__visual--insumos {
  --ob-visual-start: #e6e9f1;
  --ob-visual-end: #d1d8e6;
  --ob-glow: #f9fcff;
  --ob-visual-ink: #677c9b;
}

.ob-card__number {
  position: absolute;
  top: 17px;
  left: 19px;
  background: rgba(255, 255, 255, .67);
  color: #456985;
  border: 1px solid rgba(255, 255, 255, .72);
  padding: 6px 10px;
  border-radius: 100px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
}

.ob-card__art {
  height: 128px;
  width: 128px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--ob-visual-ink);
  background: rgba(255, 255, 255, .28);
  border: 1px solid rgba(255, 255, 255, .54);
  box-shadow: 0 15px 20px rgba(48, 91, 128, .07), inset 0 0 0 11px rgba(255, 255, 255, .13);
}

.ob-card__art::before,
.ob-card__art::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  position: absolute;
}

.ob-card__art::before {
  top: 14px;
  left: -18px;
}

.ob-card__art::after {
  bottom: 7px;
  right: -17px;
  width: 5px;
  height: 5px;
}

.ob-card__art i {
  font-size: 70px;
  line-height: 1;
  filter: drop-shadow(0 9px 8px rgba(42, 82, 110, .14));
}

.ob-card__art--artroscopia i,
.ob-card__art--columna i,
.ob-card__art--biomateriales i {
  font-size: 63px;
}

.ob-card__art-caption {
  position: absolute;
  right: 18px;
  bottom: 15px;
  color: rgba(16, 58, 92, .92);
  text-shadow: 0 1px 2px rgba(255, 255, 255, .55);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .2em;
}

.ob-card__body {
  padding: 25px 25px 21px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ob-card__label {
  color: var(--ob-blue);
  font-size: 9px;
  letter-spacing: .12em;
  font-weight: 800;
}

.ob-card__body h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 10px 0 10px;
  color: #172f46;
}

.ob-card__body p {
  font-size: 12px;
  color: #78899a;
  line-height: 1.75;
  margin: 0 0 19px;
  flex: 1;
}

.ob-card__link {
  border-top: 1px solid #edf1f5;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #0a75b5;
  font-weight: 800;
}

.ob-card__link:hover {
  color: #054d7d;
}

.ob-card__link span {
  display: grid;
  place-items: center;
  height: 29px;
  width: 29px;
  background: #eef6fc;
  color: #0a83c7;
  border-radius: 8px;
  transition: background .2s, transform .2s;
}

.ob-card:hover .ob-card__link span {
  background: #dceefa;
  transform: translate(2px, -2px);
}

/* SIN RESULTADOS */
.ob-empty {
  border: 1px dashed #c8d9e6;
  border-radius: 15px;
  background: white;
  text-align: center;
  padding: 65px 20px;
}

.ob-empty__icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin: 0 auto 17px;
  background: #edf5fb;
  color: #438ab8;
  font-size: 24px;
}

.ob-empty h3 {
  font-size: 19px;
  color: #173047;
  margin: 0 0 10px;
}

.ob-empty p {
  color: #718297;
  font-size: 12px;
  margin: 0 0 20px;
}

/* VISTA DE UNA CATEGORÍA */
.ob-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 14px 19px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  border: 0;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  transition: transform .2s, background .2s;
}

.ob-button:hover {
  transform: translateY(-2px);
}

.ob-button--light {
  color: #0b456e;
  background: #fff;
}

.ob-button--light:hover {
  background: #dff3ff;
}

.ob-button--dark {
  color: white;
  background: #0a456f;
}

.ob-button--dark:hover {
  background: #077bbc;
}

/* RESPONSIVE */
@media (max-width: 1050px) {
  .ob-hero__floating--top {
    right: -16px;
  }

  .ob-card-grid {
    gap: 16px;
  }

  .ob-card__body {
    padding: 22px 21px 19px;
  }
}

@media (max-width: 900px) {
  .ob-hero__inner {
    grid-template-columns: 1.25fr .75fr;
  }

  .ob-hero__orbit--outer {
    width: 285px;
    height: 285px;
  }

  .ob-hero__orbit--inner {
    width: 205px;
    height: 205px;
  }

  .ob-hero__cross {
    height: 155px;
    width: 155px;
  }

  .ob-hero__cross i {
    font-size: 80px;
  }

  .ob-hero__floating--top {
    top: 95px;
    right: -10px;
  }

  .ob-hero__floating--bottom {
    bottom: 88px;
    left: -20px;
  }

  .ob-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ob-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
    scrollbar-width: thin;
  }

  .ob-filter {
    flex: 0 0 auto;
  }
}

@media (max-width: 640px) {
  .ob-container {
    width: min(calc(100% - 36px), var(--ob-container));
  }

  .ob-hero__inner {
    display: block;
    min-height: 0;
  }

  .ob-hero__copy {
    padding: 25px 0 51px;
  }

  .ob-breadcrumb {
    margin-bottom: 45px;
  }

  .ob-about-eyebrow {
    gap: 8px;
    padding: 9px 12px;
    font-size: 8px;
    letter-spacing: 1px;
  }

  .ob-about-eyebrow-line {
    width: 10px;
  }

  .ob-hero h1 {
    font-size: clamp(32px, 8.8vw, 44px);
    margin-top: 18px;
  }

  .ob-hero__copy>p {
    font-size: 12px;
    line-height: 1.8;
  }

  .ob-hero__stats {
    margin-top: 26px;
  }

  .ob-hero__art {
    display: none;
  }

  .ob-catalog {
    padding-top: 50px;
  }

  .ob-catalog__heading {
    align-items: start;
    margin-bottom: 26px;
  }

  .ob-catalog__heading h2 {
    font-size: 25px;
  }

  .ob-catalog__heading p {
    font-size: 12px;
  }

  .ob-catalog__counter {
    display: none;
  }

  .ob-tools {
    flex-direction: column;
    align-items: stretch;
    gap: 11px;
    margin-bottom: 19px;
  }

  .ob-search {
    width: 100%;
  }

  .ob-result-count {
    align-self: flex-end;
  }

  .ob-filters {
    margin-right: -18px;
    padding-right: 18px;
    margin-bottom: 17px;
  }

  .ob-card-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .ob-card__visual {
    height: 178px;
  }

  .ob-card__body {
    padding: 22px;
  }

  .ob-card__body h3 {
    font-size: 19px;
  }

  .ob-card__body p {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .ob-page-shell *,
  .ob-page-shell *::before,
  .ob-page-shell *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
