/* ============================================
   JUAN FRANCISCO VALDEZ — EDITORIAL FINE ART
   ============================================ */

:root {
  --bg-1: #F7F5F2;
  --bg-2: #F4F1EC;
  --bg-3: #EFEAE3;
  --bg-4: #FAF8F5;
  --ink: #2C2C2C;
  --ink-soft: #5C5C5C;
  --hairline: rgba(44, 44, 44, 0.12);
  --btn: #D8C7AE;
  --btn-hover: #CCBA9A;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --serif-display: "Italiana", "Cormorant Garamond", serif;
  --serif-alt: "Cardo", "Cormorant Garamond", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 64px);
  --max: 1480px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.02em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--btn); color: var(--ink); }

/* ============================================
   REUSABLE
   ============================================ */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.serif {
  font-family: var(--serif);
  font-weight: 400;
}

.btn {
  display: inline-block;
  padding: 16px 38px;
  background: var(--btn);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
  border-radius: 1px;
}
.btn:hover { background: var(--btn-hover); transform: translateY(-2px); }

/* ============================================
   REVEAL ANIMATIONS (re-trigger every time)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.12s; }
.reveal.delay-2 { transition-delay: 0.24s; }
.reveal.delay-3 { transition-delay: 0.38s; }
.reveal.delay-4 { transition-delay: 0.52s; }
.reveal.delay-5 { transition-delay: 0.68s; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 1.4s var(--ease), transform 1.6s var(--ease);
}
.reveal-scale.is-in { opacity: 1; transform: scale(1); }

.reveal-x {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal-x.is-in { opacity: 1; transform: translateX(0); }

.reveal-fade {
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.reveal-fade.is-in { opacity: 1; }

/* ============================================
   NAVBAR — sin barra, transparente
   Logo siempre visible (izquierda, grande).
   Arriba: 3 rayas a la derecha.
   Al scroll: las 3 rayas desaparecen y aparecen los links.
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 2.2vh, 28px) var(--gutter);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transform: none;
  opacity: 1;
  pointer-events: none;     /* clicks pasan, salvo en hijos */
}
.nav > * { pointer-events: auto; }

/* Brand / logo: se queda en su sitio al cargar; JS lo traslada con -scrollY
   para que se deslice fuera con la página (no es fixed visualmente) */
.brand {
  display: inline-flex;
  align-items: center;
  will-change: transform;
  /* Sin transition en transform: el scroll-driven translate debe ser instantáneo */
}
.brand img {
  display: block;
  height: clamp(110px, 15vh, 180px);
  width: auto;
  filter: brightness(0) drop-shadow(0 2px 16px rgba(247, 245, 242, 0.6));
  -webkit-filter: brightness(0) drop-shadow(0 2px 16px rgba(247, 245, 242, 0.6));
  opacity: 0.96;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.brand:hover img { opacity: 1; transform: scale(1.02); }

/* Logo se queda siempre fijo arriba: NO se desvanece al hacer scroll */

/* Burger — FIJO arriba a la derecha. Visible solo al inicio (sin scroll). */
.burger {
  position: fixed;
  top: clamp(28px, 4vh, 50px);
  right: var(--gutter);
  z-index: 110;
  width: 32px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0;
  cursor: pointer;
  background: transparent;
  border: none;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.burger span {
  display: block;
  height: 1.4px;
  background: var(--ink);
  box-shadow: 0 1px 6px rgba(247, 245, 242, 0.45);
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease), width 0.5s var(--ease);
  transform-origin: center;
}
.burger span:nth-child(1) { width: 100%; }
.burger span:nth-child(2) { width: 70%; }
.burger span:nth-child(3) { width: 90%; }
.burger:hover span { width: 100%; }
body.menu-open .burger span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); width: 100%; }

/* Cuando se hace scroll (o estamos en página sin hero) → burger desaparece */
.nav.is-stuck ~ .burger,
body.no-hero .burger {
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
}
/* …salvo si el menú está abierto (necesitamos la X) */
body.menu-open .nav.is-stuck ~ .burger,
body.menu-open .burger {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateX(0) !important;
}

/* Links: ocultos al inicio, aparecen al hacer scroll (reemplazan al burger)
   o de inmediato en páginas sin hero (about, album) */
