/* ─────────────────────────────────────────────────────────────
   LASSOLANA — Portfolio Web
   Recreación fiel del scroll del PDF
───────────────────────────────────────────────────────────── */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --cream:       #F4EFE6;
  --green:       #2D6B3A;
  --green-dark:  #1C4A26;
  --green-light: #3D8B4E;
  --dark:        #111111;
  --mid:         #5A5A5A;
  --light:       #9A9A9A;
  --white:       #FDFAF5;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  /* Pared encalada: imagen fija, cubre el viewport sin tilear */
  background-color: var(--cream);
  background-image: url('../assets/shutterstock_2529920503.webp');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; }
ul { list-style: none; }
em { font-style: italic; }

/* ── REVEAL ──────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── NAV ─────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 3rem;
  transition: background 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: rgba(244,239,230,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
}
.nav__brand {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 1.4rem;
  color: var(--green);
}
.nav__links { display: flex; gap: 2.5rem; margin-left: auto; margin-right: 2rem; }
.nav__links a {
  font-size: 0.82rem; letter-spacing: 0.07em;
  transition: color 0.2s;
  position: relative;
}
.nav__links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--green);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover { color: var(--green); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__right {
  display: flex; align-items: center; gap: 1rem;
}
.lang-toggle {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em;
  background: none; border: 1px solid rgba(0,0,0,0.2);
  border-radius: 2px; padding: 0.25rem 0.55rem;
  cursor: pointer; color: var(--dark);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.lang-toggle:hover {
  background: var(--green); color: white; border-color: var(--green);
}
.nav.scrolled .lang-toggle { border-color: rgba(0,0,0,0.15); }
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__burger span { display: block; width: 22px; height: 1.5px; background: var(--dark); transition: 0.3s; }

/* ── 1+2. HERO unificado — imagen completa sin recorte ───────── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Ratio exacto de la imagen (2800×3734) → el contenedor siempre
     tiene las mismas proporciones que la foto. background-size: cover
     la rellena sin recortar, y top/right en % apuntan al mismo
     píxel de la imagen en cualquier tamaño de viewport. */
  aspect-ratio: 2800 / 3734;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: url('../assets/shutterstock_245170048.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
}

/* Definición de diccionario — aparece en el cielo al hacer scroll */
.hero__definition {
  position: absolute; z-index: 3;
  top: clamp(27%, calc(32% - (1500px - 100vw) * 0.06), 32%);
  right: clamp(15%, calc(22% - (1500px - 100vw) * 0.03), 22%);
  max-width: clamp(200px, 20%, 380px);
  /*line-height: clamp(0.9, calc(0.85 + 0.45 * (100vw - 400px) / 900), 1.35);*/
  line-height: 1.1;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  pointer-events: none;
  text-shadow: 0 1px 6px rgba(0,0,0,0.18);
}
.hero__definition.visible {
  opacity: 1;
  transform: translateY(0);
}
.hero__def-word {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 1.6vw, 1.8rem); font-weight: 400;
  color: var(--green);
  margin-bottom: 0.3rem;
}
.hero__def-meta {
  font-size: clamp(0.52rem, 0.8vw, 0.95rem); color: rgba(255,255,255,0.55);
  margin-right: 0.4rem;
}
.hero__def-text {
  display: inline;
  font-size: clamp(0.62rem, 0.8vw, 0.95rem); font-weight: 300;
  color: rgba(255,255,255,0.75);
}
.hero__def-source {
  display: block;
  margin-top: 0.6rem;
  font-size: clamp(0.56rem, 0.62vw, 0.72rem); font-weight: 300;
  color: rgba(2, 70, 4, 0.576);
  font-style: italic;
  letter-spacing: 0.04em;
}

.hero__text {
  position: relative; z-index: 2;
  padding: 14vw 14% 2rem 4%;
  text-align: right;
}
.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: max(3rem, 10vw);
  font-weight: 400; font-style: italic;
  color: var(--dark);
  line-height: 0.88;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}
.hero__name {
  font-size: max(0.88rem, 1.98vw);
  font-weight: 300; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
}

/* Frase flotante sobre la foto */
.hero__floating-phrase {
  position: absolute; z-index: 3;
  bottom: 3%;
  left: 32%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}

