/* Fixed photo proportions and one quiet navigation rail for every reel. */
.calea-enhanced .calea-carousel {
  --calea-reel-ratio: 16 / 9;
  --calea-caption-height: 0px;
  position: relative;
  width: 100%; height: auto; min-height: 0;
  margin: 0; padding: 0 0 58px;
  background: transparent;
  isolation: isolate;
}
.calea-enhanced .calea-carousel > .w-slider-mask {
  display: block; position: relative;
  width: 100%; height: auto; aspect-ratio: var(--calea-reel-ratio);
  margin: 0; padding: 0; inset: auto;
  border-radius: 8px; background: #eee9df;
  overflow: hidden; touch-action: pan-y pinch-zoom;
}
.calea-enhanced .calea-carousel .w-slide {
  width: 100%; height: 100%; min-height: 0;
  margin: 0; padding: 0; vertical-align: top;
}
.calea-enhanced .calea-carousel .w-slide img {
  display: block; width: 100%; height: 100%; max-height: none;
  aspect-ratio: var(--calea-reel-ratio); margin: 0; padding: 0;
  object-fit: cover; object-position: var(--calea-focus, 50% 50%);
  user-select: none; -webkit-user-drag: none;
}
.calea-enhanced .calea-carousel .w-slide img.calea-complete-composition { object-fit: contain; }
.calea-enhanced .calea-carousel.is-dragging { cursor: grabbing; }
.calea-enhanced .calea-carousel.is-dragging img { cursor: grabbing; }
.calea-enhanced .calea-carousel > :is(.w-slider-arrow-left,.w-slider-arrow-right) {
  display: grid; place-items: center;
  position: absolute; top: auto; bottom: 0;
  width: 44px; height: 44px; margin: 0;
  border: 1px solid #a6947c55; border-radius: 50%;
  color: #665647; background: transparent;
  opacity: 1; font-size: 16px;
  transition: background-color .18s ease, border-color .18s ease;
}
.calea-enhanced .calea-carousel > .w-slider-arrow-left { left: 0; right: auto; }
.calea-enhanced .calea-carousel > .w-slider-arrow-right { right: 0; left: auto; }
.calea-enhanced .calea-carousel > :is(.w-slider-arrow-left,.w-slider-arrow-right) > div {
  display: block; position: static; width: auto; height: auto; margin: 0;
  color: inherit; font-size: 16px; line-height: 1;
}
.calea-enhanced .calea-carousel > .w-slider-nav {
  display: flex; align-items: center; justify-content: center;
  position: absolute; inset: auto 54px 0;
  width: auto; height: 44px; margin: 0; padding: 0;
  gap: 0; font-size: 0; line-height: 0; overflow: visible;
}
.calea-enhanced .calea-carousel .w-slider-dot {
  position: relative; display: block; flex: 0 1 24px;
  width: 24px; min-width: 18px; height: 44px;
  padding: 0; margin: 0!important; border: 0;
  background: transparent; border-radius: 0; box-shadow: none;
}
.calea-enhanced :is(.section-11,.galerias-pv-zd_escr,.seccion-galeria) .calea-carousel .w-slider-dot.w-active { background: transparent; }
.calea-enhanced .calea-carousel .w-slider-dot::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 5px; height: 5px; border-radius: 50%;
  transform: translate(-50%,-50%); background: #b6a895;
  transition: width .18s ease, background-color .18s ease;
}
.calea-enhanced .calea-carousel .w-slider-dot.w-active::after { width: 16px; border-radius: 4px; background: #665647; }
.calea-enhanced .calea-carousel .w-slider-dot.calea-dot-outside { display: none; }
.calea-enhanced .calea-carousel .w-slider-dot:focus-visible { outline-offset: -4px; border-radius: 8px; }

/* Bound the composition, not just the images, on a wide desktop. */
body.calea-enhanced[data-calea-page="home"] > .section-11 {
  grid-template-columns: minmax(250px,.72fr) minmax(0,1.28fr);
  gap: clamp(28px,4vw,64px);
  padding-left: max(var(--calea-gutter),calc((100vw - 1400px)/2));
  padding-right: max(var(--calea-gutter),calc((100vw - 1400px)/2));
  background: #f5f3ec;
}
.calea-enhanced .section-11 .container-23 { display: block; height: auto; min-height: 0; max-height: none; align-self: center; }
.calea-enhanced .section-11 .slider-5.calea-carousel { padding-bottom: 58px; }
body.calea-enhanced[data-calea-page="home"] > .galerias-pv-zd_escr {
  gap: clamp(30px,4vw,64px);
  padding-left: max(var(--calea-gutter),calc((100vw - 1400px)/2));
  padding-right: max(var(--calea-gutter),calc((100vw - 1400px)/2));
  background: #faf9f5; align-items: start;
}
.calea-enhanced .galerias-pv-zd_escr > section { min-width: 0; background: transparent; }
.calea-enhanced .galerias-pv-zd_escr :is(.section-9,.section-10,.container-4,.container-4-copy-copy,.galeria-element,.galeria-la-playa) {
  width: 100%; height: auto; max-width: none; margin: 0; padding: 0; background: transparent;
}
.calea-enhanced .galerias-pv-zd_escr :is(.container-4,.container-4-copy-copy) { display: block; }
.calea-enhanced .galerias-pv-zd_escr .text-block-43 { display: block; text-align: left; font-size: clamp(25px,2.2vw,36px); line-height: 1.25; min-height: 1.25em; }
.calea-enhanced .galerias-pv-zd_escr .text-block-44 { text-align: left; font-size: clamp(16px,1.4vw,22px); line-height: 1.5; min-height: 1.5em; margin-bottom: 22px; }
.calea-enhanced .galerias-pv-zd_escr .calea-carousel > .w-slider-mask { aspect-ratio: auto; background: transparent; border-radius: 8px 8px 0 0; }
.calea-enhanced .galerias-pv-zd_escr .calea-carousel .w-slide { height: auto; }
.calea-enhanced .galerias-pv-zd_escr .calea-carousel .container-imagen { display: block; height: auto; }
.calea-enhanced .galerias-pv-zd_escr .calea-carousel .w-slide img { height: auto; aspect-ratio: var(--calea-reel-ratio); background: #eee9df; }
.calea-enhanced .galerias-pv-zd_escr .calea-carousel .text-imagen-galeria {
  width: 100%; height: auto; min-height: 112px;
  margin: 0; padding: 18px 0 10px; border-bottom: 1px solid #a6947c35;
  color: #51483d; background: transparent;
  font: 400 16px/1.6 var(--calea-body); text-align: left;
  white-space: normal; overflow-wrap: break-word;
}
.calea-enhanced .seccion-galeria { padding-top: 30px; padding-bottom: 60px; max-width: 1400px; }
.calea-enhanced .seccion-galeria .cont_galeria { width: 100%; height: auto; max-height: none; max-width: 1120px; margin: auto; padding: 0; }
.calea-enhanced .seccion-galeria .slider-7.calea-carousel { padding-bottom: 58px; }
@media (hover:hover) {
  .calea-enhanced .calea-carousel > :is(.w-slider-arrow-left,.w-slider-arrow-right):hover { background: #eee9df; border-color: #8c7c66; }
}
.calea-enhanced .calea-carousel > :is(.w-slider-arrow-left,.w-slider-arrow-right).calea-pen-hover { background: #eee9df; border-color: #8c7c66; }
@media (max-width:800px) {
  body.calea-enhanced[data-calea-page="home"] > .section-11 { grid-template-columns: minmax(0,1fr); gap: 26px; }
  .calea-enhanced .galerias-pv-zd_escr .calea-carousel .text-imagen-galeria { min-height: 112px; font-size: 15px; padding-top: 14px; }
  .calea-enhanced .seccion-galeria { padding-top: 20px; }
}
@media (prefers-reduced-motion:reduce) {
  .calea-enhanced .calea-carousel *, .calea-enhanced .calea-carousel *::after { transition-duration: .01ms!important; }
}

.calea-enhanced .calea-carousel :is(.w-slider-mask,.w-slide,.w-slide img) { touch-action:pan-y pinch-zoom; }
.calea-enhanced .calea-carousel .w-slide img { -webkit-touch-callout:none; }

/* Each destination owns its title, photograph, caption and complete control row. */
.calea-enhanced .galerias-pv-zd_escr > section {
  padding:clamp(16px,2vw,28px);border:1px solid #e4ded3;border-radius:8px;background:#fff;
}
.calea-enhanced .galerias-pv-zd_escr .calea-carousel > .w-slider-mask { border-radius:8px; }
.calea-enhanced .galerias-pv-zd_escr .calea-carousel .w-slide img { border-radius:8px; }
.calea-enhanced .galerias-pv-zd_escr .calea-carousel .text-imagen-galeria { min-height:104px; }
@media(max-width:800px){
  body.calea-enhanced[data-calea-page="home"] > .galerias-pv-zd_escr { gap:28px; }
  .calea-enhanced .galerias-pv-zd_escr > section { padding:16px 14px 18px; }
  .calea-enhanced .galerias-pv-zd_escr .text-block-43 { font-size:clamp(23px,5.6vw,30px); }
  .calea-enhanced .galerias-pv-zd_escr .text-block-44 { font-size:15px;margin-bottom:16px; }
  .calea-enhanced .galerias-pv-zd_escr .calea-carousel .text-imagen-galeria { min-height:104px;font-size:14px; }
}

/* Four fixed photographs on desktop; a clean, touch-scrollable ribbon on smaller screens. */
.calea-enhanced :is(#calea-location,#calea-beach) .quick-stack-7.calea-rail[id] {
  display:grid;grid-template-columns:none!important;grid-template-rows:auto!important;
  grid-auto-flow:column;grid-auto-columns:calc((100% - 3 * var(--calea-rail-gap))/4);
  --calea-rail-gap:clamp(12px,1.5vw,24px);gap:var(--calea-rail-gap);justify-content:start;
  width:100%;overflow-x:auto;padding-bottom:4px;scroll-snap-type:x mandatory;
  scroll-padding-inline:0;scrollbar-width:none;overscroll-behavior-x:contain;
  touch-action:pan-x pan-y pinch-zoom;
}
.calea-enhanced .calea-rail::-webkit-scrollbar { display:none; }
.calea-enhanced .calea-rail > * { grid-area:auto!important;scroll-snap-align:start;min-width:0; }
.calea-enhanced .calea-rail img { -webkit-user-drag:none;user-select:none;-webkit-touch-callout:none; }
.calea-enhanced .calea-rail:focus-visible { outline:2px solid #a6947c;outline-offset:6px; }
.calea-enhanced .calea-rail.is-dragging { scroll-snap-type:none!important;cursor:grabbing; }
.calea-enhanced .calea-rail.is-dragging img { cursor:grabbing; }
.calea-enhanced .calea-rail.calea-rail-resetting { scroll-snap-type:none!important;scroll-behavior:auto!important; }
@media(max-width:999px){
  .calea-enhanced :is(#calea-location,#calea-beach) .quick-stack-7.calea-rail[id] { grid-auto-columns:56%;--calea-rail-gap:16px; }
}
@media(max-width:540px){
  .calea-enhanced :is(#calea-location,#calea-beach) .quick-stack-7.calea-rail[id] { grid-auto-columns:82%;--calea-rail-gap:12px; }
}
