/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  overflow-x: hidden;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =============================================
   HERO-BLOCK WRAPPER
   Permite el solapamiento del badge en desktop
   y el apilamiento en mobile.
   ============================================= */
.hero-block {
  position: relative;
  /* Badge se posiciona dentro de él en desktop */
}

/* =============================================
   HERO SECTION — DESKTOP
   Canvas ref Figma: 1440 × 865 px
   Fórmula: left → X/1440 × 100vw | top → Y/865 × 100vh
   ============================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url('img/confisacb-hero.webp');
  background-size: cover;
  background-position: center center;
  background-color: #1a1512;
  /* fallback */
  overflow: hidden;
}

/* Overlay negro 30% — Figma desktop */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.30);
  z-index: 0;
}

/* Triángulo oscuro — esquina superior derecha */
.hero__diagonal {
  position: absolute;
  inset: 0;
  background-color: #0d0c0b;
  clip-path: polygon(71% 0, 100% 0, 100% 37%);
  z-index: 1;
  pointer-events: none;
}

/* =============================================
   HEADER — DESKTOP
   ============================================= */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 3.47vw;
  /* ≈ 50px a 1440px */
}

/* Logo */
.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

/* Nav desktop */
.header__nav {
  display: flex;
  align-items: center;
  gap: 44px;
}

/* Items that wrap a dropdown need flex context */
.nav-item--has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: #E6DFD9;
  font-family: 'Clash Display', sans-serif;
  letter-spacing: 0;
  transition: color 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: #ffffff;
}

/* Active: bold + teal underline bar */
.nav-link--active {
  font-weight: 500;
}

.nav-link--active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 5px;
  background: #ACD0D3;
}

/* Dropdown trigger arrow indicator */
.nav-link--dropdown-trigger::before {
  display: none;
}

/* =============================================
   NAV DROPDOWN
   ============================================= */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 24px);
  left: 0;
  min-width: 200px;
  display: none;
  flex-direction: column;
  gap: 0;
  z-index: 11;
  pointer-events: none;
}

.nav-item--has-dropdown.open .nav-dropdown {
  display: flex;
  pointer-events: auto;
}

/* Dropdown items */
.nav-dropdown__link {
  font-family: 'Clash Display', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #E6DFD9;
  padding: 8px 0;
  transition: opacity 0.15s ease;
  line-height: 1.4;
}

.nav-dropdown__link:hover {
  opacity: 0.7;
}

/* =============================================
   NAV OVERLAY — covers the hero when dropdown is open
   z-index: 8 → above hero content (5) but below header (10)
   ============================================= */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.79);
  z-index: 8;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Hamburguesa — oculta en desktop */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  width: 27px;
  height: 24px;
  padding: 0;
  flex-shrink: 0;
}

.header__hamburger span {
  display: block;
  width: 21px;
  height: 3px;
  background-color: #E6DFD9;
  border-radius: 1px;
  margin: 0 auto;
}

/* =============================================
   HERO CONTENT — DESKTOP
   El wrapper .hero__content no tiene posición propia;
   sus hijos usan position:absolute relativo a .hero
   ============================================= */

.hero__title {
  position: absolute;
  left: 3.47vw;
  top: 37.92vh;
  /* 328 / 865  */
  width: 62.5vw;
  /* 900 / 1440 */
  color: #E6DFD9;
  font-size: clamp(26px, 4.44vw, 80px);
  /* 64 / 1440 */
  font-family: 'Clash Display', 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.17;
  z-index: 5;
}

/* Override exact align for sobre-nosotros */
.hero-sobre__title {
  left: 3.47vw;
}

/* Subtítulo — Figma: left 69 / top 651 / w 428 / fs 24 / fw 500 */
.hero__subtitle {
  position: absolute;
  left: 3.47vw;
  top: 75.26vh;
  /* 651 / 865  */
  width: 29.72vw;
  /* 428 / 1440 */
  color: #E6DFD9;
  font-size: clamp(13px, 1.67vw, 26px);
  /* 24 / 1440 */
  font-family: 'Clash Display', 'Inter', sans-serif;
  font-weight: 500;
  z-index: 5;
}

/* CTA — Figma: left 55 / top 706 / h 60 / fs 20 */
.hero__cta {
  position: absolute;
  left: 3.47vw;
  /* 55 / 1440  */
  top: 81.85vh;
  /* 708 / 865  */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(44px, 6.94vh, 72px);
  /* 60 / 865  */
  padding: 0 clamp(18px, 1.94vw, 32px);
  /* 28 / 1440 */
  background: #E6DFD9;
  border-radius: 999px;
  color: #5C4646;
  font-size: clamp(12px, 1.39vw, 22px);
  /* 20 / 1440 */
  font-family: 'Clash Display', 'Inter', sans-serif;
  font-weight: 500;
  white-space: nowrap;
  z-index: 5;
  transition: background-color 0.2s ease;
}

.hero__cta:hover {
  background-color: #f0ece6;
}

/* =============================================
   BADGE +40 — DESKTOP
   Posicionado absolutamente dentro de .hero-block
   Figma: left 1075 / top 499 / 366×366
   → right:0, bottom:0 (1075+366=1441≈1440, 499+366=865)
   ============================================= */
.hero__badge {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 25.42vw;
  /* 366 / 1440 */
  height: 42.31vh;
  /* 366 / 865  */
  background-color: #ACD0D3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5vh;
  z-index: 10;
}

/* Override exact align for sobre-nosotros */
.hero-sobre__scroll {
  left: 3.47vw;
}

/* +40 — Figma: fs 128 / color #53413F */
.badge__number {
  color: #53413F;
  font-size: clamp(48px, 8.89vw, 136px);
  /* 128 / 1440 */
  font-family: 'Clash Display', 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
}

/* Años de experiencia — Figma: fs 24 / color #53413F */
.badge__label {
  color: #53413F;
  font-size: clamp(12px, 1.67vw, 26px);
  /* 24 / 1440 */
  font-family: 'Clash Display', 'Inter', sans-serif;
  font-weight: 400;
  text-align: center;
}

/* El <br> del label solo se muestra en mobile */
.badge__br {
  display: none;
}

/* =============================================
   RESPONSIVE — MOBILE  (≤ 768px)
   Canvas ref Figma: 390 × 560 px (hero) + 155 px (badge)
   ============================================= */
