.ebaf-featured-slider,
.ebaf-cases-grid,
.ebaf-single-page,
.ebaf-comparison-gallery,
.ebaf-editor-empty {
  box-sizing: border-box;
  font-family: inherit;
}

.ebaf-featured-slider *,
.ebaf-cases-grid *,
.ebaf-single-page *,
.ebaf-comparison-gallery * {
  box-sizing: border-box;
}

.ebaf-featured-slider img,
.ebaf-cases-grid img,
.ebaf-single-page img,
.ebaf-comparison-gallery img {
  max-width: 100%;
}

/* ──────────────────────────────────────────────
   HOME: CASOS DESTACADOS
   ────────────────────────────────────────────── */
.ebaf-featured-slider {
  position: relative;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 18px 58px 52px;
  color: var(--ebaf-text, #4f5143);
  isolation: isolate;
}

.ebaf-featured-viewport {
  width: 100%;
  overflow: hidden;
  border-radius: 30px;
}

.ebaf-featured-track {
  display: flex;
  align-items: stretch;
  width: 100%;
  transform: translate3d(0,0,0);
  transition: transform .62s cubic-bezier(.22,.75,.23,1);
  will-change: transform;
}

.ebaf-featured-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  min-width: 100%;
  padding: 14px;
  opacity: .18;
  transition: opacity .35s ease;
}

.ebaf-featured-slide.is-active { opacity: 1; }

.ebaf-featured-media {
  position: relative;
  z-index: 2;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1.03;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 24px 58px rgba(43,42,34,.18);
  isolation: isolate;
}

.ebaf-featured-cover {
  display: block;
  width: 100%;
  height: 100%;
}

.ebaf-featured-cover img,
.ebaf-featured-media > .ebaf-image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #000;
  transition: transform .65s cubic-bezier(.22,.75,.23,1);
}

.ebaf-featured-slide:hover .ebaf-featured-cover img { transform: scale(1.018); }

