/* ==========================================================================
   Prissanto — hoja de estilos
   Marca: Bodoni Moda (display) + Figtree (texto). Crema, magenta, café,
   celeste y amarillo. Sin rojo ni negro puro (brief).
   ========================================================================== */

:root {
  --cream: #f6f1eb;
  --paper: #fbf8f4;
  --ink: #251a16;
  --ink-soft: #4a3c35;
  --muted: #6b5f58;
  --line: #e4dbd1;

  --magenta: #a01b5a;
  --magenta-deep: #7e1346;
  --magenta-soft: #f7dce8;
  --cafe: #7a5236;
  --cafe-soft: #ead9c8;
  --celeste: #a9d3e6;
  --celeste-soft: #dcedf5;
  --amarillo: #e8c25a;
  --amarillo-soft: #f6e6b5;
  --gold: #b69d5b;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --shadow: 0 30px 60px -30px rgba(37, 26, 22, .45);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 6px; }

.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;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px;
  text-decoration: none; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografía de marca ---------- */

.label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--magenta);
  margin: 0 0 18px;
}

.display {
  font-family: var(--display);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.015em;
  margin: 0;
}
.display em,
.serif-italic { font-style: italic; font-weight: 500; color: var(--magenta); }

.h-section { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: 56ch; }

/* ---------- Botones ---------- */

.btn {
  --bg: var(--magenta); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 15px 26px; min-height: 52px;
  border-radius: 999px; border: 1.5px solid var(--bg);
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(160, 27, 90, .6); }
.btn:active { transform: translateY(0); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--cream); box-shadow: none; }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--sm { padding: 10px 18px; min-height: 42px; font-size: 14.5px; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Header / navegación ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 235, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav { display: flex; align-items: center; gap: 24px; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--magenta); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1;
  padding-top: 2px;
}
.brand__word { font-family: var(--display); font-weight: 500; letter-spacing: .28em; font-size: 15px; }

.nav__links { display: flex; align-items: center; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav__links a {
  display: block; padding: 10px 12px; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-soft);
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--ink); background: rgba(37, 26, 22, .06); }

.colorimetria-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 8px 7px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--magenta); background: var(--paper);
  font-weight: 600; font-size: 14.5px; color: var(--magenta-deep);
  position: relative; isolation: isolate; overflow: hidden;
  transition: transform .3s var(--ease);
}
.colorimetria-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: conic-gradient(from 0deg, var(--amarillo-soft), var(--celeste-soft), var(--magenta-soft), var(--cafe-soft), var(--amarillo-soft));
  opacity: .9;
}
.colorimetria-btn:hover { transform: translateY(-1px); }
.colorimetria-btn__dots { display: inline-flex; }
.colorimetria-btn__dots i { width: 10px; height: 10px; border-radius: 50%; margin-left: -3px; border: 1.5px solid var(--paper); }
.colorimetria-btn__dots i:nth-child(1) { background: var(--amarillo); margin-left: 0; }
.colorimetria-btn__dots i:nth-child(2) { background: var(--celeste); }
.colorimetria-btn__dots i:nth-child(3) { background: var(--magenta); }
.colorimetria-btn__dots i:nth-child(4) { background: var(--cafe); }
.badge {
  display: inline-flex; flex-direction: column; align-items: center; line-height: 1;
  padding: 6px 10px; border-radius: 999px; background: var(--magenta); color: var(--paper);
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.badge b { font-weight: 700; }
.badge small { font-size: 8.5px; font-weight: 600; opacity: .85; margin-top: 2px; letter-spacing: .18em; }

.nav__toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 18px; height: 1.6px; background: var(--ink); position: relative;
  transition: transform .3s var(--ease), background .2s;
}
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav-open .nav__toggle span { background: transparent; }
.nav-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed; inset: 74px 0 auto 0; z-index: 49;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 28px;
    display: grid; gap: 14px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
    max-height: calc(100dvh - 74px); overflow-y: auto;
  }
  .nav-open .nav__menu { opacity: 1; transform: none; visibility: visible; }
  .nav__links { flex-direction: column; align-items: stretch; margin: 0; }
  .nav__links a { font-family: var(--display); font-size: 30px; font-weight: 500; color: var(--ink); padding: 8px 0; border-radius: 0; }
  .nav__links a:hover { background: none; color: var(--magenta); }
  .colorimetria-btn { justify-self: start; }
}
@media (min-width: 1081px) {
  .nav__menu { display: flex; align-items: center; gap: 16px; margin-left: auto; }
}