@media (max-width: 768px) {

  /* Hero-block: apila hero + badge verticalmente */
  .hero-block {
    display: flex;
    flex-direction: column;
  }

  /* Hero: altura fija del Figma mobile */
  .hero {
    height: 560px;
    flex-shrink: 0;
  }

  /* Overlay más oscuro en mobile — Figma: 60% */
  .hero__overlay {
    background: rgba(0, 0, 0, 0.60);
  }

  /* Sin triángulo en mobile */
  .hero__diagonal {
    display: none;
  }

  /* ---- Header mobile ----
     Figma: top 24 / padding 10px 17px 10px 10px / h 57 */
  .header {
    top: 24px;
    padding: 10px 17px 10px 10px;
  }

  /* Logo mobile — Figma: 131×32px */
  .logo-img {
    height: 32px;
    width: 131px;
    object-fit: contain;
    object-position: left center;
  }

  /* Ocultar nav, mostrar hamburguesa */
  .header__nav {
    display: none;
  }

  /* Ocultar overlay de nav en mobile (no aplica) */
  .nav-overlay {
    display: none;
  }

  .header__hamburger {
    display: flex;
  }

  /* ---- Hero content mobile ---- */
  .hero__content {
    position: absolute;
    left: 0;
    top: 167px;
    right: 0;
    bottom: 0;
    padding: 10px 10px 65px 20px;
    /* +30px en bottom → sube los elementos */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 24px;
    /* más espacio entre h1, subtítulo y botón */
    z-index: 5;
  }

  /* H1 mobile — Figma: w 303 / fs 32 */
  .hero__title {
    position: static;
    width: 100%;
    max-width: 303px;
    font-size: 32px;
    line-height: 1.15;
  }

  /* Subtítulo mobile — Figma: fs 16 / fw 500 */
  .hero__subtitle {
    position: static;
    width: 100%;
    font-size: 16px;
  }

  /* CTA mobile — Figma: h 43 / fs 14 / padding 16px 28px */
  .hero__cta {
    position: static;
    height: 43px;
    font-size: 14px;
    padding: 0 28px;
  }

  /* ---- Badge mobile ----
     Figma: w 390 / h 155 / padding 10 / gap 39 / flex-row
     +40: fs 100 / w 190 | label: fs 24 / w 133 */
  .hero__badge {
    position: static;
    width: 100%;
    height: 155px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
    gap: 39px;
  }

  .badge__number {
    font-size: 100px;
    flex-shrink: 0;
    /* no se encoge, ocupa su ancho natural */
    text-align: left;
    letter-spacing: -0.03em;
  }

  .badge__label {
    flex: 1;
    /* ocupa el espacio restante */
    min-width: 0;
    /* permite que flex recorte correctamente */
    font-size: 24px;
    text-align: left;
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Mostrar el <br> dentro del label en mobile */
  .badge__br {
    display: block;
  }

}

/* fin @media mobile */

/* =============================================
   VALORES SECTION — DESKTOP
   Canvas ref Figma: 1440 px wide
   Section padding positions label at y = 31(inner-top) + 48(label-top) = 79px from section top
   Left col: 31.67vw (456/1440) — label at top, title pushed down 186px below label-group
   Values grid: starts x=9.51vw after left col (50.76vw total), y=163px from section content
   ============================================= */
.valores {
  background: #E6DFD9;
  /* top: 79px (31 outer + 48 label offset) | right: 7.78vw (112/1440) | bottom: 77px | left: 9.58vw (138/1440) */
  padding: 79px 7.78vw 120px 9.58vw;
}

.valores__inner {
  display: flex;
  align-items: flex-start;
}

/* ---- Left column ---- */
.valores__left {
  width: 31.67vw;
  /* 456 / 1440 */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.valores__label {
  color: #53413F;
  font-size: 20px;
  font-family: 'Clash Display', 'Inter', sans-serif;
  font-weight: 500;
  line-height: 2;
  /* 40px height per Figma */
}

.valores__label-bar {
  width: 166px;
  height: 10px;
  background: #ACD0D3;
  margin-top: 2px;
}

/* Figma: label-group bottom ~52px from left-col top;
   title top at 286px from inner = 317px from section top = 238px from section content start;
   margin-top = 238 - 52 = 186px */
.valores__title {
  color: #53413F;
  font-size: clamp(24px, 3.33vw, 48px);
  /* 48 / 1440 */
  font-family: 'Clash Display', 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.2;
  margin-top: 186px;
  width: 100%;
}

/* ---- Right column: values grid ---- */
/* Figma: values x=731px from page (50.76vw); left-col right edge = 9.58+31.67 = 41.25vw;
   gap = 50.76 - 41.25 = 9.51vw (137px at 1440).
   Values y=211 from inner = 242px from section top = 163px below section content start. */
.valores__grid {
  flex: 1;
  margin-left: 9.51vw;
  margin-top: 163px;
}

.valores__row {
  display: flex;
  border-top: 1px solid rgba(83, 65, 63, 0.2);
  padding: 22px 0;
}

.valores__row:last-child {
  border-bottom: 1px solid rgba(83, 65, 63, 0.2);
}

.valores__value {
  flex: 1;
  color: #53413F;
  font-size: clamp(16px, 2.08vw, 30px);
  /* 30 / 1440 */
  font-family: 'Clash Display', 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.2;
}

/* ---- Valores mobile (≤ 768px) ----
   Figma mobile canvas: 390 px
   Label: left 19 / top 64 / fs 16 | Bar: left 20 / top 99 / 132×5px
   Title: left 20 / top 156 / fs 24 / w 288
   Values: single column / left 65px / row height 70px / fs 30
   ----------------------------------------- */
@media (max-width: 768px) {
  .valores {
    /* No horizontal padding — elements control their own left positions */
    padding: 64px 0 60px;
  }

  .valores__inner {
    flex-direction: column;
    gap: 0;
  }

  /* Left group (label + title) padded from screen left */
  .valores__left {
    width: 100%;
    padding: 0 20px;
  }

  /* Label: Figma fs 16 / fw 500 */
  .valores__label {
    font-size: 16px;
  }

  /* Bar: Figma 132×5px / margin-top 3px (bar-top 99 - label-bottom 96 = 3px) */
  .valores__label-bar {
    width: 132px;
    height: 5px;
    margin-top: 3px;
  }

  /* Title: Figma fs 24 / top 156 → margin-top 52px (156 - pad64 - label-group40) */
  .valores__title {
    font-size: 24px;
    line-height: 1.3;
    margin-top: 52px;
    max-width: 288px;
  }

  /* Grid: full-width / margin-top 70px (first value at 315 - title-bottom 245 = 70) */
  .valores__grid {
    width: 100%;
    margin-left: 0;
    margin-top: 70px;
  }

  /* Each desktop row becomes a vertical stack — remove row-level border */
  .valores__row {
    flex-direction: column;
    border-top: none;
    padding: 0;
  }

  /* Remove desktop border-bottom on last row */
  .valores__row:last-child {
    border-bottom: none;
  }

  /* Each value = full-width row with border-top / 65px left indent / 70px height */
  .valores__value {
    display: block;
    flex: none;
    width: 100%;
    border-top: 1px solid rgba(83, 65, 63, 0.2);
    padding: 17px 20px 17px 65px;
    /* (70 - 30×1.2) / 2 = 17px vertical */
    font-size: 30px;
    line-height: 1.2;
  }

  /* Border-bottom after the very last value */
  .valores__row:last-child .valores__value:last-child {
    border-bottom: 1px solid rgba(83, 65, 63, 0.2);
  }
}

/* =============================================
   ÁREAS DE ACTUACIÓN SECTION — DESKTOP
   Canvas ref Figma: 1440 × 907 px
   Section padding: top 66px | bottom 129px (907−778 below images bottom)
   Left col: 50.83vw (732/1440) | padding-left 9.65vw (139/1440)
   Title margin-top 202px (label-group ends ~118px from outer; title at 320px)
   Desc follows title directly | CTA margin-top 49px (706−657)
   Cards: margin-top 10px (images at y=76, pad-top=66) | grid 2×1fr | gap 22×25
   ============================================= */
.areas {
  background: #E6DFD9;
  padding: 66px 0 129px;
}

.areas__inner {
  display: flex;
  align-items: flex-start;
}

/* ---- Left column ---- */
.areas__left {
  width: 50.83vw;
  /* 732 / 1440 */
  flex-shrink: 0;
  padding-left: 9.65vw;
  /* 139 / 1440 */
  display: flex;
  flex-direction: column;
}

.areas__label {
  color: #53413F;
  font-size: 20px;
  font-family: 'Clash Display', 'Inter', sans-serif;
  font-weight: 500;
  line-height: 2;
  /* 40px box per Figma */
}

/* Bar: 185×10px for this section (differs from valores 166×10) */
.areas__label-bar {
  width: 185px;
  height: 10px;
  background: #ACD0D3;
  margin-top: 2px;
}

/* Title: from section outer top 320px; label-group bottom ~118px → margin 202px */
.areas__title {
  color: #53413F;
  font-size: clamp(24px, 3.33vw, 48px);
  /* 48 / 1440 */
  font-family: 'Clash Display', 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.2;
  margin-top: 202px;
  max-width: 31.39vw;
  /* 452 / 1440 */
}

/* Desc: follows title immediately (Figma y=543, title bottom ~546) */
.areas__desc {
  color: #53413F;
  font-size: 15px;
  font-family: 'Clash Display', 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  margin-top: 8px;
  max-width: 334px;
}

/* CTA: Figma y=706; desc bottom ~657; gap 49px */
.areas__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  background: #53413F;
  border-radius: 999px;
  color: #E6DFD9;
  font-size: 16px;
  font-family: 'Clash Display', 'Inter', sans-serif;
  font-weight: 500;
  margin-top: 49px;
  align-self: flex-start;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.areas__cta:hover {
  background-color: #7a6260;
}

/* ---- Right column: image cards ---- */
/* Images at y=76 from outer; section pad-top=66 → margin-top 10px */
.areas__right {
  flex: 1;
  margin-top: 10px;
  padding-right: 3.68vw;
  /* 53 / 1440 — right margin matching Figma */
}

/* Desktop: 2×2 grid */
.areas__cards-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 25px;
}

/* Card: relative + overflow for image fill and gradient overlay */
.areas__card {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 315 / 340;
}

.areas__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradient: ensures label text readable over any image */
.areas__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

/* Card label: Figma Fiscal at (751,361) vs card(732,76) → left:19px, bottom:15px */
.areas__card-label {
  position: absolute;
  bottom: 15px;
  left: 19px;
  color: #E6DFD9;
  font-size: clamp(18px, 2.08vw, 30px);
  /* 30 / 1440 */
  font-family: 'Clash Display', 'Inter', sans-serif;
  font-weight: 500;
  z-index: 1;
}

/* Mobile nav hidden on desktop */
.areas__mobile-nav {
  display: none;
}

/* ---- Áreas mobile (≤ 768px) ----
   Figma phone canvas: 390 px
   Label: left 20 / top 60 / fs 16 | Bar: 148×5px / top 95 / margin-top 3px
   Title: top 157 / fs 24 → margin-top 57px | Desc: left 62 / top 248 → indent 42px
   Slider: full-bleed / top 345 → margin-top 38px / card 315×340 / gap 10px
   Nav: top 711 (26px below slider) — CTA left / arrow right
   ----------------------------------------- */
@media (max-width: 768px) {
  .areas {
    padding: 60px 0 0;
  }

  .areas__inner {
    flex-direction: column;
  }

  .areas__left {
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
  }

  .areas__label {
    font-size: 16px;
  }

  /* Bar: 148×5px on mobile (vs 185×10 desktop) */
  .areas__label-bar {
    width: 148px;
    height: 5px;
    margin-top: 3px;
    /* bar-top 95 - label-bottom 100 = -5px; visual: ~3px below text */
  }

  /* Title: top 157 from outer; label-group(40px) at 60px → ends 100px;
     margin-top = 157-100 = 57px */
  .areas__title {
    font-size: 24px;
    line-height: 1.3;
    margin-top: 57px;
    max-width: 350px;
  }

  /* Desc: top 248; title-bottom ≈ 223px; margin-top 25px
     left 62 from screen → 62-20(section-pad)=42px extra indent */
  .areas__desc {
    margin-top: 25px;
    padding-left: 42px;
    max-width: none;
    line-height: 1.5;
  }

  /* Desktop CTA hidden on mobile */
  .areas__cta {
    display: none;
  }

  /* Right: below text, margin-top 38px (slider at 345, text ends 307) */
  .areas__right {
    width: 100%;
    margin-top: 38px;
    padding-right: 0;
  }

  /* Slider: overflow:hidden clips the peeking card */
  .areas__cards-wrapper {
    overflow: hidden;
  }

  /* Flex track: JS drives translateX, shows 315px card + 65px peek of next */
  .areas__cards-track {
    display: flex;
    flex-direction: row;
    gap: 10px;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
  }

  /* Fixed-size cards for mobile slider */
  .areas__card {
    flex: 0 0 315px;
    width: 315px;
    height: 340px;
    aspect-ratio: unset;
  }

  /* Card label: Figma mobile left 30px (from screen) − card starts at ~0 = left 30px;
     card bottom at 685, label top 621 → bottom: 685-621-40 = 24px */
  .areas__card-label {
    bottom: 24px;
    left: 30px;
    font-size: 30px;
  }

  /* Mobile nav: CTA left / arrow right, 26px gap above slider bottom */
  .areas__mobile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 20px 40px;
  }

  .areas__cta-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #53413F;
    border-radius: 999px;
    color: #E6DFD9;
    font-size: 14px;
    font-family: 'Clash Display', 'Inter', sans-serif;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.2s;
  }

  .areas__cta-mobile:hover {
    background-color: #7a6260;
  }

  /* Arrow button: ~40×40px dark circle */
  .areas__arrow-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #53413F;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s;
  }

  .areas__arrow-btn:hover {
    background-color: #7a6260;
  }
}

/* =============================================
   PUBLICACIONES SECTION — DESKTOP
   Canvas ref Figma: 1440 × (1072+32) px | BG #53413F
   ============================================= */
.pubs {
  position: relative;
  background: #53413F;
  padding: 98px 0 120px;
  /* Adjusted padding for logo overlap */
  font-family: 'Clash Display', 'Inter', sans-serif;
}

/* Label + bar */
.pubs__label {
  color: #E6DFD9;
  font-size: 20px;
  font-weight: 500;
  line-height: 2;
  margin-left: 9.65vw;
}

.pubs__label-bar {
  width: 132px;
  height: 10px;
  background: #ACD0D3;
  margin-left: 9.65vw;
  margin-top: 2px;
}

/* Three-card row */
.pubs__cards {
  display: flex;
  gap: 23px;
  margin-top: 73px;
  padding: 0 3.54vw;
}

.pubs__card {
  display: block;
  position: relative;
  overflow: hidden;
  height: 351px;
  flex-shrink: 0;
}

/* Featured card: ~45.63vw wide */
.pubs__card--featured {
  flex: 0 0 45.63vw;
}

/* Secondary cards: equal share of remaining space */
.pubs__card--sm {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Image fills card */
.pubs__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlays */
.pubs__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pubs__overlay--light {
  background: rgba(0, 0, 0, 0.30);
}

.pubs__overlay--heavy {
  background: rgba(0, 0, 0, 0.80);
}

/* Text content inside secondary cards */
.pubs__card-content {
  position: relative;
  z-index: 1;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pubs__card-title {
  color: #958A86;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
}

.pubs__card-date {
  color: #958A86;
  font-size: 14px;
  font-weight: 400;
}

/* Info section below cards */
.pubs__info {
  margin-top: 39px;
  padding: 0 3.54vw 0 4.65vw;
  position: relative;
  z-index: 1;
}

/* Row 1: date (left) | desktop nav (right) */
.pubs__info-header {
  display: flex;
  align-items: center;
  gap: 24px;
}

.pubs__active-date {
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  flex: 1;
}

/* "Leer más" in header — mobile only (hidden on desktop) */
.pubs__read-btn--header {
  display: none;
}

/* Desktop nav: two 52px cream circles */
.pubs__nav--desktop {
  display: flex;
  gap: 16px;
  margin-left: auto;
}

.pubs__nav--mobile {
  display: none;
}

.pubs__nav-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #E6DFD9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s;
}

.pubs__nav-btn:hover {
  background-color: #ccc5bf;
}

/* Row 2: title + "Leer más" desktop */
.pubs__info-body {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-top: 20px;
}

.pubs__active-title {
  color: #E6DFD9;
  font-size: clamp(20px, 2.22vw, 32px);
  font-weight: 500;
  line-height: 1.25;
  max-width: 29.58vw;
  flex-shrink: 0;
}

/* "Leer más" outlined teal button — desktop (in body row) */
.pubs__read-btn--body {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: 1.5px solid #ACD0D3;
  border-radius: 999px;
  color: #ACD0D3;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
  margin-top: 4px;
}

.pubs__read-btn--body:hover {
  background-color: #ACD0D3;
  color: #53413F;
}

/* Divider */
.pubs__divider {
  border: none;
  border-top: 1px solid rgba(230, 223, 217, 0.20);
  margin-top: 28px;
  max-width: calc(29.58vw + 160px);
  /* Ocupa hasta el título + botón en desktop */
}

/* Excerpt */
.pubs__active-excerpt {
  color: #E6DFD9;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  max-width: 308px;
  margin-top: 20px;
}


/* =============================================
   PUBLICACIONES — MOBILE  ≤ 768 px
   Canvas ref Figma: 390 px
   ============================================= */
@media (max-width: 768px) {
  .pubs {
    padding: 56px 0 80px;
    /* Adjusted padding for logo overlap */
  }

  .pubs__label {
    font-size: 16px;
    margin-left: 20px;
  }

  .pubs__label-bar {
    width: 104px;
    height: 5px;
    margin-left: 20px;
    margin-top: 3px;
  }

  /* Cards: full-width single card (featured only visible) */
  .pubs__cards {
    flex-direction: column;
    gap: 0;
    margin-top: 40px;
    padding: 0;
  }

  .pubs__card--featured {
    flex: none;
    width: 100%;
    height: 291px;
  }

  /* Secondary cards hidden on mobile */
  .pubs__card--sm {
    display: none;
  }

  /* Info section */
  .pubs__info {
    margin-top: 24px;
    padding: 0 20px;
  }

  /* Row 1: date left + "Leer más" right */
  .pubs__info-header {
    justify-content: space-between;
    gap: 12px;
  }

  .pubs__active-date {
    font-size: 14px;
    flex: none;
  }

  /* "Leer más" in header visible on mobile */
  .pubs__read-btn--header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border: 1.5px solid #ACD0D3;
    border-radius: 999px;
    color: #ACD0D3;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
  }

  /* Desktop nav hidden on mobile */
  .pubs__nav--desktop {
    display: none;
  }

  /* Title */
  .pubs__active-title {
    font-size: 24px;
    line-height: 1.3;
    max-width: 100%;
    margin-top: 16px;
  }

  /* Desktop "Leer más" (body row) hidden on mobile */
  .pubs__read-btn--body {
    display: none;
  }

  /* Info body: title full-width (no side-by-side "Leer más") */
  .pubs__info-body {
    flex-direction: column;
    gap: 0;
    margin-top: 0;
  }

  .pubs__divider {
    margin-top: 20px;
    max-width: 100%;
    /* Resetea el max-width en mobile */
  }

  .pubs__active-excerpt {
    font-size: 14px;
    max-width: 100%;
    margin-top: 16px;
  }

  /* Mobile nav: 40px circles, bottom-left */
  .pubs__nav--mobile {
    display: flex;
    gap: 12px;
    margin-top: 28px;
  }

  .pubs__nav-btn--sm {
    width: 40px;
    height: 40px;
  }

}