.ebaf-featured-view-label {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: 16px;
  max-width: calc(100% - 120px);
  transform: translateX(-50%);
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(0,0,0,.48);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.ebaf-featured-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 58%;
  margin-left: -30px;
  padding: clamp(38px, 4vw, 62px) clamp(30px, 4.7vw, 66px) clamp(38px, 4vw, 58px) clamp(54px, 6vw, 92px);
  border-radius: 0 28px 28px 0;
  background: var(--ebaf-bottom, #dab78f);
}

.ebaf-featured-eyebrow {
  display: inline-block;
  margin-bottom: 11px;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  opacity: .72;
}

.ebaf-featured-copy h3 {
  margin: 0 0 16px;
  color: var(--ebaf-text, #4f5143);
  font: inherit;
  font-size: clamp(31px, 3.4vw, 49px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.025em;
}

.ebaf-featured-copy p {
  margin: 0 0 22px;
  max-width: 560px;
  color: var(--ebaf-text, #4f5143);
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.62;
}

.ebaf-text-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  color: var(--ebaf-text, #4f5143) !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: color .22s ease, border-color .22s ease, transform .22s ease;
}

.ebaf-text-link span { transition: transform .2s ease; }
.ebaf-text-link:hover,
.ebaf-text-link:focus-visible {
  color: var(--ebaf-link-hover, #4f5143) !important;
  border-bottom-color: currentColor;
  outline: none;
}
.ebaf-text-link:hover span,
.ebaf-text-link:focus-visible span { transform: translateX(4px); }

.ebaf-featured-arrow,
.ebaf-gallery-arrow {
  position: absolute;
  z-index: 12;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(79,81,67,.26);
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  color: var(--ebaf-text, #4f5143);
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(35,35,30,.12);
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.ebaf-featured-arrow {
  top: 50%;
  transform: translateY(-58%);
}

.ebaf-featured-arrow svg,
.ebaf-gallery-arrow svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.ebaf-featured-arrow:hover,
.ebaf-featured-arrow:focus-visible {
  transform: translateY(-58%) scale(1.06);
  border-color: var(--ebaf-text, #4f5143);
  background: var(--ebaf-text, #4f5143);
  color: #fff;
  outline: none;
}

.ebaf-featured-prev { left: 4px; }
.ebaf-featured-next { right: 4px; }

.ebaf-featured-dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transform: translateX(-50%);
}

.ebaf-featured-dot,
.ebaf-gallery-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 24px;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ebaf-featured-dot i,
.ebaf-gallery-dot i {
  display: block;
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  transition: width .22s ease, background-color .22s ease, transform .22s ease, opacity .22s ease;
  opacity: .66;
  pointer-events: none;
}

.ebaf-featured-dot { color: var(--ebaf-text, #4f5143); }
.ebaf-featured-dot.is-active i {
  width: 22px;
  background: currentColor;
  opacity: 1;
}

.ebaf-featured-dot:focus-visible,
.ebaf-gallery-dot:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
  border-radius: 999px;
}

/* ──────────────────────────────────────────────
   LANDING GENERAL: GRILLA
   ────────────────────────────────────────────── */
.ebaf-cases-grid {
  display: grid;
  grid-template-columns: repeat(var(--ebaf-grid-columns, 3), minmax(0, 1fr));
  gap: clamp(22px, 2.8vw, 34px);
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 8px 0;
}

.ebaf-case-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--ebaf-bottom, #dab78f);
  box-shadow: 0 12px 34px rgba(50,48,41,.07);
  transform: translateZ(0);
  transition: transform .28s ease, box-shadow .28s ease;
}

.ebaf-case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 46px rgba(50,48,41,.13);
}

.ebaf-case-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #000;
}

.ebaf-case-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1);
  transform: scale(1.002);
  transition: filter .45s ease, transform .65s cubic-bezier(.22,.75,.23,1);
}

.ebaf-case-card.is-color .ebaf-case-card-media img,
.ebaf-case-card-media:focus-visible img {
  filter: grayscale(0);
  transform: scale(1.025);
}

@media (hover:hover) {
  .ebaf-case-card:hover .ebaf-case-card-media img {
    filter: grayscale(0);
    transform: scale(1.025);
  }
}

.ebaf-case-card-copy {
  min-height: 126px;
  padding: 25px 20px 22px;
  text-align: center;
  color: var(--ebaf-text, #4f5143);
}

.ebaf-case-card-copy h3 {
  margin: 0 0 9px;
  color: inherit;
  font: inherit;
  font-size: clamp(21px, 2vw, 29px);
  font-weight: 500;
  line-height: 1.18;
}

.ebaf-case-card-copy a {
  display: inline-block;
  color: var(--ebaf-text, #4f5143) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(79,81,67,.35);
  padding-bottom: 3px;
  transition: color .22s ease, border-color .22s ease, transform .22s ease;
}

.ebaf-case-card-copy a:hover,
.ebaf-case-card-copy a:focus-visible {
  color: var(--ebaf-link-hover, #4f5143) !important;
  border-bottom-color: currentColor;
  transform: translateY(-1px);
  outline: none;
}

.ebaf-color-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: none;
  transform: translateX(-50%);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.66);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

/* ──────────────────────────────────────────────
   COMPARADOR REUTILIZABLE
   ────────────────────────────────────────────── */
.ebaf-comparison-gallery {
  position: relative;
  width: min(100%, 540px);
  margin: 0 auto;
  color: #fff;
  user-select: none;
}

.ebaf-gallery-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  box-shadow: 0 24px 58px rgba(0,0,0,.24);
  isolation: isolate;
}

.ebaf-gallery-slide {
  position: absolute;
  inset: 0;
  display: none;
  opacity: 0;
}

.ebaf-gallery-slide.is-active {
  display: block;
  opacity: 1;
  animation: ebafFadeIn .34s ease both;
}

@keyframes ebafFadeIn {
  from { opacity: 0; transform: scale(.992); }
  to { opacity: 1; transform: scale(1); }
}

.ebaf-compare {
  --ebaf-position: 50%;
  position: absolute;
  inset: 0 0 76px;
  overflow: hidden;
  background: #000;
  cursor: ew-resize;
  touch-action: none;
}

.ebaf-compare--featured {
  inset: 0;
  border-radius: inherit;
}

.ebaf-compare-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.ebaf-compare-layer img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  background: #000;
  pointer-events: none;
}

.ebaf-before-layer {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--ebaf-position)) 0 0);
}

.ebaf-divider {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: var(--ebaf-position);
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255,255,255,.96);
  box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 0 18px rgba(0,0,0,.22);
  pointer-events: none;
}

