* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: #ece7df;
  color: #181512;
  overflow-x: hidden;
}

/* FONDO GENERAL — IMAGEN BLUR CLARA */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("/img/fondo-laboratorio-estudio/fondo-laboratorio-editorial.jpg") center/cover no-repeat;
  filter: blur(30px) saturate(.92) contrast(.95) brightness(1.12);
  transform: scale(1.14);
  opacity: .46;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(238, 232, 222, .18),
rgba(238, 232, 222, .32)
    );
  z-index: -1;
  pointer-events: none;
}

.editorial-feed {
  width: 100%;
}

/* HERO INDUSTRIAL */
.feed-intro {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
}

.feed-intro__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.feed-intro__kicker {
  margin: 0 0 28px;
  font-size: clamp(12px, 1.4vw, 18px);
  line-height: 1;
  font-weight: 500;
  font-style: italic;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(24, 21, 18, .62);
}

.feed-intro__kicker::before {
  content: "";
  display: inline-block;
  width: clamp(42px, 8vw, 120px);
  height: 1px;
  margin-right: 22px;
  vertical-align: middle;
  background: rgba(24, 21, 18, .42);
}

.feed-intro__title {
  max-width: 1040px;
  margin: 0;
  font-family: "Helvetica Neue", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(54px, 10vw, 156px);
  line-height: .82;
  font-weight: 700;
  letter-spacing: -.075em;
  text-transform: uppercase;
  color: #171411;
}

.feed-intro__title em,
.feed-intro__title i {
  font-style: italic;
  font-weight: 400;
}

.feed-intro__text {
  max-width: 740px;
  margin: 42px 0 0;
  font-size: clamp(18px, 2.1vw, 32px);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -.03em;
  color: rgba(24, 21, 18, .68);
}

.feed-intro__actions {
  display: none;
}

/* GALERÍA — PINTEREST INDUSTRIAL */
.feed-stage {
  padding: 10px 18px 120px;
}

.feed-grid {
  max-width: 1360px;
  margin: 0 auto;
  columns: 4 230px;
  column-gap: 18px;
}

/* TODAS LAS IMÁGENES VERTICALES TIPO HISTORIA */
.feed-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
  opacity: 0;
  transform: translateY(70px);
  transition:
    opacity 1s ease,
    transform 1.1s cubic-bezier(.19,1,.22,1);
}

/* Tres tamaños verticales */
.feed-card:nth-child(3n + 1) {
  height: 560px;
}

.feed-card:nth-child(3n + 2) {
  height: 430px;
}

.feed-card:nth-child(3n + 3) {
  height: 660px;
}

/* Desplazamientos irregulares */
.feed-card:nth-child(5n + 1) {
  margin-top: 80px;
}

.feed-card:nth-child(5n + 2) {
  margin-top: 20px;
}

.feed-card:nth-child(5n + 3) {
  margin-top: 120px;
}

.feed-card:nth-child(5n + 4) {
  margin-top: 0;
}

.feed-card:nth-child(5n + 5) {
  margin-top: 52px;
}

.feed-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feed-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;

  border-radius: 34px;

  filter:
    contrast(1.04)
    saturate(.96)
    brightness(1);

  transform: scale(1.02);

  transition:
    transform 1.2s cubic-bezier(.19,1,.22,1),
    filter 1.2s ease;
}

.feed-card:hover img {
  transform: scale(1.06);
  filter: contrast(1.08) saturate(1.03) brightness(1.01);
}

/* CTA FINAL */
.editorial-links {
  padding: 120px 24px;
  color: #171411;
  background: transparent;
}

.editorial-links__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.editorial-links__kicker {
  margin: 0 0 20px;
  font-size: 12px;
  font-style: italic;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(24, 21, 18, .56);
}

.editorial-links__title {
  max-width: 860px;
  margin: 0 0 22px;
  font-family: "Helvetica Neue", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(44px, 6vw, 92px);
  line-height: .86;
  font-weight: 700;
  letter-spacing: -.07em;
  text-transform: uppercase;
}

