/* =========================================================
   CATALINK · v2
   Papel hueso + tinta negra + un solo acento rojo hanko.
   Composición editorial tipo tomo de manga.
   ========================================================= */
:root {
  --paper: #ebe3d3;
  --paper-2: #e0d4bc;
  --card: #fbf8f1;
  --ink: #141210;
  --ink-soft: #57503f;
  --line: #cfc2a9;
  --hanko: #b3261e;
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", Arial, sans-serif;
  --jp: "Noto Serif JP", "Yu Mincho", serif;
  --wrap: 1240px;
  --pad: clamp(18px, 4vw, 48px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --tone: radial-gradient(circle at 1px 1px, rgba(20, 18, 16, .16) 1px, transparent 1.4px) 0 0 / 7px 7px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.62;
  background-color: var(--paper);
  /* Papel de alto gramaje (tipo algodón / acuarela): relieve del grano con luz rasante + grano fino + manchas suaves */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35  0 0 0 0 .27  0 0 0 0 .17  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='p' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.11' numOctaves='4' seed='7' stitchTiles='stitch' result='t'/%3E%3CfeDiffuseLighting in='t' surfaceScale='1.25' lighting-color='%23fff' diffuseConstant='1' result='l'%3E%3CfeDistantLight azimuth='225' elevation='52'/%3E%3C/feDiffuseLighting%3E%3CfeColorMatrix in='l' values='0 0 0 0 .32  0 0 0 0 .25  0 0 0 0 .16  -1.2 0 0 0 .95' result='s'/%3E%3CfeColorMatrix in='l' values='0 0 0 0 1  0 0 0 0 .99  0 0 0 0 .95  1.3 0 0 0 -1.03' result='h'/%3E%3CfeMerge%3E%3CfeMergeNode in='s'/%3E%3CfeMergeNode in='h'/%3E%3C/feMerge%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='.5'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 12% 8%, rgba(255, 250, 240, .6), transparent 55%),
    radial-gradient(ellipse at 88% 40%, rgba(196, 172, 136, .28), transparent 60%),
    radial-gradient(ellipse at 25% 85%, rgba(205, 185, 150, .25), transparent 55%);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); margin: 0; line-height: 1.02; }
h2 { font-size: clamp(40px, 6.2vw, 84px); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; }
h3 { font-size: 24px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
::selection { background: var(--ink); color: var(--card); }
:focus-visible { outline: 2px solid var(--hanko); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 300; background: var(--card); padding: 8px 14px; }

/* ---------- Piezas comunes ---------- */
.chapter {
  display: flex; align-items: center; gap: 14px; margin: 0 0 22px;
  font-family: var(--head); font-size: 13px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft);
}
.chapter::before { content: ""; width: 34px; height: 1.5px; background: currentColor; }

.btn {
  display: inline-flex; align-items: center; gap: .6em; position: relative;
  font-family: var(--head); font-weight: 600; font-size: 19px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; padding: 4px 0 8px;
}
.btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--ink);
  transition: background .3s;
}
.btn::before { /* barrido rojo al pasar el mouse */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--hanko); z-index: 1;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn span { transition: transform .35s var(--ease); }
.btn:hover span { transform: translateX(5px); }

.link-soft {
  font-family: var(--head); font-size: 15px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  color: var(--ink-soft); border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: color .25s, border-color .25s;
}
.link-soft:hover { color: var(--ink); border-color: var(--ink); }

.tag-temp {
  display: inline-block; font-family: var(--head); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  padding: 3px 9px; border: 1.5px dashed var(--hanko); color: var(--hanko); background: rgba(251, 248, 241, .9);
}
.seal-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--hanko); transform: rotate(4deg); }

.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(80px, 12vw, 170px) var(--pad); position: relative; }
.section__head { margin-bottom: clamp(40px, 6vw, 80px); }
.section__intro { max-width: 460px; margin: 20px 0 0; color: var(--ink-soft); }

/* ---------- Barra de progreso ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--hanko); transform: scaleX(0); transform-origin: left; }

/* ---------- Encabezado ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: transform .45s var(--ease), background-color .3s, box-shadow .3s;
}
.header.is-solid { background: rgba(235, 227, 211, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner {
  max-width: var(--wrap); margin: 0 auto; height: var(--header-h); padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { font-family: var(--head); font-weight: 300; font-size: 25px; letter-spacing: .16em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav a {
  font-family: var(--head); font-size: 15px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  position: relative; padding: 6px 0;
}
.nav a i { font-style: normal; font-size: 10px; letter-spacing: .1em; color: var(--ink-soft); margin-right: 6px; vertical-align: 4px; }
.nav a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--hanko);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { font-weight: 600; border-bottom: 3px solid var(--ink); padding-bottom: 4px !important; transition: border-color .3s, color .3s; }
.nav__cta:hover { border-color: var(--hanko); }
.nav a { white-space: nowrap; }
/* Con "Presupuesto" el menú tiene un enlace más: en pantallas medianas se compacta para caber en una línea */
@media (max-width: 1400px) and (min-width: 861px) {
  .nav { gap: clamp(12px, 1.4vw, 22px); }
  .nav a { font-size: 14px; letter-spacing: .12em; }
  .nav a i { margin-right: 4px; }
}
.burger { display: none; }