.ebaf-handle {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: var(--ebaf-position);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 !important;
  padding: 0 !important;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(218,183,143,.94);
  color: #fff;
  cursor: ew-resize;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
  transition: transform .18s ease, background-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.ebaf-handle:hover,
.ebaf-handle:focus-visible {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(218,183,143,1);
  outline: none;
}

.ebaf-handle svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.ebaf-compare-label {
  position: absolute;
  z-index: 5;
  top: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(0,0,0,.48);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.ebaf-label-before { left: 14px; }
.ebaf-label-after { right: 14px; }

.ebaf-gallery-caption {
  position: absolute;
  z-index: 4;
  left: 44px;
  right: 44px;
  bottom: 38px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  min-height: 22px;
  color: #fff;
  text-align: center;
  pointer-events: none;
}

.ebaf-gallery-caption strong {
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.ebaf-gallery-caption span {
  color: rgba(255,255,255,.68);
  font-size: 11px;
}

.ebaf-gallery-arrow {
  top: 43%;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  border-color: rgba(255,255,255,.58);
  background: rgba(0,0,0,.38);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.2);
  backdrop-filter: blur(7px);
}

.ebaf-gallery-arrow:hover,
.ebaf-gallery-arrow:focus-visible {
  transform: translateY(-50%) scale(1.06);
  border-color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.17);
  color: #fff;
  outline: none;
}

.ebaf-gallery-prev { left: 14px; }
.ebaf-gallery-next { right: 14px; }

.ebaf-gallery-dots {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  transform: translateX(-50%);
}

.ebaf-gallery-dot {
  width: 25px;
  height: 25px;
  color: #fff;
}

.ebaf-gallery-dot i {
  width: 6px;
  height: 6px;
  opacity: .62;
}

.ebaf-gallery-dot.is-active i {
  width: 18px;
  background: currentColor;
  opacity: 1;
}

.ebaf-gallery-empty,
.ebaf-editor-empty {
  padding: 24px;
  border: 1px dashed rgba(79,81,67,.35);
  border-radius: 14px;
  background: rgba(218,183,143,.16);
  color: var(--ebaf-text, #4f5143);
  text-align: center;
}

.ebaf-image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  background:
    linear-gradient(135deg, transparent 46%, rgba(255,255,255,.07) 46% 54%, transparent 54%),
    #171717;
}

/* ──────────────────────────────────────────────
   PÁGINA INDIVIDUAL AUTOMÁTICA
   ────────────────────────────────────────────── */
.ebaf-single-page {
  position: relative;
  z-index: 0;
  width: 100%;
  min-height: 820px;
  margin: 0;
  padding: clamp(118px, 9vw, 150px) 22px clamp(82px, 7vw, 112px);
  background:
    linear-gradient(
      to bottom,
      var(--ebaf-top, #4f5143) 0,
      var(--ebaf-top, #4f5143) var(--ebaf-split, 50%),
      var(--ebaf-bottom, #dab78f) var(--ebaf-split, 50%),
      var(--ebaf-bottom, #dab78f) 100%
    );
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: var(--ebaf-text, #4f5143);
  overflow: clip;
}

/* En la landing automática el bloque completo respira bajo el header y la
   división de color queda vinculada al centro real de la sección. */
.ebaf-single-page.is-template-page {
  min-height: calc(100svh - 1px);
}

.ebaf-single-page.is-shortcode {
  min-height: 0;
  border-radius: 26px;
  overflow: hidden;
}

.ebaf-single-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  align-items: center;
  width: min(100%, 1190px);
  margin: 0 auto;
}

.ebaf-single-gallery-col {
  position: relative;
  z-index: 3;
  margin-right: -54px;
  filter: drop-shadow(0 22px 34px rgba(26,26,22,.10));
}

.ebaf-single-info {
  position: relative;
  z-index: 2;
  min-height: 590px;
  padding: clamp(44px, 5vw, 66px) clamp(38px, 5vw, 66px) clamp(42px, 5vw, 58px) clamp(74px, 8vw, 108px);
  border: 1px solid rgba(79,81,67,.055);
  border-radius: 28px;
  background: rgba(255,255,255,.985);
  box-shadow: 0 30px 76px rgba(31,31,27,.13);
}

.ebaf-single-info h1 {
  margin: 0 0 26px;
  max-width: 92%;
  color: var(--ebaf-text, #4f5143);
  font: inherit;
  font-size: clamp(30px, 3.1vw, 45px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.ebaf-info-block {
  padding: 0 0 20px;
  margin: 0 0 20px;
  border-bottom: 2px solid rgba(79,81,67,.72);
}

.ebaf-info-block > strong {
  display: block;
  margin: 0 0 5px;
  color: var(--ebaf-text, #4f5143);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
}

.ebaf-sessions-block span {
  display: block;
  color: var(--ebaf-text, #4f5143);
  font-size: 14px;
}

.ebaf-description-block { padding-bottom: 15px; }

.ebaf-richtext,
.ebaf-maintenance-block p {
  color: #58594f;
  font-size: clamp(13px, 1.15vw, 15px);
  line-height: 1.56;
}

.ebaf-richtext p { margin: 0 0 14px; }
.ebaf-richtext p:last-child { margin-bottom: 0; }
.ebaf-richtext > p:empty { display: none; }
.ebaf-maintenance-block { border-bottom: 0; padding-bottom: 0; margin-bottom: 20px; }
.ebaf-maintenance-block p { margin: 0; }

.ebaf-book-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 10px 22px;
  border: 1px solid var(--ebaf-text, #4f5143);
  border-radius: 999px;
  background: transparent;
  color: var(--ebaf-text, #4f5143);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: .22s ease;
}

.ebaf-book-button:hover,
.ebaf-book-button:focus-visible {
  border-color: var(--ebaf-book-hover, #4f5143);
  background: var(--ebaf-book-hover, #4f5143);
  color: var(--ebaf-book-hover-text, #fff) !important;
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 9px 22px rgba(50,48,41,.14);
}

/* The plugin intentionally does not style the site header.
   Header/logo/navigation remain fully controlled by Flatsome. */

/* Common Flatsome spacing safeguard. */
body.ebaf-success-case-page #main,
body.ebaf-success-case-page .page-wrapper,
body.ebaf-success-case-page .content-area {
  padding: 0;
  margin: 0;
  max-width: none;
}

/* ──────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────── */
@media (max-width: 1050px) {
  .ebaf-featured-slider { padding-left: 50px; padding-right: 50px; }
  .ebaf-featured-copy { margin-left: -20px; padding-left: 54px; }

  .ebaf-single-inner {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  }
  .ebaf-single-gallery-col { margin-right: -40px; }
  .ebaf-single-info { padding-left: 66px; }
}

@media (max-width: 850px) {
  .ebaf-featured-slider { padding: 10px 44px 46px; }
  .ebaf-featured-slide {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  .ebaf-featured-media {
    width: min(100%, 560px);
    justify-self: center;
    aspect-ratio: 1 / 1;
    border-radius: 22px 22px 0 0;
  }
  .ebaf-featured-copy {
    width: min(100%, 560px);
    min-height: 0;
    justify-self: center;
    margin: -1px 0 0;
    padding: 30px 28px 32px;
    border-radius: 0 0 22px 22px;
    text-align: center;
  }
  .ebaf-text-link { align-self: center; }

  .ebaf-cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ebaf-single-page {
    min-height: 0;
    padding: 104px 18px 74px;
    background:
      linear-gradient(
        to bottom,
        var(--ebaf-top, #4f5143) 0,
        var(--ebaf-top, #4f5143) var(--ebaf-split, 50%),
        var(--ebaf-bottom, #dab78f) var(--ebaf-split, 50%),
        var(--ebaf-bottom, #dab78f) 100%
      );
  }

  .ebaf-single-inner {
    grid-template-columns: 1fr;
    width: min(100%, 680px);
  }

  .ebaf-single-gallery-col {
    z-index: 3;
    width: min(92%, 540px);
    margin: 0 auto -42px;
  }

  .ebaf-single-info {
    z-index: 2;
    min-height: 0;
    padding: 78px 34px 42px;
    border-radius: 25px;
  }
}

@media (max-width: 600px) {
  .ebaf-featured-slider { padding: 6px 0 42px; }
  .ebaf-featured-viewport { border-radius: 20px; }
  .ebaf-featured-slide { padding: 0; }
  .ebaf-featured-media,
  .ebaf-featured-copy { width: 100%; }
  .ebaf-featured-copy h3 { font-size: clamp(28px, 9vw, 38px); }
  .ebaf-featured-arrow {
    top: 34%;
    width: 38px;
    height: 38px;
    border-color: rgba(255,255,255,.65);
    background: rgba(0,0,0,.35);
    color: #fff;
  }
  .ebaf-featured-prev { left: 10px; }
  .ebaf-featured-next { right: 10px; }

  .ebaf-cases-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ebaf-case-card { border-radius: 20px; }
  .ebaf-case-card-copy { min-height: 108px; padding: 22px 16px 20px; }

  @media (hover:none) {
    .ebaf-color-hint { display: block; }
    .ebaf-case-card.is-color .ebaf-color-hint { display: none; }
  }

  .ebaf-single-page { padding: 88px 12px 54px; }
  .ebaf-single-gallery-col { width: 100%; margin-bottom: -30px; }
  .ebaf-gallery-stage { border-radius: 17px; }
  .ebaf-compare { inset: 0 0 72px; }
  .ebaf-compare--featured { inset: 0; }
  .ebaf-gallery-arrow { width: 36px; height: 36px; }
  .ebaf-gallery-caption { left: 46px; right: 46px; bottom: 36px; }
  .ebaf-gallery-caption strong { font-size: 15px; }
  .ebaf-single-info { padding: 64px 23px 34px; border-radius: 22px; }
  .ebaf-single-info h1 { font-size: clamp(28px, 9vw, 37px); }
  .ebaf-richtext,
  .ebaf-maintenance-block p { font-size: 13.5px; line-height: 1.55; }
  .ebaf-book-button { width: 100%; }
}


@media (min-width: 851px) {
  body.ebaf-success-case-page .ebaf-single-page.is-template-page {
    padding-top: clamp(126px, 10vh, 158px) !important;
  }
}

@media (min-width: 851px) and (max-height: 820px) {
  body.ebaf-success-case-page .ebaf-single-page.is-template-page {
    padding-top: 106px !important;
    padding-bottom: 74px;
  }

  .ebaf-single-info {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ebaf-featured-track,
  .ebaf-featured-media img,
  .ebaf-case-card,
  .ebaf-case-card-media img,
  .ebaf-featured-arrow,
  .ebaf-gallery-arrow,
  .ebaf-book-button {
    transition: none !important;
    animation: none !important;
  }
}

/* ──────────────────────────────────────────────
   v2.4 · DRAG / SWIPE + AUTOPLAY INDIVIDUAL
   ────────────────────────────────────────────── */
.ebaf-featured-viewport {
  cursor: grab;
  touch-action: pan-y;
}

.ebaf-featured-viewport.is-dragging {
  cursor: grabbing;
}

.ebaf-featured-viewport.is-dragging .ebaf-featured-track {
  transition: none !important;
}

.ebaf-featured-media.has-comparison,
.ebaf-featured-media.has-comparison .ebaf-compare,
.ebaf-featured-media.has-comparison .ebaf-handle {
  cursor: ew-resize;
}

.ebaf-gallery-stage {
  cursor: grab;
  touch-action: pan-y;
}

.ebaf-gallery-stage.is-dragging {
  cursor: grabbing;
}

.ebaf-gallery-stage.is-dragging .ebaf-gallery-slide.is-active {
  animation: none !important;
  transition: none !important;
}

.ebaf-gallery-stage .ebaf-compare,
.ebaf-gallery-stage .ebaf-handle {
  cursor: ew-resize;
}

.ebaf-gallery-slide.is-active {
  transition: transform .24s ease, opacity .24s ease;
}

@media (hover: none) {
  .ebaf-featured-viewport,
  .ebaf-gallery-stage {
    cursor: default;
  }
}

/* ──────────────────────────────────────────────
   v2.6 · FLATSOME TYPOGRAPHY + RESPONSIVE CASES
   ────────────────────────────────────────────── */
.ebaf-featured-slider,
.ebaf-cases-list,
.ebaf-single-page,
.ebaf-comparison-gallery {
  font-family: var(--ebaf-font-body, inherit) !important;
}

.ebaf-featured-copy h3,
.ebaf-case-card-copy h3,
.ebaf-single-info h1,
.ebaf-gallery-caption strong {
  font-family: var(--ebaf-font-title, inherit) !important;
}

.ebaf-featured-copy p,
.ebaf-featured-eyebrow,
.ebaf-text-link,
.ebaf-case-card-copy a,
.ebaf-info-block,
.ebaf-richtext,
.ebaf-maintenance-block p,
.ebaf-book-button,
.ebaf-compare-label,
.ebaf-featured-view-label,
.ebaf-color-hint {
  font-family: var(--ebaf-font-body, inherit) !important;
}

/* General cases: columns are controlled from the plugin instead of hard-coded breakpoints. */
.ebaf-cases-grid {
  grid-template-columns: repeat(var(--ebaf-cases-desktop, 3), minmax(0, 1fr));
}

/* Slider version of the general cases landing. */
.ebaf-cases-carousel {
  --ebaf-cases-visible: var(--ebaf-cases-desktop, 3);
  --ebaf-cases-carousel-gap: clamp(16px, 2vw, 26px);
  position: relative;
  width: min(100%, 1230px);
  margin: 0 auto;
  padding: 8px 52px 46px;
  color: var(--ebaf-text, #4f5143);
}

.ebaf-cases-carousel-viewport {
  overflow: hidden;
  width: 100%;
  padding: 4px;
  margin: -4px;
  cursor: grab;
  touch-action: pan-y;
}

.ebaf-cases-carousel-viewport.is-dragging { cursor: grabbing; }

.ebaf-cases-carousel-track {
  display: flex;
  align-items: stretch;
  gap: var(--ebaf-cases-carousel-gap);
  transform: translate3d(0,0,0);
  transition: transform .56s cubic-bezier(.22,.75,.23,1);
  will-change: transform;
}

.ebaf-cases-carousel-viewport.is-dragging .ebaf-cases-carousel-track { transition: none !important; }

.ebaf-cases-carousel .ebaf-case-card {
  flex: 0 0 100%;
  min-width: 0;
}

.ebaf-cases-carousel-arrow {
  position: absolute;
  z-index: 10;
  top: 46%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(79,81,67,.22);
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  color: var(--ebaf-text,#4f5143);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(35,35,30,.10);
  transform: translateY(-50%);
  transition: .2s ease;
}
.ebaf-cases-carousel-prev { left: 0; }
.ebaf-cases-carousel-next { right: 0; }
.ebaf-cases-carousel-arrow:hover,
.ebaf-cases-carousel-arrow:focus-visible {
  border-color: var(--ebaf-text,#4f5143);
  background: var(--ebaf-text,#4f5143);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
  outline: none;
}
.ebaf-cases-carousel-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ebaf-cases-carousel-dots {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transform: translateX(-50%);
}
.ebaf-cases-carousel-dot {
  display: grid;
  place-items: center;
  width: 25px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ebaf-text,#4f5143);
  cursor: pointer;
}
.ebaf-cases-carousel-dot span {
  display: block;
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: .55;
  transition: .2s ease;
}
.ebaf-cases-carousel-dot.is-active span {
  width: 20px;
  background: currentColor;
  opacity: 1;
}
.ebaf-cases-carousel-dot[hidden] { display: none !important; }

@media (max-width: 900px) {
  .ebaf-cases-grid {
    grid-template-columns: repeat(var(--ebaf-cases-tablet, 2), minmax(0, 1fr));
  }
  .ebaf-cases-carousel {
    --ebaf-cases-visible: var(--ebaf-cases-tablet, 2);
    padding-left: 46px;
    padding-right: 46px;
  }
}

@media (max-width: 600px) {
  .ebaf-cases-grid {
    grid-template-columns: repeat(var(--ebaf-cases-mobile, 2), minmax(0, 1fr));
    gap: 12px;
    padding: 4px 0;
  }

  .ebaf-cases-carousel {
    --ebaf-cases-visible: var(--ebaf-cases-mobile, 2);
    --ebaf-cases-carousel-gap: 12px;
    padding: 4px 30px 40px;
  }
  .ebaf-cases-carousel-prev { left: -2px; }
  .ebaf-cases-carousel-next { right: -2px; }
  .ebaf-cases-carousel-arrow {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,.94);
  }
  .ebaf-cases-carousel-arrow svg { width: 14px; height: 14px; }

  /* Compact cards when two or more are shown on mobile. */
  .ebaf-cases-list .ebaf-case-card {
    border-radius: 15px;
    box-shadow: 0 7px 20px rgba(50,48,41,.07);
  }
  .ebaf-cases-list .ebaf-case-card-media { aspect-ratio: 1 / 1.04; }
  .ebaf-cases-list .ebaf-case-card-copy {
    min-height: 82px;
    padding: 14px 8px 13px;
  }
  .ebaf-cases-list .ebaf-case-card-copy h3 {
    margin-bottom: 6px;
    font-size: clamp(14px, 4.25vw, 18px);
    line-height: 1.12;
  }
  .ebaf-cases-list .ebaf-case-card-copy a {
    font-size: 10.5px;
    line-height: 1.2;
  }
  .ebaf-cases-list .ebaf-color-hint {
    right: 7px;
    bottom: 7px;
    left: 7px;
    padding: 5px 7px;
    font-size: 8px;
  }
}

@media (max-width: 390px) {
  .ebaf-cases-grid { gap: 9px; }
  .ebaf-cases-carousel { --ebaf-cases-carousel-gap: 9px; }
  .ebaf-cases-list .ebaf-case-card-copy { min-height: 74px; padding: 12px 6px; }
  .ebaf-cases-list .ebaf-case-card-copy h3 { font-size: 13.5px; }
  .ebaf-cases-list .ebaf-case-card-copy a { font-size: 9.5px; }
}


/* v2.6.2: mobile color interaction remains tap-based, without a floating hint pill. */
.ebaf-color-hint { display:none !important; }


/* v2.6.3 · acciones de la página individual */
.ebaf-single-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.ebaf-all-cases-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 10px 18px;
  border: 1px solid rgba(79,81,67,.28);
  border-radius: 999px;
  background: rgba(79,81,67,.055);
  color: var(--ebaf-text, #4f5143);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform .22s ease, background-color .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease;
}

.ebaf-all-cases-button span {
  font-size: 16px;
  line-height: 1;
  transition: transform .22s ease;
}

.ebaf-all-cases-button:hover,
.ebaf-all-cases-button:focus-visible {
  border-color: var(--ebaf-text, #4f5143);
  background: rgba(79,81,67,.10);
  color: var(--ebaf-text, #4f5143) !important;
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 9px 22px rgba(50,48,41,.10);
}

.ebaf-all-cases-button:hover span,
.ebaf-all-cases-button:focus-visible span {
  transform: translateX(-3px);
}

@media (max-width: 650px) {
  .ebaf-single-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .ebaf-single-actions .ebaf-book-button,
  .ebaf-single-actions .ebaf-all-cases-button {
    width: 100%;
  }
}