.editorial-links__text {
  max-width: 640px;
  margin: 0 0 50px;
  font-size: clamp(17px, 2vw, 26px);
  line-height: 1.35;
  letter-spacing: -.025em;
  color: rgba(24, 21, 18, .66);
}

/* CARDS FINALES — IOS CRISTAL */
.editorial-links__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 42px;
}

.editorial-panel {
  padding: 34px;
  border-radius: 34px;
  background: rgba(255, 250, 244, .42);
  border: 1px solid rgba(255,255,255,.58);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 28px 80px rgba(80, 62, 48, .12);
  transform: translateY(36px);
  opacity: 0;
  transition:
    opacity .9s ease,
    transform .9s cubic-bezier(.19,1,.22,1),
    background .5s ease;
}

.editorial-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.editorial-panel:hover {
  background: rgba(255, 250, 244, .62);
}

.editorial-panel__meta {
  display: block;
  margin-bottom: 18px;
  font-size: 10px;
  font-style: italic;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(24, 21, 18, .52);
}

.editorial-panel__title {
  margin: 0 0 16px;
  font-family: "Helvetica Neue", "Arial Narrow", Arial, sans-serif;
  font-size: 34px;
  line-height: .95;
  font-weight: 700;
  letter-spacing: -.05em;
  text-transform: uppercase;
}

.editorial-panel__text {
  margin: 0 0 26px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(24, 21, 18, .62);
}

.editorial-panel__link {
  color: #171411;
  text-decoration: none;
  font-size: 11px;
  font-style: italic;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* BOTONES SOLO AL FINAL */
.editorial-links__action {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.editorial-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 11px;
  font-style: italic;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition:
    transform .5s cubic-bezier(.19,1,.22,1),
    background .5s ease,
    color .5s ease;
}

.editorial-btn--primary {
  background: #171411;
  color: #fff8ef;
}

.editorial-btn--ghost {
  background: rgba(255,255,255,.42);
  color: #171411;
  border: 1px solid rgba(24,21,18,.15);
  backdrop-filter: blur(16px);
}

.editorial-btn:hover {
  transform: translateY(-4px);
}

/* MOBILE */
@media (max-width: 900px) {
  .feed-intro {
    min-height: auto;
    padding: 110px 18px 70px;
  }

  .feed-intro__kicker {
    font-size: 11px;
    letter-spacing: .22em;
  }

  .feed-intro__kicker::before {
    width: 44px;
    margin-right: 14px;
  }

  .feed-intro__title {
    font-size: clamp(48px, 16vw, 86px);
    line-height: .82;
  }

  .feed-intro__text {
    margin-top: 30px;
    font-size: 20px;
    line-height: 1.35;
  }

  .feed-stage {
    padding: 0 12px 90px;
  }

  .feed-grid {
    columns: 2 150px;
    column-gap: 12px;
  }

  .feed-card {
    margin-bottom: 12px;
  }

  .feed-card:nth-child(3n + 1) {
    height: 380px;
  }

  .feed-card:nth-child(3n + 2) {
    height: 310px;
  }

  .feed-card:nth-child(3n + 3) {
    height: 450px;
  }

  .feed-card:nth-child(5n + 1),
  .feed-card:nth-child(5n + 2),
  .feed-card:nth-child(5n + 3),
  .feed-card:nth-child(5n + 4),
  .feed-card:nth-child(5n + 5) {
    margin-top: 0;
  }

  .editorial-links {
    padding: 90px 18px;
  }

  .editorial-links__title {
    font-size: clamp(42px, 13vw, 72px);
  }

  .editorial-links__text {
    font-size: 19px;
  }

  .editorial-links__grid {
    grid-template-columns: 1fr;
  }

  .editorial-links__action {
    justify-content: center;
  }

  .editorial-btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .feed-grid {
    columns: 2 135px;
    column-gap: 10px;
  }

  .feed-card {
    margin-bottom: 10px;
  }

  .feed-card:nth-child(3n + 1) {
    height: 330px;
  }

  .feed-card:nth-child(3n + 2) {
    height: 270px;
  }

  .feed-card:nth-child(3n + 3) {
    height: 390px;
  }
}