/* DESIGN LOGIC BUILD — barra inferior */
.hero__logic {
  position: relative; z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  padding: 2rem 5% 4%;
  width: 100%;
}
.hero__logic-left {}
.design-logic__headline {
  display: flex; flex-direction: column;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700; line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--dark);
}
.dl-word {
  display: block;
  opacity: 0; transform: translateX(-30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.dl-word.visible { opacity: 1; transform: none; }

.hero__logic-phrase {
  font-family: 'Playfair Display', serif;
  font-size: max(1.3rem, 5.24vw);
  font-weight: 400; line-height: 1.3;
  color: var(--dark);
}
.hero__logic-phrase em { font-style: italic; color: var(--green); }
.hero__logic-sub {
  font-size: max(0.78rem, 1.1vw);
  color: var(--mid); font-weight: 300;
  letter-spacing: 0.04em;
  margin-top: 0.8rem;
}

.design-logic__right {
  max-width: 280px;
  display: flex; flex-direction: column; gap: 0.5rem;
  font-size: 0.9rem; color: var(--mid); line-height: 1.7;
  text-align: right;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s 0.5s var(--ease), transform 0.8s 0.5s var(--ease);
}
.design-logic__right.visible { opacity: 1; transform: none; }

/* ── 3. ESCALERA — ÍNDICE ────────────────────────────────────── */
.stairs {
  position: relative;
  height: 85vh; min-height: 500px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.stairs__bg {
  position: absolute; inset: 0;
  background-image: url('../assets/shutterstock_2346166727.webp');
  background-size: cover;
  background-position: center 55%;
  transform: scale(1.04);
  will-change: transform;
}
.stairs__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(244,239,230,0.3) 0%,
    rgba(244,239,230,0.15) 50%,
    rgba(0,0,0,0.3) 100%);
}
.stairs__steps {
  position: absolute; z-index: 2;
  right: 4rem;
  top: 22%;
  bottom: 42%;
  width: 26%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
}
.stair {
  display: block;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(26,26,26,0.2);
  opacity: 0; transform: translateX(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), padding-left 0.3s;
}
.stair.visible { opacity: 1; transform: none; }
.stair:hover { padding-left: 0.5rem; }
.stair__label {
  font-size: clamp(0.95rem, 1.85vw, 1.25rem);
  font-weight: 400;
  color: rgba(26,26,26,0.85);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.stair:hover .stair__label { color: var(--dark); }
.stairs__index {
  position: absolute; z-index: 2;
  left: 0; right: 0; bottom: 0.25rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20vw;
  color: rgba(244,239,230,0.18);
  text-align: center;
  line-height: 0.85;
  letter-spacing: 0.2em;
  pointer-events: none;
  user-select: none;
}

/* ── PROJECTS WRAPPER ────────────────────────────────────────── */
.projects {
  padding-bottom: 4rem;
}

/* ── VENTANA CANARIA — foto real con transparencia ───────────── */
/*
  background-size fija al ancho del frame (--win-w).
  Cada mitad (la mitad del ancho) muestra su lado de la imagen:
    left  → background-position-x: left  → px 0 … win-w/2
    right → background-position-x: right → px win-w/2 … win-w
  La PNG tiene fondo transparente → la pared de alrededor
  desaparece y la ventana flota sobre el fondo de la página.
  filter:drop-shadow sigue el contorno real del pixel opaco.
*/
/*
  window_exact.png: 961×1468 px, ratio 1.527
  A --win-w=280px → altura natural = 280 × (1468/961) = 428px
  El frame tiene exactamente esas dimensiones → el negro del
  interior coincide 1:1 con el hueco de la ventana.
*/
:root {
  --win-w: 370px;
  --win-h: 559px;  /* +20% sobre original */
}


.window-wrap {
  display: flex; justify-content: center;
  padding: 6rem 0 4rem;
}

.window {
  width: var(--win-w);
  /* drop-shadow sigue el contorno real de la PNG */
  filter: drop-shadow(0 10px 28px rgba(0,0,0,0.24));
}

.window__frame {
  display: flex;
  width: var(--win-w);
  height: var(--win-h);
  position: relative;
}

/* — Shutters: cada mitad muestra su lado de la PNG — */
.window__shutter {
  flex: 1;
  background-image: url('../assets/windows_transp.png');
  /* ancho exacto del frame → cada half (140px) ve su mitad */
  background-size: var(--win-w) var(--win-h);
  background-repeat: no-repeat;
  background-position-y: top;
  transition: transform 1.1s var(--ease);
  transform-style: preserve-3d;
  position: relative; z-index: 2;
}
.window__shutter--left {
  background-position-x: left;
  transform-origin: left center;
}
.window__shutter--right {
  background-position-x: right;
  transform-origin: right center;
}
.window.open .window__shutter--left  { transform: perspective(1000px) rotateY(-82deg); }
.window.open .window__shutter--right { transform: perspective(1000px) rotateY(82deg); }

/* — Interior: transparente → negro al abrir — */
.window__interior {
  position: absolute; inset: 0;
  background: transparent;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.4rem; z-index: 1;
  transition: background 0.15s 0s;   /* cierre: inmediato */
}
.window.open .window__interior {
  background: #0b0b0b;
  transition: background 0.35s 0.55s; /* apertura: delay */
}

.window__num {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 1.1rem;
  color: rgba(255,255,255,0.3); letter-spacing: 0.12em;
  opacity: 0; transition: opacity 0.4s 0.85s;
}
.window__label {
  font-size: 1.13rem; font-weight: 400;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.16em; text-align: center;
  padding: 0 1.2rem; line-height: 1.5;
  opacity: 0; transition: opacity 0.4s 0.95s;
}
.window.open .window__num,
.window.open .window__label { opacity: 1; }

/* — Alféizar — */
.window__sill {
  height: 12px;
  background: #286030;
  border-radius: 0 0 3px 3px;
}

/* — Puerta cerrada en contact — */
.door {
  width: var(--win-w); margin: 4rem auto 2rem;
  position: relative; z-index: 2;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,0.45));
}
.door__img {
  width: var(--win-w);
  height: var(--win-h);
  background-image: url('../assets/windows_transp.png');
  background-size: var(--win-w) var(--win-h);
  background-repeat: no-repeat;
  background-position: top left;
}
.door__sill {
  height: 12px; background: #286030;
  border-radius: 0 0 3px 3px;
}

