/* JH Tapicería · verde botella del chesterfield, papel hueso, latón de las tachuelas */
:root {
  --green: #11291f;
  --green-2: #183a2d;
  --green-ink: #eee6d6;
  --green-muted: #b9c2b3;
  --paper: #efe8dc;
  --paper-2: #e5dccd;
  --ink: #18201b;
  --ink-muted: #4d5650;
  --brass: #c9a063;
  --brass-deep: #75541f;
  --line-dark: rgba(238, 230, 214, .16);
  --line-light: rgba(24, 32, 27, .14);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --shell: min(1320px, 100% - 2 * clamp(20px, 4vw, 64px));
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r: 6px;
  /* tokens que leen los momentos del kit (assets/moments) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --r-sm: 4px; --r-md: 6px; --r-lg: 8px; --gutter: clamp(32px, 5vw, 80px); --nav: 76px;
  --t-small: 14px; --t-lead: 18px; --t-h3: 22px; --t-h2: clamp(40px, 4.6vw, 68px);
  --bg: var(--paper); --surface: var(--paper-2); --muted: var(--ink-muted); --accent: var(--brass-deep);
  --line: var(--line-light); --ground-bg: var(--paper-2);
  --font-display: var(--serif); --font-text: var(--sans); --display-weight: 400; --display-tracking: -.015em;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
::selection { background: var(--brass); color: var(--green); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 3px; }
html { scrollbar-color: var(--brass-deep) var(--paper-2); }

.shell { width: var(--shell); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--brass); color: var(--green); padding: 10px 16px; border-radius: var(--r); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.ico { width: 20px; height: 20px; flex: none; }
.ico--sm { width: 16px; height: 16px; transition: transform .35s var(--ease); }

/* botones */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; transition: background-color .3s var(--ease), color .3s var(--ease), transform .2s var(--ease), box-shadow .3s var(--ease); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn--brass { background: var(--brass); color: var(--green); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55); }
.btn--brass:hover { background: #d8b27a; transform: translateY(-1px); }
.btn--ghost { color: var(--green-ink); border: 1px solid rgba(201, 160, 99, .55); min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--ghost:hover { background: rgba(201, 160, 99, .14); border-color: var(--brass); }
.btn--green { background: var(--green); color: var(--green-ink); box-shadow: 0 14px 30px -16px rgba(17, 41, 31, .8); }
.btn--green:hover { background: var(--green-2); transform: translateY(-1px); }
.btn--green .ico { color: var(--brass); }
.btn--lg { min-height: 64px; padding: 0 32px; font-size: 18px; }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(201, 160, 99, .6); text-underline-offset: 6px; text-decoration-thickness: 1px; min-height: 44px; transition: text-decoration-color .3s var(--ease); }
.link:hover { text-decoration-color: var(--brass); }
.link:hover .ico--sm { transform: translateY(2px); }
.link--dark { color: var(--ink); text-decoration-color: rgba(138, 102, 48, .5); }
.link--dark:hover .ico--sm { transform: translateX(3px); }

/* cabecera */
.top { position: sticky; top: 0; z-index: 20; background: rgba(17, 41, 31, .92); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); color: var(--green-ink); border-bottom: 1px solid var(--line-dark); }
.top__bar { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mono { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--brass); border-radius: 50%; font: italic 400 20px/1 var(--serif); color: var(--brass); letter-spacing: .02em; }
.brand__name { font: 500 13px/1.15 var(--sans); letter-spacing: .02em; color: var(--green-ink); }
.top__nav { display: flex; gap: 4px; margin-left: auto; }
.top__nav a { padding: 10px 14px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--green-muted); border-radius: 999px; transition: color .25s var(--ease), background-color .25s var(--ease); }
.top__nav a:hover { color: var(--green-ink); background: rgba(238, 230, 214, .07); }