/* ---------- HERO: portada de revista ---------- */

.hero { position: relative; padding-top: 18px; overflow: hidden; }

.hero__issue {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft);
  border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.hero__issue span:nth-child(2) { color: var(--magenta); }

.hero__masthead {
  font-family: var(--display); font-weight: 600; font-variation-settings: "opsz" 40;
  font-size: min(calc((100vw - 2 * var(--gutter)) / 6.4), 200px);
  line-height: .8; letter-spacing: -.035em; text-align: center;
  margin: 18px 0 0; white-space: nowrap; user-select: none;
  color: var(--ink);
}
.hero__masthead span { display: inline-block; transform: translateY(40%); opacity: 0; animation: rise 1s var(--ease) forwards; }
.hero__masthead span:nth-child(2) { animation-delay: .04s; }
.hero__masthead span:nth-child(3) { animation-delay: .08s; }
.hero__masthead span:nth-child(4) { animation-delay: .12s; }
.hero__masthead span:nth-child(5) { animation-delay: .16s; }
.hero__masthead span:nth-child(6) { animation-delay: .20s; }
.hero__masthead span:nth-child(7) { animation-delay: .24s; }
.hero__masthead span:nth-child(8) { animation-delay: .28s; }
.hero__masthead span:nth-child(9) { animation-delay: .32s; }
@keyframes rise { to { transform: none; opacity: 1; } }

.hero__grid {
  display: grid; grid-template-columns: .9fr minmax(380px, 1.4fr) .85fr; gap: clamp(20px, 3vw, 44px);
  align-items: start; position: relative; z-index: 2;
  padding-top: 28px; padding-bottom: 44px;
}

