/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f7f3ec;
  --bg-2:      #efe7d8;
  --paper:     #ffffff;
  --ink:       #262520;
  --ink-soft:  #3b392f;
  --ink-mute:  #78725f;
  --sage:      #86b5a6;
  --sage-deep: #57806f;
  --sage-pale: #e4ede7;
  --gold:      #c9a15e;
  --line:      rgba(38, 37, 32, 0.14);

  --serif: "Fraunces", "Iowan Old Style", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

/* Unify mixed-source photography into one consistent "atelier" grade */
.card-media img, .split-media img, .hero-bg img, .break-media img {
  filter: saturate(1.08) contrast(1.04) sepia(0.05) brightness(1.01);
}

/* Subtle paper-grain overlay for warmth across the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.06; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 500; }
em { font-style: italic; color: var(--sage-deep); }
ul { list-style: none; padding: 0; }
::selection { background: var(--sage); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--paper);
  z-index: 9999; border-radius: 8px; font-weight: 500;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--sage-deep);
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--sage-deep);
}
.section-head {
  max-width: 46rem;
  margin-bottom: 2.4rem;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-top: .6rem; }
.section-head p { margin-top: .9rem; color: var(--ink-mute); font-size: 1.05rem; max-width: 42ch; }

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

/* =============================================================
   4. Typography
   ============================================================= */
.italic { font-style: italic; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.8rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: transform .45s var(--ease-out), background .3s var(--ease-out), box-shadow .3s var(--ease-out), color .3s var(--ease-out);
}
.btn-primary {
  background: var(--sage-deep); color: var(--paper);
  box-shadow: 0 10px 24px -10px rgba(87, 128, 111, 0.55);
}
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); }
.btn-ghost {
  border: 1.5px solid var(--line); color: var(--ink);
  background: rgba(255,255,255,0.4);
}
.btn-ghost:hover { border-color: var(--sage-deep); color: var(--sage-deep); transform: translateY(-2px); }
.btn-lg { padding: 1.15rem 2.2rem; font-size: 1.02rem; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { transform: none; }

/* Magnetic target: GSAP owns transform via x/y, CSS only handles color/shadow */
.btn-magnetic { transition: background .3s var(--ease-out), box-shadow .3s var(--ease-out), color .3s var(--ease-out); }

.btn-icon .icon-wa { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.btn-icon .icon-ig { width: 18px; height: 18px; flex-shrink: 0; }

.card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.card-media::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
  pointer-events: none;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease-out), filter .5s var(--ease-out);
}
.card-body { padding: 1.1rem 1.2rem 1.3rem; }
.card-body h3 { font-size: 1.05rem; font-weight: 500; }
.card-tag { display: block; margin-top: .3rem; font-size: .82rem; color: var(--ink-mute); }

.card:hover { transform: translateY(-6px); box-shadow: 0 26px 40px -22px rgba(38,37,32,0.28); }
.card:hover .card-media img { transform: scale(1.08); }

.card--feature { grid-column: span 2; }
.card--feature .card-media { aspect-ratio: 16 / 11; }

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Barra de progreso --- */
.scroll-progress {
  position: fixed; inset-inline: 0; top: 0; z-index: 200;
  height: 2px; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--sage-deep), var(--gold));
  transform-origin: left;
  transition: width .08s linear;
}

