/* =========================================
   Overflow Carousel
   ========================================= */

.oc-section {
  background: #F9EFE3;
  padding: 48px 0 52px;
  width: 100%;
}

.oc {
  width: 100% !important;
  --oc-gap: 12px;
}

/* Congela transiciones durante el salto de loop */
.oc.oc--jumping .oc__slide {
  transition: none !important;
}

/* Viewport */
.oc .oc__viewport {
  overflow: hidden !important;
  width: 100% !important;
  height: calc(52vw * 0.6) !important; /* 31.2vw */
}

/* Track */
.oc .oc__track {
  display: flex !important;
  align-items: center !important;
  gap: var(--oc-gap) !important;
  will-change: transform;
  flex-wrap: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Slide inactivo */
.oc .oc__slide {
  flex: 0 0 43vw !important;
  height: calc(43vw * 0.6) !important;
  overflow: hidden !important;
  line-height: 0 !important;
  transition: flex-basis 1.1s cubic-bezier(0.37, 0, 0.63, 1),
              height    1.1s cubic-bezier(0.37, 0, 0.63, 1) !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  box-sizing: border-box !important;
}

/* Slide activo */
.oc .oc__slide.is-active {
  flex: 0 0 52vw !important;
  height: calc(52vw * 0.6) !important;
}

/* Imágenes */
.oc .oc__slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  max-width: none !important;
  max-height: none !important;
}

/* Navegación */
.oc .oc__nav {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 22px !important;
}

.oc .oc__btn {
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  padding: 4px !important;
  display: flex !important;
  align-items: center !important;
  color: #013B3C !important;
  transition: color 0.2s !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  text-decoration: none !important;
}

.oc .oc__btn:hover { color: #64BEBE !important; }

.oc .oc__btn svg {
  width: 15px !important;
  height: 19px !important;
  stroke: none !important;
  fill: currentColor !important;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .oc { --oc-gap: 10px; }
  .oc .oc__viewport { height: calc(52vw * 1.1) !important; }
  .oc .oc__slide    { height: calc(43vw * 1.1) !important; }
  .oc .oc__slide.is-active { height: calc(52vw * 1.1) !important; }
}

@media (max-width: 480px) {
  .oc { --oc-gap: 6px; }
  .oc .oc__viewport { height: calc(52vw * 1.1) !important; }
  .oc .oc__slide    { height: calc(43vw * 1.1) !important; }
  .oc .oc__slide.is-active { height: calc(52vw * 1.1) !important; }
}

/* Widescreen ≥2000px */
@media (min-width: 2000px) {
  .oc .oc__viewport              { height: 648px !important; }
  .oc .oc__slide                 { flex: 0 0 900px !important; height: 540px !important; }
  .oc .oc__slide.is-active       { flex: 0 0 1080px !important; height: 648px !important; }
}