.hero__copy { padding-bottom: 12px; animation: fade-up 1s .35s var(--ease) both; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--magenta);
}
.hero__kicker::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.hero h1 { font-size: clamp(2.3rem, 3.5vw, 3.4rem); margin-bottom: 18px; }
.hero__lede { color: var(--ink-soft); margin: 0 0 26px; max-width: 34ch; font-size: 1.06rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Escenario de fotos en abanico */
.hero__stage {
  position: relative; container-type: inline-size; aspect-ratio: 10 / 9;
  /* solo el abanico sube y se monta sobre el logotipo, como en una portada */
  margin-top: calc(var(--masthead, min(calc((100vw - 2 * var(--gutter)) / 6.4), 200px)) * -0.5);
  perspective: 1200px; animation: fade-up 1.1s .2s var(--ease) both;
}
.story {
  position: absolute; bottom: 0; left: 50%;
  width: 38cqw; aspect-ratio: 643 / 1151;
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
  background: var(--cafe-soft);
  transform-origin: 50% 110%;
  transition: transform .8s var(--ease);
  will-change: transform;
}
.story img { width: 100%; height: 100%; object-fit: cover; }
.story--1 { transform: translateX(-104%) rotate(-7deg) translateY(2%); z-index: 1; }
.story--2 { transform: translateX(-50%) translateY(-3%); z-index: 3; width: 44cqw; }
.story--3 { transform: translateX(4%) rotate(7deg) translateY(2%); z-index: 2; }
.hero__stage:hover .story--1 { transform: translateX(-114%) rotate(-11deg) translateY(1%); }
.hero__stage:hover .story--3 { transform: translateX(14%) rotate(11deg) translateY(1%); }
.hero__stage:hover .story--2 { transform: translateX(-50%) translateY(-7%); }

.sticker {
  position: absolute; z-index: 4; display: grid; place-items: center; text-align: center;
  width: 118px; height: 118px; border-radius: 50%;
  background: var(--amarillo); color: var(--ink);
  font-family: var(--display); line-height: 1; box-shadow: 0 16px 30px -16px rgba(37, 26, 22, .5);
  right: 2%; top: 6%;
  animation: spin-in 1.2s .7s var(--ease) both;
}
.sticker b { display: block; font-size: 42px; font-weight: 700; letter-spacing: -.03em; }
.sticker small { display: block; font-family: var(--sans); font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-top: 4px; }
@keyframes spin-in { from { transform: scale(.4) rotate(-40deg); opacity: 0; } to { transform: rotate(-8deg); opacity: 1; } }

/* Titulares de portada */
.coverlines { list-style: none; margin: 0; padding: 0 0 12px; display: grid; gap: 0; animation: fade-up 1s .5s var(--ease) both; }
.coverlines li { border-top: 1px solid var(--line); }
.coverlines li:last-child { border-bottom: 1px solid var(--line); }
.coverlines a {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: baseline;
  padding: 16px 0; text-decoration: none; transition: padding .3s var(--ease);
}
.coverlines a:hover { padding-left: 8px; }
.coverlines .num { font-family: var(--display); font-weight: 700; font-size: 30px; color: var(--magenta); line-height: 1; min-width: 1.6em; }
.coverlines .t { font-family: var(--display); font-size: 21px; font-weight: 500; line-height: 1.15; }
.coverlines .t em { color: var(--magenta); }
.coverlines .s { grid-column: 2; font-size: 13.5px; color: var(--muted); }

@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Cinta / marquee */
.marquee {
  position: relative; z-index: 3; overflow: hidden;
  background: var(--ink); color: var(--cream);
  border-block: 1px solid var(--ink);
  padding: 14px 0; transform: rotate(-1.2deg) scale(1.02); margin-bottom: 10px;
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span {
  font-family: var(--display); font-style: italic; font-size: clamp(20px, 2.4vw, 30px); white-space: nowrap;
  padding-right: 34px; display: inline-flex; align-items: center; gap: 34px;
}
.marquee__track span::after { content: "✦"; font-style: normal; font-size: .6em; color: var(--amarillo); }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr 1fr; }
  .hero__stage { grid-column: 1 / -1; order: -1; width: min(100%, 620px); justify-self: center; }
}
@media (max-width: 700px) {
  .hero__masthead { margin-top: 14px; }
  .hero__issue span:nth-child(3) { display: none; }
  .hero__grid { grid-template-columns: 1fr; padding-top: 18px; }
  .hero__stage { aspect-ratio: 10 / 9.6; }
  .story { width: 40cqw; }
  .story--2 { width: 46cqw; }
  .story--1 { transform: translateX(-104%) rotate(-7deg) translateY(3%); }
  .story--3 { transform: translateX(4%) rotate(7deg) translateY(3%); }
  .sticker { width: 92px; height: 92px; top: 2%; right: 0; }
  .sticker b { font-size: 32px; }
  .sticker small { font-size: 8px; }
}

/* ---------- Secciones genéricas ---------- */

.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.section--paper { background: var(--paper); }
.section__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head .lede { margin: 18px 0 0; }

/* Reveal al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- +10 prendas reutilizadas ---------- */