/* --- Nav --- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(247, 243, 236, 0.88);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.2rem; color: var(--paper); transition: color .4s var(--ease-out); text-shadow: 0 1px 12px rgba(0,0,0,0.25); }
.nav-brand img { width: 34px; height: 34px; border-radius: 50%; }
.nav-links { display: none; align-items: center; gap: 2rem; font-size: .92rem; font-weight: 500; color: var(--paper); text-shadow: 0 1px 10px rgba(0,0,0,0.22); }
.nav-links a { position: relative; padding-block: .3rem; transition: color .4s var(--ease-out); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: currentColor; transition: right .35s var(--ease-out);
}
.nav-links a:hover::after { right: 0; }
.nav-cta { display: none; }
.nav.is-solid .nav-brand,
.nav.is-solid .nav-links { color: var(--ink); text-shadow: none; }
.nav.is-solid .nav-links a:hover { color: var(--sage-deep); }
@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
}
.nav-toggle {
  display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
  position: relative;
}
@media (min-width: 860px) { .nav-toggle { display: none; } }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; position: absolute; width: 20px; height: 1.5px; background: var(--paper);
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.3));
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out), background .4s var(--ease-out);
}
.nav.is-solid .nav-toggle span,
.nav.is-solid .nav-toggle::before,
.nav.is-solid .nav-toggle::after { background: var(--ink); filter: none; }
.nav-toggle::before { transform: translateY(-6px); }
.nav-toggle::after { transform: translateY(6px); }
.nav-toggle.is-open::before { transform: translateY(0) rotate(45deg); }
.nav-toggle.is-open::after { transform: translateY(0) rotate(-45deg); }
.nav-toggle.is-open span { opacity: 0; }

.nav-mobile {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem 1.6rem;
  display: flex; flex-direction: column; gap: .2rem;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
}
.nav-mobile.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav-mobile a { padding: .8rem .2rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
@media (min-width: 860px) { .nav-mobile { display: none; } }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-top: var(--nav-h);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg img { width: 100%; height: 118%; position: absolute; top: -9%; left: 0; object-fit: cover; object-position: 50% 20%; will-change: transform; }
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(38,37,32,0.14) 0%,
    rgba(38,37,32,0.20) 30%,
    rgba(30,32,27,0.58) 58%,
    rgba(30,32,27,0.84) 100%);
}
.hero-inner { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(3rem, 8vw, 5.5rem); color: var(--paper); }
.hero-kicker {
  font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sage-pale); margin-bottom: 1.1rem; display: block;
}
.hero-title { font-size: clamp(2.6rem, 6.6vw, 5rem); max-width: 16ch; color: var(--paper); }
/* Lighter sage + soft shadow: the deep sage loses contrast over bright beads on small screens */
.hero-title em { color: var(--sage); text-shadow: 0 2px 18px rgba(20,24,20,0.55); }
.hero-title, .hero-sub, .hero-kicker { text-shadow: 0 2px 20px rgba(20,24,20,0.4); }
.hero-sub { margin-top: 1.3rem; font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 46ch; color: rgba(255,255,255,0.86); }
.hero-actions { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: .75rem; }
/* Three actions need to stay comfortable on a phone, so trim the padding
   and let the secondary pair share a row instead of stacking three deep.
   The tighter type also keeps the copy from covering the jewellery. */
@media (max-width: 719px) {
  .hero-actions { margin-top: 1.5rem; }
  .hero-actions .btn-lg { padding: .95rem 1.5rem; font-size: .95rem; }
  .hero-actions .btn-primary { flex: 1 1 100%; justify-content: center; }
  .hero-actions .btn-ghost { flex: 1 1 0; min-width: 0; justify-content: center; }
  .hero-title { font-size: 2.3rem; max-width: 13ch; }
  .hero-sub { margin-top: .9rem; font-size: .98rem; max-width: 34ch; }
  .hero-kicker { font-size: .7rem; margin-bottom: .8rem; }
}
.hero-actions .btn-ghost { border-color: rgba(255,255,255,0.5); color: var(--paper); }
.hero-actions .btn-ghost:hover { border-color: var(--paper); color: var(--paper); background: rgba(255,255,255,0.12); }
.hero-scroll {
  position: absolute; right: clamp(1.25rem, 4vw, 3rem); bottom: 2.2rem;
  writing-mode: vertical-rl; color: rgba(255,255,255,0.7);
  font-size: .78rem; letter-spacing: .1em; display: none; align-items: center; gap: .6rem;
}
.hero-scroll::after { content: ""; width: 1px; height: 46px; background: rgba(255,255,255,0.5); }
@media (min-width: 720px) { .hero-scroll { display: flex; } }