/* ---------- 01 · Portada ---------- */
.hero { max-width: var(--wrap); margin: 0 auto; padding: calc(var(--header-h) + 18px) var(--pad) clamp(60px, 8vw, 110px); position: relative; }
.hero__meta {
  display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1.5px solid var(--ink);
  font-family: var(--head); font-size: 13px; letter-spacing: .28em; text-transform: uppercase;
}
.hero__links { display: flex; gap: 26px; }
.hero__links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink); transition: color .25s; }
.hero__links a:hover { color: var(--hanko); }
.hero__links svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; margin-top: -1px; }
.hero__links svg .fill { fill: currentColor; stroke: none; }
/* El CATALINK grande siempre queda por encima de las fotos */
.wordmark { margin: 0; font-family: var(--head); font-weight: 700; line-height: .78; font-size: min(17.2vw, 228px); padding-top: .07em; position: relative; z-index: 4; pointer-events: none; }
.wordmark > span { display: flex; justify-content: space-between; overflow: hidden; padding-bottom: .02em; }
.wordmark b { /* contorno color papel: se lee nítido aunque pase sobre la tinta de las fotos */
  display: block; font-weight: 700;
  text-shadow: 3px 0 var(--paper), -3px 0 var(--paper), 0 3px var(--paper), 0 -3px var(--paper),
    2px 2px var(--paper), -2px 2px var(--paper), 2px -2px var(--paper), -2px -2px var(--paper);
}
.js .wordmark b { transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(.12s + var(--i) * .055s); }
@keyframes rise { to { transform: none; } }

.hero__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); margin-top: clamp(-80px, -5vw, -30px); position: relative; }
.hero__copy { padding-top: clamp(84px, 10.4vw, 150px); align-self: start; }
.js .hero__copy > * { opacity: 0; transform: translateY(20px); animation: fadeUp .9s var(--ease) forwards; }
.js .hero__copy > :nth-child(1) { animation-delay: .55s; }
.js .hero__copy > :nth-child(2) { animation-delay: .65s; }
.js .hero__copy > :nth-child(3) { animation-delay: .75s; }
.js .hero__copy > :nth-child(4) { animation-delay: .85s; }
.js .hero__copy > :nth-child(5) { animation-delay: .95s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.hero h1 { font-size: clamp(34px, 3.7vw, 52px); font-weight: 500; letter-spacing: 0; margin-bottom: 24px; max-width: 13em; }
.hero__sub { font-family: var(--head); font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.5; margin: 0 0 36px; max-width: 26em; }
.hero__actions { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }

.social { list-style: none; display: flex; gap: 6px; margin: 44px 0 0 -8px; padding: 0; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; transition: color .25s, transform .25s; }
.social a:hover { color: var(--hanko); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.social svg .fill { fill: currentColor; stroke: none; }

/* Página de manga */
.mpage {
  --cut: 46px;
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.12fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px;
  height: clamp(480px, 50vw, 700px);
}
.hp { margin: 0; position: relative; background: var(--ink); padding: 2px; overflow: hidden; }
.hp img, .hp video { display: block; width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(1.1); will-change: transform; }
.hp video { background: var(--ink); }
.hp--a { grid-row: 1 / 3; }
.hp--b { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); }
.hp--b img, .hp--b video { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); }
.hp--c { margin-top: calc(-1 * var(--cut)); clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); }
.hp--c img, .hp--c video { clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); }
.hp::after { /* telón de papel que se retira al cargar */
  content: ""; position: absolute; inset: 0; background: var(--paper-2); transform-origin: top;
}
.js .hp::after { animation: unveil 1.15s var(--ease) forwards; }
.hp--a::after { animation-delay: .35s !important; }
.hp--b::after { animation-delay: .5s !important; }
.hp--c::after { animation-delay: .65s !important; }
html:not(.js) .hp::after { display: none; }
@keyframes unveil { to { transform: scaleY(0); } }

/* Firma: hanko de Catalina estampado en la esquina inferior derecha de la página */
.hanko {
  position: absolute; z-index: 3; right: -46px; bottom: -64px;
  width: clamp(104px, 10.5vw, 138px); height: auto; aspect-ratio: 1;
  transform: rotate(-7deg); opacity: .93; pointer-events: none;
  filter: drop-shadow(0 0 1px rgba(235, 227, 211, .6));
}
.js .hanko { opacity: 0; animation: stamp .5s cubic-bezier(.3, 1.6, .5, 1) 1.45s forwards; }
@keyframes stamp { from { opacity: 0; transform: rotate(-7deg) scale(1.6); } to { opacity: .93; transform: rotate(-7deg) scale(1); } }
.vtext { /* columna vertical que baja hasta el sello, como una firma */
  position: absolute; right: -34px; bottom: calc(clamp(104px, 10.5vw, 138px) - 40px); writing-mode: vertical-rl;
  font-family: var(--jp); font-size: 13px; letter-spacing: .5em; color: var(--ink-soft);
}
.mpage__caption {
  position: absolute; left: 0; bottom: -32px;
  font-family: var(--head); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft);
}

