/* Estilos exclusivos para el slider de implantes (aislado de otros estilos) */
.implantes-photo-section {
  width: 100%;
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}

.implantes-photo-section h2 {
  color: #1161a0;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.implantes-slider {
  position: relative;
  display: block;
  width: 100%;
}

.implantes-slider__viewport {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  position: relative; /* para posicionar nav absolute respecto a la ventana del slider */
  margin: 0 auto;
  max-width: 900px; /* limitar ancho de la imagen para que se vea un poco más pequeña */
}

.implantes-slider__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(.22,.9,.29,1);
  will-change: transform;
}

.implantes-slide {
  flex: 0 0 100%; /* solo una imagen visible */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.25rem;
}

.implantes-slide img {
  width: 95%; /* ligeramente más pequeña que el viewport */
  max-width: 820px; /* tope para desktop */
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.implantes-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.95);
  border: none;
  color: #1161a0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  z-index: 10;
}

.implantes-slider__prev { left: 12px; }
.implantes-slider__next { right: 12px; }

.implantes-slider__nav:active { transform: translateY(-50%) scale(0.98); }

.implantes-slider__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 0.75rem auto 0;
  width: 100%;
  max-width: 900px;
}

.implantes-slider__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #d6d6d6;
  cursor: pointer;
}

.implantes-slider__dots button.is-active {
  background: #1161a0;
}

/* Layout de dos columnas: slider izquierda, descripción derecha */
.implantes-gallery-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  place-content: center;
  align-items: start;
  justify-items: center;
}

.implantes-description {
  max-width: 520px;
  padding: 0.5rem 1rem;
  text-align: left;
}

.implantes-description h3 {
  color: #1161a0;
  margin-bottom: 0.5rem;
}

.implantes-description p {
  color: #444;
  line-height: 1.5;
}

.implantes-cta {
  display: inline-block;
  margin-top: 1rem;
  background: #1161a0;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .implantes-slider__nav { width: 38px; height: 38px; font-size: 1.3rem; }
  .implantes-gallery-row {
    grid-template-columns: 1fr;
  }
  .implantes-slider__prev { left: 8px; }
  .implantes-slider__next { right: 8px; }
}

@media (max-width: 480px) {
  .implantes-photo-section { padding: 0 0.5rem; }
  .implantes-slider__nav { width: 34px; height: 34px; font-size: 1.15rem; }
}