.nav-links {
  display: flex;
  gap: clamp(20px, 2.4vw, 38px);
  list-style: none;
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
  transition: opacity 0.55s var(--ease), transform 0.6s var(--ease);
}
.nav.is-stuck .nav-links,
body.no-hero .nav-links {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.nav-links a {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  text-shadow: 0 1px 8px rgba(247, 245, 242, 0.55);
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width 0.5s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

@media (max-width: 880px) {
  .nav-links { display: none !important; }
  /* En móvil el burger queda siempre visible (no hay links que mostrar) */
  .nav.is-stuck ~ .burger {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }
  .brand img { height: clamp(72px, 10vh, 110px); }
}

/* ============================================
   FULL-SCREEN MENU
   ============================================ */
.fullmenu {
  position: fixed;
  inset: 0;
  background: var(--bg-2);
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s var(--ease);
}
body.menu-open .fullmenu { opacity: 1; pointer-events: auto; }

.fullmenu ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.5vw, 28px);
  padding: 0;
}
.fullmenu li {
  display: flex;
  align-items: baseline;
  gap: 28px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
body.menu-open .fullmenu li { opacity: 1; transform: translateY(0); }
body.menu-open .fullmenu li:nth-child(1) { transition-delay: 0.1s; }
body.menu-open .fullmenu li:nth-child(2) { transition-delay: 0.18s; }
body.menu-open .fullmenu li:nth-child(3) { transition-delay: 0.26s; }
body.menu-open .fullmenu li:nth-child(4) { transition-delay: 0.34s; }
body.menu-open .fullmenu li:nth-child(5) { transition-delay: 0.42s; }

.fullmenu .num {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.36em;
  color: var(--ink-soft);
  min-width: 36px;
}
.fullmenu a {
  font-family: var(--serif-display);
  font-size: clamp(46px, 9vw, 120px);
  line-height: 1;
  letter-spacing: 0.04em;
  font-weight: 400;
  color: var(--ink);
  transition: color 0.4s var(--ease), letter-spacing 0.6s var(--ease);
}
.fullmenu a:hover {
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--bg-2);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  0%   { transform: scale(1.04) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(0, -1.5%, 0); }
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(247,245,242,0.32) 0%,
      rgba(247,245,242,0.04) 22%,
      rgba(247,245,242,0) 60%,
      rgba(247,245,242,0) 82%,
      rgba(247,245,242,0.28) 92%,
      rgba(247,245,242,0.5) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(100px, 14vh, 140px) var(--gutter) clamp(60px, 8vh, 100px);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(50px, 9vw, 140px);
  line-height: 0.88;
  letter-spacing: 0.005em;
  color: var(--bg-1);
  text-shadow: 0 2px 24px rgba(44, 44, 44, 0.25);
}
.hero__title span {
  display: block;
  opacity: 0;
  transform: translateY(60px);
  animation: heroWordIn 1.4s var(--ease) forwards;
}
.hero__title span:nth-child(1) { animation-delay: 0.25s; }
.hero__title span:nth-child(2) { animation-delay: 0.45s; font-style: italic; font-family: var(--serif-display); letter-spacing: 0.02em; font-weight: 400; }
.hero__title span:nth-child(3) { animation-delay: 0.65s; }
.hero__title span:nth-child(4) { animation-delay: 0.85s; font-style: italic; font-family: var(--serif-display); letter-spacing: 0.02em; font-weight: 400; }

