/* FLR Galería: deliberately self-contained. No Jupiter, prettyPhoto or WPBakery lightbox dependency. */
.flrg-gallery {
  --flrg-desktop: 4;
  --flrg-tablet: 2;
  --flrg-mobile: 1;
  --flrg-visible: var(--flrg-desktop);
  --flrg-gap: 12px;
  --flrg-radius: 0px;
  --flrg-ratio: 4 / 3;
  --flrg-accent: #AB0A3D;
  --flrg-max-width: 100%;
  display: block;
  width: 100%;
  max-width: min(100%, var(--flrg-max-width, 100%));
  margin-inline: auto;
  min-width: 0;
  box-sizing: border-box;
}
.flrg-gallery *, .flrg-lightbox, .flrg-lightbox * { box-sizing: border-box; }
.flrg-gallery .flrg-viewport { width: 100%; min-width: 0; position: relative; }
.flrg-gallery .flrg-track { gap: var(--flrg-gap); }
.flrg-gallery--cuadricula .flrg-track {
  display: grid;
  grid-template-columns: repeat(var(--flrg-visible), minmax(0, 1fr));
}
.flrg-gallery.flrg-gallery--carrusel .flrg-viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.flrg-gallery.flrg-gallery--carrusel .flrg-viewport::-webkit-scrollbar { display: none; }
.flrg-gallery.flrg-gallery--carrusel .flrg-track { display: flex; flex-wrap: nowrap; align-items: stretch; }
.flrg-gallery.flrg-gallery--carrusel .flrg-item {
  flex: 0 0 calc((100% - (var(--flrg-visible) - 1) * var(--flrg-gap)) / var(--flrg-visible));
  min-width: 0;
  scroll-snap-align: start;
}
.flrg-gallery .flrg-item {
  display: flex;
  position: relative;
  flex-direction: column;
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--flrg-radius);
  background-color: transparent;
}
.flrg-gallery--shadow-suave .flrg-item { box-shadow: 0 3px 12px rgba(0,0,0,.12); }
.flrg-gallery--shadow-marcada .flrg-item { box-shadow: 0 6px 22px rgba(0,0,0,.25); }
.flrg-gallery .flrg-media {
  position: relative;
  display: block;
  flex: 1 0 auto;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  line-height: 0;
  text-decoration: none;
  cursor: default;
  overflow: hidden;
  appearance: none;
}
.flrg-gallery button.flrg-media, .flrg-gallery a.flrg-media { cursor: pointer; }
.flrg-gallery .flrg-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--flrg-ratio);
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 0;
  max-width: none;
}
.flrg-gallery--contener .flrg-media img { object-fit: contain; }
.flrg-gallery--original .flrg-media img { aspect-ratio: auto; height: auto; }
.flrg-gallery .flrg-caption { display: block; margin: 0; padding: 9px 11px; font: inherit; font-size: 13px; line-height: 1.4; color: #242424; }
.flrg-gallery--captions-sobre .flrg-caption {
  position: absolute; z-index: 1; bottom: 0; left: 0; right: 0;
  color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75));
  padding: 28px 12px 10px; pointer-events: none;
}
.flrg-gallery .flrg-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  min-height: 38px;
}
.flrg-gallery .flrg-controls[hidden], .flrg-gallery .flrg-dots[hidden] { display: none !important; }
/* Optional positioned arrows make a carousel look like the original WPBakery gallery. */
.flrg-gallery--controls-superpuestos { position: relative; }
.flrg-gallery--controls-superpuestos .flrg-controls {
  position: absolute;
  inset: 0;
  z-index: 4;
  height: 100%;
  margin: 0;
  padding: 0 8px;
  justify-content: space-between;
  pointer-events: none;
}
.flrg-gallery--controls-superpuestos .flrg-arrow { pointer-events: auto; }
.flrg-gallery--controls-superpuestos .flrg-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.88);
  border-radius: 14px;
  padding: 7px 9px;
  pointer-events: auto;
}
.flrg-gallery .flrg-count {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #444;
  white-space: nowrap;
}
.flrg-gallery--controls-superpuestos .flrg-count {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,.68);
  color: #fff;
  padding: 4px 8px;
  border-radius: 10px;
}
.flrg-gallery .flrg-arrow {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--flrg-accent);
  background: #fff;
  color: var(--flrg-accent);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
}
.flrg-gallery .flrg-arrow:hover { background: var(--flrg-accent); color: #fff; }
.flrg-gallery .flrg-arrow:disabled { opacity: .35; cursor: not-allowed; }
.flrg-gallery .flrg-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.flrg-gallery .flrg-dot {
  appearance: none; width: 9px; height: 9px; min-width: 9px;
  border-radius: 50%; border: none; padding: 0;
  background-color: #c2c2c2; cursor: pointer; opacity: .85;
}
.flrg-gallery .flrg-dot[aria-current="true"] { background-color: var(--flrg-accent); transform: scale(1.2); }
.flrg-gallery :is(.flrg-arrow, .flrg-dot, .flrg-open):focus-visible,
.flrg-lightbox :is(button):focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }
.flrg-placeholder { padding: 12px; border: 1px dashed #aaa; }
@media (max-width: 900px) { .flrg-gallery { --flrg-visible: var(--flrg-tablet); } }
@media (max-width: 600px) { .flrg-gallery { --flrg-visible: var(--flrg-mobile); } }
@media (prefers-reduced-motion: reduce) {
  .flrg-gallery .flrg-viewport { scroll-behavior: auto !important; }
  .flrg-gallery *, .flrg-lightbox * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
/* Appended to <body>, not inside WPBakery rows or theme stacking contexts. */
body.flrg-modal-open { overflow: hidden !important; }
.flrg-lightbox[hidden] { display: none !important; }
.flrg-lightbox {
  position: fixed; z-index: 2147483000; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 18px 58px 48px;
  background: rgba(11, 13, 16, .94);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.35;
}
.flrg-lightbox button { appearance: none; font-family: inherit; }
.flrg-lightbox .flrg-dialog { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; max-width: 100%; max-height: 100%; outline: none; }
.flrg-lightbox .flrg-full { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 145px); object-fit: contain; box-shadow: 0 5px 35px rgba(0,0,0,.55); }
.flrg-lightbox .flrg-lightbox-caption { max-width: 100%; text-align: center; margin: 12px 0 0; overflow-wrap: anywhere; }
.flrg-lightbox .flrg-counter { color: #ddd; margin-top: 6px; font-size: 13px; font-variant-numeric: tabular-nums; }
.flrg-lightbox .flrg-close, .flrg-lightbox .flrg-back, .flrg-lightbox .flrg-forward {
  position: absolute; color: #fff; background: rgba(30,30,30,.7);
  border: 1px solid rgba(255,255,255,.5); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; cursor: pointer; font-size: 26px; line-height: 1;
  padding: 0;
}
.flrg-lightbox .flrg-close { top: 16px; right: 16px; }
.flrg-lightbox .flrg-back { top: 50%; left: 12px; transform: translateY(-50%); }
.flrg-lightbox .flrg-forward { top: 50%; right: 12px; transform: translateY(-50%); }
.flrg-lightbox .flrg-close:hover, .flrg-lightbox .flrg-back:hover, .flrg-lightbox .flrg-forward:hover { background: #AB0A3D; }
@media (max-width: 600px) {
  .flrg-lightbox { padding: 48px 12px 66px; }
  .flrg-lightbox .flrg-full { max-height: calc(100dvh - 175px); }
  .flrg-lightbox .flrg-back, .flrg-lightbox .flrg-forward { top: auto; bottom: 12px; transform: none; }
  .flrg-lightbox .flrg-back { left: calc(50% - 62px); }
  .flrg-lightbox .flrg-forward { right: calc(50% - 62px); }
}
