/* ===== RB Carousel (Reusable) ===== */
.rb-carousel{
  padding: clamp(48px, 5vw, 84px) 0;
  width: 100%;
}

/* Wider + truly centered on desktop */
.rb-carousel__container{
  max-width: 1400px;               /* was 1200 */
  width: calc(100% - 64px);        /* consistent gutters */
  margin-inline: auto;
}

@media (min-width: 1200px){
  .rb-carousel__container{
    width: calc(100% - 96px);
  }
}

/* Heading */
.rb-carousel__heading{
  color:#fff;
  text-align:center;
  margin: 0 0 26px;
  /* font-family: Georgia, "Times New Roman", Times, serif; */
  font-weight: 600;
}

/* Gray panel (items only) */
.rb-carousel__panel{
  background: #2f2f2f;
  padding: 54px clamp(18px, 3vw, 48px); /* more X padding */
}

/* Viewport + track */
.rb-carousel__viewport{
  overflow: hidden;
  outline: none;
}

.rb-carousel__track{
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 12px 0 6px;
  scrollbar-width: none;
}
.rb-carousel__track::-webkit-scrollbar{ display:none; }

.rb-carousel__slide{
  scroll-snap-align: start;
  flex: 0 0 78%;
}

@media (min-width: 900px){
  .rb-carousel__slide{ flex-basis: 33.333%; }
}

/* Card */
.rb-carousel__card{
  text-align: center;
  padding: 24px 18px;
}

.rb-carousel__logo{
  display: block;
  margin: 0 auto 18px;
  max-width: 180px;
  height: auto;
  object-fit: contain;
}

.rb-carousel__title{
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.15;
  /* font-family: Georgia, "Times New Roman", Times, serif; */
  font-weight: 600;
}

.rb-carousel__divider{
  display: block;
  width: 90px;
  height: 2px;
  background: #b56a2a;
  margin: 18px auto 22px;
  border-radius: 2px;
}

.rb-carousel__text{
  margin: 0 auto;
  max-width: 340px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.9;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* ===== NAV BELOW PANEL ===== */
.rb-carousel__nav{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 26px;
}

/* Arrows */
.rb-carousel__arrow{
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.75);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 10px 14px;
  user-select: none;
}
.rb-carousel__arrow:hover{ color:#fff; }

.rb-carousel__arrow--prev{ justify-self: start; }
.rb-carousel__arrow--next{ justify-self: end; }

/* Dots */
.rb-carousel__dots{
  justify-self: center;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.rb-carousel__dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.65);
  transition: width 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

.rb-carousel__dot.is-active{
  width: 28px;
  background: #b56a2a;
}

/* Mobile: hide arrows like original (optional) */
@media (max-width: 899px){
  .rb-carousel__arrow{ display:none; }
  .rb-carousel__nav{
    grid-template-columns: 1fr;
  }
}

/* ===== FIX: theme/FSE gutters shifting layout (page-scoped) =====
   Adjust this selector if your body class differs.
*/
.page-nuestra-compania .wp-site-blocks,
.page-nuestra-compania main,
.page-nuestra-compania .wp-block-post-content{
  padding-left: 0 !important;
  padding-right: 0 !important;
}






/* ===== Variant: IMPERIAL hover CTA (move whole card) ===== */
.rb-carousel[data-rb-carousel-id="imperial"] .rb-carousel__card--link{
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  padding-bottom: 64px; /* espacio reservado para el CTA escondido */

  transition: transform 260ms ease;
  will-change: transform;
}

/* CTA oculto abajo */
.rb-carousel[data-rb-carousel-id="imperial"] .rb-carousel__cta{
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 160px;
  height: 44px;
  padding: 0 18px;

  background: #8b4b2b;
  color: #fff;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;

  transition: transform 260ms ease, opacity 260ms ease;
}

/* Hover: move whole card up + reveal CTA */
@media (hover:hover){
  .rb-carousel[data-rb-carousel-id="imperial"] .rb-carousel__card--link:hover{
    transform: translateY(-18px);
  }
  .rb-carousel[data-rb-carousel-id="imperial"] .rb-carousel__card--link:hover .rb-carousel__cta{
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Focus (keyboard accessibility) */
.rb-carousel[data-rb-carousel-id="imperial"] .rb-carousel__card--link:focus-visible{
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 4px;
}


/* ===== Variant: bigger images for one carousel instance ===== */
.rb-carousel[data-rb-carousel-id="imperial"] .rb-carousel__logo{
  max-width: 240px; /* antes 180px */
}