.scroll-hint {
  position: absolute; left: var(--pad); bottom: 22px; display: flex; align-items: center; gap: 12px; text-decoration: none;
  font-family: var(--head); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft);
}
.scroll-hint span { width: 1.5px; height: 38px; background: var(--line); position: relative; overflow: hidden; }
.scroll-hint span::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Cinta ---------- */
.marquee { border-block: 1.5px solid var(--ink); overflow: hidden; padding: 18px 0; background: rgba(251, 248, 241, .35); }
.marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { font-family: var(--head); font-size: clamp(22px, 2.6vw, 34px); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.marquee i { width: 7px; height: 7px; background: var(--ink); transform: rotate(45deg); flex: none; }
.marquee i:nth-of-type(7n) { background: var(--hanko); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 02 · Por qué ---------- */
/* Texto | foto | viñetas 2×2, alineados abajo como una página de manga */
.why__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px minmax(0, 1.2fr); gap: clamp(28px, 3vw, 44px);
  grid-template-areas: "intro photo list"; align-items: end;
}
.why__intro { grid-area: intro; align-self: start; }
.why__intro h2 { margin-bottom: 26px; }
.why .studio { grid-area: photo; margin: 0; }
.why__list { grid-area: list; }
.lead { font-size: 19px; line-height: 1.6; max-width: 30em; margin: 0 0 20px; }
.studio { margin: 36px 0 0; max-width: 320px; position: relative; }
.studio img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: 50% 35%; border: 2px solid var(--ink); background: var(--ink); }
.works__more { margin-top: clamp(36px, 5vw, 60px); text-align: right; }

/* Viñetas a la mitad de su tamaño anterior (caja, número y textos) */
.why__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.panel {
  background: var(--card); border: 2px solid var(--ink); padding: clamp(14px, 1.5vw, 20px) clamp(12px, 1.3vw, 17px) clamp(16px, 1.7vw, 23px);
  position: relative; transition: box-shadow .45s var(--ease), translate .45s var(--ease);
}
.panel:hover { translate: 0 -3px; box-shadow: 5px 5px 0 var(--ink); }
.panel--tone { background: var(--tone), var(--card); }
.panel__num {
  display: block; font-family: var(--head); font-weight: 700; font-size: clamp(34px, 3.5vw, 48px); line-height: .9; margin-bottom: 12px;
  color: transparent; -webkit-text-stroke: 1.1px var(--ink); transition: -webkit-text-stroke-color .35s;
}
.panel:hover .panel__num { -webkit-text-stroke-color: var(--hanko); }
.panel h3 { font-size: 16px; letter-spacing: .05em; margin-bottom: 7px; }
.panel p { margin: 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; }

/* ---------- 03 · Trabajos ---------- */
.works { max-width: 1340px; }
.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(90px, 10.6vw, 148px); gap: 14px;
}
.g { position: relative; display: block; overflow: hidden; background: var(--ink); border: 2px solid var(--ink); text-decoration: none; }
a.g { cursor: zoom-in; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .5s; }
.g:hover img, .g:focus-visible img { transform: scale(1.05); opacity: .9; }
.g__n {
  position: absolute; left: 0; bottom: 0; background: var(--card); padding: 6px 12px 5px;
  font-family: var(--head); font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.g:hover .g__n, .g:focus-visible .g__n { transform: none; }
.g1 { grid-column: 1 / 6;  grid-row: 1 / 5; }
.g2 { grid-column: 6 / 10; grid-row: 1 / 4; }
.g3 { grid-column: 10 / 13; grid-row: 1 / 4; }
.gq { grid-column: 6 / 13; grid-row: 4 / 5; }
.g4 { grid-column: 1 / 5;  grid-row: 5 / 9; }
.g5 { grid-column: 5 / 9;  grid-row: 5 / 9; }
.g6 { grid-column: 9 / 13; grid-row: 5 / 9; }
.gt { grid-column: 1 / 4;  grid-row: 12 / 13; }
.g7 { grid-column: 1 / 4;  grid-row: 9 / 12; }
.g8 { grid-column: 4 / 9;  grid-row: 9 / 13; }
.g9 { grid-column: 9 / 13; grid-row: 9 / 13; }
.g10 { grid-column: 1 / 9; grid-row: 13 / 17; }
.gs  { grid-column: 9 / 13; grid-row: 13 / 16; }
.gc  { grid-column: 9 / 13; grid-row: 16 / 17; }

.gs { background: var(--tone), var(--card); display: flex; align-items: flex-end; padding: clamp(18px, 2.6vw, 34px); }
.gs p { margin: 0; font-family: var(--head); font-size: clamp(20px, 2.3vw, 32px); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; line-height: 1.12; background: var(--card); padding: 4px 8px; }
.gq { background: var(--card); display: flex; align-items: center; padding: 0 clamp(18px, 3vw, 40px); }
.gq p { margin: 0; font-family: var(--head); font-size: clamp(18px, 2.1vw, 28px); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; line-height: 1.15; }
.gt { background: var(--tone), var(--card); display: grid; place-items: center; }
.gt span { font-family: var(--jp); font-size: clamp(30px, 3.4vw, 46px); letter-spacing: .3em; padding-left: .3em; }
.gc { background: var(--ink); color: var(--card); display: flex; flex-direction: column; justify-content: center; padding: 0 clamp(16px, 2vw, 26px); cursor: pointer; transition: background .35s; }
.gc:hover { background: var(--hanko); border-color: var(--hanko); }
.gc__k { font-family: var(--head); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; opacity: .7; }
.gc__t { font-family: var(--head); font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.gc__h { font-size: 14px; opacity: .7; }

.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; width: 86px; height: 86px; margin: -43px 0 0 -43px; border-radius: 50%;
  display: grid; place-items: center; pointer-events: none;
  background: var(--card); color: var(--ink); border: 1.5px solid var(--ink);
  font-family: var(--head); font-size: 14px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; padding-left: .26em;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(0); transition: transform .35s var(--ease); opacity: 0;
}
.cursor.is-on { opacity: 1; transform: translate3d(var(--x), var(--y), 0) scale(1); }

/* ---------- 04 · Testimonios ---------- */
/* Cada testimonio: boceto de Catalink + globo de diálogo que sale del personaje.
   Se alterna el lado (boceto a la izquierda / a la derecha). */
.voices__list { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 30px); }
.voice { margin: 0; display: grid; grid-template-columns: clamp(130px, 14vw, 180px) minmax(0, 500px); align-items: center; gap: clamp(26px, 3vw, 40px); width: fit-content; max-width: 100%; }
.voice--r { grid-template-columns: minmax(0, 500px) clamp(130px, 14vw, 180px); margin-left: auto; }
.voice--r .voice__face { order: 2; }
.voice__face { width: 100%; height: auto; transform: rotate(-3deg); }
.voice--r .voice__face { transform: rotate(3deg); }
.voice__bubble {
  margin: 0; position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: 32px;
  padding: clamp(22px, 2.4vw, 30px) clamp(22px, 2.6vw, 32px);
}
.voice__bubble p { margin: 0; font-size: 18px; line-height: 1.55; }
.voice__bubble::before, .voice__bubble::after { /* rabito del globo, apunta al boceto */
  content: ""; position: absolute; top: calc(50% - 15px); width: 32px; height: 30px;
}
.voice__bubble::before { left: -32px; background: var(--ink); clip-path: polygon(100% 0, 0 62%, 100% 100%); }
.voice__bubble::after { left: -27px; top: calc(50% - 12px); width: 30px; height: 23px; background: var(--card); clip-path: polygon(100% 0, 0 66%, 100% 100%); }
.voice--r .voice__bubble::before { left: auto; right: -32px; clip-path: polygon(0 0, 100% 62%, 0 100%); }
.voice--r .voice__bubble::after { left: auto; right: -27px; clip-path: polygon(0 0, 100% 66%, 0 100%); }
.voice__user { margin: 12px 0 0 28px; font-family: var(--head); font-size: 13px; letter-spacing: .16em; color: var(--ink-soft); }
.voice--r .voice__user { text-align: right; margin: 12px 28px 0 0; }

