/* Coto de la Isleta — capítulos de color tomados de la marisma:
   sal, caño, salicornia en otoño, pinar y marea alta. */

:root {
  --sal: #f2f4f3;
  --sal-2: #e3e7e5;
  --ink: #0b1310;
  --soft: #3d4742;
  --cano: #1c45d4;        /* azul del caño: acción y capítulo */
  --cano-pale: #b9c8ff;
  --salicornia: #b8291f;  /* salicornia roja de otoño */
  --pinar: #0f1f18;       /* pinar de la Isleta */
  --marea: #0a1d4a;       /* pleamar de noche */
  --paper: #ffffff;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-sub: clamp(1.6rem, 1.1rem + 1.6vw, 2.25rem);
  --step-head: clamp(2.2rem, 1.2rem + 5vw, 5.5rem);
  --step-display: clamp(3.6rem, 1rem + 8.4vw, 9.5rem);

  --m: clamp(16px, 3vw, 40px);
  --gap: clamp(16px, 2vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Epilogue", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--sal);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--cano); color: var(--paper); }
:focus-visible { outline: 3px solid var(--cano); outline-offset: 3px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--paper); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: var(--m); top: 12px; transform: translateY(-200%); z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 16px; }
.skip:focus { transform: none; }

/* ---------- tipografía ---------- */
.display { font-weight: 900; font-size: var(--step-display); line-height: .9; letter-spacing: -0.045em; }
.head { font-weight: 900; font-size: var(--step-head); line-height: .92; letter-spacing: -0.04em; }
.lead { font-size: var(--step-lead); line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; }
.small { font-size: var(--step-small); line-height: 1.45; }
.num { font-variant-numeric: tabular-nums; }
.measure { max-width: 34em; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 52px; padding: 0 24px;
  background: var(--cano); color: var(--paper);
  border: 0; border-radius: 0;
  font-weight: 500; font-size: var(--step-body); text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.btn:hover { background: #1236b5; }
.btn:active { transform: translateY(2px) scale(.98); }
.btn--ink { background: var(--ink); }
.btn--ink:hover { background: #24302b; }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: var(--sal-2); }
.btn svg { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.link { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 2px; font-weight: 500; }
.link:hover { text-decoration-thickness: 4px; }

/* ---------- cabecera fija ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--m);
  color: var(--bar-ink, var(--ink));
  transition: color .3s var(--ease), background-color .3s var(--ease), transform .35s var(--ease);
  background: var(--bar-bg, transparent);
}
.bar.is-hidden { transform: translateY(-110%); }
.bar__mark { font-weight: 900; font-size: var(--step-lead); letter-spacing: -0.03em; text-decoration: none; }
.bar__links { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.bar__links a:not(.btn) { font-weight: 500; font-size: 1rem; padding: 6px 0; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: .3em; transition: text-decoration-color .25s var(--ease); }
.bar__links a:not(.btn):hover { text-decoration-color: currentColor; }
.bar .btn { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.bar__menu { display: none; min-height: 44px; padding: 0 16px; background: var(--bar-ink, var(--ink)); color: var(--bar-bg-solid, var(--sal)); border: 0; font-weight: 500; cursor: pointer; }
.sheet { display: none; }

@media (max-width: 900px) {
  .bar__links { display: none; }
  .bar__menu { display: inline-flex; align-items: center; }
  .sheet[data-open="true"] {
    display: flex; flex-direction: column; justify-content: space-between;
    position: fixed; inset: 0; z-index: 60; background: var(--cano); color: var(--paper);
    padding: 80px var(--m) 32px;
  }
  .sheet a { color: var(--paper); text-decoration: none; font-weight: 900; font-size: var(--step-sub); letter-spacing: -0.03em; line-height: 1.15; }
  .sheet__close { position: absolute; top: 14px; right: var(--m); min-height: 44px; padding: 0 16px; background: var(--paper); color: var(--ink); border: 0; font-weight: 500; }
}

/* ---------- capítulos ---------- */
.chapter { position: relative; padding: clamp(80px, 8.5vw, 128px) var(--m); }
.chapter--full { min-height: 92svh; }
.f-sal { background: var(--sal); color: var(--ink); }
.f-paper { background: var(--paper); color: var(--ink); }
.f-cano { background: var(--cano); color: var(--paper); }
.f-red { background: var(--salicornia); color: var(--paper); }
.f-pinar { background: var(--pinar); color: var(--paper); }
.f-marea { background: var(--marea); color: var(--paper); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

/* ---------- 1. portada ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  background: var(--sal); color: var(--ink);
  display: grid; align-items: center;
  padding: 96px var(--m) 64px;
}
.hero__shape {
  position: absolute; z-index: 0;
  width: min(128vh, 1300px); aspect-ratio: 772 / 613;
  left: 52vw; top: 50%; transform: translateY(-50%);
}
.hero__shape svg { width: 100%; height: 100%; overflow: visible; }
.hero__text { position: relative; z-index: 1; max-width: 46vw; }
.hero h1 { font-size: var(--step-display); }
.hero h1 span { display: block; }
.hero h1 .pale { color: var(--cano); }
.hero__sub { margin-top: 36px; max-width: 30em; font-size: var(--step-lead); line-height: 1.35; }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.hero__facts { position: absolute; left: var(--m); bottom: 28px; z-index: 1; display: flex; gap: 32px; font-size: var(--step-small); }
.hero__facts b { display: block; font-size: var(--step-lead); font-weight: 900; letter-spacing: -0.02em; }
.hero__caption { position: absolute; right: var(--m); bottom: 28px; z-index: 1; font-size: var(--step-small); color: var(--paper); background: var(--ink); padding: 6px 10px; }

@media (max-width: 760px) {
  /* En el móvil la portada se apila: texto, la finca entera y los datos. Nada se corta. */
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 104px var(--m) 48px; }
  .hero__text { max-width: none; order: 1; }
  .hero h1 { font-size: min(17vw, 5.5rem); }
  .hero__sub { font-size: var(--step-body); margin-top: 20px; }
  .hero__cta { margin-top: 24px; }
  .hero__shape { order: 2; position: relative; left: auto; top: auto; transform: none; width: 122%; max-width: none; margin: 28px 0 0 -7%; }
  .hero__shape svg { overflow: hidden; }
  .hero__caption { order: 3; position: static; align-self: flex-end; margin-top: 8px; max-width: 100%; background: none; color: var(--soft); padding: 0; text-align: right; }
  .hero__facts { order: 4; position: static; margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hero__facts b { font-size: var(--step-body); }
}

/* ---------- 2. escalera ---------- */
.stairs { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.stairs__text { font-weight: 900; font-size: var(--step-sub); line-height: 1.08; letter-spacing: -0.03em; max-width: none; }
.stairs h2 { font-size: var(--step-head); max-width: 70vw; font-weight: 900; line-height: .9; letter-spacing: -0.045em; margin-bottom: 40px; }
.stairs h2 span { display: block; }
.stairs h2 span + span { color: var(--cano-pale); }
.stairs__text span { display: block; }
.stairs__text span:nth-child(2) { padding-left: 6vw; }
.stairs__text span:nth-child(3) { padding-left: 12vw; color: var(--cano-pale); }
.stairs__text span:nth-child(4) { padding-left: 18vw; }
.stairs__text span:nth-child(5) { padding-left: 24vw; color: var(--cano-pale); }
.stairs__pics { display: grid; gap: 16px; }
.stairs__pics img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.stairs__pics figcaption { font-size: var(--step-small); margin-top: 6px; opacity: .85; }
.stairs__note { margin-top: 48px; max-width: 34em; font-size: var(--step-body); }
.stairs__inner { display: grid; grid-template-columns: 1fr; }
@media (max-width: 900px) {
  .stairs { display: block; min-height: 0; }

  .stairs h2 { font-size: 11vw; max-width: none; }
  .stairs__text { font-size: var(--step-lead); }
  .stairs__text span:nth-child(n) { padding-left: 0; }
  .stairs__text span:nth-child(2) { padding-left: 5vw; }
  .stairs__text span:nth-child(3) { padding-left: 10vw; }
  .stairs__text span:nth-child(4) { padding-left: 15vw; }
  .stairs__text span:nth-child(5) { padding-left: 20vw; }
  .stairs__pics { grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .stairs__note { margin-top: 32px; }
}

/* ---------- 3. 80 años: copias sobre el titular ---------- */
.prints { overflow: hidden; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0 var(--gap); align-items: start; }
.prints > div:first-child { display: contents; }
.prints h2 { grid-column: 1 / -1; }
.prints__note { grid-column: 1; }
.prints__table { grid-column: 2; margin-top: -2vw; }
.prints h2 { font-size: var(--step-display); line-height: .86; letter-spacing: -0.05em; font-weight: 900; }
.prints h2 span { display: block; }
.prints__note { margin-top: 36px; max-width: 24em; }
.prints__table { position: relative; height: min(36vw, 560px); }
.print { position: absolute; width: 21vw; max-width: 340px; background: var(--paper); padding: 8px; transition: transform .25s var(--ease); cursor: zoom-in; border: 0; }
.print img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.print .cap { display: block; text-align: left; color: var(--ink); font-size: var(--step-small); padding: 8px 2px 2px; font-weight: 500; }
.print--a { left: 2%; top: 4%; transform: rotate(-7deg); z-index: 2; }
.print--b { left: 34%; top: 0; transform: rotate(5deg); z-index: 3; }
.print--c { right: 2%; top: 22%; width: 18vw; transform: rotate(-3deg); z-index: 4; }
.print:hover, .print:focus-visible { transform: rotate(0) scale(1.03); z-index: 5; }
@media (max-width: 900px) {
  .prints { grid-template-columns: 1fr; min-height: 0; }
  .prints h2 { font-size: 15vw; }
  .prints__table { grid-column: 1; height: 112vw; margin-top: 32px; }
  .print { width: 52vw; }
  .print--a { left: 0; top: 0; transform: rotate(-5deg); }
  .print--b { left: auto; right: 0; top: 30vw; transform: rotate(4deg); }
  .print--c { width: 40vw; left: 4vw; right: auto; top: auto; bottom: 0; }
}

/* ---------- 4. línea del tiempo ---------- */
.tl__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.tl__stage { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--gap); align-items: start; }
.tl__frame { position: relative; background: var(--ink); aspect-ratio: 1.12; overflow: hidden; touch-action: pan-y; }
.tl__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .6s var(--ease); }
.tl__frame img.is-on { opacity: 1; }
.tl__year { font-weight: 900; font-size: var(--step-display); line-height: .85; letter-spacing: -0.05em; color: var(--cano); }
.tl__title { font-weight: 900; font-size: var(--step-sub); line-height: 1; letter-spacing: -0.03em; margin-top: 20px; }
.tl__text { margin-top: 16px; }
.tl__vuelo { margin-top: 16px; font-size: var(--step-small); color: var(--soft); }
.tl__years { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-top: 12px; }
.tl__years button {
  min-height: 52px; border: 0; background: var(--sal-2); cursor: pointer;
  font-weight: 500; font-size: 1rem; font-variant-numeric: tabular-nums;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.tl__years button:hover { background: #d9dad2; }
.tl__years button:active { transform: scale(.97); }
.tl__years button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tl__play { margin-top: 24px; }
.tl__compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: clamp(64px, 8vw, 120px); align-items: end; }
.tl__compare img { width: 100%; }
.tl__compare figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--soft); }
@media (max-width: 900px) {
  .tl__stage { grid-template-columns: 1fr; }
  .tl__years { grid-template-columns: repeat(4, 1fr); }
  .tl__compare { grid-template-columns: 1fr; }
}

/* ---------- 5. la marea (simulador) ---------- */
.tide__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.tide__intro { margin-top: 24px; max-width: 30em; }
.tide__panel { margin-top: 40px; display: grid; gap: 22px; }
.tide__panel label { font-weight: 500; display: block; margin-bottom: 10px; }
.tide input[type="range"] { width: 100%; height: 44px; accent-color: var(--paper); cursor: pointer; }
.toggles { display: flex; flex-wrap: wrap; gap: 10px; }
.toggle {
  min-height: 48px; padding: 0 18px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: var(--paper); font-weight: 500;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.toggle:hover { background: rgba(255,255,255,.24); }
.toggle:active { transform: scale(.97); }
.toggle[aria-pressed="true"] { background: var(--paper); color: var(--marea); }
.tide__read { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tide__read div { background: rgba(255,255,255,.1); padding: 18px 20px; }
.tide__read b { display: block; font-size: min(var(--step-head), 4.2vw); white-space: nowrap; font-weight: 900; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tide__map { position: relative; }
.tide__map svg { width: 100%; height: auto; display: block; }
.tide__verdict { margin-top: 18px; font-size: var(--step-lead); font-weight: 500; line-height: 1.3; min-height: 3.9em; }
.tide__src { margin-top: 12px; font-size: var(--step-small); opacity: .8; }
@media (max-width: 900px) {
  .tide__grid { grid-template-columns: 1fr; }
  .tide__read div { padding: 14px; }
  .tide__read b { font-size: min(var(--step-head), 8.5vw); }
}

/* ---------- 6. mosaico de cifras ---------- */
.mosaic__title { margin-bottom: 40px; }
.mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; min-height: 66vw; max-height: 900px; margin: 0 calc(var(--m) * -1); }
.mosaic__photo { grid-row: span 2; position: relative; overflow: hidden; }
.mosaic__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.mosaic__photo figcaption { position: absolute; left: var(--m); bottom: 20px; background: var(--ink); color: var(--paper); padding: 6px 10px; font-size: var(--step-small); }
.tile { padding: 28px; display: flex; flex-direction: column; }
.tile b { font-size: var(--step-head); font-weight: 900; line-height: .9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.tile p { margin-top: 14px; max-width: 18em; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; min-height: 0; max-height: none; }
  .mosaic__photo { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .tile { min-height: 50vw; padding: 18px 16px; }
  .tile b { font-size: var(--step-head); }
  .tile p { font-size: var(--step-small); }
}

/* ---------- 6b. la finca hoy ---------- */
.walk__top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap); align-items: end; }
.walk { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 11vw, 190px); gap: 10px; margin-top: 56px; }
.shot { position: relative; padding: 0; border: 0; background: var(--sal-2); overflow: hidden; cursor: zoom-in; text-align: left; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.shot:hover img, .shot:focus-visible img { transform: scale(1.05); }
.shot span { position: absolute; left: 0; bottom: 0; background: var(--paper); color: var(--ink); padding: 8px 12px; font-weight: 500; font-size: var(--step-small); }
.shot--a { grid-column: 1 / span 5; grid-row: span 3; }
.shot--b { grid-column: 6 / span 4; grid-row: span 2; }
.shot--c { grid-column: 10 / span 3; grid-row: span 2; }
.shot--d { grid-column: 6 / span 3; grid-row: span 2; }
.shot--e { grid-column: 9 / span 4; grid-row: span 2; }
.shot--f { grid-column: 1 / span 5; grid-row: span 1; }
@media (max-width: 900px) {
  .walk__top { grid-template-columns: 1fr; }
  .walk { grid-template-columns: 1fr 1fr; grid-auto-rows: 38vw; }
  .shot--a, .shot--f { grid-column: span 2; grid-row: span 1; }
  .shot--b, .shot--c, .shot--d, .shot--e { grid-column: span 1; grid-row: span 1; }
}

/* ---------- 7. mapa ---------- */
.mapsec { display: grid; grid-template-columns: 1fr 1fr; min-height: 92svh; padding: 0; }
.mapsec__map { position: relative; min-height: 92svh; background: #0d1c2e; }
#map { position: absolute; inset: 0; }
.mapsec__panel { padding: clamp(96px, 10vw, 150px) var(--m) 56px; display: flex; flex-direction: column; gap: 28px; }
.layers { display: flex; flex-wrap: wrap; gap: 8px; }
.layers button {
  min-height: 48px; padding: 0 16px; border: 0; cursor: pointer; font-weight: 500;
  background: rgba(255,255,255,.12); color: var(--paper);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.layers button:hover { background: rgba(255,255,255,.22); }
.layers button:active { transform: scale(.97); }
.layers button[aria-pressed="true"] { background: var(--paper); color: var(--marea); }
.zone-info { background: rgba(255,255,255,.08); padding: 24px; min-height: 220px; }
.zone-info h3 { font-weight: 900; font-size: var(--step-sub); letter-spacing: -0.03em; line-height: 1; }
.zone-info .meta { margin-top: 10px; font-weight: 500; color: var(--cano-pale); }
.zone-info p { margin-top: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: var(--step-small); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 18px; height: 12px; display: inline-block; }
.zone-list { display: flex; flex-wrap: wrap; gap: 6px; }
.zone-list button { min-height: 40px; padding: 0 12px; border: 0; cursor: pointer; background: transparent; color: var(--paper); font-weight: 500; text-decoration: underline; text-underline-offset: .2em; }
.zone-list button:hover, .zone-list button[aria-current="true"] { background: var(--paper); color: var(--marea); text-decoration: none; }
.leaflet-container, .leaflet-container * { font-family: var(--font) !important; }
.leaflet-container { background: #0d1c2e; }
.leaflet-control-attribution { font-size: 13px !important; margin: 0 16px 8px 16px !important; padding: 2px 6px !important; }
.mapsec__panel .toggle { align-self: flex-start; }
.leaflet-tooltip.zt { background: var(--ink); color: var(--paper); border: 0; border-radius: 0; box-shadow: none; font-weight: 500; font-size: 14px; padding: 6px 10px; } /* taste-skill-ignore: quita la sombra de Leaflet */
.leaflet-tooltip.zt::before { display: none; }
.leaflet-popup-content-wrapper { border-radius: 0; }
.map-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  /* Móvil: título y capas, el mapa justo debajo y luego la ficha de la laguna */
  .mapsec { display: flex; flex-direction: column; gap: 20px; padding: 88px var(--m) 56px; min-height: 0; }
  .mapsec__panel { display: contents; }
  .mapsec__panel > * { order: 1; }
  .mapsec__map { order: 2; min-height: 0; height: 62svh; margin: 4px calc(var(--m) * -1); }
  .mapsec__panel .toggle, .zone-info, .zone-list, .legend { order: 3; }
}

/* ---------- 8. fases: losas que crecen ---------- */
.grow__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: end; }
@media (max-width: 900px) { .grow__top { grid-template-columns: 1fr; } }
.grow { display: grid; grid-template-columns: 3fr 4fr 5fr; gap: 10px; align-items: end; margin-top: 56px; }
.grow__tile { position: relative; overflow: hidden; }
.grow__tile img { width: 100%; height: 100%; object-fit: cover; }
.grow__tile .badge { position: absolute; left: 16px; top: 16px; background: var(--paper); color: var(--ink); padding: 6px 10px; font-weight: 500; font-size: var(--step-small); }
.grow__tile:nth-child(1) { height: 32vh; min-height: 220px; background: var(--cano); }
.grow__tile:nth-child(2) { height: 46vh; min-height: 300px; background: var(--salicornia); }
.grow__tile:nth-child(3) { height: 62vh; min-height: 380px; background: var(--pinar); }
.grow__legend { display: grid; grid-template-columns: 3fr 4fr 5fr; gap: 10px; margin-top: 20px; }
.grow__legend h3 { font-size: var(--step-lead); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.grow__legend .money { font-size: var(--step-sub); font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.grow__legend p { margin-top: 10px; }
.grow__legend .state { font-weight: 500; }
.budget { margin-top: clamp(64px, 8vw, 110px); width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.budget caption { text-align: left; font-weight: 900; font-size: var(--step-sub); letter-spacing: -0.03em; margin-bottom: 16px; }
.budget th, .budget td { padding: 14px 12px; text-align: right; border-bottom: 1px solid #cfd0c8; }
.budget th:first-child, .budget td:first-child { text-align: left; }
.budget thead th { font-weight: 500; }
.budget tfoot td { font-weight: 900; border-bottom: 0; }
.budget .f1 { background: #dfe6ff; }
.table-wrap { overflow-x: auto; }
.budget__note { margin-top: 14px; font-size: var(--step-small); color: var(--soft); max-width: 70ch; }
@media (max-width: 760px) {
  .grow__top { grid-template-columns: 1fr; }
  .phases { display: flex; flex-direction: column; margin-top: 8px; }
  .grow, .grow__legend { display: contents; }
  .grow__tile { margin-top: 40px; }
  .grow__tile:nth-child(1) { order: 1; } .phase-m:nth-child(1) { order: 2; }
  .grow__tile:nth-child(2) { order: 3; } .phase-m:nth-child(2) { order: 4; }
  .grow__tile:nth-child(3) { order: 5; } .phase-m:nth-child(3) { order: 6; }
  .grow__tile:nth-child(1) { height: 34vw; min-height: 170px; }
  .grow__tile:nth-child(2) { height: 46vw; min-height: 210px; }
  .grow__tile:nth-child(3) { height: 62vw; min-height: 250px; }
  .phase-m { margin-top: 14px; }
  /* Móvil: cada capítulo ocupa una fila y sus tres importes van debajo */
  .budget, .budget tbody, .budget tfoot, .budget thead { display: block; }
  .budget caption { display: block; }
  .budget tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px; padding: 12px 0; border-bottom: 1px solid #cfd0c8; }
  .budget th, .budget td { padding: 2px 0; border: 0; font-size: var(--step-small); text-align: left !important; }
  .budget tr > :first-child { grid-column: 1 / -1; font-size: var(--step-body); font-weight: 500; padding-bottom: 6px; }
  .budget tfoot tr > :first-child { font-weight: 900; }
  .budget .f1 { background: none; color: var(--cano); font-weight: 900; }
  .budget thead tr > :first-child { display: none; }
  .table-wrap { overflow: visible; }
}

/* ---------- 9. el agua de la salina ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.flow__steps { display: grid; gap: 4px; }
.flow__step { position: relative; padding: 22px 24px 22px 0; display: grid; grid-template-columns: var(--w, 30%) 1fr; gap: 24px; align-items: center; transition: transform .3s var(--ease); }
.flow__step:hover { transform: translateX(6px); }
.flow__step > div { display: contents; }
.flow__step h3 { font-weight: 900; font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.05; padding: 18px 16px; color: var(--ink); background: var(--salt-bg, transparent); grid-column: 1; grid-row: 1; position: relative; z-index: 1; }
.flow__step p { grid-column: 2; grid-row: 1; }
.flow__salt { grid-column: 1; grid-row: 1; height: 100%; }
.flow__step:nth-child(1) { --salt-bg: #1c45d4; } .flow__step:nth-child(2) { --salt-bg: #3e63dc; }
.flow__step:nth-child(3) { --salt-bg: #7b93e6; } .flow__step:nth-child(4) { --salt-bg: #c0cbef; } .flow__step:nth-child(5) { --salt-bg: #ffffff; }
.flow__step:nth-child(1) { --w: 18%; } .flow__step:nth-child(1) h3 { color: var(--paper); }
.flow__step:nth-child(2) { --w: 24%; } .flow__step:nth-child(2) h3 { color: var(--paper); }
.flow__step:nth-child(3) { --w: 30%; }
.flow__step:nth-child(4) { --w: 36%; }
.flow__step:nth-child(5) { --w: 42%; }
.flow__step:nth-child(1) .flow__salt { background: #1c45d4; }
.flow__step:nth-child(2) .flow__salt { background: #3e63dc; }
.flow__step:nth-child(3) .flow__salt { background: #7b93e6; }
.flow__step:nth-child(4) .flow__salt { background: #c0cbef; }
.flow__step:nth-child(5) .flow__salt { background: #ffffff; }
.kit { margin-top: clamp(56px, 7vw, 100px); display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 24px 32px; align-items: end; }
.kit span { max-width: 11em; }
.kit b { display: block; font-size: var(--step-sub); white-space: nowrap; font-weight: 900; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.kit span { display: block; margin-top: 10px; }
.flow__fig { margin-top: 40px; background: var(--paper); padding: 16px; }
.flow__fig figcaption { color: var(--ink); font-size: var(--step-small); margin-top: 8px; }
@media (max-width: 1000px) {
  .flow { grid-template-columns: 1fr; }
  .kit { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .flow__step { grid-template-columns: 1fr; gap: 8px; padding: 0 0 16px; }
  .flow__step h3, .flow__salt { grid-column: 1; width: calc(var(--w) * 2); }
  .flow__step p { grid-column: 1; grid-row: 2; }
}

/* ---------- 10. senderos: pestañas y bandas ---------- */
.trails__top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.trails__top h2 span { display: block; }
.trails__top h2 span:first-child { color: var(--soft); }
.trails__body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; margin-top: 56px; }
.tabs { display: grid; gap: 6px; align-content: start; }
.tabs button {
  min-height: 76px; border: 0; cursor: pointer; text-align: left; padding: 10px 16px;
  background: var(--sal-2); color: var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.tabs button:hover { background: #d9dad2; }
.tabs button:active { transform: scale(.98); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tabs b { display: block; font-weight: 500; font-size: var(--step-body); }
.tabs span { font-size: var(--step-small); }
.trail { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gap); }
.trail[hidden] { display: none; }
.trail__bands { display: grid; gap: 4px; align-content: start; }
.band { background: var(--sal-2); padding: 18px 20px; display: grid; grid-template-columns: 9em 1fr; gap: 16px; align-items: baseline; }
.band--km { grid-template-columns: auto 1fr; gap: 24px; }
.band:nth-child(even) { background: #dfe0d8; }
.band dt { font-weight: 500; }
.band dd { margin: 0; }
.band__big { font-weight: 900; font-size: var(--step-sub); letter-spacing: -0.04em; line-height: 1; }
.trail__img { background: var(--paper); padding: 10px; align-self: start; }
.trail__img img { width: 100%; }
.trail__img figcaption { font-size: var(--step-small); margin-top: 8px; color: var(--soft); }
.trails__total { margin-top: 40px; max-width: 40em; }
@media (max-width: 900px) {
  .trails__body { grid-template-columns: 1fr; gap: 20px; }
  .tabs { grid-template-columns: 1fr 1fr; }
  .tabs button { min-height: 64px; }
  .trail { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; gap: 4px; }
  .band--km { grid-template-columns: auto 1fr; align-items: center; }
}

/* ---------- 10b. islas que la marea cubre y descubre ---------- */
.hab__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: end; }
.scene { margin: 56px calc(var(--m) * -1) 0; }
.scene__stage { position: relative; background: #cfe0f2; }
.scene svg { display: block; width: 100%; height: auto; }
.scene__bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding: 24px var(--m); background: var(--paper); color: var(--ink); }
.scene__clock b { display: block; font-size: var(--step-head); font-weight: 900; letter-spacing: -0.04em; line-height: .9; }
.scene__clock span { display: block; margin-top: 6px; font-weight: 900; font-size: var(--step-lead); color: var(--cano); }
.scene__bar p { font-size: var(--step-lead); line-height: 1.3; font-weight: 500; min-height: 2.6em; max-width: 34em; }
.scene__ctrl { display: grid; gap: 10px; min-width: 240px; }
.scene__ctrl .toggle { background: var(--ink); color: var(--paper); }
.scene__ctrl .toggle:hover { background: #24302b; }
.scene__ctrl input { width: 100%; height: 40px; accent-color: var(--cano); cursor: pointer; }
.scene__note { margin-top: 16px; font-size: var(--step-small); color: #c5cec9; max-width: 70ch; }
#roost, #waders, #flyers { transition: opacity .6s var(--ease), transform .9s var(--ease); }
#flyers { transform: translateY(20px); }
#flyers.up { transform: translateY(0); }
.habs { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gap); }
.habs b { display: block; font-size: var(--step-sub); font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; }
.habs li:nth-child(3n+1) b { color: var(--cano-pale); }
.habs span { display: block; margin-top: 12px; }
@media (max-width: 900px) {
  .hab__top { grid-template-columns: 1fr; }
  .scene__bar { grid-template-columns: 1fr; }
  .habs { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .scene { margin-top: 32px; }
  .scene__bar { gap: 14px; padding: 18px var(--m) 22px; }
  .scene__clock { display: flex; align-items: baseline; gap: 14px; }
  .scene__clock span { margin-top: 0; }
  .scene__bar p { font-size: var(--step-body); min-height: 4.5em; }
  .scene__ctrl { grid-template-columns: auto 1fr; align-items: center; min-width: 0; }
}

/* ---------- 11. aves ---------- */
.birds__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap); align-items: end; }
@media (max-width: 900px) { .birds__head { grid-template-columns: 1fr; } }
.bird video { width: 100%; height: 100%; object-fit: cover; display: block; }
.birds { display: grid; grid-template-columns: 5fr 3fr 4fr; grid-template-rows: auto auto; gap: 10px; margin-top: 56px; }
.bird { position: relative; overflow: hidden; margin: 0; }
.bird img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bird:hover img { transform: scale(1.04); }
.bird figcaption { position: absolute; left: 0; bottom: 0; background: var(--paper); color: var(--ink); padding: 10px 14px; }
.bird figcaption b { display: block; font-weight: 900; font-size: var(--step-lead); letter-spacing: -0.02em; }
.bird figcaption i { font-size: var(--step-small); }
.bird--a { grid-row: span 2; min-height: 560px; }
.bird--b, .bird--c { aspect-ratio: 4 / 3; }
.bird--d { grid-column: 2 / span 2; aspect-ratio: 21 / 9; }
@media (max-width: 760px) {
  .birds__head { grid-template-columns: 1fr; }
  .birds { grid-template-columns: 1fr 1fr; }
  .bird--a { grid-column: span 2; grid-row: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .bird--d { grid-column: span 2; aspect-ratio: 16 / 9; }

}

/* ---------- 11b. más vida en cada rincón ---------- */
.life__top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap); align-items: end; }
.life { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); margin-top: 56px; align-items: start; }
.life__tabs { display: grid; gap: 4px; }
.life__tabs button {
  min-height: 56px; border: 0; cursor: pointer; text-align: left; padding: 10px 18px;
  background: var(--sal-2); color: var(--ink); font-weight: 500; font-size: var(--step-body);
  transition: background-color .2s var(--ease), color .2s var(--ease), padding-left .25s var(--ease);
}
.life__tabs button:hover { background: #d6dcd9; padding-left: 24px; }
.life__tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); padding-left: 24px; }
.life__tabs button[data-id="moluscos"] { color: var(--salicornia); }
.life__tabs button[data-id="moluscos"][aria-selected="true"] { background: var(--salicornia); color: var(--paper); }
.hab-panel { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gap); background: var(--paper); }
.hab-panel[hidden] { display: none; }
.hab-panel figure { margin: 0; min-height: 420px; position: relative; overflow: hidden; }
.hab-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: habIn .7s var(--ease); }
@keyframes habIn { from { transform: scale(1.06); opacity: .4; } to { transform: none; opacity: 1; } }
.hab-panel .txt { padding: 28px 28px 28px 0; display: grid; gap: 18px; align-content: start; }
.hab-panel h3 { font-size: var(--step-sub); font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; }
.hab-panel h4 { margin: 0; font-size: var(--step-body); font-weight: 900; color: var(--cano); }
.hab-panel .who { font-size: var(--step-lead); font-weight: 500; line-height: 1.3; }
.life__note { margin-top: 20px; font-size: var(--step-small); color: var(--soft); max-width: 70ch; }
@media (max-width: 1000px) {
  .life__top, .life { grid-template-columns: 1fr; }
  .life__tabs { grid-template-columns: 1fr 1fr; }
  .life__tabs button { min-height: 52px; font-size: var(--step-small); padding: 8px 12px; }
  .hab-panel { grid-template-columns: 1fr; }
  .hab-panel figure { min-height: 0; aspect-ratio: 4 / 3; }
  .hab-panel .txt { padding: 0 20px 24px; }
}

.life__acc { display: none; }
@media (max-width: 1000px) {
  .life { display: none; }
  .life__acc { display: grid; gap: 4px; margin-top: 32px; }
  .acc { background: var(--paper); }
  .acc summary {
    list-style: none; cursor: pointer; min-height: 56px; padding: 14px 52px 14px 16px; position: relative;
    background: var(--sal-2); font-weight: 900; font-size: var(--step-body); letter-spacing: -0.01em;
    transition: background-color .2s var(--ease), color .2s var(--ease);
  }
  .acc summary::-webkit-details-marker { display: none; }
  .acc summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 500; line-height: 1; transition: transform .25s var(--ease); }
  .acc[open] summary { background: var(--ink); color: var(--paper); }
  .acc[open] summary::after { transform: translateY(-50%) rotate(45deg); }
  .acc--alt summary { color: var(--salicornia); }
  .acc--alt[open] summary { background: var(--salicornia); color: var(--paper); }
  .acc figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
  .acc img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .acc .txt { padding: 18px 16px 24px; display: grid; gap: 14px; }
  .acc h4 { margin: 0; font-size: var(--step-small); font-weight: 900; color: var(--cano); }
  .acc .who { font-size: var(--step-body); font-weight: 500; }
}

/* ---------- 11c. la zona para moluscos ---------- */
.crab { display: grid; grid-template-columns: 1fr 1fr; min-height: 92svh; }
.crab__img { margin: 0; position: relative; overflow: hidden; min-height: 420px; }
.crab__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 16% 45%; }
.crab__txt { padding: clamp(80px, 8.5vw, 128px) var(--m); display: grid; gap: 22px; align-content: center; }
.crab__fig { margin: 4px 0 0; max-width: 520px; }
.crab__fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.crab__fig figcaption { font-size: var(--step-small); margin-top: 8px; color: #f6d9d5; }
.crab__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 16px 40px; margin-top: 12px; }
.crab__facts dt { font-size: var(--step-sub); font-weight: 900; letter-spacing: -0.02em; }
.crab__facts dd { margin: 4px 0 0; }
@media (max-width: 900px) {
  .crab { grid-template-columns: 1fr; }
  .crab__img { aspect-ratio: 4 / 3; min-height: 0; }
  .crab__facts { grid-template-columns: 1fr 1fr; }
}

/* ---------- 12. dos esteros, un parque ---------- */
.twin { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.twin__panel { position: relative; min-height: 92svh; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(96px, 10vw, 140px) var(--m) 28px; }
.twin__panel img { position: absolute; inset: auto -15% -10% -15%; width: 130%; height: 72%; object-fit: cover; z-index: 0; }
.twin__panel > *:not(img) { position: relative; z-index: 1; }
.twin__panel h2 { font-size: var(--step-head); font-weight: 900; letter-spacing: -0.04em; line-height: .95; }
.twin__row { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; background: var(--paper); color: var(--ink); padding: 18px 20px; }
.twin__row b { display: block; font-size: var(--step-lead); font-weight: 500; }
.twin__lead { margin-top: 18px; max-width: 24em; }
.bridge { padding: clamp(80px, 9vw, 140px) var(--m); }
.bridge__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap); align-items: center; }
.bridge svg { width: 100%; height: auto; }
@media (max-width: 900px) {
  .twin { grid-template-columns: 1fr; }
  .twin__panel { min-height: 78svh; }
  .bridge__grid { grid-template-columns: 1fr; }
}

/* ---------- 13. lo que gana Chiclana ---------- */
.about__cols { columns: 2; column-gap: 40px; font-size: var(--step-lead); line-height: 1.22; color: var(--soft); text-align: justify; hyphens: auto; }
.about__cols strong { color: var(--ink); font-weight: 500; }
.hl { color: var(--ink); padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl--a { background: #c9d4ff; }
.hl--b { background: #f3c3bd; }
.hl--c { background: #cfe0c9; }
.hl--d { background: #ffffff; }
.about__end { display: inline; background: var(--cano); color: var(--paper); padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; text-decoration: none; }
.about__end:hover { background: var(--ink); }
.benefits { margin-top: clamp(64px, 8vw, 110px); display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 32px; align-items: end; }
.benefits div:first-child b { color: var(--cano); }
.benefits b { display: block; font-weight: 900; font-size: var(--step-head); letter-spacing: -0.04em; line-height: 1; }
.benefits span { display: block; margin-top: 10px; }
@media (max-width: 760px) {
  .about__cols { columns: 1; text-align: left; line-height: 1.3; }
  .benefits { grid-template-columns: 1fr; }
}

/* ---------- 14. equipo ---------- */
.team { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: start; }
.team__names { display: grid; gap: 4px; }
.team__names li { background: rgba(255,255,255,.08); padding: 22px 24px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.team__names b { font-weight: 900; font-size: var(--step-sub); letter-spacing: -0.03em; line-height: 1.05; }
.team__names span { color: #c5cec9; }
.team__more { margin-top: 24px; color: #dbe2de; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } }

/* ---------- 15. preguntas ---------- */
.faq__title { min-height: 40svh; display: flex; align-items: end; padding: 96px var(--m) 40px; }
.faq__title h2 { font-size: var(--step-display); font-weight: 900; letter-spacing: -0.045em; line-height: .9; }
.qa { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: 56px var(--m); }
.qa:nth-of-type(odd) { background: var(--sal); }
.qa:nth-of-type(even) { background: var(--sal-2); }
.qa h3 { grid-column: 1 / span 5; font-weight: 900; font-size: var(--step-lead); letter-spacing: -0.025em; line-height: 1.1; }
.qa div { grid-column: 7 / span 6; }
.qa p + p { margin-top: 12px; }
@media (max-width: 760px) {
  .qa { display: block; padding: 32px var(--m); }
  .qa div { margin-top: 12px; }
  .faq__title { min-height: 30svh; }
}

/* ---------- 16. llamada final ---------- */
.cta { padding: clamp(80px, 9vw, 140px) 0; overflow: hidden; }
.cta__row { display: grid; grid-template-columns: 2fr 8fr 2fr; gap: 12px; margin: 0 -2vw; }
.cta__side { min-height: 380px; overflow: hidden; }
.cta__side img { width: 100%; height: 100%; object-fit: cover; }
.cta__side--b { background: var(--salicornia); }
.cta__main { background: var(--cano); color: var(--paper); padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.cta__main h2 { font-weight: 900; font-size: var(--step-head); letter-spacing: -0.04em; line-height: .95; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.share a, .share button { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; border: 0; cursor: pointer; text-decoration: none; font-weight: 500; background: var(--paper); color: var(--ink); transition: transform .2s var(--ease), background-color .2s var(--ease); }
.share a:hover, .share button:hover { background: var(--sal-2); }
.share a:active, .share button:active { transform: scale(.97); }
.share .primary { background: var(--ink); color: var(--paper); }
.share .primary:hover { background: #24302b; }
.copied { min-height: 1.5em; font-weight: 500; }
@media (max-width: 760px) {
  .cta__row { grid-template-columns: 1fr 1fr; margin: 0 var(--m); }
  .cta__main { grid-column: span 2; padding: 28px; order: -1; }
  .cta__side { min-height: 120px; }
}

/* ---------- 17. pie ---------- */
.foot { background: var(--pinar); color: var(--paper); padding: clamp(64px, 8vw, 110px) var(--m) 32px; }
.blocks { display: flex; align-items: flex-end; gap: 4px; height: 34svh; min-height: 200px; }
.blocks { margin: 0; }
.blocks span { flex: 1; display: grid; place-items: end center; padding-bottom: .04em; font-weight: 900; font-size: clamp(3rem, 12vw, 13rem); line-height: .8; letter-spacing: -0.04em; overflow: hidden; color: var(--pinar); transform-origin: bottom; transition: transform .6s var(--ease); }
.blocks span:nth-child(1), .blocks span:nth-child(3), .blocks span:nth-child(6) { color: var(--paper); }
.blocks span:nth-child(1) { background: var(--cano); height: 88%; }
.blocks span:nth-child(2) { background: var(--sal); height: 70%; }
.blocks span:nth-child(3) { background: var(--salicornia); height: 100%; }
.blocks span:nth-child(4) { background: var(--cano-pale); height: 62%; }
.blocks span:nth-child(5) { background: var(--sal); height: 82%; }
.blocks span:nth-child(6) { background: var(--cano); height: 74%; }
.foot__tag { font-size: var(--step-sub); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 32px; max-width: 24em; }
.foot__cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: 56px; }
.foot__cols nav { grid-column: span 2; }
.foot__cols nav b { display: block; font-weight: 500; margin-bottom: 10px; }
.foot__cols nav a { display: block; text-decoration: none; padding: 4px 0; opacity: .9; font-size: .95rem; }
.foot__cols nav a:hover { opacity: 1; text-decoration: underline; }
.foot__contact { grid-column: 9 / span 4; }
.credits { margin-top: 48px; font-size: var(--step-small); color: #c5cec9; max-width: 75ch; }
.credits a { color: #e4ebe7; }
.foot__last { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; font-size: var(--step-small); }
.foot__last .btn { min-height: 44px; font-size: 1rem; }
@media (max-width: 900px) {
  .foot__cols { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .foot__cols nav, .foot__contact { grid-column: auto; }
  .foot__contact { grid-column: span 2; }
  .blocks { height: 22svh; min-height: 140px; }
}

/* ---------- ver imagen grande ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(6,10,8,.94); display: none; place-items: center; padding: 64px var(--m) 32px; }
.lightbox[data-open="true"] { display: grid; }
.lightbox img { max-height: 82svh; width: auto; max-width: 100%; }
.lightbox p { color: var(--paper); margin-top: 12px; text-align: center; }
.lightbox button { position: absolute; top: 14px; right: var(--m); min-height: 44px; padding: 0 16px; border: 0; background: var(--paper); color: var(--ink); font-weight: 500; cursor: pointer; }

/* ---------- modo presentación (para grabar vídeos) ---------- */
.present-hint { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 70; background: var(--ink); color: var(--paper); padding: 10px 16px; font-size: var(--step-small); display: none; }
body.presenting .bar { transform: translateY(-110%); }
body.presenting .present-hint { display: block; }
body.presenting { scroll-snap-type: y mandatory; }
body.presenting [data-chapter] { scroll-snap-align: start; }

/* ---------- movimiento ---------- */
/* El contenido nunca está oculto: solo sube y se asienta al entrar en pantalla. */
.js-motion .rise:not(.in) { transform: translateY(32px); }
.rise { transition: transform .9s var(--ease), opacity .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js-motion .rise.pre { opacity: .35; }
.no-js .rise { opacity: 1; transform: none; }
.hero__shape .shape-photo { transform-origin: 50% 50%; animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.12) translate(-18px, 10px); } }
.wave { animation: tide 7s ease-in-out infinite alternate; }
@keyframes tide { from { transform: translateY(6px); } to { transform: translateY(-6px); } }
.in-view .mosaic__photo img, .mosaic__photo.in img { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  .hero__shape .shape-photo, .wave { animation: none; }
  .tl__frame img { transition: none; }
  .mosaic__photo img { transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