.impact { background: var(--magenta); color: var(--paper); overflow: hidden; }
.impact .label { color: var(--amarillo-soft); }
.impact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.impact__big { font-family: var(--display); font-weight: 700; line-height: .8; font-size: clamp(9rem, 24vw, 21rem); letter-spacing: -.05em; margin: 0; display: flex; align-items: flex-start; }
.impact__big sup { font-size: .38em; margin-top: .12em; font-weight: 500; }
.impact__caption { font-family: var(--display); font-style: italic; font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.1; margin: 12px 0 0; }
.impact__facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.impact__facts li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 18px; align-items: baseline; padding: 22px 0; border-top: 1px solid rgba(251, 248, 244, .28); }
.impact__facts li:last-child { border-bottom: 1px solid rgba(251, 248, 244, .28); }
.impact__facts b { font-family: var(--display); font-size: 2.2rem; font-weight: 600; line-height: 1; }
.impact__facts span { color: rgba(251, 248, 244, .86); }
.impact__manifesto { margin: 28px 0 0; font-size: 1.1rem; color: rgba(251, 248, 244, .9); max-width: 46ch; }
.impact__manifesto strong { color: var(--paper); }

@media (max-width: 860px) {
  .impact__grid { grid-template-columns: 1fr; }
  .impact__facts li { grid-template-columns: 6rem 1fr; }
}

/* ---------- Quién soy ---------- */

.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 7vw, 110px); align-items: center; }
.about__visual { position: relative; aspect-ratio: 4 / 5; max-width: 520px; width: 100%; }
.about__frame {
  position: absolute; inset: 0; border-radius: 260px 260px 24px 24px; overflow: hidden;
  background:
    radial-gradient(120% 80% at 20% 10%, var(--amarillo-soft), transparent 60%),
    radial-gradient(90% 70% at 90% 90%, var(--celeste-soft), transparent 60%),
    var(--magenta-soft);
  display: grid; place-items: center;
}
.about__frame img { width: 100%; height: 100%; object-fit: cover; }
.about__monogram {
  font-family: var(--display); font-weight: 600; font-size: clamp(9rem, 20vw, 16rem);
  color: var(--magenta); line-height: 1; opacity: .9;
}
.about__tag {
  position: absolute; left: -14px; bottom: 34px; z-index: 2;
  background: var(--paper); border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow);
  max-width: 250px;
}
.about__tag p { margin: 0; font-family: var(--display); font-style: italic; font-size: 1.2rem; line-height: 1.2; }
.about__tag small { display: block; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--magenta); }
.about__swatch { position: absolute; width: 74px; height: 74px; border-radius: 50%; z-index: 2; box-shadow: 0 10px 22px -12px rgba(37, 26, 22, .5); }
.about__swatch--1 { background: var(--celeste); right: -10px; top: 18%; animation: bob 6s ease-in-out infinite; }
.about__swatch--2 { background: var(--amarillo); right: 12%; top: -16px; width: 46px; height: 46px; animation: bob 7s .5s ease-in-out infinite; }
.about__swatch--3 { background: var(--cafe); right: -26px; top: 36%; width: 34px; height: 34px; animation: bob 5s 1s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-12px); } }

.soon-pill {
  display: inline-flex; align-items: center; vertical-align: middle;
  margin-left: 10px; padding: 6px 11px; border-radius: 999px;
  background: var(--amarillo); color: var(--ink);
  font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; line-height: 1;
}
.about__soon { position: absolute; top: 17%; left: 50%; transform: translate(-50%, 0) rotate(-6deg); margin: 0; padding: 9px 16px; font-size: 12px; box-shadow: 0 12px 24px -14px rgba(37, 26, 22, .55); white-space: nowrap; }

.about__text p { color: var(--ink-soft); margin: 0 0 18px; max-width: 58ch; }
.about__text p.big { font-family: var(--display); font-size: clamp(1.5rem, 2.3vw, 1.9rem); line-height: 1.25; color: var(--ink); }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.values li { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--ink); font-weight: 600; font-size: 14.5px; }
.values li:nth-child(1) { background: var(--amarillo-soft); border-color: transparent; }
.values li:nth-child(2) { background: var(--celeste-soft); border-color: transparent; }
.values li:nth-child(3) { background: var(--magenta-soft); border-color: transparent; }
.values li:nth-child(4) { background: var(--cafe-soft); border-color: transparent; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__visual { max-width: 420px; margin-inline: auto; }
  .about__tag { left: 0; }
}