/* =============================================
   FOOTER SECTION — DESKTOP
   Canvas ref Figma: 1440 × 353 px | BG #958A86
   Inner: 1440 × 300 px, top: 53 px
   Socials: left 52/120/188/256, top 30
   Logo: left 43, top 150 (226 × 54 px)
   Desc: left 53, top 211 | max-width 314 px
   Horario title: left 734, top 98
   Contacto title: left 1072, top 98
   ============================================= */
.footer {
  background: #958A86;
  padding-top: 53px;
  font-family: 'Clash Display', 'Inter', sans-serif;
  position: relative;
}

.footer__bg-logo {
  position: absolute;
  right: -2vw;
  top: 0;
  transform: translateY(-58%);
  width: 45vw;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  min-height: 300px;
  padding-bottom: 53px;
  position: relative;
  z-index: 1;
  /* Keep text above the logo watermark */
}

/* Brand column: 0 → 734 px = 50.97 vw */
.footer__brand {
  flex: 0 0 50.97vw;
  padding-left: 2.99vw;
  /* 43 / 1440 */
  padding-top: 30px;
  /* socials top = 30 px in inner */
  display: flex;
  flex-direction: column;
}

/* Social circles */
.footer__socials {
  display: flex;
  gap: 24px;
  /* circles at x: 52, 120, 188, 256 → spacing 68, circle w 44 → gap 24 */
}

.footer__socials--mobile {
  display: none;
}

.footer__social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #E6DFD9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s;
}

.footer__social-btn:hover {
  background-color: #ccc5bf;
}

/* Logo: top 150 in inner → gap from socials bottom (30+44=74): 150−74=76 px */
.footer__logo {
  height: 54px;
  width: auto;
  align-self: flex-start;
  /* prevent flex-stretch from distorting the image */
  margin-top: 76px;
}

/* Desc: top 211 → gap from logo bottom (150+54=204): 211−204=7 px */
.footer__desc {
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  max-width: 314px;
  margin-top: 7px;
}

/* Info section: Horario + Contacto, from left 734 px */
.footer__info {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding-top: 98px;
  /* titles start at top 98 in inner */
}

.footer__info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.footer__info-title {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}

/* Body: first item at top 169 → gap from title bottom (98+25=123): 169−123=46 px */
.footer__info-body {
  margin-top: 46px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__info-text {
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

/* =============================================
   FOOTER — MOBILE  ≤ 768 px
   Layout: brand block → horario row → contacto row → socials row
   Each separated by a subtle white divider (border-bottom)
   ============================================= */
@media (max-width: 768px) {
  .footer {
    padding-top: 0;
  }

  .footer__inner {
    flex-direction: column;
    min-height: auto;
    padding-bottom: 0;
  }

  /* Brand: logo + desc, border at bottom */
  .footer__brand {
    flex: none;
    width: 100%;
    padding: 32px 20px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  /* Hide desktop socials on mobile */
  .footer__socials--desktop {
    display: none;
  }

  .footer__logo {
    height: 40px;
    width: auto;
    align-self: flex-start;
    margin-top: 0;
  }

  .footer__desc {
    font-size: 12px;
    max-width: 100%;
    margin-top: 16px;
  }

  /* Info section: vertical stack */
  .footer__info {
    flex-direction: column;
    padding-top: 0;
    width: 100%;
  }

  /* Each info col: horizontal row (title left, content right) */
  .footer__info-col {
    flex-direction: row;
    align-items: flex-start;
    padding: 22px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
  }

  .footer__info-title {
    font-size: 14px;
    flex: 0 0 88px;
    padding-top: 1px;
  }

  .footer__info-body {
    flex: 1;
    margin-top: 0;
    gap: 8px;
  }

  .footer__info-text {
    font-size: 14px;
  }

  /* Mobile socials: centered row at bottom */
  .footer__socials--mobile {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 24px 20px;
  }

  .footer__bg-logo {
    width: 90vw;
    right: -8vw;
    transform: translateY(-62%);
  }
}

/* =============================================
 HERO SOBRE NOSOTROS
   ============================================= */
.hero-sobre {
  position: relative;
  width: 100%;
  height: 871px;
  /* Matching Figma desktop height 871px */
  background-image: url('img/sobre-confisa.jpg');
  background-size: cover;
  background-position: center center;
  background-color: #1a1512;
  overflow: hidden;
}

/* Oscurecer un poco la imagen */
.hero-sobre__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.40);
  /* 40% Figma */
  z-index: 0;
}

/* Contenido del Hero sobre */
.hero-sobre__content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Título */
.hero-sobre__title {
  position: absolute;
  left: 3.47vw;
  top: 376px;
  width: 900px;
  color: #E6DFD9;
  font-size: 64px;
  font-family: 'Clash Display', 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.1;
}

/* Botón flecha + texto */
.hero-sobre__scroll {
  position: absolute;
  left: 3.47vw;
  top: 703px;
  /* Center circle top */
  display: flex;
  align-items: center;
  gap: 24px;
  pointer-events: auto;
}

.hero-sobre__scroll-btn {
  width: 52px;
  height: 54px;
  border-radius: 50%;
  background: #E6DFD9;
  border: 1px solid #53413F;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.hero-sobre__scroll-btn:hover {
  background-color: #ccc5bf;
}

.hero-sobre__scroll-label {
  color: #E6DFD9;
  font-size: 20px;
  font-family: 'Clash Display', 'Inter', sans-serif;
  font-weight: 500;
}

/* Mobile Hero Sobre Nosotros (≤ 768px) */
@media (max-width: 768px) {
  .hero-sobre {
    height: 560px;
    /* Matching Figma mobile */
  }

  .hero-sobre__overlay {
    background: rgba(0, 0, 0, 0.60);
    /* 60% overlay */
  }

  .hero-sobre__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0 10px 35px 20px;
  }

  .hero-sobre__title {
    position: static;
    left: auto;
    top: auto;
    width: 350px;
    font-size: 32px;
    margin-bottom: 23px;
    /* Gap from title to scroll button */
  }

  .hero-sobre__scroll {
    position: static;
    left: auto;
    top: auto;
    gap: 10px;
  }

  .hero-sobre__scroll-btn {
    width: 35px;
    height: 36px;
    transform: rotate(0deg);
    /* Asegurarse de quitar rotaciones raras */
  }

  .hero-sobre__scroll-btn svg {
    width: 18px;
    height: 18px;
  }

  .hero-sobre__scroll-label {
    font-size: 13px;
  }
}

/* =============================================
   VALORES TIMELINE SECTION
   ============================================= */
.sobre-valores {
  background: #53413F;
  padding: 102px 0 102px;
  /* Espaciado generoso arriba y abajo para acomodar las líneas */
  position: relative;
  font-family: 'Clash Display', 'Inter', sans-serif;
  overflow: hidden;
  /* Prevent timeline background line from causing side scroll */
}

/* Base structure to span full width keeping header alignment */
.sobre-valores__inner {
  width: 100%;
  padding: 0 4.37vw;
  /* Aligns with header side paddings matching 63px ~ 1440px viewport */
  margin: 0 auto;
  position: relative;
}

/* Grid layout for rows matching timeline columns perfectly */
.sobre-valores__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

/* Base text component */
.sobre-valores__text {
  color: #E6DFD9;
  font-size: 42px;
  /* Increased from 36px para más presencia */
  font-family: 'Clash Display', 'Inter', sans-serif;
  font-weight: 400;
  word-wrap: break-word;
}

/* Aesthetic alignment distribution across the grid cells */
.sobre-valores__text {
  justify-self: center;
  text-align: center;
}

/* Wrapper over marks and line */
.sobre-valores__timeline {
  position: relative;
  width: 100%;
  height: 10px;
  margin: 64px 0 48px 0;
}

/* The faint line crossing the entire container */
.sobre-valores__timeline-bg {
  position: absolute;
  top: 50%;
  left: -50vw;
  width: 200vw;
  height: 1px;
  background: rgba(230, 223, 217, 0.40);
  z-index: 1;
}

/* Wrapper over marks */
.sobre-valores__timeline-marks {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  z-index: 2;
}

/* Turquoise precise marks */
.sobre-valores__mark {
  width: 120px;
  /* Scaled up from 102px */
  height: 10px;
  background: #ACD0D3;
}

.sobre-valores__mark {
  justify-self: center;
}

/* Mobile Timeline (≤ 768px) */
@media (max-width: 768px) {
  .sobre-valores {
    padding: 80px 0;
  }

  .sobre-valores__inner {
    padding: 0;
  }

  /* Transform rows to 2-column grids on mobile */
  .sobre-valores__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px 20px;
    padding: 0 20px;
    margin-bottom: 80px;
    /* Space between the two HTML rows */
  }

  .sobre-valores__row:last-child {
    margin-bottom: 0;
  }

  /* Ensure text sizing and positioning fits mobile grid */
  .sobre-valores__text {
    font-size: 20px;
    position: relative;
    /* Grid alignment overrides */
    justify-self: center !important;
    text-align: center !important;
  }

  /* Hide desktop timeline elements as mobile uses pseudo-elements */
  .sobre-valores__timeline,
  .sobre-valores__timeline-bg,
  .sobre-valores__timeline-marks {
    display: none;
  }

  /* Thin horizontal line above the text.
     Applied only to odd items (left column) but spanning 200vw
     so it perfectly crosses the whole screen once per row without compounding opacity. */
  .sobre-valores__text:nth-child(odd)::after {
    content: '';
    position: absolute;
    top: -40px;
    left: -50vw;
    width: 200vw;
    height: 1px;
    background: rgba(230, 223, 217, 0.40);
    z-index: 1;
  }

  /* Cyan mark centered above each item */
  .sobre-valores__text::before {
    content: '';
    position: absolute;
    top: -44px;
    /* Centered with the 1px line */
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    /* Slightly smaller mark for mobile */
    height: 10px;
    background: #ACD0D3;
    z-index: 2;
  }
}

/* =============================================
   NUESTRA HISTORIA SECTION
   ============================================= */
.sobre-historia {
  background: #E6DFD9;
  padding: 122px 0 160px;
  position: relative;
  font-family: 'Clash Display', 'Inter', sans-serif;
  color: #53413F;
}

.sobre-historia__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  padding: 0 55px 0 165px;
}

.sobre-historia__header {
  margin-bottom: 90px;
}

.sobre-historia__title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
}

.sobre-historia__line {
  width: 155px;
  height: 10px;
  background: #ACD0D3;
}

.sobre-historia__content {
  display: flex;
  justify-content: space-between;
}

.sobre-historia__col-left {
  width: 568px;
  flex: none;
}


.sobre-historia__col-right {
  width: 539px;
  flex: none;
}

.sobre-historia__text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.sobre-historia__text--lead {
  font-size: 24px;
}

.sobre-historia__action {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 100px;
  margin-left: 54px;
  /* offset inside the col-right alignment */
}

.sobre-historia__btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #53413F;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.sobre-historia__btn:hover {
  transform: translateY(4px);
}

.sobre-historia__action-label {
  font-size: 20px;
  font-weight: 500;
  color: #53413F;
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .sobre-historia {
    padding: 64px 0 80px;
  }

  .sobre-historia__inner {
    padding: 0 19px;
  }

  .sobre-historia__header {
    margin-bottom: 50px;
  }

  .sobre-historia__title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .sobre-historia__line {
    width: 123px;
    height: 5px;
  }

  .sobre-historia__content {
    flex-direction: column;
    gap: 40px;
  }

  .sobre-historia__col-left {
    width: 100%;
  }


  .sobre-historia__col-right {
    width: 100%;
    /* Indent applied to match the Figma text alignment: 109px - 19px padding = 90px */
    padding-left: 90px;
  }

  .sobre-historia__text {
    font-size: 14px;
  }

  .sobre-historia__text--lead {
    font-size: 16px;
  }

  .sobre-historia__action {
    margin-left: 90px;
    margin-top: 50px;
    gap: 10px;
  }

  .sobre-historia__btn {
    width: 35px;
    height: 35px;
  }

  .sobre-historia__btn svg {
    width: 18px;
    height: 18px;
  }

  .sobre-historia__action-label {
    font-size: 12px;
  }
}

