/* ================================================================
   style_carousel.css
   Solo añade: carruseles en Servicios + fix reCAPTCHA modo oscuro
   ================================================================ */

/* ── Wrapper imagen con carrusel (tarjetas anchas) ── */
.sv-wide-card .sv-img-wrap {
  position: relative;
  overflow: hidden;
  width: 260px;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .sv-wide-card .sv-img-wrap { width: 100%; }
}

/* ── Wrapper imagen con carrusel (tarjetas pequeñas) ── */
.sv-sm-card .sv-img-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* ── Fade suave al cambiar imagen ── */
.sv-img-wrap img,
.sv-hero-img {
  transition: opacity 0.3s ease;
  display: block;
}

/* ── Flechas ── */
.sv-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 20, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  opacity: 0;
  transition: opacity 0.25s, background 0.25s;
}

/* Mostrar flechas al hacer hover */
.sv-img-wrap:hover .sv-carousel-btn,
.sv-hero-media:hover .sv-carousel-btn {
  opacity: 1;
}

.sv-carousel-btn:hover {
  background: rgba(0, 86, 247, 0.85);
  border-color: #0056f7;
}

.sv-carousel-btn.sv-prev { left: 10px; }
.sv-carousel-btn.sv-next { right: 10px; }

/* Hero: botones encima del overlay de texto */
.sv-hero-media { position: relative; }
.sv-hero-media .sv-carousel-btn  { z-index: 5; }
.sv-hero-media .sv-carousel-dots { z-index: 5; bottom: 14px; }

/* ── Puntos indicadores ── */
.sv-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}

.sv-carousel-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  padding: 0;
  transition: all 0.3s;
}

.sv-carousel-dot.active {
  background: #fff;
  transform: scale(1.35);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ── Contador 1 / 3 ── */
.carousel-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  letter-spacing: 0.06em;
}

/* ── reCAPTCHA modo oscuro ── */
[data-theme="dark"] .recaptcha-container > div,
[data-theme="dark"] .g-recaptcha > div {
  filter: invert(0.9) hue-rotate(180deg) brightness(0.88);
  border-radius: 6px;
  overflow: hidden;
}

.recaptcha-legal {
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: 10px;
  line-height: 1.55;
}
.recaptcha-legal a {
  color: var(--blue-light);
  text-decoration: none;
}
.recaptcha-legal a:hover { text-decoration: underline; }