/* ─────────────────────────────────────────────────────────────
   Flor en Armonía — Galería
   ───────────────────────────────────────────────────────────── */

/* ── Encabezado de galería ─────────────────────────────────── */
.galeria-hero {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 48px;
  text-align: center;
  background: var(--cream);
}
.galeria-hero .section-title {
  margin-bottom: 0;
}

/* ── Slideshow principal ───────────────────────────────────── */
.slideshow {
  position: relative;
  width: 100%;
  height: 72vh;
  min-height: 420px;
  max-height: 800px;
  overflow: hidden;
  background: var(--dark);
  cursor: grab;
}
.slideshow:active { cursor: grabbing; }

.slideshow__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide.active {
  opacity: 1;
}
.slide__bg {
  position: absolute;
  inset: -30px;
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(0.35) saturate(0.8);
  transform: scale(1.08);
  z-index: 0;
}

.slide img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Velo inferior para que los dots se lean bien */
.slideshow::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(to top, rgba(46,40,32,0.45), transparent);
  pointer-events: none;
  z-index: 5;
}

/* Placeholder (sin imágenes) */
.slide--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  opacity: 1;
  background: var(--warm);
}
.slide--empty svg { opacity: 0.35; }
.slide--empty p {
  font-family: var(--ff-head);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--taupe);
  opacity: 0.7;
}

/* Flechas */
.slideshow__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(250,250,246,0.12);
  border: 1px solid rgba(250,250,246,0.28);
  color: var(--cream);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.slideshow__btn:hover {
  background: rgba(250,250,246,0.22);
  border-color: rgba(250,250,246,0.55);
  transform: translateY(-50%) scale(1.06);
}
.slideshow__btn--prev { left: 28px; }
.slideshow__btn--next { right: 28px; }

/* Dots */
.slideshow__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  z-index: 10;
}
.slideshow__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.slideshow__dot::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(250,250,246,0.38);
  transition: background 0.3s, transform 0.3s;
  pointer-events: none;
}
.slideshow__dot.active::after {
  background: var(--cream);
  transform: scale(1.4);
}

/* Contador de slide */
.slideshow__counter {
  position: absolute;
  top: 20px;
  right: 28px;
  z-index: 10;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  color: rgba(250,250,246,0.6);
}

/* ── Sección de testimonios ────────────────────────────────── */
.testimonios-section {
  padding-block: 80px;
  background: var(--warm);
  overflow: hidden;
  border-top: 1px solid rgba(201,169,154,0.15);
}
.testimonios-section .section-label { margin-bottom: 12px; }
.testimonios-section .section-title  { margin-bottom: 48px; }

.testimonios__marquee-wrap {
  overflow: hidden;
  width: 100%;
  padding-block: 8px;
}
.testimonios__inner {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee-scroll var(--testimonio-dur, 36s) linear infinite;
}
.testimonios__marquee-wrap:hover .testimonios__inner {
  animation-play-state: paused;
}

/* Tarjeta de testimonio */
.testimonio__card {
  flex-shrink: 0;
  width: 320px;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid rgba(201,169,154,0.22);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.testimonio__card:hover {
  box-shadow: 0 12px 36px rgba(139,115,85,0.12);
  transform: translateY(-4px);
}
.testimonio__quote {
  color: var(--rose);
  opacity: 0.45;
  flex-shrink: 0;
}
.testimonio__text {
  font-family: var(--ff-head);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--dark);
  line-height: 1.7;
  flex: 1;
}
.testimonio__name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--taupe);
}

/* Placeholder sin testimonios */
.testimonios__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px 0 8px;
  text-align: center;
  color: var(--rose);
}
.testimonios__placeholder p {
  font-family: var(--ff-head);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--taupe);
  opacity: 0.6;
  line-height: 1.7;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Contacto en galería ───────────────────────────────────── */
.galeria-contacto {
  background: var(--cream);
  border-top: 1px solid rgba(201,169,154,0.15);
}
.galeria-contacto__inner {
  text-align: center;
}
.galeria-contacto__inner .section-label { margin-bottom: 12px; }
.galeria-contacto__inner .section-title  { margin-bottom: 16px; }

.galeria-contacto__lead {
  font-size: 15px;
  color: var(--text-light);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.8;
}
.galeria-contacto__form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}
.galeria-contacto__social {
  margin-top: 32px;
}

/* ── Focus visible ─────────────────────────────────────────── */
.slideshow__btn:focus-visible,
.slideshow__dot:focus-visible {
  outline: 2px solid rgba(250,250,246,0.8);
  outline-offset: 3px;
  border-radius: 50%;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .slideshow { height: 58vh; min-height: 320px; }
  .slideshow__btn { width: 42px; height: 42px; }
  .slideshow__btn--prev { left: 14px; }
  .slideshow__btn--next { right: 14px; }
}

@media (max-width: 600px) {
  .slideshow { height: 50vh; min-height: 280px; }
  .galeria-hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 32px; }
}
