/* Landing */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--peach { background: var(--peach); }
.section--sand { background: var(--sand); }
.section__head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 900px; }
.section__lead { margin: 22px 0 0; max-width: 60ch; color: var(--muted); }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 clamp(64px, 10vh, 120px);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img {
  position: absolute;
  right: var(--gutter); top: 100px; bottom: 56px;
  width: min(40%, 560px);
  height: calc(100% - 156px);
  object-fit: cover;
  object-position: 50% 62%;
  transform: scale(1.08);
  animation: heroZoom 2.4s var(--ease-out) forwards;
  clip-path: inset(0 0 100% 0);
}
.hero__media::after { content: none; }
@keyframes heroZoom { 40% { clip-path: inset(0 0 0 0); } to { transform: scale(1); clip-path: inset(0 0 0 0); } }
.hero__content { position: relative; }
.hero__content > * { max-width: 56%; }
.hero__title { font-size: clamp(34px, 5.2vw, 78px); margin-bottom: 28px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.1s var(--ease-out) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__kicker, .hero__lead, .hero__actions { opacity: 0; animation: fadeUp 1s var(--ease-out) .5s forwards; }
.hero__lead { max-width: 40ch; font-size: clamp(15px, 1.4vw, 18px); color: #3c332d; margin: 0 0 36px; animation-delay: .6s; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; animation-delay: .7s; }
@keyframes lineUp { to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__scroll {
  position: absolute; left: 50%; bottom: 24px;
  width: 1px; height: 54px; background: var(--line); overflow: hidden;
}
.hero__scroll span { position: absolute; inset: 0; background: var(--ink); animation: scrollCue 2s var(--ease-in-out) infinite; }
@keyframes scrollCue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

@media (max-width: 820px) {
  .hero__content > * { max-width: none; }
  .hero__title { font-size: clamp(32px, 9vw, 60px); }
  .hero__media img { left: 0; right: 0; top: 0; bottom: auto; width: 100%; height: 50%; object-position: 50% 30%; }
  .hero__media::after {
    content: "";
    position: absolute; inset: 0;
    background:
      linear-gradient(180deg, rgba(243,237,228,.9) 0, rgba(243,237,228,0) 110px),
      linear-gradient(0deg, var(--cream) 0%, var(--cream) 50%, rgba(243,237,228,0) 62%);
  }
  .hero__scroll { display: none; }
}

/* Servicios */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.service h3 {
  font-family: var(--font-display); font-weight: 400; font-size: 15px;
  letter-spacing: .22em; text-transform: uppercase; margin: 22px 0 10px;
}
.service p { margin: 0; font-size: 14px; color: var(--muted); }
.service__img { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.service:hover .service__img img { transform: scale(1.05); }
@media (max-width: 920px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .services { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .services::-webkit-scrollbar { display: none; }
  .service { scroll-snap-align: start; }
}

/* Pilares */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.pillar { border-top: 1px solid rgba(30,26,23,.25); padding-top: 28px; }
.pillar__num { font-family: var(--font-script); font-style: italic; font-size: 26px; color: var(--chocolate); }
.pillar h3, .step h3 {
  font-family: var(--font-display); font-weight: 400; font-size: 16px;
  letter-spacing: .22em; text-transform: uppercase; margin: 10px 0 12px;
}
.pillar p, .step p { margin: 0; font-size: 14px; color: #4a3f38; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(48px, 7vw, 88px); }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.strip img:nth-child(even) { transform: translateY(28px); }
@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip img:nth-child(even) { transform: translateY(20px); }
}

/* Teaser catálogo */
.teaser { background: var(--ink); color: var(--cream); padding: clamp(80px, 11vw, 140px) 0; overflow: hidden; }
.teaser .kicker { color: rgba(243,237,228,.55); }
.teaser .script { color: var(--peach); }
.teaser__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.teaser__copy p:not(.kicker) { max-width: 42ch; color: rgba(243,237,228,.75); margin: 24px 0 36px; }
.fan { position: relative; height: clamp(320px, 40vw, 460px); display: block; perspective: 1200px; }
.fan__card {
  --spread: 1;
  position: absolute;
  left: 50%; top: 50%;
  width: clamp(150px, 17vw, 220px);
  aspect-ratio: 3 / 4.3;
  margin: 0;
  border: 6px solid var(--cream);
  background: var(--cream);
  box-shadow: 0 24px 50px rgba(0,0,0,.45);
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--i) * 34% * var(--spread)))
    translateY(calc(max(var(--i), var(--i) * -1) * 6% * var(--spread)))
    rotate(calc(var(--i) * 8deg * var(--spread)));
  z-index: calc(10 - max(var(--i), var(--i) * -1));
  transition: transform .8s var(--ease-out);
}
.fan__card img { width: 100%; height: 100%; object-fit: cover; }
.fan:not(.is-in) .fan__card { --spread: 0; }
.fan:hover .fan__card { --spread: 1.25; }
@media (max-width: 820px) { .teaser__grid { grid-template-columns: 1fr; } }

/* Temáticas */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(220px, 26vw, 340px); gap: 16px; }
.theme { position: relative; overflow: hidden; background: var(--cream); }
.theme--wide { grid-column: span 2; grid-row: span 2; }
.theme img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.theme:hover img { transform: scale(1.06); }
.theme::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(30,26,23,.7)); }
.theme__label {
  position: absolute; left: 22px; bottom: 18px; z-index: 1; color: var(--cream);
  font-family: var(--font-display); font-size: 13px; letter-spacing: .26em; text-transform: uppercase;
}
@media (max-width: 820px) {
  .themes { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .theme--wide { grid-column: span 2; grid-row: span 1; }
}

/* Galería */
.gallery { columns: 3 260px; column-gap: 14px; }
.gallery__item { display: block; width: 100%; margin: 0 0 14px; break-inside: avoid; overflow: hidden; cursor: zoom-in; }
.gallery__item img { width: 100%; transition: transform 1.2s var(--ease-out), filter .4s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__more { margin: 32px 0 0; text-align: center; font-family: var(--font-display); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.gallery__more a { border-bottom: 1px solid currentColor; padding-bottom: 4px; }

.lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(20, 16, 13, .94);
  display: grid; place-items: center;
  padding: 56px 16px;
  animation: fadeIn .3s var(--ease-out);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 86vh; max-width: min(92vw, 1100px); object-fit: contain; animation: zoomIn .4s var(--ease-out); }
.lightbox__close { position: absolute; top: 14px; right: 18px; color: var(--cream); font-size: 36px; width: 48px; height: 48px; }
.lightbox__nav { position: absolute; top: 50%; color: var(--cream); font-size: 26px; width: 52px; height: 52px; transform: translateY(-50%); }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.96); } }

/* Proceso */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); }
.step__num { font-family: var(--font-script); font-style: italic; font-size: clamp(44px, 5vw, 64px); line-height: 1; color: rgba(90,58,42,.55); }
@media (max-width: 920px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* CTA */
.cta { position: relative; background: var(--sand); padding: clamp(100px, 14vw, 180px) 0; text-align: center; overflow: hidden; isolation: isolate; }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; z-index: -1; mix-blend-mode: multiply; }
.cta p { margin: 22px auto 36px; max-width: 36ch; color: #4a3f38; }