/* ── GALERÍA — CARTELES COLGADOS ─────────────────────────────── */
.gallery {
  position: relative;
  max-width: 1100px; margin: 0 auto;
  padding: 0 3rem 2rem;
}
.gallery__caption {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 2.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(26, 26, 26, 0.4);
  text-shadow:
    1px 3px 6px rgba(0,0,0,0.10),
    3px 7px 18px rgba(0,0,0,0.06);
  pointer-events: none;
  margin: 0;
  user-select: none;
}
.gallery__caption--campaign {
  /* posición individual de "campaign designs" */
  left: 50%;
  top: 86%;
}
.gallery__caption--seasonal {
  /* posición individual de "seasonal visuals" */
  left: 76%;
  top: 43.5%;
}

/* Colgados (campaign) */
.gallery__hanging {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5rem;
  padding-top: 2rem;
  position: relative;
}
.gallery__rope {
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 100vw; height: 70px;
  pointer-events: none;
}
.hanging-item {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; max-width: 320px;
  transition: transform 0.4s var(--ease);
}
.hanging-item:hover { transform: rotate(-1.5deg) translateY(-6px) scale(1.05); }

.poster {
  display: block; width: 100%;
}

/* Galería seasonal — capas apiladas en el mismo canvas */
.gallery__seasonal {
  position: relative;
  max-width: 920px;
  aspect-ratio: 8 / 9;   /* mismo ratio que los PNG: 4800×5400 */
  /*margin: 0 auto 3rem;*/
  margin-top: 6rem;
  margin-right: auto;
  margin-bottom: 3rem;
  margin-left: -12rem;
  transition: transform 0.5s var(--ease);
  transform-origin: center center;
}
.gallery__seasonal:hover {
  transform: scale(1.04);
}
.seasonal-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;   /* no recorta — respeta la transparencia */
  display: block;
}