/* =============================================
   EQUIPO SECTION (SLIDER)
   ============================================= */
/* =============================================
   EQUIPO SECTION (SLIDER)
   ============================================= */
.sobre-equipo {
  width: 100%;
  position: relative;
  background: #E6DFD9;
  /* Baseline */
  overflow: hidden;
}

.sobre-equipo__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Hide controls on desktop */
.sobre-equipo__controls {
  display: none;
}

.sobre-equipo__card {
  width: 100%;
  display: flex;
  flex-direction: row;
}

.sobre-equipo__card--reverse {
  flex-direction: row-reverse;
}

/* Desktop layout: Left 720px Image, Right 720px Info */
.sobre-equipo__image-wrapper {
  width: 50%;
  height: 796px;
  /* From Figma: 720x796 */
  position: relative;
}

.sobre-equipo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sobre-equipo__info {
  width: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.sobre-equipo__gray-block {
  background: #958A86;
  padding: 81px 126px 63px;
  color: #E6DFD9;
}

.sobre-equipo__name {
  font-size: 40px;
  font-family: 'Clash Display', 'Inter', sans-serif;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 32px;
  /* Top: 81 -> Role: 153 -> 153 - 81 - 40 ~ 32px */
  line-height: 1.1;
}

.sobre-equipo__role {
  font-size: 24px;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 91px;
  /* Space to the first outline line: 268 - 153 - 24 ~ 91px */
}

.sobre-equipo__specialties {
  display: flex;
  flex-direction: column;
  position: relative;
}

.sobre-equipo__divider {
  border: none;
  height: 1px;
  background: #E6DFD9;
  width: calc(100% + 252px);
  /* 126px left + 126px right */
  margin-left: -126px;
  /* pull left out of padding */
  margin-top: 0;
  margin-bottom: 58px;
  /* space text: 326 - 268 = 58px */
}

.sobre-equipo__specialty {
  font-size: 32px;
  font-weight: 400;
  position: relative;
  margin-bottom: 66px;
  /* Space to next line: 424 - 358 ~ 66px */
}

.sobre-equipo__specialty:last-child {
  margin-bottom: 0px;
  /* No line under the last one */
}

.sobre-equipo__specialty-line {
  position: absolute;
  left: 0;
  top: -63px;
  /* 58px margin + 5px visual vertical center offset */
  width: 102px;
  height: 10px;
  background: #ACD0D3;
}

.sobre-equipo__beige-block {
  background: #E6DFD9;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 45px 126px 45px 101px;
  /* Left indent: 101px */
  color: #53413F;
}

.sobre-equipo__contact-item {
  display: flex;
  align-items: center;
  gap: 45px;
  font-size: 24px;
  font-weight: 400;
}

.sobre-equipo__icon {
  width: 44px;
  height: 31px;
  object-fit: contain;
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .sobre-equipo__inner {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .sobre-equipo__inner::-webkit-scrollbar {
    display: none;
  }

  .sobre-equipo__card {
    flex-direction: column;
    flex: 0 0 100vw;
    scroll-snap-align: start;
  }

  .sobre-equipo__image-wrapper {
    width: 100%;
    height: 351px;
    /* Figma mobile height */
  }

  .sobre-equipo__info {
    width: 100%;
    /* No strict heights or background gradients anymore! */
  }

  .sobre-equipo__gray-block {
    padding: 26px 65px 30px;
    background: #958A86;
  }

  .sobre-equipo__name {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .sobre-equipo__role {
    font-size: 14px;
    margin-bottom: 33px;
  }

  .sobre-equipo__divider {
    display: block;
    box-sizing: border-box;
    width: calc(100% + 130px);
    /* 100% inner content + 65px left & 65px right padding */
    margin-left: -65px;
    margin-top: 24px;
    margin-bottom: 24px;
  }

  .sobre-equipo__specialty {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .sobre-equipo__specialty-line {
    width: 55px;
    height: 7px;
    top: -27px;
    /* 24px margin + 3px visual offset */
  }

  .sobre-equipo__beige-block {
    padding: 30px 60px 40px;
    gap: 20px;
    background: #E6DFD9;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }

  .sobre-equipo__contact-item {
    font-size: 14px;
    gap: 25px;
  }

  .sobre-equipo__icon {
    width: 25px;
    height: 18px;
  }

  /* Control styles for mobile slider */
  .sobre-equipo__controls {
    display: flex;
    /* Override desktop none */
    position: absolute;
    top: 300px;
    /* Fits bottom right of the 351px image */
    right: 25px;
    gap: 15px;
    z-index: 10;
  }

  .sobre-equipo__control-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #ACD0D3;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .sobre-equipo__control-btn svg {
    width: 18px;
    height: 18px;
  }
}

.sobre-cta {
  width: 100%;
  background: #53413F;
  position: relative;
  overflow: hidden;
  padding: 150px 0;
  /* Adding top and bottom padding requested */
}

.sobre-cta__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
}

.sobre-cta__content {
  display: flex;
  flex-direction: column;
  padding-left: 157px;
  z-index: 2;
  gap: 30px;
  width: 100%;
}

.sobre-cta__title {
  color: #E6DFD9;
  font-size: 36px;
  font-family: 'Clash Display', 'Inter', sans-serif;
  font-weight: 500;
  margin: 0;
  line-height: 1.2;
  max-width: 563px;
}

.sobre-cta__btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #E6DFD9;
  border-radius: 999px;
  padding: 16px 28px;
  color: #5C4646;
  font-size: 24px;
  font-family: 'Clash Display', 'Inter', sans-serif;
  font-weight: 500;
  text-decoration: none;
  width: fit-content;
  transition: opacity 0.3s;
}

.sobre-cta__btn:hover {
  opacity: 0.9;
}

.sobre-cta__bg-logo {
  position: absolute;
  right: -2vw;
  bottom: 0px;
  /* Reset base line */
  transform: translateY(42%);
  /* Muestra un poco más sobre el footer en desktop */
  width: 45vw;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .sobre-cta {
    padding: 80px 0;
  }

  .sobre-cta__inner {
    height: auto;
    padding: 0 19px;
    align-items: flex-start;
  }

  .sobre-cta__content {
    padding-left: 0;
    gap: 21px;
    z-index: 2;
  }

  .sobre-cta__title {
    font-size: 24px;
    max-width: 353px;
  }

  .sobre-cta__btn {
    font-size: 14px;
    padding: 12px 28px;
    height: 43px;
    box-sizing: border-box;
  }

  .sobre-cta__bg-logo {
    width: 90vw;
    right: -10vw;
    transform: translateY(55%);
    /* Esconderlo un poco más abajo */
    bottom: 0;
    top: auto;
    left: auto;
    height: auto;
    pointer-events: none;
    z-index: 1;
    /* Behind content but visible */
  }
}

/* =============================================
   MOBILE MENU — full-screen panel
   Figma: 390×715px | BG #53413F
   Hidden on desktop; activated by hamburger click
   ============================================= */
.mobile-menu {
  display: none;
  /* desktop: never shown */
}

@media (max-width: 768px) {
  .mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #53413F;
    z-index: 300;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .mobile-menu.open {
    transform: translateX(0);
  }

  /* ── Header: logo + X ── */
  .mobile-menu__header {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 57px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
  }

  .mobile-menu__logo {
    width: 165px;
    height: 41px;
    object-fit: contain;
    object-position: left center;
  }

  .mobile-menu__close {
    background: none;
    border: none;
    cursor: pointer;
    width: 27px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E6DFD9;
    font-size: 36px;
    font-family: 'Clash Display', sans-serif;
    font-weight: 300;
    padding: 0;
    line-height: 1;
  }

  /* ── Nav items ── */
  /* Items start at top:170 (Figma), spaced 87px between tops */
  .mobile-menu__nav {
    position: absolute;
    top: 170px;
    left: 64px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .mobile-menu__item {
    min-height: 87px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  /* Row: link text + optional expand button */
  .mobile-menu__item-row {
    height: 87px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-menu__link {
    font-family: 'Clash Display', sans-serif;
    font-size: 30px;
    font-weight: 400;
    color: #E6DFD9;
    line-height: 1;
  }

  .mobile-menu__link:hover {
    opacity: 0.75;
  }

  /* ── Expand circle button (+) ── */
  .mobile-menu__expand {
    flex-shrink: 0;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    border: 1px solid #E6DFD9;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .mobile-menu__expand-icon {
    font-family: 'Clash Display', sans-serif;
    font-size: 22px;
    font-weight: 300;
    color: #E6DFD9;
    line-height: 1;
    /* optical centering */
    margin-top: -2px;
  }

  /* ── Sub-items (collapsed by default) ── */
  .mobile-menu__sub {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding-bottom: 0;
  }

  .mobile-menu__item--has-sub.expanded .mobile-menu__sub {
    max-height: 400px;
    padding-bottom: 24px;
  }

  .mobile-menu__sub-link {
    font-family: 'Clash Display', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: rgba(230, 223, 217, 0.75);
    padding-left: 4px;
  }

  .mobile-menu__sub-link:hover {
    color: #E6DFD9;
  }

  /* ── Social icons ── */
  /* Figma: left 56, bottom ~28px (top 630 in 715px panel) */
  .mobile-menu__socials {
    position: absolute;
    bottom: 28px;
    left: 56px;
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .mobile-menu__social-btn {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #E6DFD9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .mobile-menu__social-btn:hover {
    opacity: 0.85;
  }
}

/* =============================================
   ESPECIALIZACIÓN — INTRO SECTION
   Canvas ref Figma: 1440 × 1318 px | BG #53413F
   Fórmula vertical: Y / 1318 × 100%
   ============================================= */
.espe-intro {
  position: relative;
  background: #53413F;
  /* Proportional height: 1318/1440 = 91.5vw */
  height: 91.5vw;
  overflow: hidden;
}

/* Title — Figma: left 63 / top 366 / w 759 / fs 80 */
.espe-intro__title {
  position: absolute;
  left: 4.375vw;
  /* 63/1440 */
  top: 27.77%;
  /* 366/1318 */
  width: 52.71vw;
  /* 759/1440 */
  color: #E6DFD9;
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(32px, 5.56vw, 80px);
  font-weight: 400;
  line-height: 1.1;
  z-index: 2;
}

/* Subtitle — Figma: left 65 / top 630 / w 757 / fs 24 */
.espe-intro__subtitle {
  position: absolute;
  left: 4.51vw;
  /* 65/1440 */
  top: 47.8%;
  /* 630/1318 */
  width: 52.57vw;
  /* 757/1440 */
  color: #E6DFD9;
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(14px, 1.67vw, 24px);
  font-weight: 400;
  line-height: 1.5;
  z-index: 2;
}

/* Scroll indicator — aligned with subtitle (right edge), visible on entry */
.espe-intro__scroll-btn {
  position: absolute;
  right: 1.25vw;
  top: 47%;
  /* aligned near subtitle, visible without scrolling */
  width: 52px;
  height: 52px;
  background: #ACD0D3;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

/* Desktop: show arrow, hide + */
.espe-intro__scroll-arrow {
  display: block;
}

.espe-intro__scroll-plus {
  display: none;
}

/* Image wrapper — Figma: top 877 / 1440×441 */
.espe-intro__img-wrap {
  position: absolute;
  left: 0;
  top: 66.54%;
  /* 877/1318 */
  width: 100%;
  height: 33.46%;
  /* 441/1318 */
  overflow: hidden;
}

.espe-intro__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  /* show sky/left side of image */
  display: block;
}

/* Overlay on image — Figma: rgba(0,0,0,0.60) */
.espe-intro__img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.60);
}

/* Body text (right col) — Figma: left 962 / top 999 (=122 inside img) / w 424 / fs 16 */
.espe-intro__body {
  position: absolute;
  left: 66.81%;
  /* 962/1440 */
  top: 27.66%;
  /* 122/441 within img-wrap */
  width: 29.44vw;
  /* 424/1440 */
  color: #E6DFD9;
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(16px, 1.11vw, 16px);
  font-weight: 400;
  line-height: 1.6;
  z-index: 2;
}

/* ---- Especialización intro — mobile (≤ 768px) ----
   Figma phone: 390px canvas
   Top section (bg #53413F): 528px
     Content block: top 197, h 287, flex-col justify-end, gap 15, pl 20
       Title: fs 32, w 303
       Subtitle: fs 15, w 269
     Circle (+): top 467, left 336, 33×33
   Image section: 390×370, overlay 60%, two text paragraphs overlaid
   -------------------------------------------------------- */
@media (max-width: 768px) {
  .espe-intro {
    /* Total: 590px (top) + 370px (image) */
    height: 960px;
    overflow: hidden;
    padding: 0;
  }

  /* Content block: Figma top:197 h:287 padding:10/5/20/10 flex-col justify-end gap:15
     justify-end → free space at top (272-262=10px)
     Title starts: 197+10(pt)+10(free) = 217px | height ~77px
     Subtitle starts: 217+77+15(gap) = 309px   | height 170px (clipped)
     Subtitle ends: 309+170 = 479px < 528px (image start) ✓ */
  .espe-intro__title {
    position: absolute;
    top: 217px;
    left: 20px;
    width: 303px;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
  }

  .espe-intro__subtitle {
    position: absolute;
    top: 345px;
    left: 20px;
    width: 269px;
    /* no max-height: text must show fully */
    font-size: 15px;
    line-height: 1.5;
  }

  /* Circle with + — positioned after subtitle, right side */
  .espe-intro__scroll-btn {
    position: absolute;
    top: 500px;
    left: 336px;
    right: auto;
    width: 33px;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Mobile: hide arrow, show + */
  .espe-intro__scroll-arrow {
    display: none !important;
  }

  .espe-intro__scroll-plus {
    display: block;
    font-family: 'Clash Display', sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: #53413F;
    line-height: 1;
  }

  /* Image section — starts at 590px, height 370px */
  .espe-intro__img-wrap {
    position: absolute;
    top: 590px;
    left: 0;
    width: 100%;
    height: 370px;
    overflow: hidden;
  }

  /* Body text overlaid on image — padding-left 60px aligns text to the right */
  .espe-intro__body {
    position: absolute;
    inset: 0;
    left: auto;
    top: auto;
    width: 100%;
    padding: 24px 20px 24px 60px;
    font-size: 14px;
    line-height: 1.6;
    z-index: 2;
  }
}

/* =============================================
   ESPECIALIZACIÓN — SECTORES SECTION
   Canvas ref Figma desktop: 1440 px | BG #E6DFD9
   Label: left 166 / top 81 | Bar: left 166 / top 118 / 89×10
   Rows: left 21 / padding 32px 51px | 4 items / border-top #53413F
   ============================================= */
.espe-sectores {
  background: #E6DFD9;
  padding-top: 81px;
  padding-bottom: 80px;
}

.espe-sectores__header {
  padding-left: 11.53vw;
  margin-bottom: 58px;
}

.espe-sectores__label {
  font-family: 'Clash Display', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #53413F;
  margin: 0 0 8px;
}

.espe-sectores__bar {
  width: 89px;
  height: 10px;
  background: #ACD0D3;
}

.espe-sectores__list {
  margin: 0 1.46vw;
}

.espe-sectores__row {
  border-top: 1px solid #53413F;
  padding: 32px 3.54vw;
}

.espe-sectores__row:last-child {
  border-bottom: 1px solid #53413F;
}

.espe-sectores__row-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.espe-sectores__row-title {
  width: 45.56vw;
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(18px, 2.08vw, 30px);
  font-weight: 400;
  color: #53413F;
  line-height: 1.3;
  margin: 0;
}

.espe-sectores__row-btn {
  flex-shrink: 0;
  width: 47px;
  height: 47px;
  border-radius: 50%;
  border: 1px solid #53413F;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Clash Display', sans-serif;
  font-size: 28px;
  font-weight: 300;
  color: #53413F;
  line-height: 1;
  padding: 0;
  transition: background 0.2s ease;
}

.espe-sectores__row-btn:hover {
  background: rgba(83, 65, 63, 0.08);
}

/* ---- Sectores — open/expanded state ---- */
.espe-sectores__row.open .espe-sectores__row-title {
  font-weight: 500;
}

.espe-sectores__row.open .espe-sectores__row-btn {
  background: #53413F;
  border-color: #53413F;
  color: #E6DFD9;
}

.espe-sectores__row.open .espe-sectores__row-btn:hover {
  background: #6b4e4c;
}

.espe-sectores__content {
  display: none;
  margin-top: 32px;
}

.espe-sectores__row.open .espe-sectores__content {
  display: grid;
  grid-template-columns: 37.22vw 1fr;
  gap: 3.47vw;
}

.espe-sectores__content-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 32px;
  max-width: 22vw;
}

.espe-sectores__lead {
  font-size: 24px;
  font-weight: 500;
  font-family: 'Clash Display', sans-serif;
  color: #53413F;
  line-height: 1.4;
  word-wrap: break-word;
  margin: 0;
}

.espe-sectores__body-text {
  font-size: 24px;
  font-weight: 400;
  font-family: 'Clash Display', sans-serif;
  color: #53413F;
  line-height: 1.6;
  word-wrap: break-word;
  margin: 0;
}

.espe-sectores__content-img {
  align-self: start;
}

.espe-sectores__img-main {
  display: block;
  width: 100%;
  aspect-ratio: 655 / 397;
  object-fit: cover;
}


/* ---- Sectores — mobile (≤ 768px) ---- */
@media (max-width: 768px) {
  .espe-sectores {
    padding-top: 64px;
    padding-bottom: 60px;
  }

  .espe-sectores__header {
    padding-left: 63px;
    margin-bottom: 30px;
  }

  .espe-sectores__label {
    font-size: 16px;
    margin-bottom: 5px;
  }

  .espe-sectores__bar {
    width: 70px;
    height: 5px;
  }

  .espe-sectores__list {
    margin: 0;
  }

  .espe-sectores__row {
    padding: 14px 20px;
    min-height: 104px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .espe-sectores__row-inner {
    width: 100%;
    display: flex;
    align-items: center;
    align-self: center;
    min-height: 76px;
  }

  .espe-sectores__row-title {
    width: auto;
    max-width: 65%;
    font-size: 16px;
  }

  .espe-sectores__row-btn {
    width: 37px;
    height: 37px;
    font-size: 22px;
  }

  .espe-sectores__row.open .espe-sectores__content {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 20px;
    width: 100%;
  }



  .espe-sectores__content-text {
    max-width: 100%;
  }

  .espe-sectores__lead {
    font-size: 18px;
  }

  .espe-sectores__body-text {
    font-size: 14px;
  }
}

/* ==================== ESPE-AREAS ==================== */
.espe-areas {
  background: #E6DFD9;
  padding-top: 27px;
  padding-bottom: 320px;
}

.espe-areas__header {
  padding-left: 11.46vw;
}

.espe-areas__label {
  font-size: 20px;
  font-weight: 500;
  color: #53413F;
  margin: 0 0 10px;
}

.espe-areas__bar {
  width: 189px;
  height: 10px;
  background: #ACD0D3;
}

/* ---- Desktop grid ---- */
.espe-areas__grid {
  display: flex;
  gap: 1.6vw;
  padding: 0 3.96vw 0 3.75vw;
  margin-top: 108px;
}

.espe-areas__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.espe-areas__card-wrap {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 315 / 340;
  overflow: hidden;
}

.espe-areas__card-wrap--dim::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.33);
}

.espe-areas__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.espe-areas__card-title {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  text-align: center;
  font-size: clamp(20px, 2.08vw, 30px);
  font-weight: 500;
  font-family: 'Clash Display', sans-serif;
  color: #E6DFD9;
  z-index: 1;
}

.espe-areas__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 16px 28px;
  background: #53413F;
  color: #E6DFD9;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Clash Display', sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

/* ---- Mobile slider (hidden on desktop) ---- */
.espe-areas__slider {
  display: none;
}

/* ---- Mobile (≤ 768px) ---- */
@media (max-width: 768px) {
  .espe-areas {
    padding-top: 48px;
    padding-bottom: 160px;
  }

  .espe-areas__header {
    padding-left: 65px;
  }

  .espe-areas__label {
    font-size: 16px;
    margin-bottom: 7px;
  }

  .espe-areas__bar {
    width: 148px;
    height: 5px;
  }

  .espe-areas__grid {
    display: none;
  }

  .espe-areas__slider {
    display: block;
    margin-top: 67px;
  }

  .espe-areas__slider-overflow {
    overflow: hidden;
  }

  .espe-areas__slider-track {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
  }

  .espe-areas__slide {
    display: block;
    flex: 0 0 315px;
    height: 340px;
    position: relative;
    overflow: hidden;
  }

  .espe-areas__slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .espe-areas__slide-title {
    position: absolute;
    bottom: 44px;
    left: 30px;
    font-size: 30px;
    font-weight: 500;
    font-family: 'Clash Display', sans-serif;
    color: #E6DFD9;
  }

  .espe-areas__mobile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 27px 9px 0 9px;
  }

  .espe-areas__cta--sm {
    font-size: 14px;
    padding: 12px 28px;
    margin-top: 0;
  }

  .espe-areas__arrow-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #53413F;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* =============================================
   AREA INTRO — compartido entre Fiscal, Contable, Mercantil, Laboral, Seguridad Social
   Canvas desktop: 1440 × 811 px | BG #E6DFD9
   Title:  left 65 / top 355 / fs 96
   Body:   left 68 / top 462 / w 578 / fs 24
   Image:  left 713 / top 243 / w 732 / h 568 / opacity 0.10
   CTA:    left 1179 / top 638
   ============================================= */
.area-intro {
  position: relative;
  background: #E6DFD9;
  height: 56.32vw;
  overflow: hidden;
  font-family: 'Clash Display', sans-serif;
}

/* Header color overrides for cream background */
.area-intro .nav-link {
  color: #5C4646;
}

.area-intro .nav-link:hover {
  color: #53413F;
}

.area-intro .nav-link--active::after {
  background: #53413F;
}

.area-intro .nav-dropdown__link {
  color: #E6DFD9;
}

.area-intro .header__hamburger span {
  background-color: #53413F;
}

/* Logo: inverted to dark on cream background */
.area-intro .logo-img {
  filter: brightness(0);
}

.area-intro__title {
  position: absolute;
  left: 4.51vw;
  top: 43.77%;
  font-size: clamp(40px, 6.67vw, 96px);
  font-weight: 400;
  color: #53413F;
  margin: 0;
  line-height: 1;
}

.area-intro__body {
  position: absolute;
  left: 4.72vw;
  top: 56.97%;
  width: 40.14vw;
  font-size: clamp(15px, 1.67vw, 24px);
  font-weight: 400;
  color: #53413F;
  line-height: 1.6;
  margin: 0;
  word-wrap: break-word;
}

.area-intro__cta {
  position: absolute;
  left: 81.88vw;
  top: 78.67%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  background: #53413F;
  color: #E6DFD9;
  border-radius: 999px;
  font-size: clamp(14px, 1.39vw, 20px);
  font-weight: 500;
  font-family: 'Clash Display', sans-serif;
  text-decoration: none;
  white-space: nowrap;
  z-index: 1;
}

.area-intro__img {
  position: absolute;
  left: 49.51vw;
  top: 29.96%;
  width: 50.83vw;
  height: 39.44vw;
  /* 568/1440 */
  object-fit: cover;
  opacity: 0.10;
  pointer-events: none;
}

/* Full-width image below intro section */
.area-intro__img-below {
  width: 100%;
  height: auto;
  /* 568/1440 */
  overflow: hidden;
}

.area-intro__img-below img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .area-intro__img-below {
    height: 95vw;
    /* 370/390 */
  }
}

/* ---- Area intro — mobile (≤ 768px) ---- */
@media (max-width: 768px) {
  .area-intro {
    height: 528px;
    overflow: hidden;
  }

  .area-intro__title {
    position: absolute;
    left: 20px;
    top: 173px;
    bottom: auto;
    font-size: 32px;
    width: 303px;
  }

  .area-intro__body {
    position: absolute;
    left: 20px;
    top: 228px;
    bottom: auto;
    width: 269px;
    font-size: 15px;
    max-height: 186px;
    overflow: hidden;
  }

  .area-intro__cta {
    position: absolute;
    right: 20px;
    left: auto;
    top: 447px;
    bottom: auto;
    font-size: 14px;
    padding: 16px 28px;
    margin-top: 0;
  }

  .area-intro__img {
    display: none;
  }

}
/* =============================================
   AREA BLOCK 2 — Services + Related Publications
   Desktop: left services col (47.43vw) + right pubs col (37.78vw)
   Canvas: 1440px | left block: left 56, top 101, w 683, h 1104
   Right block: left 846, top 74, w 544
   ============================================= */
.area-block2 {
  background: #E6DFD9;
  padding: 101px 3.89vw 100px;
  display: flex;
  align-items: flex-start;
  gap: 7.43vw;
  font-family: 'Clash Display', sans-serif;
}

/* ---- Services column ---- */
.area-block2__services {
  flex: 1;
}

.area-block2__svc-title {
  font-size: 32px;
  font-weight: 500;
  color: #53413F;
  line-height: 1.3;
  margin: 0 0 52px;
}

.area-block2__svc-grid {
  display: flex;
  flex-direction: column;
}

.area-block2__svc-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 43px;
  position: relative;
  z-index: 1;
}

.area-block2__svc-bar {
  width: 58px;
  height: 10px;
  background: #53413F;
}

.area-block2__svc-line {
  width: 100%;
  height: 1px;
  background: #53413F;
  margin-top: -1px;
}

.area-block2__svc-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 43px;
  padding-top: 51px;
  padding-bottom: 56px;
}

