/* ==========================================================
   SEDA AGENCY — portfolio
   Paleta: #BFD3E0 (cielo) · #D8BFC2 (rosa) · #631124 (vino)
   Tipografías: Pinyon Script + Poppins
   ========================================================== */

:root {
  --sky: #BFD3E0;
  --rose: #D8BFC2;
  --wine: #631124;
  --wine-deep: #4A0C1A;
  --ink: #1A1A1A;
  --ink-soft: #5A5254;
  --paper: #F6F1EC;
  --paper-2: #EEE6E0;
  --line: rgba(26, 26, 26, .12);

  --script: "Pinyon Script", cursive;
  --sans: "Poppins", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* textura sutil de papel */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .3 0 0 0 0 .28 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html.is-locked, html.is-locked body { overflow: hidden; }

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.1; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--wine); color: var(--paper); }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }

.script {
  font-family: var(--script);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--wine);
  /* trazo sutil: la script no se pierde en tamaños medianos/chicos */
  -webkit-text-stroke: var(--script-stroke, .032em) currentColor;
  paint-order: stroke fill;
}

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 32px; height: 1.5px; background: currentColor; flex: none; }
.eyebrow--light { color: rgba(246, 241, 236, .8); justify-content: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
  transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .3s;
  will-change: transform;
}
.btn--wine { background: var(--wine); color: var(--paper); }
.btn--wine:hover { background: var(--wine-deep); box-shadow: 0 12px 30px -12px rgba(99, 17, 36, .6); }
.btn--ghost { border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--wine); }
.btn--light:hover { background: var(--rose); }
.btn--lg { padding: 18px 34px; font-size: 14px; }

/* ---------- Detalles editoriales ---------- */
.label {
  display: inline-block;
  padding: 5px 10px;
  background: var(--paper);
  border: 1px solid var(--ink);
  font-size: 10px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}