/* ---------- Franjas de video (puentes entre secciones) ----------
   Capas: papel (fondo) → franja → contenido. La franja va detrás de las secciones. */
main { position: relative; }
main > .section { z-index: 1; }
/* Una sola tira continua: sin gap, sin bordes; cada video se estira 1 px a cada lado
   para tapar cualquier línea por redondeo de anchos */
.vstrip { display: none; }
.js .vstrip {
  display: grid; position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 0; pointer-events: none;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; overflow: hidden;
}
.vstrip__panel { margin: 0; position: relative; }
.vstrip video { position: absolute; top: 0; bottom: 0; left: -1px; width: calc(100% + 2px); height: 100%; object-fit: cover; display: block; }

/* Textos sobre las franjas: lettering de manga con contorno color papel por fuera de la letra
   (paint-order: el trazo se pinta detrás del relleno, así no adelgaza la letra) */
.over-video { position: relative; isolation: isolate; }
.over-video h2 {
  -webkit-text-stroke: 10px var(--paper); paint-order: stroke fill; stroke-linejoin: round;
}
.over-video .chapter, .over-video .section__intro, .over-video .btn {
  -webkit-text-stroke: 5px var(--paper); paint-order: stroke fill; color: var(--ink);
}
/* Degradado suave color papel detrás de los textos pequeños, para aclarar el video */
.over-video::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -40px -60px; background: radial-gradient(ellipse 60% 60% at 30% 50%, rgba(235, 227, 211, .82), rgba(235, 227, 211, .5) 50%, rgba(235, 227, 211, 0) 78%);
}
.works__more.over-video::before { background: radial-gradient(ellipse 40% 70% at 82% 50%, rgba(235, 227, 211, .85), rgba(235, 227, 211, 0) 75%); }
.over-video .chapter::before { box-shadow: 0 0 0 2px var(--paper); }