.area-block2__svc-text {
  font-size: 18px;
  font-weight: 400;
  color: #53413F;
  line-height: 1.55;
  margin: 0;
  word-wrap: break-word;
}

/* ---- Publications column (desktop only) ---- */
.area-block2__pubs {
  flex: 0 0 37.78vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.area-block2__pub-card {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.area-block2__pub-card:first-child {
  aspect-ratio: 543 / 324;
}

.area-block2__pub-card:nth-child(2) {
  aspect-ratio: 543 / 304;
}

.area-block2__pub-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.area-block2__pub-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.30);
}

.area-block2__pub-overlay--dark {
  background: rgba(0, 0, 0, 0.45);
}

.area-block2__pub-info {
  position: absolute;
  left: 38px;
  top: 40px;
  right: 38px;
}

.area-block2__pub-title {
  font-size: 20px;
  font-weight: 500;
  color: #E6DFD9;
  margin: 0 0 12px;
  max-width: 276px;
  line-height: 1.3;
}

.area-block2__pub-date {
  font-size: 16px;
  font-weight: 400;
  color: #E6DFD9;
  margin: 0;
}

.area-block2__pub-cta {
  position: absolute;
  right: 20px;
  bottom: 30px;
  display: inline-flex;
  align-items: center;
  padding: 16px 28px;
  background: rgba(172, 208, 211, 0.80);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  color: #53413F;
  text-decoration: none;
  font-family: 'Clash Display', sans-serif;
  white-space: nowrap;
}