/* portada */
.hero { background: var(--green); color: var(--green-ink); padding: clamp(40px, 6vw, 84px) 0 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero__text { padding-bottom: clamp(8px, 2vw, 32px); }
.rating { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--green-muted); margin-bottom: 28px; }
.stars { display: inline-block; width: 86px; color: var(--brass); }
.stars svg { width: 100%; height: auto; display: block; }
h1 { font: 400 clamp(56px, 7.2vw, 104px)/.92 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
h1 .line { display: block; }
h1 em, h2 em { font-style: italic; color: var(--brass); }
.lead { margin-top: 28px; max-width: 38ch; font-size: 19px; line-height: 1.55; color: var(--green-muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.hero__photo { position: relative; border-radius: var(--r) var(--r) 0 0; overflow: hidden; aspect-ratio: 16 / 11.5; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; filter: saturate(1.04) contrast(1.03); }

/* entrada de la portada: un solo momento al cargar */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 .line { animation: rise 1s var(--ease) both; }
  .js .hero h1 .line:nth-child(2) { animation-delay: .08s; }
  .js .hero h1 .line:nth-child(3) { animation-delay: .16s; }
  .js .hero .lead, .js .hero .actions, .js .hero .rating { animation: fade 1s .3s var(--ease) both; }
  .js .hero__photo { animation: unveil 1.4s .1s var(--ease) both; }
  .js .hero__photo img { animation: settle 1.8s .1s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(.35em); filter: blur(6px); } }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.08); } }

/* colores */
.colors { padding: clamp(80px, 10vw, 140px) 0; }
.colors__grid { display: grid; grid-template-columns: 7fr 5fr; grid-template-areas: "viewer head" "viewer swatches"; gap: 0 clamp(32px, 5vw, 80px); align-items: start; }
.colors__head { grid-area: head; padding-top: 8px; }
h2 { font: 400 clamp(40px, 4.6vw, 68px)/1 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.colors h2 em { color: var(--brass-deep); }
.colors__head p { margin-top: 18px; color: var(--ink-muted); max-width: 34ch; }
.viewer { grid-area: viewer; position: relative; aspect-ratio: 4 / 3.4; border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.viewer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.035); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.viewer img.is-on { opacity: 1; transform: none; }
.viewer img[data-c="azul"] { object-position: 50% 45%; }
.swatches { grid-area: swatches; display: grid; gap: 4px; margin-top: 40px; border-top: 1px solid var(--line-light); }
.sw { display: flex; align-items: center; gap: 18px; width: 100%; padding: 12px 8px 12px 0; background: none; border: 0; border-bottom: 1px solid var(--line-light); text-align: left; font: inherit; color: inherit; cursor: pointer; transition: padding .4s var(--ease); }
.sw img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line-light); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.sw b { display: block; font: 400 26px/1.1 var(--serif); }
.sw small { display: block; font-size: 14px; color: var(--ink-muted); margin-top: 2px; }
.sw:hover { padding-left: 6px; }
.sw:hover img { transform: scale(1.06); }
.sw[aria-pressed="true"] img { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--brass-deep); }
.sw[aria-pressed="true"] b { color: var(--brass-deep); font-style: italic; }

/* taller */

/* reseñas */
.reviews { background: var(--green); color: var(--green-ink); padding: clamp(90px, 11vw, 160px) 0; }
.quote blockquote p { font: 400 clamp(44px, 6vw, 92px)/1 var(--serif); letter-spacing: -.02em; max-width: 16ch; text-wrap: balance; }
.quote figcaption, .reviews__row figcaption { margin-top: 24px; font-size: 15px; color: var(--green-muted); }
.reviews__top { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; }
.reviews__row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: clamp(56px, 7vw, 96px); padding-top: 36px; border-top: 1px solid var(--line-dark); align-items: start; }
.reviews__row blockquote p { font: italic 400 clamp(24px, 2.4vw, 32px)/1.15 var(--serif); }
.reviews__row figcaption { margin-top: 12px; }
.score { display: grid; justify-items: end; text-align: right; gap: 10px; font-size: 15px; color: var(--green-muted); }
.score__n { font: 400 clamp(96px, 11vw, 160px)/.8 var(--serif); color: var(--brass); letter-spacing: -.03em; }
.score .stars { width: 110px; }