/* --- Manifesto --- */
.manifesto { background: var(--bg); }
.manifesto-grid {
  display: grid; gap: clamp(1.6rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: center;
}
.manifesto p { font-size: clamp(1.2rem, 2.4vw, 1.55rem); font-family: var(--serif); line-height: 1.4; color: var(--ink-soft); }
.manifesto-figure { margin: 0; }
.manifesto-figure img {
  width: 100%;
  /* Cut-out PNG: a soft shadow grounds it on the cream instead of floating flat */
  filter: drop-shadow(0 18px 26px rgba(38, 37, 32, 0.16));
}
@media (min-width: 860px) {
  .manifesto-grid { grid-template-columns: 1fr 1.15fr; }
}

.dropcap {
  float: left;
  font-family: var(--serif);
  font-style: italic;
  font-size: 3.4em;
  line-height: 0.78;
  padding: 0.03em 0.09em 0 0;
  color: var(--sage-deep);
}

/* --- Buscar por tipo (carpetas + modal) --- */
.tipos { background: var(--bg-2); }

.tipos-folders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem 1.1rem;
}
@media (min-width: 700px) {
  .tipos-folders { grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
}

.tipo-folder {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: left;
}

.tipo-folder-media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
}
.tipo-folder-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 5px solid var(--paper);
  box-sizing: border-box;
  filter: saturate(1.08) contrast(1.04) sepia(0.05) brightness(1.01);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.tipo-folder-peek {
  box-shadow: 0 6px 16px rgba(38, 37, 32, 0.16);
}
.tipo-folder-peek:nth-of-type(1) { transform: rotate(-7deg) translate(-3%, 2%); z-index: 1; }
.tipo-folder-peek:nth-of-type(2) { transform: rotate(6deg) translate(3%, 2%); z-index: 2; }
.tipo-folder-front {
  z-index: 3;
  box-shadow: 0 18px 34px -14px rgba(38, 37, 32, 0.4);
}

.tipo-folder:hover .tipo-folder-front,
.tipo-folder:focus-visible .tipo-folder-front { transform: scale(1.035); }
.tipo-folder:hover .tipo-folder-peek:nth-of-type(1),
.tipo-folder:focus-visible .tipo-folder-peek:nth-of-type(1) { transform: rotate(-11deg) translate(-7%, 1%); }
.tipo-folder:hover .tipo-folder-peek:nth-of-type(2),
.tipo-folder:focus-visible .tipo-folder-peek:nth-of-type(2) { transform: rotate(10deg) translate(7%, 1%); }

.tipo-folder-body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  margin-top: 1rem;
}
.tipo-folder-label {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--ink);
  transition: color .3s var(--ease-out);
}
.tipo-folder:hover .tipo-folder-label,
.tipo-folder:focus-visible .tipo-folder-label { color: var(--sage-deep); }
.tipo-folder-count {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-mute);
  white-space: nowrap;
}

/* --- Modal de galería por tipo --- */
.tipos-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 1rem;
}
.tipos-modal[hidden] { display: none; }

.tipos-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 37, 32, 0.72);
  animation: tiposModalFade .3s var(--ease-out);
}

.tipos-modal-panel {
  position: relative;
  width: 100%;
  max-width: 1040px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: 20px;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  animation: tiposModalPop .35s var(--ease-out);
}

.tipos-modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin-left: 1rem;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink-mute);
  font-size: 1.5rem;
  line-height: 1;
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out);
}
.tipos-modal-close:hover { border-color: var(--sage-deep); color: var(--sage-deep); }

.tipos-modal-title {
  clear: both;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  color: var(--sage-deep);
  margin: 0 0 1.4rem;
}

.tipos-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
}
@media (min-width: 600px) { .tipos-modal-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 900px) { .tipos-modal-grid { grid-template-columns: repeat(4, 1fr); } }

body.tipos-modal-open { overflow: hidden; }

@keyframes tiposModalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tiposModalPop {
  from { opacity: 0; transform: scale(.94) translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.tipo-item {
  margin: 0; position: relative;
  border-radius: 14px; overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-2);
  cursor: pointer;
}
.tipo-item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.08) contrast(1.04) sepia(0.05) brightness(1.01);
  transition: transform .6s var(--ease-out);
}
.tipo-item:hover img { transform: scale(1.08); }

/* --- Visor de foto grande (dentro de la galería por tipo) --- */
.tipos-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tipos-lightbox[hidden] { display: none; }

.tipos-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 19, 16, 0.92);
  animation: tiposModalFade .25s var(--ease-out);
}

.tipos-lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 88vw;
  max-height: 84vh;
  animation: tiposModalPop .3s var(--ease-out);
}
.tipos-lightbox-figure img {
  display: block;
  max-width: 88vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  filter: saturate(1.08) contrast(1.04) sepia(0.05) brightness(1.01);
}

.tipos-lightbox-close,
.tipos-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  line-height: 1;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out);
}
.tipos-lightbox-close:hover,
.tipos-lightbox-nav:hover { background: rgba(255, 255, 255, 0.24); border-color: rgba(255, 255, 255, 0.5); }
.tipos-lightbox-nav:disabled { opacity: .25; pointer-events: none; }