.area-block2__pub-more {
  display: flex;
  align-items: center;
  gap: 27px;
  padding-top: 10px;
}

.area-block2__pub-more-circle {
  width: 47px;
  height: 47px;
  border-radius: 50%;
  background: #53413F;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.area-block2__pub-more-circle span {
  color: #E6DFD9;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}

.area-block2__pub-more-link {
  font-size: 20px;
  font-weight: 500;
  color: #53413F;
  text-decoration: none;
  font-family: 'Clash Display', sans-serif;
}

/* Mobile pubs slider: hidden on desktop */
.area-pubs-mobile {
  display: none;
}

/* ---- Mobile (≤ 768px) ---- */
@media (max-width: 768px) {
  .area-block2 {
    flex-direction: column;
    padding: 60px 0 60px;
    gap: 0;
  }

  .area-block2__services {
    width: 100%;
    padding: 0 20px;
  }

  .area-block2__svc-title {
    font-size: 20px;
    margin-bottom: 30px;
  }

  .area-block2__svc-bars {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .area-block2__svc-bar:last-child {
    display: none;
  }

  .area-block2__svc-items {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 41px;
    padding-bottom: 40px;
  }

  .area-block2__svc-text {
    font-size: 14px;
  }

  .area-block2__pubs {
    display: none;
  }

  /* Mobile pubs slider */
  .area-pubs-mobile {
    display: block;
    background: #E6DFD9;
    padding: 40px 0 60px;
    font-family: 'Clash Display', sans-serif;
  }

  .area-pubs-mobile__header {
    padding-left: 65px;
    margin-bottom: 30px;
  }

  .area-pubs-mobile__label {
    font-size: 16px;
    font-weight: 500;
    color: #53413F;
    margin: 0 0 8px;
  }

  .area-pubs-mobile__bar {
    width: 109px;
    height: 5px;
    background: #ACD0D3;
  }

  .area-pubs-mobile__overflow {
    overflow: hidden;
  }

  .area-pubs-mobile__track {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
  }

  .area-pubs-mobile__slide {
    flex: 0 0 390px;
  }

  .area-pubs-mobile__slide-inner {
    position: relative;
    height: 291px;
    overflow: hidden;
  }

  .area-pubs-mobile__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .area-pubs-mobile__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
  }

  .area-pubs-mobile__info {
    position: absolute;
    left: 19px;
    top: 43px;
    right: 19px;
  }

  .area-pubs-mobile__title {
    font-size: 16px;
    font-weight: 500;
    color: #E6DFD9;
    margin: 0 0 10px;
    max-width: 265px;
    line-height: 1.3;
  }

  .area-pubs-mobile__date {
    font-size: 14px;
    font-weight: 400;
    color: #E6DFD9;
    margin: 0;
  }

  .area-pubs-mobile__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 0 20px;
  }

  .area-pubs-mobile__cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 28px;
    background: #ACD0D3;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: #53413F;
    text-decoration: none;
  }

  .area-pubs-mobile__arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ACD0D3;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ============================================================
   OTRAS ÁREAS DE ACTUACIÓN (block 3 – area pages)
   ============================================================ */

.area-otras {
  background: #53413F;
  padding-bottom: 320px;
}

.area-otras__header {
  padding: 76px 0 0 8.75vw;
}

.area-otras__label {
  color: #E6DFD9;
  font-size: 20px;
  font-weight: 500;
}

.area-otras__bar {
  width: 16.74vw;
  height: 10px;
  background: #E6DFD9;
  margin-top: 10px;
}

.area-otras__cards {
  display: flex;
  gap: 2.15vw;
  padding: 0 3.75vw;
  margin-top: 105px;
}

.area-otras__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.area-otras__card-img-wrap {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 422 / 340;
}

.area-otras__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.area-otras__card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.33);
}

.area-otras__card-title {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  color: #E6DFD9;
  font-size: 30px;
  font-weight: 500;
}

.area-otras__card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 33px;
  padding: 16px 28px;
  background: #53413F;
  color: #E6DFD9;
  border-radius: 999px;
  border: 1px solid #E6DFD9;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.area-otras__mobile {
  display: none;
}

@media (max-width: 768px) {
  .area-otras {
    padding-bottom: 160px;
  }

  .area-otras__header {
    padding: 69px 0 0 65px;
  }

  .area-otras__label {
    font-size: 16px;
  }

  .area-otras__bar {
    width: 98px;
    height: 5px;
    background: #ACD0D3;
    margin-top: 30px;
  }

  .area-otras__cards {
    display: none;
  }

  .area-otras__mobile {
    display: block;
    margin-top: 57px;
  }

  .area-otras__mobile-overflow {
    overflow: hidden;
    width: 100%;
  }

  .area-otras__mobile-track {
    display: flex;
    gap: 10px;
    transition: transform 0.35s ease;
  }

  .area-otras__mobile-slide {
    display: block;
    flex: 0 0 315px;
    height: 340px;
    position: relative;
  }

  .area-otras__mobile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .area-otras__mobile-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.33);
  }

  .area-otras__mobile-title {
    position: absolute;
    left: 30px;
    bottom: 24px;
    color: #E6DFD9;
    font-size: 30px;
    font-weight: 500;
  }

  .area-otras__mobile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 19px 0 19px;
    margin-top: 27px;
  }

  .area-otras__mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    background: #E6DFD9;
    color: #53413F;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
  }

  .area-otras__mobile-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #E6DFD9;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ============================================================
   CONTACT HERO (block 1 – contacto.html)
   ============================================================ */

.contact-hero {
  position: relative;
  background: #E6DFD9;
  height: 598px;
  overflow: hidden;
}

/* Header overrides – dark text on cream background */
.contact-hero .logo-img { filter: brightness(0); }
.contact-hero .nav-link { color: #5C4646; }
.contact-hero .header__hamburger span { background-color: #53413F; }

.contact-hero__title {
  position: absolute;
  left: 4.51vw;
  top: 236px;
  color: #53413F;
  font-size: clamp(40px, 5.56vw, 80px);
  font-weight: 400;
  line-height: 1.1;
  width: 45vw;
}

.contact-hero__cta {
  position: absolute;
  right: 13.4vw;
  top: 331px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.contact-hero__cta-circle {
  width: 52px;
  height: 52px;
  background: #53413F;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-hero__cta-label {
  color: #53413F;
  font-size: 20px;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .contact-hero {
    height: auto;
    padding: 130px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .contact-hero__title {
    position: static;
    width: auto;
    font-size: 36px;
    white-space: nowrap;
  }

  .contact-hero__title br {
    display: none;
  }

  .contact-hero__cta {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .contact-hero__cta-label {
    font-size: 14px;
  }
}

/* ============================================================
   CONTACT FORM (block 2 – contacto.html)
   ============================================================ */

.contact-form {
  position: relative;
  z-index: 1;
  background: #958A86;
  padding: 201px 19.58vw 200px;
}

.contact-form__inner {
  width: 100%;
}

/* 2-column rows */
.contact-form__2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  margin-bottom: 37px;
}

/* Individual field */
.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Mensaje: extra gap between label and textarea */
.contact-form__field--mensaje {
  gap: 32px;
  margin-bottom: 0;
}

.contact-form__label {
  color: #E6DFD9;
  font-size: 15px;
  font-weight: 500;
}

.contact-form__input {
  height: 50px;
  background: transparent;
  border: none;
  border-bottom: 2px solid #E6DFD9;
  outline: none;
  padding: 0;
  font-size: 15px;
  font-family: 'Clash Display Variable', sans-serif;
  color: #E6DFD9;
  width: 100%;
  box-sizing: border-box;
}

.contact-form__input::placeholder {
  color: rgba(230, 223, 217, 0.5);
}

.contact-form__textarea {
  height: 184px;
  background: #E6DFD9;
  border: none;
  outline: none;
  padding: 16px;
  font-size: 15px;
  font-family: 'Clash Display Variable', sans-serif;
  color: #53413F;
  width: 100%;
  resize: none;
  box-sizing: border-box;
}

.contact-form__legal {
  color: #E6DFD9;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.6;
  margin-top: 60px;
}

.contact-form__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 53px;
  gap: 24px;
}

.contact-form__privacy {
  display: flex;
  align-items: center;
  gap: 11px;
}

.contact-form__checkbox {
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid #E6DFD9;
  cursor: pointer;
  position: relative;
}

.contact-form__checkbox:checked {
  background: #E6DFD9;
}

.contact-form__checkbox:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: 2px solid #958A86;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.contact-form__check-label {
  color: #E6DFD9;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
}

.contact-form__submit {
  flex-shrink: 0;
  padding: 16px 28px;
  background: #E6DFD9;
  color: #53413F;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Clash Display Variable', sans-serif;
  cursor: pointer;
}
.contact-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.contact-form__msg {
  margin-top: 16px;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 8px;
}
.contact-form__msg--ok {
  background: #d4edda;
  color: #2d6a4f;
}
.contact-form__msg--err {
  background: #f8d7da;
  color: #842029;
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .contact-form {
    padding: 85px 21px 140px;
  }

  .contact-form__2col {
    grid-template-columns: 1fr;
    column-gap: 0;
    margin-bottom: 0;
  }

  .contact-form__2col .contact-form__field {
    margin-bottom: 15px;
  }

  .contact-form__label {
    font-size: 12px;
  }

  .contact-form__input {
    height: 45px;
    font-size: 12px;
    padding: 0;
  }

  .contact-form__field--mensaje {
    gap: 10px;
    margin-bottom: 0;
    margin-top: 20px;
  }

  .contact-form__textarea {
    font-size: 12px;
  }

  .contact-form__legal {
    font-size: 6px;
    margin-top: 40px;
    line-height: 1.5;
  }

  .contact-form__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    margin-top: 28px;
  }

  .contact-form__privacy {
    gap: 6px;
  }

  .contact-form__checkbox {
    width: 16px;
    height: 16px;
  }

  .contact-form__checkbox:checked::after {
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
  }

  .contact-form__check-label {
    font-size: 11px;
  }

  .contact-form__submit {
    align-self: flex-end;
    padding: 12px 24px;
    font-size: 12px;
  }
}

/* ============================================================
   CONTACT INFO + MAP (block 3 – contacto.html)
   ============================================================ */

.contact-info {
  background: #53413F;
  display: flex;
  overflow: hidden;
  padding-bottom: 280px;
}

.contact-info__left {
  flex: 0 0 36.74vw;
  padding: 196px 0 54px 10.69vw;
  display: flex;
  flex-direction: column;
  gap: 106px;
}

.contact-info__group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-info__title {
  color: #E6DFD9;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 14px;
}

.contact-info__text {
  color: #E6DFD9;
  font-size: 20px;
  font-weight: 400;
}

.contact-info__map {
  flex: 1;
  padding: 54px 80px 54px 0;
}

.contact-info__map iframe {
  width: 100%;
  height: 500px;
  border: 0;
  display: block;
}

@media (max-width: 768px) {
  .contact-info {
    flex-direction: column;
    padding-bottom: 160px;
  }

  .contact-info__map {
    order: -1;
    width: 100%;
    height: 280px;
    padding: 0;
  }

  .contact-info__map iframe {
    height: 280px;
  }

  .contact-info__left {
    order: 1;
    flex: none;
    flex-direction: row;
    padding: 40px 20px;
    gap: 0;
    justify-content: space-between;
    align-items: flex-start;
  }

  .contact-info__group {
    gap: 6px;
  }

  .contact-info__title {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .contact-info__text {
    font-size: 14px;
  }
}

/* ============================================================
   BLOG PAGES — publicaciones listing + post detail
   ============================================================ */

/* Date filter for Nunjucks — handled in server.js */

/* ── Blog Hero ── */
.blog-hero {
  position: relative;
  background: #E6DFD9;
  height: 420px;
  overflow: hidden;
}

.blog-hero .logo-img {
  filter: brightness(0);
}

.blog-hero .nav-link {
  color: #5C4646;
}

.blog-hero .nav-link--active {
  color: #5C4646;
}

.blog-hero .nav-link--active::after {
  background: #5C4646;
}

.blog-hero__content {
  position: absolute;
  left: 9.65vw;
  bottom: 80px;
}

.blog-hero__label {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #53413F;
}

.blog-hero__bar {
  width: 132px;
  height: 10px;
  background: #ACD0D3;
  margin-top: 12px;
}

.blog-hero__title {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(28px, 3.89vw, 56px);
  font-weight: 400;
  color: #53413F;
  margin-top: 32px;
  line-height: 1.15;
}

/* ── Blog Grid ── */
.blog-grid {
  background: #E6DFD9;
  padding: 80px 9.65vw 100px;
}

.blog-grid__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}

.blog-card {
  background: white;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card__img-link {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.blog-card__img:hover {
  transform: scale(1.03);
}

.blog-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: #958A86;
}

.blog-card__body {
  padding: 24px 20px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__date {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #958A86;
  margin-bottom: 10px;
}

.blog-card__title {
  font-family: 'Clash Display', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #53413F;
  line-height: 1.35;
  margin-bottom: 12px;
}

.blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.blog-card__title a:hover {
  text-decoration: underline;
}

.blog-card__excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #5C4646;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__read {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #53413F;
  font-weight: 500;
  text-decoration: none;
  align-self: flex-start;
  border-bottom: 1px solid #53413F;
  padding-bottom: 2px;
}

.blog-grid__empty {
  font-family: 'Clash Display', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #958A86;
  text-align: center;
  padding: 80px 0;
}

/* ── Blog Pagination ── */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 56px;
}

.blog-pagination__btn {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #53413F;
  text-decoration: none;
  padding: 10px 24px;
  border: 1px solid #53413F;
  border-radius: 999px;
}

.blog-pagination__btn:hover {
  background: #53413F;
  color: #E6DFD9;
}

.blog-pagination__info {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #958A86;
}

/* ── Post Hero ── */
.post-hero {
  position: relative;
  background: #53413F;
  height: 480px;
  overflow: hidden;
}

.post-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.post-hero .header {
  position: relative;
  z-index: 2;
}

.post-hero__content {
  position: absolute;
  left: 9.65vw;
  bottom: 72px;
  z-index: 2;
  max-width: 720px;
}

.post-hero__date {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(230, 223, 217, 0.7);
  margin-bottom: 14px;
}

.post-hero__title {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(24px, 3.33vw, 48px);
  font-weight: 400;
  color: #E6DFD9;
  line-height: 1.2;
}

/* ── Post Body ── */
.post-body {
  background: #E6DFD9;
  padding: 80px 0 100px;
}

.post-body__inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 9.65vw;
}