@keyframes heroWordIn {
  0%   { opacity: 0; transform: translateY(60px); filter: blur(8px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.scroll-cue {
  opacity: 0;
  animation: scrollCueIn 1.2s var(--ease) 1.55s forwards;
}
@keyframes scrollCueIn {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.scroll-bridge {
  background: var(--bg-1);
  padding: clamp(40px, 6vh, 70px) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.scroll-cue__line {
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, rgba(44, 44, 44, 0.0), rgba(44, 44, 44, 0.85));
  animation: scrollLine 2.4s ease-in-out infinite;
}
.scroll-cue__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   SECTION COMMON
   ============================================ */
section {
  position: relative;
  padding: clamp(50px, 7vw, 100px) var(--gutter);
}
.wrap { max-width: var(--max); margin: 0 auto; }

.section-head {
  text-align: center;
  margin-bottom: clamp(34px, 5vw, 60px);
}
.section-head h2 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 70px);
  line-height: 1.06;
  letter-spacing: 0.02em;
  max-width: 16ch;
  margin: 20px auto 0;
}
.section-head h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
}
.section-head p {
  margin: 30px auto 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
}

/* ============================================
   SECCIÓN 1 — HISTORIAS QUE TE HARÁN SENTIR
   ============================================ */
.s-historias { background: var(--bg-1); }

/* ============================================
   ABOUT ME — sección dedicada
   ============================================ */
.s-about {
  background: var(--bg-1);
  padding: clamp(60px, 8vw, 110px) var(--gutter);
}
.s-about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.s-about__photo {
  background-size: cover;
  background-position: center;
  aspect-ratio: 4 / 5.4;
  width: 100%;
  box-shadow: 0 30px 80px -50px rgba(44,44,44,0.35);
}
.s-about__copy {
  display: flex;
  flex-direction: column;
}
.s-about__copy .eyebrow {
  display: block;
  margin-bottom: 22px;
}
.s-about__title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(64px, 9vw, 140px);
  line-height: 0.95;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin: 0;
}
.s-about__sub {
  display: block;
  margin-top: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 1.8vw, 26px);
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.s-about__body {
  margin-top: clamp(28px, 3vw, 42px);
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.95;
  max-width: 52ch;
}
.s-about__body p + p { margin-top: 14px; }
@media (max-width: 880px) {
  .s-about__grid { grid-template-columns: 1fr; gap: 40px; }
  .s-about__photo { aspect-ratio: 4 / 5; }
}

/* Foto horizontal grande, sección propia */
.s-about-big {
  background: var(--bg-1);
  padding: 0 var(--gutter) clamp(60px, 8vw, 110px);
}
.about-big-img {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 80px -50px rgba(44,44,44,0.35);
}

/* Legacy support (sin afectar nuevo layout) */
.s-historias__intro {
  display: none;
}
.s-historias__intro p {
  color: var(--ink-soft);
  max-width: 50ch;
  font-size: 14.5px;
  line-height: 1.95;
}
.s-historias__intro p + p { margin-top: 18px; }

.editorial-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: clamp(20px, 3vw, 38px);
  align-items: start;
}
.editorial-3 .e-big {
  grid-column: 1 / span 1;
  grid-row: 1 / span 2;
  aspect-ratio: 3 / 4.4;
  align-self: stretch;
}
.editorial-3 .e-mid {
  grid-column: 2 / span 2;
  grid-row: 1 / span 1;
  aspect-ratio: 16 / 9;
  margin-top: 14%;
}
.editorial-3 .e-cta {
  grid-column: 2 / span 1;
  grid-row: 2 / span 1;
  aspect-ratio: 4 / 5;
  position: relative;
}
.editorial-3 .e-extra {
  grid-column: 3 / span 1;
  grid-row: 2 / span 1;
  aspect-ratio: 4 / 5;
  margin-top: -8%;
}
.e-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
}
.e-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(44,44,44,0);
  transition: background 0.6s var(--ease);
}
.e-img:hover::after { background: rgba(44,44,44,0.08); }
.e-cta .btn {
  position: absolute;
  bottom: 28px;
  left: 28px;
  z-index: 2;
}
@media (max-width: 880px) {
  .s-historias__intro { grid-template-columns: 1fr; }
  .editorial-3 { grid-template-columns: 1fr 1fr; }
  .editorial-3 .e-big { aspect-ratio: 3 / 4; grid-row: 1; grid-column: 1 / -1; }
  .editorial-3 .e-mid { grid-row: 2; grid-column: 1 / -1; aspect-ratio: 16 / 10; margin-top: 0; }
  .editorial-3 .e-cta { grid-row: 3; grid-column: 1; aspect-ratio: 4/5; }
  .editorial-3 .e-extra { grid-row: 3; grid-column: 2; aspect-ratio: 4/5; margin-top: 0; }
}

/* ============================================
   SECCIÓN 2 — Tres fotografías libres
   ============================================ */