.tipos-lightbox-close {
  top: 1.2rem; right: 1.2rem;
  width: 44px; height: 44px;
  font-size: 1.6rem;
}
.tipos-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  font-size: 2rem;
}
.tipos-lightbox-prev { left: 1rem; }
.tipos-lightbox-next { right: 1rem; }
@media (max-width: 640px) {
  .tipos-lightbox-nav { width: 42px; height: 42px; font-size: 1.6rem; }
  .tipos-lightbox-prev { left: .4rem; }
  .tipos-lightbox-next { right: .4rem; }
}

.tipos-lightbox-counter {
  position: absolute;
  bottom: 1.3rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
}

/* --- Editorial break: full-bleed image with quote --- */
.break-section {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: 0;
}
.break-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.break-media img {
  width: 100%; height: 118%; position: absolute; top: -9%; left: 0;
  object-fit: cover;
  /* The source is now a wide crop centred on the piece itself, so a plain
     centred position keeps it in frame at both the near-square mobile band
     and the very wide desktop band — no more guessing a magic offset. */
  object-position: 50% 48%;
  will-change: transform;
}
.break-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(30,32,27,0.66) 0%, rgba(30,32,27,0.32) 50%, rgba(30,32,27,0.5) 100%);
}
.break-inner { color: var(--paper); padding-block: clamp(3.5rem, 10vw, 6rem); max-width: 34rem; }
.break-eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sage-pale); display: block; margin-bottom: 1rem;
}
.break-quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.22; color: var(--paper);
}

/* --- Marquee --- */
.marquee {
  background: var(--sage-deep);
  color: var(--sage-pale);
  overflow: hidden;
  padding-block: 1rem;
  white-space: nowrap;
}
.marquee-track { display: inline-flex; gap: 2.5rem; animation: marqueeScroll 78s linear infinite; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: 1.1rem; letter-spacing: .02em; }
.marquee-track span::after { content: "•"; margin-left: 2.5rem; opacity: .6; font-style: normal; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Catálogo --- */
.catalogo { background: var(--bg); }
.catalogo-block + .catalogo-block { margin-top: clamp(3rem, 6vw, 4.5rem); }
.catalogo-block-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.6rem; flex-wrap: wrap;
}
.catalogo-block-head h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.catalogo-block-head span { color: var(--ink-mute); font-size: .92rem; }

.grid-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 720px) { .grid-bento { grid-template-columns: repeat(3, 1fr); gap: 1.3rem; } }
@media (min-width: 960px) {
  .grid-bento { grid-template-columns: repeat(4, 1fr); }
  .card--feature { grid-row: span 1; }
}
@media (max-width: 959px) { .card--feature { grid-column: span 2; } }

/* --- Ver más --- */
.card--extra { display: none; }
.grid-bento.is-expanded .card--extra {
  display: block;
  animation: cardIn .55s var(--ease-out) both;
}
.grid-bento.is-expanded .card--extra:nth-of-type(n+8)  { animation-delay: .04s; }
.grid-bento.is-expanded .card--extra:nth-of-type(n+10) { animation-delay: .10s; }
.grid-bento.is-expanded .card--extra:nth-of-type(n+12) { animation-delay: .16s; }
.grid-bento.is-expanded .card--extra:nth-of-type(n+14) { animation-delay: .22s; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(22px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.catalogo-more { display: flex; justify-content: center; margin-top: 2rem; }
.catalogo-more .btn { background: rgba(255,255,255,0.6); }
.catalogo-more .btn::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .35s var(--ease-out);
}
.catalogo-more .btn[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }

/* --- Trabajos a medida / Sobre el proyecto (split sections) --- */
.split {
  display: grid; gap: 2.2rem;
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .split--reverse .split-media { order: 2; }
}
.split-media { border-radius: 20px; overflow: hidden; position: relative; }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5 / 6; }

/* Video slot: this clip is a landscape 16:9 short, not a portrait photo, so it
   gets its own ratio instead of inheriting the 5:6 portrait frame — forcing
   a landscape clip into a portrait crop was hiding most of the picture. */