.tape {
  position: absolute; z-index: 3;
  top: -12px; left: 50%;
  width: 92px; height: 26px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(216, 191, 194, .78);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  -webkit-mask: linear-gradient(90deg, transparent 0 3px, #000 3px calc(100% - 3px), transparent calc(100% - 3px)),
                repeating-linear-gradient(0deg, #000 0 3px, transparent 3px 5px);
  -webkit-mask-composite: source-over;
}
.tape--r { transform: translateX(-50%) rotate(5deg); background: rgba(191, 211, 224, .85); }
.clip {
  position: absolute; z-index: 3;
  top: -18px; right: 22%;
  width: 16px; height: 46px;
  border: 2px solid #8C8487;
  border-radius: 9px;
}
.clip::after {
  content: ""; position: absolute;
  inset: 6px 3px 12px;
  border: 2px solid #8C8487; border-radius: 6px;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .4s, padding .4s, box-shadow .4s;
}
.nav.is-scrolled {
  background: rgba(246, 241, 236, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding-block: 10px;
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand__script { font-family: var(--script); font-size: 34px; line-height: 1; color: var(--wine); -webkit-text-stroke: .03em currentColor; }
.brand__caps { font-size: 10px; font-weight: 500; letter-spacing: .42em; text-transform: uppercase; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.nav__links a {
  position: relative;
  font-size: 12px; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--wine);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 9px 18px; border: 1px solid var(--wine); border-radius: 999px; color: var(--wine); transition: background .3s, color .3s; }
.nav__cta:hover { background: var(--wine); color: var(--paper); }
.nav__toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav__toggle span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 23px; }
.nav.is-open .nav__toggle span:first-child { top: 20px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px var(--gutter) 90px;
  overflow: hidden;
}
.silk { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.silk__band { opacity: .38; filter: blur(2px); transform-origin: center; animation: silkFloat 14s ease-in-out infinite alternate; }
.silk__line {
  fill: none; stroke: var(--wine); stroke-width: 1.2; opacity: .5;
  stroke-dasharray: 2200; stroke-dashoffset: 2200;
  animation: draw 3.2s .4s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes silkFloat {
  from { transform: translateY(0) scaleY(1); }
  to   { transform: translateY(-26px) scaleY(1.08); }
}

.hero__inner {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(24px, 5vw, 80px);
  align-items: center;
}
.hero__title { display: flex; flex-direction: column; margin: 0 0 26px; }
.hero__script {
  font-family: var(--script);
  font-weight: 400;
  -webkit-text-stroke: .016em currentColor;
  font-size: clamp(120px, 19vw, 300px);
  line-height: .78;
  color: var(--wine);
  margin-left: -.04em;
  padding-top: .12em;
}
.hero__caps {
  font-size: clamp(13px, 1.4vw, 18px);
  font-weight: 500;
  letter-spacing: .9em;
  text-transform: uppercase;
  margin: 14px 0 0 clamp(60px, 9vw, 140px);
}
.hero__lead { max-width: 30em; font-size: clamp(16px, 1.35vw, 19px); color: var(--ink); margin-bottom: 26px; }
.hero__lead em { font-style: normal; font-family: var(--script); font-size: 1.55em; color: var(--wine); line-height: 0; -webkit-text-stroke: .03em currentColor; }
.hero__services { display: flex; flex-wrap: wrap; gap: 10px 18px; max-width: 34em; margin: 0 0 26px; }
.hero__services li { font-size: 12.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); display: flex; align-items: center; gap: 18px; }
.hero__services li:not(:last-child)::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--wine); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__collage { position: relative; aspect-ratio: 1 / 1.02; }
.pin {
  position: absolute; margin: 0;
  background: var(--wine); padding: 10px 10px 12px;
  box-shadow: 0 30px 60px -30px rgba(74, 12, 26, .35), 0 2px 6px rgba(0, 0, 0, .05);
  transition: transform 1.2s var(--ease);
}
.pin img { width: 100%; height: 100%; object-fit: cover; }
.pin .label { position: absolute; bottom: -12px; left: 18px; }
.pin--a { width: 60%; aspect-ratio: 1; left: 0; top: 4%; rotate: -3deg; }
.pin--b { width: 42%; aspect-ratio: 4 / 5; right: 0; top: 0; rotate: 4deg; z-index: 2; }
.pin--c { width: 44%; aspect-ratio: 4 / 5; right: 12%; bottom: 0; rotate: -1.5deg; z-index: 3; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; z-index: 2;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; color: var(--ink-soft);
}
.hero__scroll::after { content: ""; width: 1px; height: 38px; background: linear-gradient(var(--wine), transparent); animation: drip 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- MARQUESINA ---------- */
.ribbon {
  background: var(--rose);
  border-block: 1px solid rgba(99, 17, 36, .2);
  overflow: hidden;
  padding: 14px 0;
  rotate: -1.2deg;
  margin: 10px -20px;
  position: relative; z-index: 2;
}
.ribbon__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 32s linear infinite; }
.ribbon__track span { font-size: clamp(18px, 2.2vw, 26px); font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--wine); white-space: nowrap; }
.ribbon__track span.s { font-family: var(--script); font-size: clamp(30px, 3.6vw, 46px); letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--ink); line-height: 1; }
.ribbon__track i { font-style: normal; color: var(--wine); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(90px, 12vw, 160px) var(--gutter); max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; }
.section__head { margin-bottom: clamp(44px, 6vw, 80px); max-width: 860px; }
.h2 { font-size: clamp(40px, 6.2vw, 92px); font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.h2 .script { font-size: 1.22em; line-height: .8; padding-right: .06em; letter-spacing: 0; --script-stroke: .025em; }
.section__intro {
  margin: 28px 0 0; padding-left: 18px;
  border-left: 2px solid var(--rose);
  font-size: clamp(17px, 1.5vw, 21px); font-weight: 300; line-height: 1.5;
  color: var(--ink-soft); max-width: 32em;
}

/* ---------- TRABAJOS ---------- */
.works__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 4vw, 56px) clamp(18px, 3vw, 40px);
}
.work { position: relative; }
.work { grid-column: span 6; }
.work:nth-child(1) { grid-column: 1 / span 7; grid-row: span 2; }
.work:nth-child(2), .work:nth-child(3) { grid-column: 8 / span 5; }
.work:nth-child(4) { grid-column: 1 / -1; }
.work__hit { position: absolute; inset: 0; z-index: 5; border-radius: 4px; }
.work__media {
  position: relative; overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 4 / 5;
}
.work:nth-child(n+2) .work__media { aspect-ratio: 16 / 10; }
.work:nth-child(4) .work__media { aspect-ratio: 21 / 8; }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .7s var(--ease); }
.work__media-alt { position: absolute; inset: 0; opacity: 0; }
.work:nth-child(1) .work__media { aspect-ratio: 4 / 4.6; }
.work:nth-child(1) .work__media img { object-position: center 30%; }
.work:hover .work__media img { transform: scale(1.04); }
.work:hover .work__media-alt { opacity: 1; }
.work__media--dark { background: #0B0F0C; }
.work__media--sky { background: var(--sky); }
.work__media--rose { background: var(--rose); }
.label--float { position: absolute; top: 16px; left: 16px; z-index: 2; }
.work__meta {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline;
  column-gap: 18px; padding-top: 18px; border-top: 1px solid var(--ink); margin-top: 18px;
}
.work__num { font-size: 12px; font-weight: 500; color: var(--wine); letter-spacing: .1em; }
.work__title { font-size: clamp(26px, 2.8vw, 40px); font-weight: 600; letter-spacing: -.025em; }
.work__kind { grid-column: 2; margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); }
.work__more { grid-column: 3; grid-row: 1; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--wine); white-space: nowrap; }
.work__more i { display: inline-block; font-style: normal; transition: transform .4s var(--ease); }
.work:hover .work__more i { transform: translateX(6px); }

