.cu-left {
  flex: 0 0 48%;
  height: 100%;
  box-sizing: border-box;
  padding: 13vh 0 0 11vw;
  display: flex;
  flex-direction: column;
}

.cu-title {
  font-family: 'Cocogoose', 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 2.45vw, 46px);
  line-height: 1.25;
  letter-spacing: -0.06em;
  color: #272022;
  text-transform: uppercase;
  margin: 0 0 20vh 0;
}

.cu-value {
  font-family: 'Cocogoose', 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 2.3vw, 44px);
  line-height: 1.1;
  color: #EC690D;
  text-transform: uppercase;
  margin: 0;
}

.cu-desc {
  font-family: 'Helvetica Neue Light', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(17px, 1.65vw, 30px);
  line-height: 1.2;
  color: #272022;
  margin: 0 0 clamp(48px, 11vh, 100px) 0;
}

.cu-line {
  display: block;
  width: clamp(90px, 8.2vw, 160px);
  height: 2px;
  background: #EC690D;
}

.cu-right {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.cu-img {
  max-width: 100%;
  max-height: 72%;
  object-fit: contain;
}

.cu-track {
  position: absolute;
  left: 49.5%;
  bottom: 12.5vh;
  transform: translateX(-50%);
  width: clamp(180px, 16vw, 320px);
  height: 1px;
  background: rgba(39, 32, 34, 0.45);
  z-index: 10;
}

.cu-track-dot {
  position: absolute;
  top: 50%;
  left: 8%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #EC690D;
  transform: translate(-50%, -50%);
  transition: left 420ms cubic-bezier(.4, 0, .2, 1);
}

/* ── Cultura: escenario de tarjetas controlado por scroll ── */
.cu-stack-section {
  position: relative;
  background: transparent;
  padding: 14vh 11vw 0;
}

.cu-stack {
  background: #fff;
}

.cu-stack-title {
  position: sticky;
  top: calc(var(--cu-header-height, 0px) + clamp(95px, 10vh, 130px)) !important;
  z-index: 10;
  margin: 0;
  font-size: 370% !important;
}

.cu-stack {
  position: sticky;
  top: var(--cu-header-height, 0px);
  height: var(--cu-stage-height, 100vh);
  margin-top: 6vh;
  padding: 0;
  isolation: isolate;
}

.cu-card {
  position: absolute;
  top: clamp(150px, 24vh, 230px);
  left: 0;
  right: 0;
  height: min(44vh, 440px);
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 4vw;
  padding: var(--pad-y) var(--pad-x);
  background: #fff;
  border-radius: 28px;
  border: 1px solid rgba(39, 32, 34, 0.08);
  box-shadow: 0 24px 60px rgba(39, 32, 34, 0.12);
  transform-origin: center top;
  will-change: transform;
  transition: box-shadow 500ms cubic-bezier(.22, 1, .36, 1);
  box-sizing: border-box;
}

.cu-card:last-child {
  margin-bottom: 0;
}

.cu-card-text {
  display: flex;
  flex-direction: column;
}

.cu-num {
  font-family: 'Helvetica Neue Roman', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(34px, 3.6vw, 64px);
  line-height: 1;
  color: #EC690D;
  margin-bottom: clamp(14px, 2.5vh, 28px);
}

.cu-card .cu-desc {
  margin-bottom: clamp(12px, 2.5vh, 28px);
}

.cu-card {
  --pad-y: clamp(28px, 4vw, 64px);
  --pad-x: clamp(28px, 5vw, 80px);
  overflow: hidden;
}

.cu-card-text {
  margin-top: 14vh;
  margin-left: 3vw;
}

.cu-card .cu-value {
  letter-spacing: -0.04em;
  white-space: nowrap;
}

/* Imagen pegada al borde derecho de la tarjeta y a todo el alto */
.cu-card-img {
  height: calc(100% + 2 * var(--pad-y));
  margin: calc(-1 * var(--pad-y)) calc(-1 * var(--pad-x)) calc(-1 * var(--pad-y)) 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.cu-card-img img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: right center;
}

@media (min-width: 780px) and (max-width: 939px) {
  .cu-stack-section {
    padding-right: 6vw;
    padding-left: 6vw;
  }

  .cu-card {
    height: min(48vh, 440px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cu-card {
    will-change: auto;
  }
}

/* Fade de entrada: título y contenido de cada tarjeta */
.cu-stack-title,
.cu-card-text>*,
.cu-card-img img {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms cubic-bezier(.22, 1, .36, 1), transform 900ms cubic-bezier(.22, 1, .36, 1);
}

.cu-card-img img {
  transform: translateY(20px) scale(0.96);
}

.cu-stack-title.cu-in,
.cu-card.cu-in .cu-card-text>*,
.cu-card.cu-in .cu-card-img img {
  opacity: 1;
  transform: none;
}

.cu-card.cu-in .cu-card-text>*:nth-child(2) {
  transition-delay: 100ms;
}

.cu-card.cu-in .cu-card-text>*:nth-child(3) {
  transition-delay: 200ms;
}

.cu-card.cu-in .cu-card-text>*:nth-child(4) {
  transition-delay: 300ms;
}

.cu-card.cu-in .cu-card-img img {
  transition-delay: 150ms;
}

@media (prefers-reduced-motion: reduce) {

  .cu-stack-title,
  .cu-card-text>*,
  .cu-card-img img {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Entrada de "Historias que inspiran": título y tarjetas una por una */
.hi-section .hi-head,
.hi-section .historia-card,
.hi-section .hi-indicator {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 900ms cubic-bezier(.22, 1, .36, 1), transform 900ms cubic-bezier(.22, 1, .36, 1);
}

.hi-section.hi-revealed .hi-head,
.hi-section.hi-revealed .historia-card,
.hi-section.hi-revealed .hi-indicator {
  opacity: 1;
  transform: none;
}

.hi-section.hi-revealed .historia-card:nth-child(1) {
  transition-delay: 250ms;
}

.hi-section.hi-revealed .historia-card:nth-child(2) {
  transition-delay: 450ms;
}

.hi-section.hi-revealed .historia-card:nth-child(3) {
  transition-delay: 650ms;
}

.hi-section.hi-revealed .historia-card:nth-child(4) {
  transition-delay: 850ms;
}

.hi-section.hi-revealed .hi-indicator {
  transition-delay: 1050ms;
}
@media (prefers-reduced-motion: reduce) {

  .hi-section .hi-head,
  .hi-section .historia-card,
  .hi-section .hi-indicator {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Historias que inspiran ── */
.hi-section {
  background: #EEEEF0;
  padding: clamp(48px, 8vh, 80px) 6.4vw 0 6.4vw;
}

.hi-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-left: 1.1vw;
  margin-bottom: clamp(24px, 3.6vh, 40px);
}

.hi-title {
  font-family: 'Cocogoose', 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 48px);
  line-height: 1.22;
  letter-spacing: -0.04em;
  color: #272022;
  text-transform: uppercase;
  margin: 0;
}

.hi-link {
  font-family: 'Helvetica Neue Light', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(15px, 1.3vw, 24px);
  color: #EC690D;
  text-decoration: none;
  white-space: nowrap;
  margin-bottom: 0.3em;
}

.hi-carousel {
  position: relative;
  overflow: hidden;
  padding-bottom: 8px;
}

.hi-track {
  display: flex;
  gap: 1.9vw;
  transition: transform 600ms cubic-bezier(.4, 0, .2, 1);
}

.historia-card {
  flex: 0 0 calc((100% - 3 * 1.9vw) / 4);
}

.hi-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.hi-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.08) translateY(-1%);
  display: block;
}

.hi-body {
  padding: clamp(20px, 4vh, 36px) 0 0 1.75vw;
}

.hi-name {
  font-family: 'Helvetica Neue Roman', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(15px, 1.3vw, 24px);
  line-height: 1.2;
  color: #272022;
  text-transform: uppercase;
  margin: 0;
}

.hi-role {
  font-family: 'Helvetica Neue Light', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(15px, 1.3vw, 24px);
  line-height: 1.2;
  color: #272022;
  margin: 0 0 clamp(8px, 1.4vh, 14px);
}

.hi-desc {
  font-family: 'Helvetica Neue Light', 'Helvetica Neue', Arial, sans-serif;
  font-style: italic;
  font-size: clamp(13px, 1vw, 19px);
  line-height: 1.35;
  color: #272022;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.4s ease;
}

.hi-desc.expanded {
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
}

.hi-readmore {
  font-family: 'Helvetica Neue Roman', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(11px, 0.85vw, 15px);
  color: #EC690D;
  cursor: pointer;
  border: none;
  background: none;
  padding: 6px 0 0;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.hi-readmore:hover {
  opacity: 0.7;
}

.hi-indicator {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  margin: clamp(28px, 4.5vh, 44px) auto 0;
  width: clamp(180px, 16.3vw, 320px);
  background: #EC690D;
}

.hi-sep {
  height: 1px;
  background: rgba(39, 32, 34, 0.2);
  margin: clamp(22px, 3.2vh, 32px) 0 0 0.3vw;
}

.cu-stack-title.cu-title-out {
  opacity: 0 !important;
  transition: opacity 400ms ease !important;
}

/* Desktop: hero + franja de cifras llenan justo la pantalla; la franja siempre pegada al borde inferior */
@media (min-width: 780px) {
  #hero.d-hero {
    height: calc(100vh - var(--hh, 0px) - var(--preview-height)) !important;
    height: calc(100dvh - var(--hh, 0px) - var(--preview-height)) !important;
    min-height: 320px !important;
  }

  #stats-slider {
    min-height: var(--preview-height);
    display: flex;
    align-items: center;
  }
}

/* Tarjetas de cultura: el fondo blanco de las fotos se funde con la tarjeta (sin recuadro visible) */
.cu-card .cu-card-img img {
  mix-blend-mode: multiply;
}

/* Tarjeta "Innovación" (camarón con miel): foto un poco más a la izquierda */
.cu-card img[data-cms="cultura.3.imagen"] {
  translate: -18% 0;
  scale: 1.12;
}
/* Móvil: más grande y pegada al borde derecho de la tarjeta */
@media (max-width: 779px) {
  .cu-card img[data-cms="cultura.3.imagen"] {
    transform-origin: right center;
    translate: -3% 0;
    scale: 1.12;
    object-position: right center;
  }
}

/* Desktop: título de "Una cultura que nos mueve" un poco más abajo y tarjetas más altas */
@media (min-width: 780px) {
  .cu-stack-title {
    padding-top: 40px !important;
  }

  .cu-card {
    height: min(52vh, 520px);
  }
}

/* Pantallas bajas (laptops de 720px de alto): el título baja menos para no rozar la pila de tarjetas */
@media (min-width: 780px) and (max-height: 760px) {
  .cu-stack-title {
    padding-top: 6px !important;
  }
}

/* Móvil: título "Una cultura que nos mueve" centrado en el ancho de las tarjetas */
@media (max-width: 779px) {
  #cultura-outer .cu-stack > .cu-stack-title.cu-stack-title {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center !important;
  }
}

/* Cultura sin animación: lectura compacta si se reduce el movimiento o no hay JS. */
#cultura-outer:not(.cu-scroll-stack) {
  height: auto !important;
  min-height: 0 !important;
  margin-bottom: 0 !important;
}

#cultura-outer:not(.cu-scroll-stack) .cu-stack {
  position: relative !important;
  top: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  display: grid;
  gap: clamp(14px, 1.5vw, 20px);
}

#cultura-outer:not(.cu-scroll-stack) .cu-stack-title {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  margin: 0 0 clamp(24px, 4vh, 40px) !important;
  padding-top: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

#cultura-outer:not(.cu-scroll-stack) .cu-card {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  will-change: auto !important;
}

#cultura-outer:not(.cu-scroll-stack) .cu-card-text > *,
#cultura-outer:not(.cu-scroll-stack) .cu-card-img img {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (max-width: 779px) {
  #cultura-outer:not(.cu-scroll-stack) .cu-stack-title {
    font-size: 27px !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }
}