/* ── CLOTHESLINE ─────────────────────────────────────────────── */
.clothesline {
  position: relative;
  overflow: hidden;
  padding: 5rem 3rem 6rem;
}
/* Cuerda SVG curva — sustituye al div recto */
.clothesline__rope {
  position: absolute;
  top: 2rem; left: 0; right: 0;
  width: 100%; height: 70px;
  pointer-events: none;
}
.clothesline__row {
  display: flex; justify-content: space-around; align-items: flex-start;
  gap: 2rem;
  position: relative; z-index: 3;
  max-width: 1100px; margin: 0 auto;
  /* sube las camisetas para que la percha toque la cuerda */
  margin-top: -1.5rem;
  padding-top: 0;
}
.tshirt {
  display: flex; align-items: flex-start; flex: 1; max-width: 420px;
  transform-origin: top center;
}
.clothesline__row .tshirt:nth-child(1) { margin-top: -0.5rem; }
.clothesline__row .tshirt:nth-child(2) { margin-top: 0.2rem; }
.clothesline__row .tshirt:nth-child(3) { margin-top: -0.5rem; }
.tshirt:hover { animation: swing 0.7s ease-in-out; }
@keyframes swing {
  0%,100% { transform: rotate(0deg); }
  30% { transform: rotate(-3deg); }
  70% { transform: rotate(3deg); }
}
/* ráfaga de viento: empuja de izquierda a derecha y oscila hasta parar */
@keyframes windGust {
  0%   { transform: rotate(0deg); }
  14%  { transform: rotate(28deg); }
  29%  { transform: rotate(28deg); }
  46%  { transform: rotate(-10deg); }
  60%  { transform: rotate(6deg); }
  73%  { transform: rotate(-3deg); }
  86%  { transform: rotate(1deg); }
  100% { transform: rotate(0deg); }
}
.tshirt.wind { animation: windGust 2.8s cubic-bezier(0.25,0.46,0.45,0.94); }
.tshirt__img {
  display: block; width: 100%;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.18));
}


/* ── CASE STUDY ─────────────────────────────────────────────── */
.case-study {
  max-width: 1680px; margin: 0 auto;
  padding: 5rem 2rem 7rem;
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  gap: 5rem; align-items: center;
}
.case-study__meta { display: flex; flex-direction: column; gap: 1.5rem; }
.case-study__meta h4 {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 1.35rem;
  color: var(--green); margin-bottom: 0.25rem;
}
.case-study__meta p { font-size: 1.2rem; color: var(--mid); line-height: 1.5; }
.case-study__icon {
  font-size: 4rem; color: rgba(0,0,0,0.06);
  font-weight: 700; font-family: sans-serif;
  line-height: 1;
}

/* Screens */
.case-study__screens { position: relative; }
.case-study__pc {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,0.22));
}
.screen--laptop { width: 100%; position: relative; }
.screen--laptop .screen__display {
  width: 100%; aspect-ratio: 16/10;
  background: #1a1a2e;
  border: 5px solid #2a2a3a;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  display: flex; align-items: stretch;
}
.screen--laptop .screen__content { width: 100%; padding: 6px; }
.screen__ui { display: flex; flex-direction: column; gap: 4px; height: 100%; }
.screen__ui-nav { height: 10px; background: rgba(255,255,255,0.06); border-radius: 2px; }
.screen__ui-hero { flex: 1; background: rgba(255,255,255,0.04); border-radius: 2px; }
.screen__ui-row { display: flex; gap: 4px; }
.screen__ui-row > div { flex: 1; height: 20px; background: rgba(255,255,255,0.06); border-radius: 2px; }
.screen__stand {
  height: 12px; background: #252535;
  margin: 0 15%; border-radius: 0 0 2px 2px;
}
.screen__base {
  height: 8px; background: #2a2a3a;
  border-radius: 4px; margin: 0 5%;
}
.screen--phone {
  position: absolute; right: -36px; bottom: 16px;
  width: 26%;
}
.screen--phone .screen__display--phone {
  aspect-ratio: 9/19;
  background: #1a1a2e;
  border: 3px solid #2a2a3a;
  border-radius: 8px;
  overflow: hidden; padding: 6px;
  display: flex; flex-direction: column; gap: 3px;
}
.screen__phone-ui { display: flex; flex-direction: column; gap: 4px; height: 100%; }
.screen__phone-ui > div:first-child { height: 8px; background: rgba(255,255,255,0.08); border-radius: 2px; }
.screen__phone-ui > div:nth-child(2) { flex: 1; background: rgba(255,255,255,0.04); border-radius: 2px; }
.screen__phone-ui > div:last-child { height: 14px; background: rgba(255,255,255,0.06); border-radius: 2px; }

.case-study__info { display: flex; flex-direction: column; gap: 1.5rem; }
.case-study__info p { font-size: 1.32rem; color: var(--mid); line-height: 1.75; }