/* ---------- 05 · Presupuesto ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.quote__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 370px); gap: clamp(32px, 4.5vw, 64px); align-items: start; margin: 0; }
.quote__cats { display: grid; gap: clamp(30px, 3.4vw, 44px); min-width: 0; }
.qcat { border: 0; margin: 0; padding: 0; min-width: 0; }
.qcat legend {
  display: flex; align-items: baseline; gap: 12px; padding: 0 0 10px; margin-bottom: 16px; width: 100%;
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--head); font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
}
.qcat__n { font-size: 13px; font-weight: 500; letter-spacing: .2em; color: var(--ink-soft); }
.qcat__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }

/* Cada opción es una viñeta: marco fino, sombra plana; al elegirla se "hunde", marco grueso y sello rojo ✓ */
.qopt { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.qopt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.qopt__card {
  position: relative; height: 100%; min-height: 48px; display: flex; flex-direction: column; gap: 6px;
  padding: 14px 14px 12px; background: var(--card); border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  border-radius: 16px; /* esquinas de globo de diálogo (la elegida pierde marco y sombra y muestra la viñeta expresiva) */
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
/* Boceto de Catalink (WebP con fondo transparente) en lugar del emoji */
.qopt__sketch { display: block; width: auto; height: 54px; max-width: 100%; object-fit: contain; object-position: left center; margin-bottom: 2px; }
/* Texto de las tarjetas en Shippori Antique (solo tiene peso 400) */
.qopt__name { font-family: "Shippori Antique", var(--body); font-size: 15px; line-height: 1.3; font-weight: 400; }
.qopt__price { margin-top: auto; font-family: "Shippori Antique", var(--body); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.qopt__card::after {
  content: "✓"; position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; display: grid; place-items: center;
  background: var(--hanko); color: var(--card); font: 700 15px/1 var(--body); border-radius: 3px;
  transform: rotate(8deg) scale(0); transition: transform .15s ease;
}
.qopt:hover .qopt__card { background: #fffdf8; }
.qopt input:checked + .qopt__card::after { transform: rotate(8deg) scale(1); }
.qopt input:checked + .qopt__card .qopt__price { color: var(--ink); }
.qopt input:focus-visible + .qopt__card { outline: 2px solid var(--hanko); outline-offset: 4px; }

/* Viñeta "explosiva" de la opción elegida: SVG generado en js/presupuesto.js (.qopt__burst).
   Mide lo mismo que la tarjeta; las puntas y la colita se dibujan por fuera (overflow visible). Solo se anima transform y opacity. */
.qopt__card { isolation: isolate; transition: transform .15s ease; }
.qopt__burst {
  position: absolute; left: -1.5px; top: -1.5px; z-index: -1; overflow: visible; pointer-events: none;
  opacity: 0; transform: scale(.94); transition: opacity .1s ease-out, transform .1s ease-out;
}
.qopt__burst-main { fill: var(--card); stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.qopt__burst-pass { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.qopt:has(input:checked) { z-index: 2; }
.qopt input:checked + .qopt__card { background: transparent; border-color: transparent; box-shadow: none; animation: qpop .26s ease-out; }
.qopt input:checked + .qopt__card .qopt__burst { opacity: 1; transform: none; transition-duration: .16s; }
@keyframes qpop {
  0% { transform: scale(1); }
  45% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.qsum {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--card); border: 2px solid var(--ink); border-bottom: 0; padding: clamp(24px, 2.4vw, 32px) clamp(20px, 2.2vw, 30px) 0;
}
.qsum__title { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--head); font-weight: 700; font-size: 26px; letter-spacing: .12em; text-transform: uppercase; }
.qsum__list { margin: 0; display: grid; border-top: 1px solid var(--line); }
.qsum__list div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.qsum__list dt { font-family: var(--head); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); padding-top: 2px; }
.qsum__list dd { margin: 0; font-size: 15px; line-height: 1.35; }
.qsum__list dd.is-empty { color: var(--ink-soft); }
.qsum__progress { margin: 20px 0 0; font-family: var(--head); font-size: 17px; letter-spacing: .08em; text-transform: uppercase; }
.qsum__range { margin: 20px 0 0; }
.qsum__range-label { display: block; font-family: var(--head); font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.qsum__nums { display: block; margin-top: 4px; font-family: var(--head); font-weight: 700; font-size: clamp(30px, 2.7vw, 38px); line-height: 1.05; letter-spacing: .01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qsum__note { margin: 14px 0 22px; font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.qsum__wa {
  display: flex; justify-content: center; align-items: center; min-height: 52px; padding: 12px 16px; text-align: center; text-decoration: none;
  font-family: var(--head); font-size: 17px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: var(--ink); color: var(--card); border: 2px solid var(--ink); cursor: pointer; transition: box-shadow .15s ease, transform .15s ease;
}
.qsum__wa:not([aria-disabled="true"]):hover { box-shadow: 4px 4px 0 var(--hanko); transform: translate(-2px, -2px); }
.qsum__wa[aria-disabled="true"] { background: transparent; color: var(--ink-soft); border: 1.5px dashed var(--ink-soft); cursor: not-allowed; font-size: 15px; }
.qsum__reset {
  display: block; margin: 16px auto 0; background: none; border: 0; padding: 4px 2px; cursor: pointer;
  font-family: var(--head); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.qsum__reset:hover { color: var(--ink); border-color: var(--ink); }
.qsum__rule { display: block; height: 9px; background: var(--ink); margin: 24px calc(-1 * clamp(20px, 2.2vw, 30px)) 0; }
.qbar { display: none; }

/* ---------- 06 · Japón ---------- */
.japan { padding-bottom: clamp(40px, 5vw, 64px); }
.japan__head { margin-bottom: 0; }
.japan__lead { font-size: clamp(19px, 1.8vw, 23px); max-width: 34em; margin: 28px 0 0; }
/* Franja de Japón: de borde a borde, tres videos pegados sin separación */
.jstrip {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  width: 100%; height: clamp(380px, 46vw, 720px); overflow: hidden; background: var(--ink);
}
.jstrip__panel { margin: 0; position: relative; overflow: hidden; }
.jstrip video { position: absolute; top: 0; bottom: 0; left: -1px; width: calc(100% + 2px); height: 100%; object-fit: cover; display: block; }
/* Nombre del lugar: blanco con contorno negro, se lee sobre cualquier fondo */
.jstrip__place {
  position: absolute; left: clamp(8px, 1.4vw, 18px); right: 8px; bottom: clamp(8px, 1.2vw, 16px);
  font-family: var(--head); font-size: 14px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; line-height: 1.2;
  color: #fff; -webkit-text-stroke: 3px #000; paint-order: stroke fill;
  text-shadow: 0 0 2px #000, 0 1px 6px rgba(0, 0, 0, .55);
}

/* ---------- 07 · Contacto ---------- */
.contact__head { display: grid; grid-template-columns: 1fr; }
.underlined { justify-self: start; padding-bottom: 12px; border-bottom: 7px solid var(--ink); }
.contact__lead { font-size: clamp(19px, 1.8vw, 23px); max-width: 30em; margin: 28px 0 0; }
/* Sin mapa: la tarjeta ocupa todo el ancho, en dos columnas (horario | datos) */
.contact__grid { display: block; }
.contact__card {
  font-style: normal; background: var(--card); border: 2px solid var(--ink); border-bottom: 0;
  padding: clamp(30px, 3.6vw, 48px) clamp(24px, 3vw, 44px) 0;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 96px);
  grid-template-areas: "name list" "hours list" "btn list" "rule rule";
}
.contact__name { grid-area: name; }
.contact__hours { grid-area: hours; }
.contact__list { grid-area: list; align-self: center; padding-left: clamp(32px, 6vw, 96px); border-left: 1px solid var(--line); gap: 22px; }
.contact__list dd { font-size: clamp(17px, 1.5vw, 21px); }
.contact__card .btn { grid-area: btn; justify-self: start; }
.contact__rule { grid-area: rule; }
.contact__name { font-family: var(--head); font-weight: 700; font-size: 32px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 30px; display: flex; align-items: center; gap: 10px; }
.label, .contact__list dt { font-family: var(--head); font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.contact__hours { padding: 18px 0 20px; border-block: 1px solid var(--line); margin-bottom: 24px; }
.contact__big { font-family: var(--head); font-size: 30px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; margin: 4px 0 0; line-height: 1.1; }
.contact__big--soft { color: var(--ink-soft); }
.contact__list { margin: 0 0 32px; display: grid; gap: 16px; }
.contact__list dd { margin: 2px 0 0; font-size: 17px; overflow-wrap: anywhere; }
.contact__list a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .25s, color .25s; }
.contact__list a:hover { color: var(--hanko); border-color: var(--hanko); }
.contact__card .btn { align-self: flex-start; }
.contact__rule { display: block; height: 9px; background: var(--ink); margin: 40px calc(-1 * clamp(24px, 3vw, 44px)) 0; }

/* ---------- Portafolio (portafolio.html) ---------- */
.pf-page { max-width: 1340px; padding-top: calc(var(--header-h) + clamp(36px, 6vw, 80px)); padding-bottom: clamp(60px, 8vw, 110px); }
.pf-head { border-bottom: 1.5px solid var(--ink); padding-bottom: clamp(22px, 3vw, 34px); margin-bottom: clamp(26px, 3.5vw, 40px); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px 40px; }
.pf-head .chapter { grid-column: 1 / -1; margin-bottom: 6px; }
.pf-title { font-size: clamp(64px, 13vw, 184px); font-weight: 700; text-transform: uppercase; line-height: .82; letter-spacing: .01em; }
.pf-intro { margin: 0; max-width: 340px; color: var(--ink-soft); padding-bottom: 6px; }

.pf-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-filter {
  display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; cursor: pointer;
  font-family: var(--head); font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 12px 6px; background: var(--card); color: var(--ink); border: 1.5px solid var(--ink);
  transition: background .25s, color .25s, box-shadow .25s;
}
.pf-filter span { font-size: 11.5px; letter-spacing: .04em; color: var(--ink-soft); transition: color .25s; }
.pf-filter:hover { background: var(--paper-2); }
.pf-filter[aria-pressed="true"] { background: var(--ink); color: var(--card); box-shadow: 3px 3px 0 var(--hanko); }
.pf-filter[aria-pressed="true"] span { color: #cbbfab; }
.pf-status { margin: 18px 0 22px; font-family: var(--head); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }

.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; transform-origin: left center; }
.pf { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink); border: 1.5px solid var(--ink); }
.pf[hidden] { display: none; }
.pf img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .5s; }
.pf:hover img, .pf:focus-visible img { transform: scale(1.05); opacity: .9; }
.pf__n {
  position: absolute; left: 0; bottom: 0; background: var(--card); padding: 6px 12px 5px; max-width: 100%;
  font-family: var(--head); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.pf:hover .pf__n, .pf:focus-visible .pf__n { transform: none; }

.pf-cta { text-align: center; border-top: 1.5px solid var(--ink); max-width: calc(var(--wrap) - 2 * var(--pad)); padding-inline: 0; }
.pf-cta .chapter { justify-content: center; }
.pf-cta .chapter::after { content: ""; width: 34px; height: 1.5px; background: currentColor; }
.pf-cta__lead { font-size: clamp(19px, 1.8vw, 23px); max-width: 28em; margin: 24px auto 36px; }

/* ---------- Pie ---------- */
.footer { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad) 36px; overflow: hidden; }
.footer__mark {
  margin: 0; font-family: var(--head); font-weight: 700; font-size: min(19.5vw, 262px); line-height: .8; letter-spacing: .01em;
  color: transparent; -webkit-text-stroke: 1.2px rgba(20, 18, 16, .45); text-align: center; user-select: none;
}
.footer__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding-top: 22px; margin-top: 18px; border-top: 1.5px solid var(--ink);
  font-family: var(--head); font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--hanko); }

/* ---------- Botón fijo celular ---------- */
.mcta { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(18, 16, 14, .96); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .35s; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; }
.lightbox__figure img {
  max-width: min(90vw, 980px); max-height: 80vh; max-height: 80dvh; width: auto; height: auto;
  transform: scale(.97); opacity: 0; transition: transform .5s var(--ease), opacity .35s;
}
.lightbox__figure img.is-ready { transform: none; opacity: 1; }
.lightbox__top { position: absolute; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center; padding: 18px var(--pad); color: #e9e0cf; }
.lightbox__count { font-family: var(--head); letter-spacing: .3em; font-size: 14px; }
.lightbox button { background: none; border: 0; color: #f3ecdf; cursor: pointer; font-family: var(--head); transition: color .2s; }
.lightbox button:hover { color: #e0574e; }
.lightbox__close { font-size: 14px; letter-spacing: .26em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.lightbox__close span { font-size: 30px; line-height: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 40px; padding: 18px; }
.lightbox__nav--prev { left: 6px; }
.lightbox__nav--next { right: 6px; }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: #bfb4a1; font-size: 14px; margin: 0; padding: 0 70px; }
body.no-scroll { overflow: hidden; }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease), clip-path 1.1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .g.reveal { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); }
.js .g.reveal.is-visible { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track, .scroll-hint span::after { animation: none; }
  .hp img, .hp video { transform: scale(1.1) !important; }
  .qopt__card, .qopt__card::after, .qopt__burst, .qsum__wa, .qbar, .qbar__wa { transition: none !important; }
  .qopt input:checked + .qopt__card { animation: none !important; }
}

/* ---------- Por qué en pantallas medianas: texto arriba, foto + viñetas abajo ---------- */
@media (max-width: 1180px) and (min-width: 861px) {
  .why__grid { grid-template-columns: 320px minmax(0, 1fr); grid-template-areas: "intro intro" "photo list"; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .nav__cta { display: none; }
  .vtext { display: none; }
}

/* ---------- Menú de celular en pantallas bajas: con "Presupuesto" son 7 enlaces, se compacta para que quepan ---------- */
@media (max-width: 860px) and (max-height: 780px) {
  .nav.nav { justify-content: flex-start; padding-top: 78px; overflow-y: auto; }
  .nav.nav a { font-size: 30px; padding: 6px 0; line-height: 1.4; }
  .nav.nav .nav__cta { margin-top: 20px; font-size: 18px; }
}

/* ---------- Celular ---------- */
@media (max-width: 860px) {
  :root { --header-h: 62px; }
  body { font-size: 16px; }
  .logo { font-size: 22px; }

  .burger {
    display: grid; gap: 7px; place-content: center; width: 46px; height: 46px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; position: relative; z-index: 110;
  }
  .burger span { display: block; width: 26px; height: 2px; background: var(--ink); transition: transform .35s var(--ease); }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 0; z-index: 105; flex-direction: column; align-items: stretch; justify-content: center; gap: 0;
    padding: 90px var(--pad) 40px; background: var(--paper);
    background-image: var(--tone); background-size: 9px 9px;
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .6s var(--ease), visibility 0s .6s;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease); }
  .nav a { font-size: 38px; font-weight: 500; letter-spacing: .06em; padding: 10px 0; border-bottom: 1.5px solid var(--ink); background: var(--paper); }
  .nav a i { font-size: 12px; vertical-align: 14px; }
  .nav a::after { display: none; }
  .nav .nav__cta { display: block; margin-top: 30px; font-size: 20px; letter-spacing: .14em; border-bottom: 4px solid var(--ink); align-self: flex-start; }
  .header.menu-open { transform: none !important; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header.menu-open .logo { position: relative; z-index: 110; }

  .hero { padding-top: calc(var(--header-h) + 10px); }
  .hero__meta { font-size: 11px; letter-spacing: .22em; }
  .hero__meta-hide { display: none; }
  .wordmark { font-size: 21.5vw; padding-top: .12em; }
  .hero__grid { grid-template-columns: 1fr; margin-top: 0; gap: 40px; }
  .hero__copy { padding-top: 30px; }
  .hero h1 { font-size: clamp(32px, 9vw, 42px); }
  .hero__sub { font-size: 14.5px; margin-bottom: 30px; }
  .social { margin-top: 28px; }
  .mpage { --cut: 30px; height: 118vw; max-height: 640px; gap: 8px; }
  .hanko { width: 92px; right: -8px; bottom: -52px; }
  .scroll-hint { display: none; }

  .why__grid { grid-template-columns: 1fr; grid-template-areas: "intro" "photo" "list"; gap: 26px; }
  .studio { max-width: none; }
  .studio img { aspect-ratio: 4 / 5; object-position: 50% 32%; }
  .works__more { text-align: left; }
  .why__list { gap: 8px; }
  .panel { padding: 14px 12px 16px; }
  .panel__num { font-size: 36px; margin-bottom: 10px; }
  .panel h3 { font-size: 15px; }
  .panel p { font-size: 14px; }

  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; grid-auto-flow: dense; gap: 8px; }
  .g { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 3 / 4; }
  .g1, .g5, .g8 { grid-column: 1 / -1 !important; aspect-ratio: 4 / 4.6; }
  .g10 { grid-column: 1 / -1 !important; aspect-ratio: 1170 / 1066; }
  .gq, .gc, .gs { grid-column: 1 / -1 !important; aspect-ratio: auto; padding-block: 26px; }
  .gt { display: none; }
  .g__n { transform: none; font-size: 10px; padding: 4px 8px; }

  /* Testimonios en una columna: boceto arriba, globo debajo con el rabito hacia arriba */
  .voices__list { gap: 34px; }
  .voice, .voice--r { grid-template-columns: 1fr; gap: 20px; width: auto; margin-left: 0; }
  .voice--r .voice__face { order: 0; justify-self: end; }
  .voice__face { width: 118px; }
  .voice__bubble p { font-size: 16.5px; }
  .voice__bubble::before { left: 40px; top: -26px; width: 30px; height: 28px; clip-path: polygon(30% 0, 0 100%, 100% 100%); }
  .voice__bubble::after { left: 43.5px; top: -20px; width: 23px; height: 23px; clip-path: polygon(30% 0, 0 100%, 100% 100%); }
  .voice--r .voice__bubble::before { left: auto; right: 40px; clip-path: polygon(70% 0, 0 100%, 100% 100%); }
  .voice--r .voice__bubble::after { left: auto; right: 43.5px; clip-path: polygon(70% 0, 0 100%, 100% 100%); }
  .over-video h2 { -webkit-text-stroke-width: 8px; }
  .over-video .chapter, .over-video .section__intro, .over-video .btn { -webkit-text-stroke-width: 4px; }
  .over-video::before { inset: -24px calc(-1 * var(--pad)); background: radial-gradient(ellipse 75% 65% at 40% 50%, rgba(235, 227, 211, .85), rgba(235, 227, 211, .5) 55%, rgba(235, 227, 211, 0) 85%); }

  .jstrip { height: clamp(230px, 64vw, 420px); }
  .jstrip__place { left: 6px; right: 4px; bottom: 8px; font-size: 10.5px; letter-spacing: .06em; -webkit-text-stroke-width: 2px; }

  .contact__card { grid-template-columns: 1fr; grid-template-areas: "name" "hours" "list" "btn" "rule"; }
  .contact__list { padding-left: 0; border-left: 0; }

  .hero__links { gap: 16px; }
  .hero__links a { font-size: 12.5px; gap: 6px; }
  .hero__links svg { width: 18px; height: 18px; }

  .pf-head { grid-template-columns: 1fr; }
  .pf-intro { max-width: none; }
  .pf-filters { /* una sola fila que se desliza */
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 6px;
  }
  .pf-filters::-webkit-scrollbar { display: none; }
  .pf-filter { scroll-snap-align: start; flex: none; font-size: 13px; }
  .pf-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pf__n { transform: none; font-size: 10px; letter-spacing: .14em; padding: 4px 8px; }
  .pf-grid.is-filtered .pf__n { display: none; }
  .pf-cta { max-width: none; margin-inline: var(--pad); }

  .footer { padding-bottom: 100px; }
  .footer__row { justify-content: center; text-align: center; }

  .mcta {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 95;
    display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; text-decoration: none;
    background: var(--ink); color: var(--card); font-family: var(--head); font-size: 16px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45);
    transform: translateY(160%); transition: transform .5s var(--ease);
  }
  .mcta span:last-child { color: #e8a29c; font-weight: 500; }
  .mcta.is-visible { transform: none; }

  /* Presupuesto en celular: opciones en 2 columnas, resumen al final y barra fija abajo */
  .quote__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .qcat legend { font-size: 24px; margin-bottom: 14px; }
  .qcat__opts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .qopt__card { padding: 12px 11px 10px; gap: 5px; box-shadow: 3px 3px 0 var(--ink); border-radius: 14px; }
  .qopt__sketch { height: 48px; }
  .qopt__name { font-size: 14.5px; }
  .qopt__price { font-size: 12px; letter-spacing: .04em; }
  .qopt__card::after { top: -8px; right: -8px; width: 24px; height: 24px; font-size: 14px; }  .qsum { position: static; }
  .qsum__nums { font-size: clamp(28px, 9vw, 36px); }

  .qbar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 96;
    display: flex; align-items: stretch; background: var(--ink); color: var(--card);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45);
    transform: translateY(160%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s;
  }
  .q-active .qbar { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .q-in .mcta { transform: translateY(160%) !important; }
  .qbar__info {
    flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px;
    padding: 9px 16px 10px; min-height: 56px; background: none; border: 0; color: inherit; cursor: pointer; text-align: left;
  }
  .qbar__label { font-family: var(--head); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #bfb4a1; }
  .qbar__val { font-family: var(--head); font-size: 20px; font-weight: 600; letter-spacing: .04em; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .qbar__wa {
    flex: none; display: flex; align-items: center; gap: 6px; padding: 0 16px; text-decoration: none;
    border-left: 1px solid rgba(243, 236, 223, .22);
    font-family: var(--head); font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #e8a29c;
  }
  .qbar__wa[hidden] { display: none; }

  .lightbox__nav { top: auto; bottom: 4px; transform: none; }
  .lightbox__cap { bottom: 74px; padding: 0 20px; font-size: 13px; }
  .lightbox__figure img { max-width: 94vw; max-height: 72vh; max-height: 72dvh; }
}