.post-body__excerpt {
  font-family: 'Clash Display', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #53413F;
  line-height: 1.5;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(83, 65, 63, 0.2);
}

.post-body__content {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #53413F;
  line-height: 1.75;
}

.post-body__content h2 {
  font-family: 'Clash Display', sans-serif;
  font-size: 28px;
  font-weight: 400;
  margin: 40px 0 16px;
}

.post-body__content h3 {
  font-family: 'Clash Display', sans-serif;
  font-size: 22px;
  font-weight: 400;
  margin: 32px 0 12px;
}

.post-body__content p {
  margin-bottom: 20px;
}

.post-body__content ul, .post-body__content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.post-body__content li {
  margin-bottom: 8px;
}

.post-body__content a {
  color: #53413F;
  text-decoration: underline;
}

/* Adjunto de descarga insertado en contenido del post */
.post-page__body a[href^="/adjunto/"] {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  color: #53413F;
  text-decoration: none;
  padding: 14px 16px 14px 14px;
  border-radius: 12px;
  border: 1px solid rgba(83,65,63,0.15);
  box-shadow: 0 2px 8px rgba(83,65,63,0.08);
  margin: 16px 0;
  transition: box-shadow 0.2s, border-color 0.2s;
  font-size: 15px;
  font-weight: 500;
  max-width: 520px;
}
.post-page__body a[href^="/adjunto/"]:hover {
  box-shadow: 0 4px 16px rgba(83,65,63,0.16);
  border-color: rgba(83,65,63,0.35);
}
.post-page__body a[href^="/adjunto/"]::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 40px;
  background: url('/img/icon-confisa.webp') center / contain no-repeat;
  flex-shrink: 0;
  opacity: 0.7;
}
.post-page__body a[href^="/adjunto/"]:hover::before {
  opacity: 1;
}
.post-page__body a[href^="/adjunto/"]::after {
  content: '';
  display: inline-block;
  margin-left: auto;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #53413F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23E6DFD9' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v13M5 14l7 7 7-7'/%3E%3Cpath d='M3 21h18'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.post-page__body a[href^="/adjunto/"]:hover::after {
  background-color: #3d2d2b;
}

.post-body__back {
  display: inline-block;
  margin-top: 48px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #53413F;
  text-decoration: none;
  border-bottom: 1px solid #53413F;
  padding-bottom: 2px;
}

/* ── Related Posts ── */
.post-related {
  background: #53413F;
  padding: 80px 9.65vw 100px;
}

.post-related__label {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #E6DFD9;
}

.post-related__bar {
  width: 132px;
  height: 10px;
  background: #ACD0D3;
  margin-top: 12px;
}

.post-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.post-related__card {
  text-decoration: none;
  display: block;
}

.post-related__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.post-related__img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: #6e5552;
  border-radius: 2px;
}

.post-related__body {
  padding: 16px 0 0;
}

.post-related__date {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #958A86;
  margin-bottom: 8px;
}

.post-related__title {
  font-family: 'Clash Display', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #E6DFD9;
  line-height: 1.35;
}

.post-related__card:hover .post-related__title {
  text-decoration: underline;
}

/* ── Mobile: blog + post ── */
@media (max-width: 768px) {
  .blog-hero {
    height: auto;
    padding: 120px 20px 48px;
  }
  .blog-hero__content {
    position: static;
  }
  .blog-hero__bar {
    width: 104px;
    height: 5px;
    margin-top: 8px;
  }
  .blog-hero__title {
    font-size: 28px;
    margin-top: 24px;
  }

  .blog-grid {
    padding: 48px 20px 64px;
  }
  .blog-grid__list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .post-hero {
    height: auto;
    min-height: 360px;
    padding-bottom: 48px;
  }
  .post-hero__content {
    position: static;
    padding: 0 20px;
    margin-top: 32px;
  }
  .post-hero__title {
    font-size: 26px;
  }

  .post-body__inner {
    padding: 0 20px;
  }
  .post-body__excerpt {
    font-size: 18px;
  }

  .post-related {
    padding: 56px 20px 72px;
  }
  .post-related__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ══════════════════════════════════════════════════════
   POST PAGE — Figma layout
   ══════════════════════════════════════════════════════ */

/* TOP SECTION — cream bg, header + pills */
/* Cream wrapper — gives uniform bg to all post page sections */
.post-page {
  background: #E6DFD9;
  padding-top: 130px;
}

.post-page__top {
  position: relative;
  padding-top: 92px; /* space for absolute header */
}

/* Override nav colors for cream background (post page) */
.header--light .nav-link {
  color: #53413F;
}
.header--light .nav-link:hover {
  color: #3D2F2F;
}
.header--light .nav-link--active::after {
  background: #ACD0D3;
}
.header--light .nav-link--dropdown-trigger::before {
  border-color: #53413F transparent transparent transparent;
}
.header--light .header__hamburger span {
  background: #53413F;
}
/* Logo: darken so it's visible on cream background */
.header--light .logo-img {
  filter: brightness(0);
}

/* Category pills row */
.post-page__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 32px 3.89vw 40px;
}

.post-page__pills--sidebar {
  padding: 0 0 28px;
}

.post-page__pill {
  display: inline-flex;
  align-items: center;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: 'Clash Display', sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #53413F;
  color: #53413F;
  transition: background 0.2s, color 0.2s;
}

.post-page__pill--active {
  background: #53413F;
  color: #E6DFD9;
  border-color: #53413F;
}

.post-page__pill:hover:not(.post-page__pill--active) {
  background: rgba(83,65,63,0.08);
}

/* HERO IMAGE */
.post-page__hero {
  position: relative;
  margin: 0 3.89vw;
  height: 454px;
  overflow: hidden;
  border-radius: 8px;
}

.post-page__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-page__hero-placeholder {
  width: 100%;
  height: 100%;
  background: #C2B9B3;
}

.post-page__hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.30);
}

.post-page__badge {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: 'Clash Display', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #E6DFD9;
}

/* TWO-COLUMN LAYOUT — centered with equal margins */
.post-page__columns {
  display: flex;
  max-width: 1700px;
  margin: 0 auto;
  padding: 48px 40px 250px;
  box-sizing: border-box;
  align-items: flex-start;
  width: 100%;
}

/* MAIN CONTENT */
.post-page__main {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
  padding-right: 60px;
}

.post-page__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 46px;
  flex-wrap: nowrap;
}
.post-page__meta-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.post-page__date {
  font-family: 'Clash Display', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #53413F;
}
.post-page__reading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Clash Display', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #E6DFD9;
  background: #53413F;
  padding: 4px 12px;
  border-radius: 999px;
}

.post-page__title {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #53413F;
  margin: 0 0 54px;
  line-height: 1.2;
}

.post-page__excerpt {
  font-family: 'Clash Display', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #53413F;
  margin: 0 0 24px;
  line-height: 1.6;
}

.post-page__body {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #53413F;
  line-height: 1.8;
}