.s-libre { background: var(--bg-2); }
.s-libre__stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr 1fr;
  grid-template-rows: auto auto auto;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.s-libre .f {
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 80px -40px rgba(44,44,44,0.35);
  width: 100%;
}
.s-libre .f1 {
  grid-column: 1 / span 1;
  grid-row: 1 / span 2;
  aspect-ratio: 3 / 4.2;
  margin-top: 6%;
}
.s-libre .f2 {
  grid-column: 2 / span 1;
  grid-row: 2 / span 1;
  aspect-ratio: 1 / 1;
}
.s-libre .f3 {
  grid-column: 3 / span 1;
  grid-row: 2 / span 2;
  aspect-ratio: 3 / 4.2;
  margin-top: 12%;
}
.s-libre__quote {
  grid-column: 2 / span 2;
  grid-row: 1 / span 1;
  max-width: 40ch;
  justify-self: end;
  text-align: right;
  font-family: var(--serif-alt);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.4;
  color: var(--ink);
  padding-top: 2%;
  letter-spacing: 0.005em;
}
.s-libre__caption {
  grid-column: 1 / span 1;
  grid-row: 3 / span 1;
  max-width: 32ch;
  margin-top: 8%;
}
.s-libre__caption .eyebrow { display: block; margin-bottom: 12px; }
.s-libre__caption p {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.4;
  color: var(--ink);
}
@media (max-width: 880px) {
  .s-libre__stage { display: flex; flex-direction: column; gap: 28px; }
  .s-libre .f { width: 100%; margin-top: 0; aspect-ratio: 3/4; }
  .s-libre__quote, .s-libre__caption { max-width: 100%; text-align: left; justify-self: start; margin-top: 0; padding-top: 0; }
}

/* ============================================
   SECCIÓN 3 — Dos fotos grandes + 3 textos
   ============================================ */
.s-finear { background: var(--bg-3); }
.s-finear__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.s-finear__photo {
  background-size: cover;
  background-position: center;
  aspect-ratio: 4 / 5.2;
  width: 100%;
}
.s-finear__copy {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 64px);
}
.s-finear__copy h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  color: var(--ink);
}
.s-finear__copy > div:nth-child(2) h3 {
  font-family: var(--serif-display);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.s-finear__copy .eyebrow + p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.95;
  max-width: 50ch;
}
.s-finear__copy ul.bare {
  list-style: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.9;
  color: var(--ink-soft);
}
.s-finear__bottom {
  margin-top: clamp(60px, 7vw, 100px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.s-finear__bottom .text {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.95;
  max-width: 48ch;
}
.finear-poem {
  list-style: none;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.55;
  color: var(--ink);
  padding: 0;
}
.finear-poem li { margin-bottom: 4px; }
.finear-poem__outro {
  margin-top: 30px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.85;
}
.s-finear__bottom .photo {
  background-size: cover;
  background-position: center;
  aspect-ratio: 4 / 4.6;
}
@media (max-width: 880px) {
  .s-finear__grid, .s-finear__bottom { grid-template-columns: 1fr; }
}

/* ============================================
   BLOG — EL BLOG
   ============================================ */
.s-blog { background: var(--bg-1); }
.s-blog .blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
/* Blog card con texto SOBRE la foto */
.blog-card {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4.2;
  background: var(--bg-3);
}
.blog-card__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.blog-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44,44,44,0.0) 30%, rgba(44,44,44,0.45) 75%, rgba(44,44,44,0.78) 100%);
  transition: background 0.5s var(--ease);
}
.blog-card:hover .blog-card__img::after {
  background: linear-gradient(180deg, rgba(44,44,44,0.05) 25%, rgba(44,44,44,0.55) 70%, rgba(44,44,44,0.85) 100%);
}
.blog-card__img-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 1.4s var(--ease);
}
.blog-card:hover .blog-card__img-inner { transform: scale(1.06); }

.blog-card__meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: clamp(20px, 3vw, 32px);
  color: var(--bg-1);
}
.blog-card__location {
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(247,245,242, 0.85);
}
.blog-card__title {
  margin-top: 10px;
  font-family: var(--serif-alt);
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.2;
  color: var(--bg-1);
  letter-spacing: 0.005em;
  text-shadow: 0 2px 14px rgba(44,44,44,0.4);
}
.blog-card__couple {
  margin-top: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(247,245,242,0.92);
  letter-spacing: 0.015em;
}
.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bg-1);
}
.blog-card__link::after {
  content: "→";
  transition: transform 0.4s var(--ease);
}
.blog-card:hover .blog-card__link::after { transform: translateX(6px); }

@media (max-width: 1100px) {
  .s-blog .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .s-blog .blog-grid { grid-template-columns: 1fr; }
}
.s-blog__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 5vw, 70px);
}
.s-blog__more a {
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  transition: color 0.3s var(--ease), letter-spacing 0.4s var(--ease);
}
.s-blog__more a:hover { letter-spacing: 0.42em; }