.placeholder {
  position: absolute; inset: 0;
  display: grid; place-content: center; text-align: center; gap: 4px;
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(99, 17, 36, .05) 14px 15px);
}
.placeholder .script { font-size: clamp(60px, 7vw, 96px); line-height: 1; }
.placeholder small { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--wine); opacity: .7; }

/* ---------- SERVICIOS ---------- */
.services__feature {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 80px);
  align-items: end;
  background: var(--wine); color: var(--paper);
  padding: clamp(32px, 5vw, 64px);
  margin-bottom: clamp(40px, 5vw, 64px);
  position: relative; overflow: hidden;
}
.services__feature::after {
  content: ""; position: absolute; right: -120px; top: -160px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 191, 194, .35), transparent 65%);
  pointer-events: none;
}
.services__feature p { color: rgba(246, 241, 236, .82); max-width: 32em; margin: 0; }
.tag { display: inline-block; font-size: 10px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.tag--light { border: 1px solid rgba(246, 241, 236, .5); }
.services__feature-title { font-size: clamp(40px, 5.4vw, 72px); font-weight: 600; margin: 18px 0 18px; letter-spacing: -.035em; }
.services__feature-title .script { color: var(--rose); font-size: 1.3em; line-height: .7; letter-spacing: 0; }
.services__price { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; position: relative; z-index: 1; }
.services__price strong { font-size: clamp(40px, 5vw, 60px); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; }
.services__price small { font-size: 12px; color: rgba(246, 241, 236, .72); max-width: 24em; }
.services__price .btn { margin-top: 20px; }

.services__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.service { padding: 30px clamp(16px, 2vw, 28px) 34px; border-right: 1px solid var(--line); transition: background .5s var(--ease); }
.service:first-child { padding-left: 0; }
.service:last-child { border-right: 0; }
.service:hover { background: rgba(191, 211, 224, .28); }
.service__num { font-family: var(--script); font-size: 40px; color: var(--wine); line-height: 1; -webkit-text-stroke: .03em currentColor; }
.service h3 { font-size: 21px; font-weight: 600; margin: 14px 0 12px; letter-spacing: -.015em; line-height: 1.2; }
.service p { font-size: 14px; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips li { font-size: 11px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }

/* ---------- PROCESO ---------- */
.process { max-width: none; }
.process > * { max-width: var(--max); margin-inline: auto; }
.process__track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; position: relative; padding-top: 14px; }
.process__track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--wine); opacity: .35;
  transform-origin: left; transform: scaleX(var(--p, 0));
  transition: transform 1.6s var(--ease);
}
.process__track.is-in { --p: 1; }
.step {
  position: relative;
  background: #fff;
  padding: 30px 22px 26px;
  box-shadow: 0 30px 60px -34px rgba(74, 12, 26, .38), 0 2px 6px rgba(0, 0, 0, .04);
  rotate: var(--rot, 0deg);
  transition: rotate .6s var(--ease), translate .6s var(--ease);
}
.step:nth-child(1) { --rot: -2deg; }
.step:nth-child(2) { --rot: 1.5deg; translate: 0 18px; }
.step:nth-child(3) { --rot: -1deg; }
.step:nth-child(4) { --rot: 2deg; translate: 0 18px; }
.step:nth-child(5) { --rot: -1.5deg; }
.step:hover { rotate: 0deg; }
.step .tape { top: -13px; width: 76px; }
.step:nth-child(even) .tape { transform: translateX(-50%) rotate(5deg); background: rgba(191, 211, 224, .85); }
.step__n { font-family: var(--script); font-size: 52px; color: var(--wine); line-height: 1; -webkit-text-stroke: .03em currentColor; }
.step h3 { font-size: 21px; font-weight: 600; letter-spacing: -.015em; margin: 10px 0 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.step p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.step:last-child { background: var(--wine); color: var(--paper); }
.step:last-child .step__n { color: var(--rose); }
.step:last-child h3 { border-bottom-color: rgba(246, 241, 236, .25); }
.step:last-child p { color: rgba(246, 241, 236, .78); }

/* ---------- NOSOTRAS ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__photos { position: relative; min-height: 560px; }
.polaroid { position: absolute; margin: 0; width: 58%; background: var(--wine); padding: 12px 12px 18px; box-shadow: 0 30px 60px -30px rgba(74, 12, 26, .35); }
.polaroid--a { left: 0; top: 0; rotate: -4deg; }
.polaroid--b { right: 0; bottom: 0; rotate: 3deg; }
.polaroid__img { aspect-ratio: 4 / 5; display: grid; place-content: center; }
.polaroid__img .script { font-size: 64px; opacity: .55; }
.polaroid__img--sky { background: var(--sky); }
.polaroid__img--rose { background: var(--rose); }
.polaroid img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.polaroid figcaption { padding-top: 12px; font-size: 12px; color: var(--rose); }
.polaroid figcaption strong { display: block; font-size: 16px; font-weight: 500; color: var(--paper); }
/* si el subtítulo queda pegado al nombre al editar, se ve igual que en la otra foto */
.polaroid figcaption strong br { display: none; }
.polaroid figcaption strong span { display: block; font-size: 12px; font-weight: 300; color: var(--rose); }
.about__quote { margin: 0 0 30px; font-size: clamp(30px, 3.8vw, 52px); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; }
.about__quote .script { display: block; font-size: 1.25em; line-height: 1; margin-top: 8px; letter-spacing: 0; --script-stroke: .028em; }
.about__copy > p { color: var(--ink-soft); max-width: 34em; }
.about__words { display: flex; flex-wrap: wrap; gap: 10px 30px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.about__words .script { font-size: 40px; }

/* ---------- COMPROMISOS ---------- */
.promises { padding-top: 0; }
.promises__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.promise { background: var(--paper-2); padding: 30px 26px; border-radius: 2px; }
.promise__icon { color: var(--wine); font-size: 14px; }
.promise h3 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; margin: 14px 0 8px; }
.promise p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ---------- CONTACTO ---------- */
.contact { background: var(--wine); color: var(--paper); position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; left: 50%; top: 40%; width: 900px; height: 900px; translate: -50% -50%;
  background: radial-gradient(circle, rgba(191, 211, 224, .18), transparent 60%);
  pointer-events: none;
}
.contact__inner { position: relative; text-align: center; padding: clamp(100px, 14vw, 180px) var(--gutter) clamp(80px, 10vw, 120px); display: flex; flex-direction: column; align-items: center; }
.contact__title { margin-top: clamp(20px, 3vw, 40px); }
.contact__title .script { --script-stroke: .018em; color: var(--paper); font-size: clamp(100px, 16vw, 230px); line-height: 1.05; display: block; }
.contact__lead { max-width: 28em; margin: 18px 0 34px; color: rgba(246, 241, 236, .88); font-size: clamp(18px, 1.6vw, 22px); font-weight: 300; line-height: 1.5; }
.contact__igs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.contact__note { margin-top: 30px; font-size: 13px; color: rgba(246, 241, 236, .7); letter-spacing: .04em; }
.contact__note strong { color: var(--paper); font-weight: 500; }
.footer {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px;
  padding: 24px var(--gutter) 30px;
  border-top: 1px solid rgba(246, 241, 236, .2);
  font-size: 12px; color: rgba(246, 241, 236, .72);
}
.footer .brand__script { color: var(--paper); font-size: 28px; }
.footer .brand__caps { color: var(--paper); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================
   CASOS
   ========================================================== */
.case-layer { position: fixed; inset: 0; z-index: 80; }
.case-layer__scrim { position: absolute; inset: 0; background: rgba(26, 26, 26, .45); opacity: 0; transition: opacity .5s; }
.case-layer.is-open .case-layer__scrim { opacity: 1; }
.case {
  position: absolute; inset: 0;
  margin-top: 0;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper);
  padding: clamp(70px, 8vw, 110px) var(--gutter) 60px;
  transform: translateY(100%);
  transition: transform .8s var(--ease);
}
.case-layer.is-open .case.is-active { transform: none; }
.case > * { max-width: 1180px; margin-inline: auto; }
.case__close {
  position: sticky; top: 0; z-index: 4;
  display: flex; align-items: center; gap: 10px;
  margin: -40px 0 30px auto; max-width: none;
  width: max-content;
  padding: 10px 18px;
  background: var(--paper); border: 1px solid var(--ink); border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  transition: background .3s, color .3s;
}
.case__close span { font-size: 18px; line-height: 1; }
.case__close:hover { background: var(--ink); color: var(--paper); }
.case__head { margin-bottom: clamp(36px, 5vw, 60px); }
.case__title { font-size: clamp(56px, 10vw, 140px); font-weight: 600; letter-spacing: -.045em; line-height: .95; }
.case__lead { font-size: clamp(18px, 1.7vw, 23px); font-weight: 300; line-height: 1.5; color: var(--ink-soft); max-width: 34em; margin: 22px 0 0; }
.case__title .script { font-size: .62em; font-weight: 400; letter-spacing: 0; margin-left: .1em; }
.case__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 34px 0 0; padding-top: 22px; border-top: 1px solid var(--ink); }
.case__facts dt { font-size: 10px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--wine); margin-bottom: 4px; }
.case__facts dd { margin: 0; font-size: 15px; font-weight: 400; }