.case-study__mobile { display: flex; align-items: center; justify-content: center; }
.case-study__mvl {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,0.22));
}

/* ── SYSTEMS: LAVADISPLAY ────────────────────────────────────── */
.lava {
  max-width: 1035px; margin: 0 auto;
  padding: 2.3rem 3.5rem 5.75rem;
}
.lava__header {
  display: flex; align-items: baseline; gap: 1.5rem; margin-bottom: 0.7rem;
}
.lava__header h3 {
  font-family: 'Playfair Display', serif; font-size: 2.3rem; font-weight: 400;
}
.lava__header span { font-family: 'Playfair Display', serif; font-style: italic; font-size: 0.98rem; color: var(--light); }
.lava__desc { font-size: 1.15rem; color: var(--mid); margin-bottom: 2.9rem; line-height: 1.6; }
.lava__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 3px; overflow: hidden;
  margin-bottom: 3rem;
}
.lava__cell {
  background: rgba(244,239,230,0.6);
  padding: 1.75rem; text-align: center;
  backdrop-filter: blur(4px);
}
.lava__cell strong { display: block; font-size: 0.98rem; margin-bottom: 0.4rem; }
.lava__cell span { font-size: 0.86rem; color: var(--light); }
.lava__detail { display: grid; grid-template-columns: 1fr auto; gap: 4rem; align-items: center; }
.lava__text { display: flex; flex-direction: column; gap: 0.85rem; }
.lava__text p { font-size: 1.04rem; color: var(--mid); line-height: 1.7; }
.lava__diagram { display: flex; align-items: center; gap: 1.2rem; }
.ratio {
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(0,0,0,0.55);
  background: rgba(244,239,230,0.75);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  border-radius: 2px;
  font-size: 0.75rem; color: var(--dark); font-weight: 500;
}
.ratio--16 { width: 110px; height: 62px; }
.ratio--9  { width: 62px; height: 110px; }
.ratio__arrow { color: var(--dark); font-size: 1.4rem; opacity: 0.6; }