/* ============================================
   CARRUSEL PRINCIPAL
   ============================================ */
.s-carousel { background: var(--bg-4); padding-left: 0; padding-right: 0; overflow: hidden; }
.s-carousel .section-head { padding: 0 var(--gutter); }
.carousel {
  position: relative;
}
.carousel__track-wrap {
  overflow: hidden;
  position: relative;
}
.carousel__track {
  display: flex;
  gap: clamp(14px, 1.5vw, 24px);
  will-change: transform;
  width: max-content;
}
.carousel__slide {
  width: clamp(280px, 24vw, 460px);
  aspect-ratio: 3 / 4;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.carousel__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44,44,44,0) 55%, rgba(44,44,44,0.55) 100%);
  pointer-events: none;
}
.carousel__slide--plain::before {
  background: rgba(44,44,44,0);
  transition: background 0.5s var(--ease);
}
.carousel__slide--plain:hover::before {
  background: rgba(44,44,44,0.1);
}
.carousel__caption {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 2;
  color: var(--bg-1);
}
.carousel__caption .names {
  font-family: var(--serif);
  font-size: clamp(20px, 1.7vw, 26px);
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(44,44,44,0.4);
}
.carousel__caption .place {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  opacity: 0.95;
}
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(247, 245, 242, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 18px;
  z-index: 5;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  box-shadow: 0 8px 24px -10px rgba(44,44,44,0.25);
}
.carousel__arrow:hover { background: var(--bg-1); transform: translateY(-50%) scale(1.06); }
.carousel__arrow--prev { left: 18px; }
.carousel__arrow--next { right: 18px; }

/* ============================================
   TRABAJAR CON NOSOTROS
   ============================================ */
.s-trabajar { background: var(--bg-3); }
.s-trabajar__grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.s-trabajar__left h2 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 74px);
  line-height: 1.04;
  letter-spacing: 0.015em;
  max-width: 14ch;
}
.s-trabajar__left h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
}
.s-trabajar__left p {
  margin-top: 28px;
  color: var(--ink-soft);
  max-width: 44ch;
  font-size: 14.5px;
  line-height: 1.95;
}
.s-trabajar__left p + p { margin-top: 16px; }
.s-trabajar__left .btn { margin-top: 38px; }

.s-trabajar__right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.s-trabajar__right .vert {
  aspect-ratio: 4 / 5.4;
  width: 100%;
  max-width: 460px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 80px -50px rgba(44,44,44,0.35);
}
@media (max-width: 880px) {
  .s-trabajar__grid { grid-template-columns: 1fr; }
}

/* ============================================
   FORMULARIO
   ============================================ */