/* ---------- Personalizaciones ---------- */

.works { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(160px, 17vw, 230px); gap: 16px; }
.work {
  position: relative; border-radius: var(--radius); overflow: hidden; margin: 0;
  background: var(--cafe-soft); isolation: isolate;
}
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work:hover img { transform: scale(1.06); }
.work figcaption {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 22px;
  color: var(--paper);
  background: linear-gradient(to top, rgba(37, 26, 22, .78), rgba(37, 26, 22, 0));
}
.work figcaption small { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; opacity: .9; }
.work figcaption b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1; margin-top: 6px; }
.work figcaption em { font-family: var(--display); font-style: italic; font-size: 1.05rem; display: block; margin-top: 6px; opacity: .92; }
.work--a { grid-column: span 5; grid-row: span 2; }
.work--b { grid-column: span 4; grid-row: span 2; }
.work--c { grid-column: span 3; grid-row: span 2; }
.work--d { grid-column: span 7; }
.work--e { grid-column: span 5; }

.work--type {
  display: flex; flex-direction: column; justify-content: space-between; padding: 26px;
  background: var(--celeste-soft);
}
.work--type.amarillo { background: var(--amarillo-soft); }
.work--type h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1; margin: 0; }
.work--type h3 em { color: var(--magenta); }
.techniques { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.techniques li { font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--paper); }
.work--type p { margin: 0; color: var(--ink-soft); max-width: 40ch; }
.work--type .btn { align-self: flex-start; }

@media (max-width: 960px) {
  .works { grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(150px, 30vw, 230px); }
  .work--a { grid-column: span 6; }
  .work--b, .work--c { grid-column: span 3; }
  .work--d, .work--e { grid-column: span 6; }
}
@media (max-width: 560px) {
  .works { grid-auto-rows: 170px; gap: 12px; }
  .work--b, .work--c { grid-column: span 6; }
  .work--d, .work--e { grid-row: span 2; }
}

/* ---------- Servicios ---------- */

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 30px; border-radius: var(--radius); background: var(--paper);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--magenta-soft); color: var(--magenta); }
.service__icon svg { width: 28px; height: 28px; }
.service h3 { font-family: var(--display); font-weight: 600; font-size: 1.75rem; line-height: 1.05; margin: 6px 0 0; }
.service p { margin: 0; color: var(--ink-soft); }
.service .link { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--magenta); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.service .link:hover { text-decoration: underline; text-underline-offset: 4px; }
.service--soon::after {
  content: "Pronto"; position: absolute; top: 22px; right: 22px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; background: var(--amarillo); color: var(--ink);
}

.service--hero {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 5vw, 64px); background: var(--ink); color: var(--cream); border: 0; overflow: hidden;
}
.service--hero:hover { transform: none; }
.service--hero .label { color: var(--amarillo); }
.service--hero h3 { font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: .95; margin: 0; }
.service--hero h3 em { color: var(--amarillo); }
.service--hero p { color: rgba(246, 241, 235, .82); font-size: 1.1rem; max-width: 46ch; }
.service--hero blockquote {
  margin: 0; font-family: var(--display); font-style: italic; font-size: clamp(1.4rem, 2.3vw, 2rem); line-height: 1.2; color: var(--cream);
  border-left: 3px solid var(--magenta); padding-left: 20px;
}
.service--hero ul { list-style: none; padding: 0; margin: 4px 0 6px; display: grid; gap: 10px; }
.service--hero li { display: flex; gap: 12px; align-items: flex-start; color: rgba(246, 241, 235, .9); }
.service--hero li::before { content: "✦"; color: var(--amarillo); font-size: 13px; margin-top: 4px; }
.jacket { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: center; width: 100%; }
.jacket svg { width: 100%; height: 100%; overflow: visible; }
.jacket .stitch { stroke-dasharray: 6 7; animation: stitch 18s linear infinite; }
@keyframes stitch { to { stroke-dashoffset: -260; } }
.jacket .patch { transform-box: fill-box; transform-origin: center; animation: patch 5s ease-in-out infinite; }
.jacket .patch:nth-of-type(2) { animation-delay: 1.2s; }
.jacket .patch:nth-of-type(3) { animation-delay: 2.4s; }
@keyframes patch { 50% { transform: rotate(-6deg) scale(1.06); } }