/* ── DIARY ───────────────────────────────────────────────────── */
.section-diary { padding-bottom: 4rem; scroll-margin-top: 5rem; }
.diary {
  max-width: 1300px; margin: 0 auto;
  padding: 0 3rem 2rem;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.diary__card {
  padding: 2rem 1.75rem;
  background: rgba(244,239,230,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 3px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.diary__card:hover { transform: translateY(-5px); box-shadow: 0 14px 40px rgba(0,0,0,0.09); }
.diary__tag {
  display: inline-block; font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); background: rgba(45,107,58,0.1);
  padding: 0.2rem 0.55rem; border-radius: 2px; margin-bottom: 1rem;
}
.diary__card h3 {
  font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 400;
  line-height: 1.4; margin-bottom: 0.75rem;
}
.diary__card p { font-size: 0.85rem; color: var(--mid); line-height: 1.65; }

/* ── CONTACT ─────────────────────────────────────────────────── */
.contact {
  position: relative;
  background: var(--dark);
  padding-bottom: 0;
  overflow: hidden;
}
.contact__bg {
  position: absolute; inset: 0;
  background-image: url('../assets/shutterstock_2529920503.webp');
  background-size: cover; background-position: center;
  opacity: 1;
}
.contact__overlay {
  position: absolute; inset: 0;
  background: rgba(17,17,17,0.82);
}


.contact__content {
  position: relative; z-index: 2;
  max-width: 560px; margin: 0 auto;
  padding: 0 3rem 4rem;
  text-align: center;
}
.contact__content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400; color: var(--white);
  margin-bottom: 0.75rem;
}
.contact__content p { font-size: 0.9rem; color: rgba(255,255,255,0.45); margin-bottom: 2.5rem; }
.contact__links { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.contact__links a {
  font-size: 0.88rem; color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
  position: relative; padding-bottom: 2px;
  transition: color 0.2s;
}
.contact__links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--green-light);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.contact__links a:hover { color: white; }
.contact__links a:hover::after { transform: scaleX(1); }

.footer {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 3rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 0.75rem; color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
}
.footer__brand {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 1.1rem;
  color: var(--green-light);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */

/* ── 1400px: laptop / pantalla media ────────────────────────── */
@media (max-width: 1700px) {
  :root { --win-w: 320px; --win-h: 483px; }


  .gallery__caption { font-size: 2rem; }
  .gallery__seasonal { max-width: 700px; margin-left: 0; margin-right: auto; }

  .case-study {
    max-width: 100%;
    grid-template-columns: 160px 1fr 180px;
    gap: 3rem; padding: 3rem 2rem 5rem;
  }

  .diary { max-width: 100%; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 0 2rem 2rem; }
}

/* ── 1024px: tablet landscape / laptop pequeño ───────────────── */
@media (max-width: 1024px) {
  :root { --win-w: 280px; --win-h: 424px; }


  .stairs__steps { right: 2rem; width: 35%; }

  .gallery { padding: 0 2rem 2rem; }
  .gallery__caption { font-size: 1.6rem; }
  .gallery__seasonal {
    max-width: 580px;
    margin-left: 0; margin-right: auto;
    margin-top: 3rem;
  }

  .case-study {
    grid-template-columns: 1fr;
    gap: 2rem; padding: 2rem 2rem 4rem;
    text-align: center;
  }
  .case-study__meta { flex-direction: row; flex-wrap: wrap; gap: 2rem; justify-content: center; }
  .case-study__info { text-align: left; }
  .case-study__meta h4 { font-size: 1rem; }
  .case-study__meta p { font-size: 0.9rem; }
  .case-study__info p { font-size: 0.95rem; }

  .clothesline__row { max-width: 100%; }
  .tshirt { max-width: 300px; }

  .diary { grid-template-columns: repeat(2, 1fr); padding: 0 2rem 2rem; }

  .lava { padding: 2rem 2rem 4rem; }
  .lava__grid { grid-template-columns: 1fr; }
  .lava__detail { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── 860px: tablet portrait / phablet ───────────────────────── */
@media (max-width: 860px) {
  :root { --win-w: 240px; --win-h: 362px; }

  /* Fix background-attachment: fixed no funciona en iOS Safari */
  body { background-attachment: scroll; background-size: 180%; }

  /* Nav */
  .nav { padding: 1rem 1.5rem; }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex; flex-direction: column;
    position: fixed; inset: 0; z-index: 99;
    background: rgba(244,239,230,0.97);
    align-items: center; justify-content: center;
    gap: 2rem; font-size: 1.2rem;
  }
  .nav__burger { display: flex; }

  /* Hero */
  .hero__bg { background-position: 80% top; }

  /* Definición — ajustes de layout en móvil */
  .hero__def-word { margin-bottom: 0; }
  .hero__def-source { margin-top: 0.1rem; }

  .hero__logic { padding: 1.5rem 1.5rem 3rem; gap: 1.5rem; }
  .design-logic__right { text-align: left; max-width: 100%; }

  /* Stairs */
  .stairs__steps { right: 1.5rem; width: 42%; top: 15%; bottom: 35%; }
  .stairs__index { font-size: 28vw; }

  /* Windows */
  .window-wrap { padding: 4rem 0 3rem; }

  /* Gallery */
  .gallery { padding: 0 1.5rem 2rem; }
  .gallery__caption { display: none; }
  .gallery__hanging { gap: 1rem; }
  .hanging-item { max-width: 260px; }
  .gallery__seasonal {
    max-width: 480px;
    margin-left: auto; margin-right: auto;
    margin-top: 2rem;
  }

  /* Clothesline */
  .clothesline { padding: 5rem 1.5rem 4rem; overflow: visible; }
  .clothesline__row { max-width: 600px; gap: 1rem; margin-top: -1.3rem; }
  .tshirt { max-width: 220px; }
  .clothesline__row .tshirt:nth-child(1) { margin-top: -0.5rem; }
  .clothesline__row .tshirt:nth-child(3) { margin-top: -0.5rem; }

  /* Case study */
  .case-study { padding: 2rem 1.5rem 4rem; }

  /* Lava */
  .lava { padding: 2rem 1.5rem 4rem; }
  .lava__header h3 { font-size: 1.8rem; }
  .lava__desc { font-size: 0.95rem; }
  .lava__cell strong { font-size: 0.85rem; }
  .lava__text p { font-size: 0.9rem; }

  /* Diary */
  .diary { grid-template-columns: repeat(2, 1fr); padding: 0 1.5rem 2rem; gap: 1rem; }

  /* Contact */
  .contact__content { padding: 0 1.5rem 4rem; }
  .footer { padding: 1.25rem 1.5rem; }
}

/* ── 768px: móvil portrait ───────────────────────────────────── */
@media (max-width: 768px) {
  :root { --win-w: 200px; --win-h: 302px; }

  /* Hero */
  .hero { aspect-ratio: unset; min-height: 100vh; min-height: 110dvh; max-height: none; }
  .hero__bg { background-position: 80% top; }
  .hero__title { font-size: clamp(2.8rem, 10vw, 4.8rem); }
  .hero__name { font-size: clamp(0.65rem, 1.98vw, 0.95rem); letter-spacing: 0.12em; }
  .hero__text { padding: 4.5rem 1.2rem 1.5rem; text-align: right; }
  .hero__logic-phrase { font-size: clamp(1.3rem, 5.24vw, 2.63rem); line-height: 1.3; }
  .hero__logic-sub { font-size: clamp(0.62rem, 1.1vw, 0.78rem); margin-top: 0.4rem; }
  .hero__logic { padding: 1rem 1.5rem 2.5rem; flex-direction: column; gap: 1rem; }
  .design-logic__right { text-align: left; }

  /* Stairs */
  .stairs { height: 60vh; }
  .stairs__bg { background-position: 80% top; }
  .stairs__steps {
    right: 0; width: 52%;
    top: 22%; bottom: auto;
    justify-content: flex-start; gap: 0;
  }
  .stair { padding-right: 0.75rem; }
  .stair { padding: 0.2rem 0; }
  .stair__label { font-size: 0.82rem; }

  /* Windows */
  .window-wrap { padding: 3rem 0 2rem; }
  .window__num { font-size: 0.8rem; }
  .window__label { font-size: 0.82rem; padding: 0 0.6rem; }

  /* Case study */
  .case-study__pc { filter: none; }

  /* Gallery — carteles en fila (3 en pantalla) */
  .gallery { padding: 0 0.25rem 2rem; overflow: visible; }
  .gallery__hanging {
    gap: 0.4rem;
    padding-top: 50px; /* deja espacio para la cuerda SVG de 70px de alto */
    align-items: flex-start;
    justify-content: center;
    transform: translateX(-0.6rem);
  }
  .gallery__rope { display: block; }
  .hanging-item { flex: 1; max-width: 32vw; min-width: 0; }
  .poster { width: 100%; }
  .poster[src*="halloween"] { transform: scale(1.18); transform-origin: top center; }
  /* child(1) = SVG cuerda → los carteles arrancan en child(2) */
  .gallery__hanging .hanging-item:nth-child(2) { margin-top: -20px; } /* Black Friday — extremo izq */
  .gallery__hanging .hanging-item:nth-child(3) { margin-top: -15px; } /* Halloween — centro */
  .gallery__hanging .hanging-item:nth-child(4) { margin-top: -25px; } /* Rebajas — extremo der */

  /* Seasonal */
  .gallery__seasonal {
    max-width: 90vw;
    margin-left: auto; margin-right: auto;
    margin-top: 1.5rem;
  }

  /* Clothesline */
  .clothesline { padding: 3.5rem 0.5rem 3rem; overflow: visible; }
  .clothesline__row { gap: 0.5rem; margin-top: 0rem; }
  .clothesline__rope { display: block; }
  .tshirt { max-width: 30vw; }
  .clothesline__row .tshirt:nth-child(1) { margin-top: -0.5rem; }
  .clothesline__row .tshirt:nth-child(2) { margin-top: 0.5rem; }
  .clothesline__row .tshirt:nth-child(3) { margin-top: -0.5rem; }

  /* Case study */
  .case-study { padding: 1.5rem 1.5rem 3rem; }
  .case-study__meta { flex-direction: column; }
  .case-study__meta h4 { font-size: 0.9rem; }
  .case-study__info p { font-size: 0.88rem; }

  /* Lava */
  .lava__diagram { flex-direction: column; align-items: center; gap: 0.5rem; }
  .ratio__arrow { transform: rotate(90deg); }

  /* Diary — una columna */
  .diary { grid-template-columns: 1fr; padding: 0 1.5rem 2rem; }

  /* Footer */
  .footer { flex-direction: column; gap: 0.5rem; text-align: center; padding: 1.5rem 1rem; }
}