/* cierre */
.close { padding: clamp(90px, 11vw, 150px) 0; }
.close__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.close h2 { font-size: clamp(52px, 7vw, 104px); line-height: .95; }
.close h2 em { color: var(--brass-deep); }
.close__side { display: grid; gap: 36px; justify-items: start; }
address { font-style: normal; display: grid; gap: 8px; justify-items: start; }
.addr { font: 400 24px/1.25 var(--serif); }

.foot { background: var(--green); color: var(--green-muted); font-size: 14px; }
.foot__bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px 0; }

.dock { display: none; }

/* tablet */
@media (max-width: 1080px) {
  .top__nav { display: none; }
  .top__cta { margin-left: auto; }
  .colors__grid { grid-template-columns: 1fr; grid-template-areas: "head" "viewer" "swatches"; }
  .colors__head { margin-bottom: 36px; }
  .swatches { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 24px; }
  .reviews__row { grid-template-columns: 1fr 1fr; }
}

/* celular */
@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: 84px; }
  .top__bar { height: 64px; }
  .brand__mono { width: 38px; height: 38px; font-size: 18px; }
  .top__cta { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  h1 { font-size: clamp(52px, 15vw, 72px); }
  .lead { font-size: 17px; margin-top: 20px; }
  .actions { margin-top: 28px; }
  .actions .btn { width: 100%; justify-content: center; }
  .hero__photo { margin-inline: calc(-1 * clamp(20px, 4vw, 64px)); border-radius: 0; aspect-ratio: 4 / 3.4; }
  .viewer { aspect-ratio: 4 / 4.2; }
  .swatches { grid-template-columns: 1fr; margin-top: 24px; }
  .sw b { font-size: 22px; }
  .sw img { width: 44px; height: 44px; }
  .reviews__row { grid-template-columns: 1fr; gap: 32px; }
  .reviews__top { grid-template-columns: 1fr; }
  .score { justify-items: start; text-align: left; }
  .close__grid { grid-template-columns: 1fr; }
  .close .btn--lg { width: 100%; justify-content: center; }
  .foot__bar { padding-bottom: 28px; }
  .dock { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: 999px; background: var(--brass); color: var(--green); font-weight: 600; text-decoration: none; box-shadow: 0 16px 36px -12px rgba(17, 41, 31, .55); transform: translateY(140%); transition: transform .5s var(--ease); }
  .dock.is-shown { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}


/* franja en movimiento (marquee-row del kit) */
.band { border-top: 1px solid var(--line-dark); padding: 14px 0 18px; --muted: var(--green-ink); --bg: var(--green); --ink: var(--green-ink); }
.band .mo-mq__track { font: italic 400 clamp(22px, 2.2vw, 30px)/1 var(--serif) !important; color: var(--green-ink) !important; }
.band .mo-mq__track li { display: inline-flex; align-items: center; gap: 30px; }
.band .mo-mq__track li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.band .loop-pause { position: absolute; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1px solid rgba(201,160,99,.5); background: var(--green); color: var(--brass); cursor: pointer; }
.band .loop-pause::before { content: ""; position: absolute; inset: -6px; }
.band .loop-pause svg { width: 12px; height: 12px; fill: currentColor; }
.band .mo-mq:not(.is-live) .mo-mq__track { gap: 12px 30px; }

/* servicios */
.services { padding: clamp(90px, 11vw, 150px) 0; }
.services__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.services h2 em, .process h2 em, .faq h2 em { color: var(--brass-deep); }
.peek { margin-top: 40px; border-top: 1px solid var(--line-light); }
.peek__item { display: grid; gap: 6px; width: 100%; padding: 22px 0; background: none; border: 0; border-bottom: 1px solid var(--line-light); text-align: left; font: inherit; color: inherit; cursor: pointer; position: relative; }
.peek__item::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--brass-deep); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.peek__item.is-on::after { transform: scaleX(1); }
.peek__name { font: 400 clamp(26px, 2.4vw, 34px)/1.1 var(--serif); transition: color .3s var(--ease), transform .45s var(--ease); }
.peek__desc { font-size: 15px; color: var(--ink-muted); }
.peek__item:hover .peek__name { transform: translateX(6px); }
.peek__item.is-on .peek__name { color: var(--brass-deep); font-style: italic; }
.peek__frame { position: relative; aspect-ratio: 4 / 4.2; border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.peek__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease), transform 1.1s var(--ease); }
.peek__frame img.is-on { opacity: 1; transform: none; }