@media (max-width: 960px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service--hero { grid-template-columns: 1fr; }
  .jacket { max-width: 300px; order: -1; }
}
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card__cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; }
.post-card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__meta { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--magenta); }
.post-card h3 { font-family: var(--display); font-weight: 600; font-size: 1.65rem; line-height: 1.08; margin: 0; }
.post-card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.post-card__more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.post-card:hover .post-card__more { color: var(--magenta); }

/* Portadas ilustradas (CSS) */
.cover-1 { background: var(--amarillo); }
.cover-1 .word { font-family: var(--display); font-weight: 600; font-size: clamp(3rem, 6vw, 4.6rem); line-height: .9; color: var(--ink); text-align: center; position: relative; z-index: 1; }
.cover-1 .word em { color: var(--magenta); }
.cover-1::before { content: ""; position: absolute; inset: 18px; border: 2px dashed rgba(37, 26, 22, .55); border-radius: 14px; }
.cover-1 .needle { position: absolute; width: 140%; height: 2px; background: var(--magenta); transform: rotate(-24deg); opacity: .65; }

.cover-2 { background: var(--celeste); }
.cover-2 .swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; transform: rotate(-6deg); }
.cover-2 .swatches i { width: clamp(38px, 4.4vw, 56px); aspect-ratio: 1; border-radius: 50%; box-shadow: 0 8px 18px -10px rgba(37, 26, 22, .6); transition: transform .5s var(--ease); }
.post-card:hover .cover-2 .swatches i:nth-child(odd) { transform: translateY(-6px); }
.post-card:hover .cover-2 .swatches i:nth-child(even) { transform: translateY(6px); }

.cover-3 { background: var(--magenta); color: var(--paper); }
.cover-3 .year { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(4.4rem, 9vw, 7rem); line-height: 1; letter-spacing: -.03em; position: relative; z-index: 1; }
.cover-3 .ring { position: absolute; border-radius: 50%; border: 2px solid rgba(251, 248, 244, .4); }
.cover-3 .ring:nth-child(1) { width: 70%; aspect-ratio: 1; }
.cover-3 .ring:nth-child(2) { width: 100%; aspect-ratio: 1; border-color: rgba(232, 194, 90, .55); }

@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } .posts > :last-child { grid-column: 1 / -1; } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact__info p { color: var(--ink-soft); }
.contact__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact__list li { display: flex; gap: 14px; align-items: center; }
.contact__list .ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--magenta-soft); color: var(--magenta); flex: none; }
.contact__list .ic svg { width: 22px; height: 22px; }
.contact__list a { font-weight: 600; text-decoration: none; }
.contact__list a:hover { color: var(--magenta); }
.contact__list small { display: block; color: var(--muted); font-size: 13.5px; }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 14.5px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px;
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--magenta); background: var(--paper); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips legend { font-weight: 600; font-size: 14.5px; margin-bottom: 8px; padding: 0; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { cursor: pointer; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14.5px; font-weight: 500; transition: all .2s; background: var(--cream); }
.chips input:checked + label { background: var(--magenta); border-color: var(--magenta); color: var(--paper); }
.chips input:focus-visible + label { outline: 3px solid var(--magenta); outline-offset: 2px; }
.form__note { font-size: 13.5px; color: var(--muted); margin: 0; }

@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--cream); padding: clamp(64px, 9vw, 110px) 0 32px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__claim { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.02; margin: 18px 0 0; }
.footer__claim em { color: var(--amarillo); }
.site-footer .brand__mark { background: var(--magenta); }
.site-footer h4 { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; margin: 6px 0 16px; color: var(--amarillo); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(246, 241, 235, .82); text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.footer__giant { font-family: var(--display); font-weight: 600; font-size: calc((min(100vw, var(--max)) - 2 * var(--gutter)) / 5.55); line-height: .8; letter-spacing: -.035em; margin: 60px 0 24px; color: rgba(246, 241, 235, .08); white-space: nowrap; user-select: none; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 13.5px; color: rgba(246, 241, 235, .6); border-top: 1px solid rgba(246, 241, 235, .14); padding-top: 22px; }
.footer__bottom a { color: rgba(246, 241, 235, .75); }

@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__top > :first-child { grid-column: 1 / -1; } }