.split-media--video { background: var(--bg-2); }
.split-media--video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04) sepia(0.05) brightness(1.01);
}
.split-media--video .split-caption { padding-inline: 0.1rem; }
.split-caption {
  margin-top: .8rem; font-size: .86rem; color: var(--ink-mute); font-style: italic;
}
.split-text h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.split-text p { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.06rem; max-width: 46ch; }
.split-text .btn { margin-top: 1.6rem; }

@media (min-width: 860px) {
  .medida .split { grid-template-columns: 1.2fr 1fr; }
}

.medida-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 6;
  border-radius: 20px;
  overflow: hidden;
}
.medida-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity .7s var(--ease-soft), transform 1.1s var(--ease-soft);
}
.medida-stack img.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .medida-stack img { transition: opacity .4s linear; transform: none; }
}

.medida { background: var(--bg-2); }
.proyecto { background: var(--bg); }

/* --- Contacto --- */
.contacto {
  background: var(--sage-deep);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.contacto-halo {
  position: absolute; inset: -60% -10% -60% -10%;
  background: radial-gradient(45% 50% at 50% 40%, rgba(255,255,255,0.16), transparent 70%);
  pointer-events: none;
}
.contacto-inner { position: relative; text-align: center; max-width: 40rem; margin-inline: auto; }
.contacto h2 { color: var(--paper); font-size: clamp(2rem, 4.5vw, 3rem); }
.contacto p { margin-top: 1rem; color: rgba(255,255,255,0.85); font-size: 1.08rem; }
.contacto-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.contacto .btn-primary { background: var(--paper); color: var(--sage-deep); box-shadow: 0 14px 30px -12px rgba(0,0,0,0.35); }
.contacto .btn-primary:hover { background: var(--ink); color: var(--paper); }
.contacto .btn-ghost { border-color: rgba(255,255,255,0.5); color: var(--paper); }
.contacto .btn-ghost:hover { border-color: var(--paper); background: rgba(255,255,255,0.12); }
.contacto-note { margin-top: 1.4rem; font-size: .82rem; color: rgba(255,255,255,0.65); }

/* --- Botón flotante de WhatsApp --- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 300;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  /* Brand sage rather than WhatsApp green — the icon carries the recognition,
     and the stock green fought every other colour on the page. */
  background: var(--sage-deep);
  color: var(--bg);
  box-shadow: 0 12px 28px -10px rgba(38,37,32,0.45), 0 2px 8px rgba(38,37,32,0.16);
  transform: translateY(14px) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: transform .45s var(--ease-back), opacity .35s var(--ease-out), box-shadow .3s var(--ease-out);
}
.wa-float.is-in { transform: none; opacity: 1; pointer-events: auto; }
.wa-float:hover { background: var(--ink); box-shadow: 0 16px 34px -10px rgba(38,37,32,0.55); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.wa-float::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(134, 181, 166, 0.65);
  animation: waPulse 3.2s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1);    opacity: .7; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float::before { animation: none; }
}

/* --- Footer --- */
.footer {
  background: var(--ink);
  color: rgba(247,243,236,0.7);
  padding-block: 2.6rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: .6rem; color: var(--paper); font-family: var(--serif); }
.footer-brand img { width: 30px; height: 30px; border-radius: 50%; }
.footer a:hover { color: var(--paper); }
.footer-fine { font-size: .82rem; }

/* =============================================================
   7. Effects (reveals)
   ============================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

.stagger > * { opacity: 0; transform: translateY(30px) scale(0.94); transition: opacity .65s var(--ease-out), transform .65s var(--ease-back); }
.stagger.is-visible > * { opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(1) { transition-delay: .02s; }
.stagger.is-visible > *:nth-child(2) { transition-delay: .08s; }
.stagger.is-visible > *:nth-child(3) { transition-delay: .14s; }
.stagger.is-visible > *:nth-child(4) { transition-delay: .2s; }
.stagger.is-visible > *:nth-child(5) { transition-delay: .26s; }
.stagger.is-visible > *:nth-child(6) { transition-delay: .32s; }
.stagger.is-visible > *:nth-child(7) { transition-delay: .38s; }
.stagger.is-visible > *:nth-child(8) { transition-delay: .44s; }

/* =============================================================
   8. Responsive helpers
   ============================================================= */
@media (min-width: 540px) { .container { padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { padding-inline: 2.5rem; } }

/* =============================================================
   9. Reduced motion (only intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