/* frase del taller (word-highlight del kit) */
.statement { background: var(--green); color: var(--green-ink); padding: clamp(110px, 14vw, 200px) 0; --ink: var(--green-ink); --accent: var(--brass); --bg: var(--green); }
.statement .mo-wh__text { font: 400 clamp(40px, 5.4vw, 84px)/1.05 var(--serif) !important; letter-spacing: -.02em; max-width: 22ch; margin: 0; }
.statement .mo-wh__text strong { font-weight: 400; font-style: italic; color: var(--brass); }

/* cómo trabajamos (pinned-chapters del kit) */
.process { background: var(--paper-2); padding: clamp(90px, 11vw, 150px) 0; --ground-bg: var(--paper); }
.process .mo-pc__steps { list-style: none; margin: 0; padding: 0; }
.process h3 { font: 600 20px/1.3 var(--sans); margin: 0 0 6px; }
.process .mo-pc__step p { color: var(--ink-muted); max-width: 46ch; margin: 0; }
.process .mo-pc__visual { margin: 0; border-radius: var(--r); overflow: hidden; }
.process .mo-pc__visual img { width: 100%; height: 100%; object-fit: cover; }
.process .mo-pc__visuals { border-radius: var(--r); overflow: hidden; }
.process .chat-visual { background: var(--green) !important; }
.chat { width: min(360px, 100%); background: #ece5dd; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 50px -24px rgba(0,0,0,.6); font-size: 14px; }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--green-2); color: var(--green-ink); }
.chat__head b { display: block; font-weight: 600; }
.chat__head small { color: var(--green-muted); font-size: 12px; }
.chat__avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--brass); color: var(--brass); font: italic 400 14px/1 var(--serif); }
.chat__body { display: grid; gap: 8px; padding: 14px; }
.bubble { max-width: 82%; padding: 8px 10px; border-radius: 10px; line-height: 1.35; color: #18201b; box-shadow: 0 1px 1px rgba(0,0,0,.12); }
.bubble--out { justify-self: end; background: #d9fdd3; border-top-right-radius: 2px; }
.bubble--in { justify-self: start; background: #fff; border-top-left-radius: 2px; }
.process .bubble img { width: 100%; height: auto; border-radius: 6px; margin-bottom: 6px; aspect-ratio: 4/3; object-fit: cover; }

/* preguntas */
.faq { padding: clamp(90px, 11vw, 150px) 0; }
.faq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq__list { border-top: 1px solid var(--line-light); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; font: 400 clamp(22px, 2vw, 28px)/1.2 var(--serif); transition: color .3s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brass-deep); }
.faq__icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 1.5px; background: var(--brass-deep); transition: transform .45s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq details[open] .faq__icon::after { transform: rotate(0); }
.faq__a p { padding: 0 0 26px; color: var(--ink-muted); max-width: 56ch; }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .faq__a { animation: open .55s var(--ease); }
}
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

/* cierre sobre verde */
.close { background: var(--green); color: var(--green-ink); }
.close h2 em { color: var(--brass); }
.close .link { color: var(--green-ink); }
.close .ico--side { transition: transform .35s var(--ease); }
.close .link:hover .ico--side { transform: translateX(3px); }
.foot { border-top: 1px solid var(--line-dark); }

@media (max-width: 1080px) {
  .services__grid, .faq__grid { grid-template-columns: 1fr; }
  .peek__frame { aspect-ratio: 4 / 3; }
}
@media (max-width: 720px) {
  .peek { margin-top: 24px; }
  .statement .mo-wh__text { font-size: clamp(34px, 9.5vw, 46px) !important; }
}
@media (max-width: 1023px) {
  .process .mo-pc__step { padding-bottom: 36px; }
  .process .mo-pc__visual { aspect-ratio: 4 / 3; margin-top: 18px; }
  .process .mo-pc__visual img { height: 100%; }
  .process .chat-visual { aspect-ratio: auto; padding: 20px; }
}