.case__hero { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; margin-bottom: clamp(50px, 6vw, 80px); }
.case__hero img { width: 100%; height: 100%; object-fit: cover; }
.case__hero img:first-child { grid-row: span 2; aspect-ratio: 1; }

.case__story { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-bottom: clamp(40px, 5vw, 70px); }
.case__story h3 { font-family: var(--script); font-weight: 400; font-size: 46px; color: var(--wine); line-height: 1; margin-bottom: 14px; -webkit-text-stroke: .03em currentColor; }
.case__story p { color: var(--ink-soft); font-size: 15px; }
.case__story em { font-style: normal; color: var(--wine); font-weight: 500; }

.case__stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--sky); margin-bottom: clamp(60px, 7vw, 100px); }
.case__stats div { padding: 30px; border-right: 1px solid rgba(99, 17, 36, .2); }
.case__stats div:last-child { border-right: 0; }
.case__stats strong { display: block; font-size: clamp(44px, 5vw, 64px); font-weight: 500; color: var(--wine); line-height: 1; letter-spacing: -.03em; }
.case__stats span { font-size: 13px; }

/* ---------- Gestión de la cuenta + resultados ---------- */
.case__account { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: start; margin-bottom: clamp(60px, 7vw, 100px); }
.case__account > * { min-width: 0; }
.plan { margin: 0; }
.plan__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); position: relative; }
.plan__item:first-child { border-top: 1px solid var(--ink); }
.plan dt { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.plan dd { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; text-align: right; }
.ads { display: inline-block; padding: 4px 13px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--ink-soft); color: var(--ink-soft); }
.ads[data-ads="si"] { background: var(--wine); border-color: var(--wine); color: var(--paper); }
.ads[data-ads="—"] { border-style: dashed; }
.ads-note { display: block; margin-top: 6px; font-size: 13px; font-weight: 300; color: var(--ink-soft); }
.account__results { background: var(--sky); padding: clamp(24px, 3vw, 40px); border-radius: 22px; }
.account__results .case__sub::after { background: rgba(99, 17, 36, .25); }
.results__period { margin: -10px 0 8px; font-size: 13px; color: #3d3a3b; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.metric { padding: 18px 0 4px; border-top: 1px solid rgba(99, 17, 36, .22); position: relative; min-width: 0; }
.metric strong { display: block; font-size: clamp(34px, 4.2vw, 54px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; color: var(--wine); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric span { display: block; margin-top: 4px; font-size: 13px; color: #3d3a3b; }

.case__sub { font-size: 13px; font-weight: 600; color: var(--wine); letter-spacing: .26em; text-transform: uppercase; margin-bottom: 22px; display: flex; align-items: center; gap: 16px; }
.case__sub::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.ig-grid { columns: 3; column-gap: 8px; margin-bottom: clamp(60px, 7vw, 100px); }
/* cada imagen conserva su formato (feed, historia, horizontal) */
.ig-grid > * { display: block; width: 100%; height: auto; margin: 0 0 8px; break-inside: avoid; }
.ig-grid > .ph { aspect-ratio: 4 / 5; }
.ig-grid:has(> :nth-child(2):last-child) { columns: 2; }
.ig-grid:has(> :only-child) { columns: 1; }
.ig-grid > img:only-child { width: auto; max-width: 100%; max-height: 88vh; margin-inline: auto; }
.case__block { margin-bottom: 0; }
.case img:not(.pf-brand img, .laptop img) { cursor: zoom-in; }

/* ---------- Ver imagen en grande ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 56px 16px; background: rgba(26, 26, 26, .92); opacity: 0; transition: opacity .3s; cursor: zoom-out; }
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: min(100%, 1400px); max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); width: auto; height: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); cursor: default; }
.lightbox button { position: absolute; color: var(--paper); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; padding: 14px 18px; }
.lightbox__close { top: 8px; right: 8px; }
.lightbox__prev, .lightbox__next { top: 50%; translate: 0 -50%; font-size: 30px !important; letter-spacing: 0 !important; }
.lightbox__prev { left: 4px; }
.lightbox__next { right: 4px; }
.lightbox__count { position: absolute; bottom: 18px; left: 50%; translate: -50%; color: rgba(246, 241, 236, .6); font-size: 12px; letter-spacing: .2em; }
.ph { background: var(--paper-2) repeating-linear-gradient(135deg, transparent 0 14px, rgba(99, 17, 36, .06) 14px 15px); }

.case__duo { display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; margin-bottom: clamp(60px, 7vw, 100px); }
.case__duo-copy p { color: var(--ink-soft); max-width: 30em; }
.case__wide-video { margin-top: 26px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-2); }
.case__duo--dark { background: #0B0F0C; color: var(--paper); padding: clamp(28px, 4vw, 56px); margin-bottom: 18px; }
.case__duo--dark p { color: rgba(246, 241, 236, .75); }
.case__duo--dark .case__sub::after { background: rgba(246, 241, 236, .2); }
.pf-brand img { width: clamp(140px, 18vw, 220px); border-radius: 50%; }

.phone {
  margin: 0; width: clamp(220px, 24vw, 300px);
  padding: 12px; border-radius: 40px;
  background: var(--ink);
  box-shadow: 0 40px 70px -30px rgba(74, 12, 26, .55);
  position: relative;
}
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; translate: -50%; width: 70px; height: 20px; border-radius: 20px; background: var(--ink); z-index: 2; }
.phone video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 30px; background: #2a0710; }

.case__plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 70px; }
.case__plans figure { margin: 0; }
.case__plans img { width: 100%; }
.case__plans figcaption { margin-top: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }

.laptop { margin: 0 auto clamp(50px, 6vw, 80px); max-width: 1000px; }
.laptop__screen { background: var(--ink); padding: 14px 14px 0; border-radius: 16px 16px 0 0; overflow: hidden; }
.laptop__bar { display: flex; align-items: center; gap: 6px; background: #2c2c2c; padding: 8px 12px; border-radius: 6px 6px 0 0; }
.laptop__bar i { width: 9px; height: 9px; border-radius: 50%; background: #555; }
.laptop__bar span { margin-left: 12px; font-size: 11px; color: #aaa; background: #1d1d1d; padding: 2px 14px; border-radius: 10px; }
.laptop__screen img { width: 100%; background: #fff; }
.laptop__base { height: 18px; margin: 0 -5%; background: linear-gradient(#d9d4d1, #b7b0ad); border-radius: 0 0 14px 14px; position: relative; }
.laptop__base::after { content: ""; position: absolute; left: 50%; top: 0; translate: -50%; width: 120px; height: 7px; background: #a59e9b; border-radius: 0 0 8px 8px; }

.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; margin-bottom: 70px; scrollbar-width: thin; scrollbar-color: var(--wine) transparent; }
.carousel img { flex: none; width: auto; height: min(425px, 90vw); max-width: 85vw; object-fit: contain; scroll-snap-align: start; }

.case__next { border-top: 1px solid var(--ink); padding-top: 26px; text-align: right; }
.case__next button { font-size: 14px; letter-spacing: .04em; }
.case__next strong { font-weight: 500; color: var(--wine); }
.case__next button:hover strong { text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  .services__list { grid-template-columns: 1fr 1fr; }
  .service:nth-child(2) { border-right: 0; }
  .service:nth-child(3) { padding-left: 0; }
  .service:nth-child(n+3) { border-top: 1px solid var(--line); }
  .promises__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav__toggle { display: block; z-index: 2; }
  .nav__links {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 26px;
    background: var(--paper);
    opacity: 0; pointer-events: none; transition: opacity .4s;
  }
  .nav.is-open .nav__links { opacity: 1; pointer-events: auto; }
  .nav__links a { font-size: 15px; }
  .nav.is-open { background: transparent; box-shadow: none; }
  .brand { position: relative; z-index: 2; }

  .hero { padding-top: 100px; min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__script { font-size: clamp(120px, 36vw, 220px); }
  .hero__caps { margin-left: 22vw; letter-spacing: .7em; }
  .hero__collage { width: 100%; max-width: 520px; margin: 10px auto 0; }

  .works__grid { grid-template-columns: 1fr; }
  .work:nth-child(n) { grid-column: 1; grid-row: auto; }
  .work:nth-child(4) .work__media { aspect-ratio: 16 / 10; }

  .services__feature { grid-template-columns: 1fr; }

  .process__track { grid-template-columns: 1fr; gap: 34px; max-width: 440px; }
  .process__track::before { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto; transform-origin: top; transform: scaleY(var(--p, 0)); }
  .step:nth-child(n) { translate: none; }
  .step:nth-child(even) { margin-left: 8%; }
  .step:nth-child(odd) { margin-right: 8%; }

  .about__grid { grid-template-columns: 1fr; }
  .about__photos { min-height: 0; aspect-ratio: 1 / 1.05; max-width: 480px; width: 100%; margin: 0 auto; }

  .case__facts, .case__story { grid-template-columns: 1fr; }
  .case__hero { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .case__hero img:first-child { grid-column: span 2; grid-row: auto; }
  .case__hero img:not(:first-child) { aspect-ratio: 1; }
  .case__stats { grid-template-columns: 1fr; }
  .case__stats div { border-right: 0; border-bottom: 1px solid rgba(99, 17, 36, .2); padding: 22px; }
  .case__duo { grid-template-columns: 1fr; justify-items: center; }
  .case__duo-copy { width: 100%; }
  .case__plans { grid-template-columns: 1fr; }
  .case__account { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .services__list { grid-template-columns: 1fr; }
  .service { padding-left: 0 !important; padding-right: 0; border-right: 0; }
  .service:nth-child(n+2) { border-top: 1px solid var(--line); }
  .promises__grid { grid-template-columns: 1fr; }
  .work__meta { grid-template-columns: auto 1fr; }
  .work__more { grid-column: 2; grid-row: auto; margin-top: 10px; }
  .ig-grid { columns: 2; column-gap: 5px; }
  .ig-grid > * { margin-bottom: 5px; }
  .ig-grid:has(> :only-child) { columns: 1; }
  .hero__services { gap: 6px 14px; }
  .hero__services li { gap: 14px; font-size: 11px; }
  .footer { flex-direction: column; align-items: flex-start; }
  .label--float { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .silk__line { stroke-dashoffset: 0; }
}
.case__account--single { grid-template-columns: 1fr; }
.metrics-shots-wrap { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(99, 17, 36, .22); }
.shots__label { margin: 0 0 14px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--wine); }
.metrics-shots { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.metrics-shots > * { height: 230px; width: auto; max-width: 100%; object-fit: contain; background: var(--wine); padding: 6px; border-radius: 14px; box-shadow: 0 18px 34px -20px rgba(74, 12, 26, .45); }
.metrics-shots > *:nth-child(odd) { rotate: -1.2deg; }
.metrics-shots > *:nth-child(even) { rotate: 1.4deg; }
@media (max-width: 560px) { .metrics-shots > * { height: 180px; } }
.case__account--single .metrics { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

/* Partes del bloque que se eligieron no mostrar */
html:not(.ed-on) .case__account [data-show="no"] { display: none; }
html:not(.ed-on) .account__results[data-view="no"],
html:not(.ed-on) .account__results[data-view="numeros"] .metrics-shots-wrap,
html:not(.ed-on) .account__results[data-view="capturas"] .metrics { display: none; }
.account__results[data-view="capturas"] .metrics-shots-wrap { margin-top: 0; padding-top: 0; border-top: 0; }
.account__results[data-view="capturas"] .metrics-shots > * { height: 300px; }

/* ---------- Reels & video (en todos los casos) ---------- */
.case__reels { margin-bottom: clamp(60px, 7vw, 100px); }
.reels__text { color: var(--ink-soft); max-width: 34em; margin: -6px 0 22px; }
.reels { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.reels > video { height: min(520px, 75vh); width: auto; max-width: 100%; border-radius: 16px; background: var(--paper-2); object-fit: contain; }
@media (max-width: 560px) {
  .reels { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .reels > video { height: 62vh; max-width: 88vw; scroll-snap-align: start; flex: none; }
  .reels > video:only-child { height: auto; width: 100%; max-height: 70vh; }
}
html:not(.ed-on) .case__reels[data-show="no"] { display: none; }