/* ---------- WhatsApp flotante ---------- */

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #1f9d55; color: #fff; box-shadow: 0 14px 30px -12px rgba(31, 157, 85, .7);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1f9d55; animation: ping 2.6s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }

/* ---------- Diálogo colorimetría ---------- */

.dialog { border: 0; padding: 0; border-radius: 28px; max-width: min(520px, calc(100vw - 32px)); width: 100%; background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(37, 26, 22, .6); }
.dialog::backdrop { background: rgba(37, 26, 22, .5); backdrop-filter: blur(4px); }
.dialog[open] { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.dialog__art { height: 150px; display: grid; grid-template-columns: repeat(4, 1fr); }
.dialog__art i:nth-child(1) { background: var(--amarillo); }
.dialog__art i:nth-child(2) { background: var(--celeste); }
.dialog__art i:nth-child(3) { background: var(--magenta); }
.dialog__art i:nth-child(4) { background: var(--cafe); }
.dialog__body { padding: 28px 30px 30px; }
.dialog__body h2 { font-size: 2.3rem; margin-bottom: 12px; }
.dialog__body p { color: var(--ink-soft); margin: 0 0 22px; }
.dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dialog__close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--paper); cursor: pointer; display: grid; place-items: center; font-size: 22px; line-height: 1; }

/* ---------- Artículos del blog ---------- */

.article-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 56px); }
.article-hero .crumbs { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.article-hero .crumbs a { text-decoration: none; }
.article-hero .crumbs a:hover { color: var(--magenta); }
.article-hero h1 { font-size: clamp(2.6rem, 6.6vw, 5.4rem); max-width: 16ch; }
.article-hero .lede { margin-top: 22px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.article-banner { height: clamp(220px, 34vw, 420px); border-radius: var(--radius); overflow: hidden; position: relative; display: grid; place-items: center; }

.prose { max-width: 720px; margin: clamp(40px, 6vw, 72px) auto 0; font-size: 18.5px; line-height: 1.75; }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.08; margin: 2.2em 0 .6em; }
.prose h3 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.15; margin: 1.8em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--magenta); text-underline-offset: 3px; }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--magenta); font-family: var(--display); font-style: italic; font-size: 1.5rem; line-height: 1.3; color: var(--ink); }
.prose .note { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; font-size: 16px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--magenta); }
.table-wrap { overflow-x: auto; }

.palette { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 1.2em 0 1.8em; }
.palette__item { border-radius: 18px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.palette__swatches { display: grid; grid-template-columns: repeat(4, 1fr); height: 64px; }
.palette__item p { margin: 0; padding: 12px 14px; font-size: 14.5px; color: var(--ink); }
.palette__item p small { display: block; color: var(--muted); font-size: 13px; }

.article-cta { margin: clamp(56px, 8vw, 96px) auto 0; max-width: 900px; background: var(--magenta); color: var(--paper); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.article-cta h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.02; margin: 0; }
.article-cta h2 em { color: var(--amarillo-soft); }
.article-cta p { margin: 10px 0 0; color: rgba(251, 248, 244, .88); }
@media (max-width: 720px) { .article-cta { grid-template-columns: 1fr; } }

.more-posts { padding-block: clamp(70px, 9vw, 120px); }

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