.post-page__body h2 { font-family: 'Inter', sans-serif; font-size: 28px; font-weight: 600; color: #53413F; margin: 56px 0 14px; }
.post-page__body h3 { font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 600; color: #53413F; margin: 28px 0 10px; }
.post-page__body h4 { font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 600; color: #53413F; margin: 22px 0 8px; }
.post-page__body p  { margin: 0 0 18px; }
.post-page__body h2:has(> br:only-child),
.post-page__body h3:has(> br:only-child),
.post-page__body h4:has(> br:only-child) { display: none; }
.post-page__body ul, .post-page__body ol { margin: 0 0 18px; padding-left: 24px; }
.post-page__body li { margin-bottom: 6px; }
.post-page__body a  { color: #ACD0D3; text-decoration: underline; }
.post-page__body blockquote { border-left: 4px solid #ACD0D3; margin: 24px 0; padding: 12px 20px; color: #5C4646; font-style: italic; }
.post-page__body img { max-width: 100% !important; width: auto !important; height: auto !important; border-radius: 6px; margin: 16px 0; display: block; }
.post-page__body pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; }
.post-page__body table { max-width: 100%; overflow-x: auto; display: block; }
.post-page__body * { max-width: 100%; }

.post-page__back {
  display: inline-block;
  margin-top: 48px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #53413F;
  text-decoration: none;
}
.post-page__back:hover { text-decoration: underline; }

/* SIDEBAR — starts 95px below date (Figma alignment) */
.post-page__sidebar {
  flex: 0 0 400px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  padding-top: 95px;
  padding-left: 60px;
}

.post-sidebar__card {
  position: relative;
  display: block;
  height: 256px;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
}

.post-sidebar__img,
.post-sidebar__img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-sidebar__img-placeholder {
  background: #C2B9B3;
}

.post-sidebar__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.post-sidebar__info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 18px;
}

.post-sidebar__date {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  margin: 0 0 4px;
}

.post-sidebar__title {
  font-family: 'Clash Display', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.3;
}

.post-sidebar__pill {
  display: inline-flex;
  align-items: center;
  padding: 16px 28px;
  border-radius: 999px;
  background: rgba(172,208,211,0.80);
  font-family: 'Clash Display', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #53413F;
  align-self: flex-end;
}

/* "All posts" CTA */
.post-sidebar__all {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  margin-top: 4px;
}

.post-sidebar__all-icon {
  flex-shrink: 0;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: #53413F;
  color: #E6DFD9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}

.post-sidebar__all-text {
  font-family: 'Clash Display', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #53413F;
}

.post-sidebar__all:hover .post-sidebar__all-text {
  text-decoration: underline;
}

/* ── MOBILE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .post-page__top {
    padding-top: 72px;
  }

  .post-page__pills {
    padding: 20px 16px 24px;
    gap: 8px;
  }

  .post-page__pill {
    padding: 10px 18px;
    font-size: 14px;
  }

  .post-page__hero {
    margin: 0 16px;
    height: 200px;
  }

  .post-page__columns {
    flex-direction: column;
    padding: 32px 20px 150px;
    max-width: 100%;
  }

  .post-page__main {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    padding-right: 0;
  }

  .post-page__meta {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
  }
  .post-page__meta-left {
    width: 100%;
  }
  .post-share__buttons {
    gap: 8px;
    padding-top: 8px;
  }
  .post-share__btn {
    width: 30px;
    height: 30px;
  }
  .post-page__date {
    font-size: 14px;
    white-space: nowrap;
  }
  .post-page__reading {
    font-size: 13px;
    white-space: nowrap;
    padding: 3px 10px;
  }

  .post-page__title {
    font-size: 28px;
    margin-bottom: 28px;
  }

  .post-page__excerpt {
    font-size: 16px;
  }

  .post-page__body {
    font-size: 15px;
  }
  .post-page__body h2 { font-size: 22px; margin: 40px 0 10px; }
  .post-page__body h3 { font-size: 18px; margin: 22px 0 8px; }
  .post-page__body h4 { font-size: 16px; margin: 18px 0 6px; }

  .post-page__back {
    margin-top: 32px;
  }

  .post-page__sidebar {
    flex: none;
    width: 100%;
    max-width: 100%;
    padding-top: 40px;
    padding-left: 0;
  }

  .post-sidebar__card {
    height: 200px;
  }

  .post-sidebar__pill {
    padding: 10px 18px;
    font-size: 14px;
  }

  .post-sidebar__all {
    margin-top: 8px;
  }
}

/* ══════════════════════════════════════════════════════
   POST AUTHOR CARD — EEAT signature
   ══════════════════════════════════════════════════════ */
.post-author {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 56px;
  padding: 28px 32px;
  background: rgba(83,65,63,0.06);
  border-left: 4px solid #ACD0D3;
  border-radius: 0 6px 6px 0;
}

.post-author__img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.post-author__placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ACD0D3;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #53413F;
}

.post-author__info {
  flex: 1;
  min-width: 0;
}

.post-author__label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #958A86;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
}

.post-author__name {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #53413F;
  margin: 0 0 8px;
}
.post-author__name--link {
  display: inline-block;
  text-decoration: none;
  border-bottom: 1px solid #ACD0D3;
  transition: color 0.2s, border-color 0.2s;
}
.post-author__name--link:hover {
  color: #ACD0D3;
  border-bottom-color: transparent;
}
.post-author__cargo {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #ACD0D3;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}

.post-author__desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #53413F;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .post-author {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    gap: 14px;
  }
}

/* ══════════════════════════════════════════════════════
   POST TABLE OF CONTENTS
   ══════════════════════════════════════════════════════ */
.post-toc {
  background: #faf7f5;
  border-left: 4px solid #ACD0D3;
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
  margin-bottom: 40px;
}

.post-toc__title {
  font-family: 'Clash Display', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ACD0D3;
  margin: 0 0 16px;
}

.post-toc__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-toc__link {
  font-family: 'Clash Display', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #53413F;
  text-decoration: none;
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  line-height: 1.4;
}
.post-toc__link:hover {
  color: #ACD0D3;
}

.post-toc__link--h2 {
  font-weight: 500;
}
.post-toc__link--h3 {
  padding-left: 16px;
  font-size: 14px;
  color: #6b5552;
}
.post-toc__link--h4 {
  padding-left: 32px;
  font-size: 13px;
  color: #7a6461;
}

@media (max-width: 768px) {
  .post-toc {
    padding: 18px 20px;
  }
  .post-toc__link {
    font-size: 14px;
  }
  .post-toc__link--h3 { font-size: 13px; }
  .post-toc__link--h4 { font-size: 12px; }
}

/* ══════════════════════════════════════════════════════
   POST FAQ SECTION
   ══════════════════════════════════════════════════════ */
.post-faq {
  margin-top: 48px;
  padding: 32px 36px;
  background: #f5f0ed;
  border-radius: 8px;
}

.post-faq__label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #53413F;
  margin: 0;
}

.post-faq__bar {
  width: 48px;
  height: 4px;
  background: #ACD0D3;
  border-radius: 2px;
  margin-top: 8px;
  margin-bottom: 28px;
}

.post-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-faq__item {
  border-top: 1px solid rgba(83,65,63,0.15);
}
.post-faq__item:last-child {
  border-bottom: 1px solid rgba(83,65,63,0.15);
}

.post-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #53413F;
  cursor: pointer;
  line-height: 1.4;
}
.post-faq__question:hover {
  color: #3d2d2b;
}

.post-faq__icon {
  flex-shrink: 0;
  color: #ACD0D3;
  transition: transform 0.25s ease;
}
.post-faq__question[aria-expanded="false"] .post-faq__icon {
  transform: rotate(-90deg);
}

.post-faq__answer {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #53413F;
  line-height: 1.7;
  padding-bottom: 18px;
  overflow: hidden;
}
.post-faq__item--closed .post-faq__answer {
  display: none;
}

@media (max-width: 768px) {
  .post-faq {
    padding: 24px 20px;
  }
  .post-faq__question {
    font-size: 15px;
  }
  .post-faq__answer {
    font-size: 14px;
  }
}

/* ══════════════════════════════════════════════════════
   POST SHARE BUTTONS
   ══════════════════════════════════════════════════════ */
.post-share__buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.post-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #53413F;
  color: #E6DFD9;
  transition: background 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.post-share__btn:hover {
  background: #3d2d2b;
  transform: translateY(-1px);
}
.post-share__btn svg {
  display: block;
}

/* ══════════════════════════════════════════════════════
   BLOG LISTING PAGE (.bl)
   ══════════════════════════════════════════════════════ */

/* ── HERO ───────────────────────────────────────────── */
.bl__hero {
  position: relative;
  background: #53413F;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 865px;
  padding-top: 92px; /* space for absolute header */
  padding-bottom: 60px;
}

/* Nav overrides — links are cream on dark bg (default), no change needed */

/* Left: headline + CTA */
.bl__hero-left {
  flex: 0 0 49.17vw; /* 708/1440 */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 216px 5.56vw 110px 4.86vw;
}

.bl__hero-title {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(32px, 4.44vw, 64px);
  font-weight: 400;
  color: #E6DFD9;
  line-height: 1.15;
}

.bl__hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.bl__hero-cta-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #E6DFD9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bl__hero-cta-text {
  font-family: 'Clash Display', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #E6DFD9;
}

.bl__hero-cta:hover .bl__hero-cta-text { text-decoration: underline; }

/* Right: featured post — column layout: image on top, meta below */
.bl__featured {
  flex: 1;
  align-self: flex-start; /* shrinks to content height so divider only spans the post */
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  padding: 128px 3.54vw 0 1.74vw; /* image at ~y:220 from section top */
  min-width: 0;
}

/* Divider — starts at the top of the image, spans the post area */
.bl__featured::before {
  content: '';
  position: absolute;
  left: 0;
  top: 128px; /* matches padding-top, aligns with image top */
  bottom: 0;
  width: 0.5px;
  background: rgba(230,223,217,0.5);
}

/* Image wrap */
.bl__featured-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 657 / 351;
  overflow: hidden;
  flex-shrink: 0;
}

.bl__featured-img,
.bl__featured-img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bl__featured-img-placeholder { background: #6B5553; }

.bl__featured-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.30);
}

.bl__featured-badge {
  position: absolute;
  top: 16px;
  left: 20px;
  background: #E6DFD9;
  color: #53413F;
  font-family: 'Clash Display', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 999px;
}

/* Meta below image */
.bl__featured-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
}

.bl__featured-date {
  font-family: 'Clash Display', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
}

.bl__featured-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.bl__featured-title {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(22px, 2.22vw, 32px);
  font-weight: 500;
  color: #E6DFD9;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}

.bl__featured-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid #ACD0D3;
  font-family: 'Clash Display', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #ACD0D3;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── POSTS SECTION ──────────────────────────────────── */
.bl__posts {
  background: #E6DFD9;
  padding: 60px 5.83vw 350px;
}

.bl__posts-head {
  margin-bottom: 48px;
}

.bl__posts-label {
  font-family: 'Clash Display', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #53413F;
}

.bl__posts-bar {
  width: 180px;
  height: 5px;
  background: #ACD0D3;
  margin: 10px 0 28px;
}

/* Category pills */
.bl__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bl__pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: 'Clash Display', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #53413F;
  color: #53413F;
  transition: background 0.2s, color 0.2s;
}

.bl__pill--active {
  background: #53413F;
  color: #E6DFD9;
}

.bl__pill:hover:not(.bl__pill--active) {
  background: rgba(83,65,63,0.08);
}

/* Posts grid — 3 columns desktop */
.bl__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bl__card {
  position: relative;
  display: block;
  aspect-ratio: 349 / 215;
  overflow: hidden;
  border-radius: 4px;
  text-decoration: none;
}

.bl__card-img,
.bl__card-img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.bl__card:hover .bl__card-img { transform: scale(1.04); }
.bl__card-img-placeholder { background: #B0A09E; }

.bl__card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.bl__card-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 24px;
}

.bl__card-date {
  font-family: 'Clash Display', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #E6DFD9;
  margin: 0 0 6px;
}

.bl__card-title {
  font-family: 'Clash Display', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #E6DFD9;
  line-height: 1.3;
  margin: 0;
}

.bl__card-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #E6DFD9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Clash Display', sans-serif;
  font-size: 24px;
  font-weight: 300;
  color: #E6DFD9;
  line-height: 1;
}

/* Pagination */
.bl__pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 56px;
}

.bl__pag-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid #53413F;
  font-family: 'Clash Display', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #53413F;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.bl__pag-btn:hover {
  background: #53413F;
  color: #E6DFD9;
}

.bl__empty {
  text-align: center;
  color: #958A86;
  font-family: 'Clash Display', sans-serif;
  font-size: 16px;
  padding: 60px 0;
}

/* ── MOBILE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .bl__hero {
    flex-direction: column;
    min-height: auto;
    padding-top: 72px;
  }

  .bl__hero-left {
    flex: none;
    border-right: none;
    border-bottom: 0.5px solid rgba(230,223,217,0.5);
    padding: 32px 20px 36px;
    justify-content: flex-start;
    gap: 28px;
  }

  .bl__hero-title {
    font-size: 32px;
  }

  .bl__hero-cta-text {
    font-size: 16px;
  }

  .bl__featured {
    flex: none;
    padding: 0;
  }

  .bl__featured-img-wrap {
    aspect-ratio: 390 / 291;
  }

  .bl__featured-meta {
    padding: 16px 20px 24px;
    gap: 8px;
  }

  .bl__featured-date { font-size: 14px; }

  .bl__featured-title { font-size: 20px; }

  .bl__featured-pill { font-size: 12px; padding: 6px 14px; }

  .bl__posts {
    padding: 40px 20px 250px;
  }

  .bl__posts-bar {
    width: 132px;
    height: 5px;
  }

  .bl__pills {
    gap: 8px;
  }

  .bl__pill {
    padding: 8px 16px;
    font-size: 12px;
  }

  .bl__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bl__card {
    aspect-ratio: 349 / 215;
  }

  .bl__pagination {
    margin-top: 40px;
  }
}