.s-form { background: var(--bg-4); }
.s-form__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.s-form__copy h2 {
  font-family: var(--serif-alt);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.12;
  letter-spacing: 0.005em;
  max-width: 18ch;
}
.s-form__copy p {
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.95;
  max-width: 48ch;
}
.s-form__copy p + p { margin-top: 16px; }

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 480px;
  margin-left: auto;
  width: 100%;
}
.form input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 16px 4px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
}
.form input::placeholder {
  color: var(--ink-soft);
  letter-spacing: 0.18em;
  font-size: 11px;
  text-transform: uppercase;
}
.form input:focus { outline: none; border-color: var(--ink); }
.form .btn {
  margin-top: 16px;
  align-self: flex-start;
}
.form__note {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.form__status {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.06em;
  min-height: 1em;
}
.form__status.is-error { color: #a44; }
.form__status.is-ok { color: #3a6a3a; }
@media (max-width: 880px) {
  .s-form__grid { grid-template-columns: 1fr; }
  .form { margin-left: 0; }
}

/* ============================================
   FOOTER
   ============================================ */
.foot {
  background: var(--bg-1);
  border-top: 1px solid var(--hairline);
}
.foot__strip {
  display: flex;
  width: 100%;
  height: clamp(140px, 18vw, 250px);
}
.foot__strip .ph {
  flex: 1 1 0;
  background-size: cover;
  background-position: center;
  position: relative;
}
.foot__strip .ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(247, 245, 242, 0.0);
  transition: background 0.5s var(--ease);
}
.foot__strip .ph:hover::after { background: rgba(247, 245, 242, 0.18); }

.foot__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px var(--gutter);
  gap: 20px;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.foot__bar .center {
  display: flex;
  gap: 24px;
  justify-content: center;
  text-transform: none;
  letter-spacing: 0.06em;
  font-size: 12px;
  font-family: var(--serif);
  font-style: italic;
}
.foot__bar .center a {
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
  border: none !important;
  background: none !important;
  text-decoration: none;
}
.foot__bar .center a:hover { color: var(--ink); }
.foot__bar a { transition: color 0.3s var(--ease); }
.foot__bar a:hover { color: var(--ink); }
.foot__bar .right { text-align: right; }
@media (max-width: 880px) {
  .foot__bar { grid-template-columns: 1fr; text-align: center; }
  .foot__bar .right { text-align: center; }
  .foot__strip { height: 100px; }
}

/* ============================================
   PAGE HERO CON FOTO DE FONDO (estilo home)
   Para contact, portfolio, blog
   ============================================ */
.page-hero {
  position: relative;
  min-height: clamp(540px, 78vh, 760px);
  overflow: hidden;
  background: var(--bg-2);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.page-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(247,245,242,0.65) 0%,
      rgba(247,245,242,0.45) 30%,
      rgba(247,245,242,0.55) 60%,
      rgba(247,245,242,0.6) 88%,
      rgba(247,245,242,0.75) 100%);
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  min-height: clamp(540px, 78vh, 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(120px, 16vh, 180px) var(--gutter) clamp(60px, 8vh, 100px);
  color: var(--ink);
}
.page-hero__inner .eyebrow {
  color: var(--ink-soft);
  background: none;
  padding: 0;
  letter-spacing: 0.42em;
  font-weight: 500;
}
.page-hero__title {
  margin-top: 28px;
  font-family: var(--serif-display, var(--serif));
  font-weight: 400;
  font-size: clamp(44px, 6.5vw, 100px);
  line-height: 1.04;
  letter-spacing: 0.015em;
  color: var(--ink);
  max-width: 22ch;
}
.page-hero__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
}
.page-hero__desc {
  margin: 28px auto 0;
  max-width: 60ch;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-soft);
  background: none;
  padding: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ============================================
   FIND US — tres columnas (icons | frase única | Contact me + email)
   ============================================ */
.s-find-us {
  background: var(--bg-2);
  padding: clamp(40px, 5vw, 70px) var(--gutter);
}
.find-us__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.find-us__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-self: start;
  gap: 14px;
}
.find-us__label {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.7vw, 22px);
  color: var(--ink);
  letter-spacing: 0.01em;
}
.find-us__icons {
  display: flex;
  gap: 16px;
}
.find-us__icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.find-us__icons a:hover {
  background: var(--btn);
  transform: translateY(-2px);
}

.find-us__phrase {
  text-align: center;
  font-family: var(--serif-alt, var(--serif));
  font-style: italic;
  font-weight: 400;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: 0.005em;
  max-width: 30ch;
}

.find-us__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}
.find-us__contact-label {
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.find-us__contact a {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 1.3vw, 17px);
  color: var(--ink);
  letter-spacing: 0.01em;
  transition: color 0.3s var(--ease);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
}
.find-us__contact a:hover { color: var(--ink-soft); border-bottom-color: var(--ink-soft); }

@media (max-width: 760px) {
  .find-us__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .find-us__left, .find-us__contact { align-items: center; text-align: center; }
  .find-us__phrase { max-width: 100%; margin: 0 auto; }
}

/* ============================================
   UTILS
   ============================================ */
.no-scroll { overflow: hidden; }

/* ============================================
   MOUSE FX EN EL HERO (solo desktop)
   ============================================ */
@media (hover: hover) and (pointer: fine) {
  .hero__bg, .hero__title { will-change: transform; }

  /* Floating dust particles in the hero */
  .hero__dust {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
  }
  .hero__dust span {
    position: absolute;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(247, 245, 242, 0.7);
    box-shadow: 0 0 12px rgba(247, 245, 242, 0.4);
    opacity: 0;
    animation: dustFloat linear infinite;
  }
  @keyframes dustFloat {
    0%   { opacity: 0; transform: translate3d(0, 0, 0); }
    10%  { opacity: 0.8; }
    90%  { opacity: 0.8; }
    100% { opacity: 0; transform: translate3d(var(--dx, 40px), var(--dy, -200px), 0); }
  }
}

