/* Casa Benítez · sitio web
   Paleta, tipografía y elementos según el manual de marca (DM Serif Display + DM Sans).
   DM Serif Display solo tiene peso regular: los títulos van en 400, nunca en negrita. */

:root {
  --azul: #101C33;
  --azul-2: #1B2A4A;
  --oro: #AD8133;
  --oro-txt: #7C5D25;
  --marfil: #FAF2E4;
  --papel: #F1E6D2;
  --pizarra: #5C6474;
  --burdeos: #6E2A35;
  --linea: #D8D1C3;
  --claro: #D5CFC4;
  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --rayas: repeating-linear-gradient(90deg, transparent 0 33px, rgba(250,242,228,.13) 33px 34px, transparent 34px 37px, rgba(250,242,228,.06) 37px 38px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--marfil); color: var(--azul); font-family: var(--sans); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }
[id] { scroll-margin-top: 16px; }

.wrap { max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 12px 18px; background: var(--azul); color: var(--marfil); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Tipografía ---------- */
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--oro-txt); }
.eyebrow::before { content: ""; flex: none; width: 40px; height: 1px; background: var(--oro); }
.eyebrow--oro { color: var(--oro); }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.8vw, 52px); line-height: 1.04; }
.lead { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.3; }
.text { font-size: 17px; line-height: 1.7; color: var(--pizarra); }
.note { font-size: 14px; line-height: 1.6; color: var(--pizarra); }

.section { padding-block: clamp(72px, 9vw, 128px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 64px; margin-bottom: 48px; }
.section-head__title { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.section-head > .text { flex: 1 1 360px; max-width: 460px; }

.costura { display: flex; flex-direction: column; gap: 5px; margin-bottom: 48px; }
.costura::before { content: ""; height: 1px; background: var(--linea); }
.costura::after { content: ""; border-top: 1px dashed var(--oro); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 28px; text-decoration: none; font-size: 15px; font-weight: 700; letter-spacing: .02em; transition: background-color .2s, color .2s; }
.btn svg { flex: none; }
.btn--azul { background: var(--azul); color: var(--marfil); border-bottom: 3px solid var(--oro); }
.btn--azul:hover { background: var(--azul-2); color: var(--marfil); }
.btn--linea { border: 1px solid var(--azul); color: var(--azul); }
.btn--linea:hover { background: var(--azul); color: var(--marfil); }
.btn--marfil { background: var(--marfil); color: var(--azul); }
.btn--marfil:hover { background: #FFFFFF; color: var(--azul); }
.btn--claro { border: 1px solid var(--marfil); color: var(--marfil); }
.btn--claro:hover { background: var(--marfil); color: var(--azul); }
.btns { display: flex; flex-wrap: wrap; gap: 12px 16px; }

.more { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--azul); text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--oro); }
.more svg { transition: transform .25s var(--ease); }
.more:hover svg { transform: translateX(4px); }

/* ---------- Cabecera ---------- */
.header { position: relative; z-index: 20; background: var(--marfil); }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 40px; padding-block: 24px; }
.header__logo { display: block; line-height: 0; }
.header__logo img { height: 48px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 32px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nav a:hover { color: var(--burdeos); }
.nav .nav__wa { gap: 10px; padding: 0 18px; border: 1px solid var(--azul); font-size: 14px; letter-spacing: .04em; text-transform: none; }
.nav .nav__wa:hover { background: var(--azul); color: var(--marfil); }
.menu-btn { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; padding: 0; background: transparent; border: 0; color: var(--azul); cursor: pointer; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

/* ---------- Portada ---------- */
.hero { overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  grid-template-rows: 1fr repeat(6, auto) 1fr;
  grid-template-areas: ". photo" "eyebrow photo" "title photo" "lead photo" "body photo" "cta photo" "facts photo" ". photo";
  column-gap: clamp(56px, 7vw, 112px);
  row-gap: 28px;
  padding-block: clamp(32px, 5vw, 72px) clamp(96px, 9vw, 136px);
}
.hero__eyebrow { grid-area: eyebrow; }
.hero__title { grid-area: title; font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 5.6vw, 84px); line-height: .98; letter-spacing: -.01em; }
.hero__lead { grid-area: lead; font-size: clamp(21px, 1.9vw, 26px); }
.hero__body { grid-area: body; max-width: 520px; }
.hero__cta { grid-area: cta; padding-top: 4px; }
.hero__facts { grid-area: facts; margin-top: 20px; display: flex; flex-wrap: wrap; border-top: 1px solid var(--linea); }
.hero__facts > div { flex: 1 1 140px; padding: 22px 24px 0 0; display: flex; flex-direction: column-reverse; gap: 6px; }
.hero__facts dt { font-size: 13px; line-height: 1.5; color: var(--pizarra); }
.hero__facts dd { font-family: var(--serif); font-weight: 400; font-size: 31px; line-height: 1; }
.hero__photo { grid-area: photo; align-self: center; justify-self: center; width: min(100%, 500px); }

.line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.line > span { display: block; }
.line--2 { padding-bottom: .24em; margin-bottom: -.24em; }
.line--2 > span { position: relative; display: inline-block; }
.stitch { position: absolute; left: .04em; right: .32em; bottom: -.1em; height: 0; border-top: 2px dashed var(--oro); }

.portrait { position: relative; }
.portrait__panel { position: absolute; top: 56px; right: -48px; bottom: -48px; left: 72px; background-color: var(--azul); background-image: var(--rayas); }
.portrait__img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.corner { position: absolute; width: 64px; height: 64px; border: 0 solid var(--oro); }
.corner.tl { top: -18px; left: -18px; border-top-width: 1.5px; border-left-width: 1.5px; }
.corner.tr { top: -18px; right: -18px; border-top-width: 1.5px; border-right-width: 1.5px; }
.corner.bl { bottom: -18px; left: -18px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.corner.br { bottom: -18px; right: -18px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.corner.in { width: 54px; height: 54px; border-color: rgba(173,129,51,.5); }
.corner.in.tl { top: -9px; left: -9px; border-top-width: 1px; border-left-width: 1px; }
.corner.in.tr { top: -9px; right: -9px; border-top-width: 1px; border-right-width: 1px; }
.corner.in.bl { bottom: -9px; left: -9px; border-bottom-width: 1px; border-left-width: 1px; }
.corner.in.br { bottom: -9px; right: -9px; border-bottom-width: 1px; border-right-width: 1px; }
.portrait__plate { position: absolute; left: clamp(-36px, -2.4vw, -12px); bottom: 40px; display: flex; flex-direction: column; gap: 8px; padding: 18px 26px 16px; background: var(--marfil); border-top: 3px solid var(--oro); }
.portrait__plate strong { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1; }
.portrait__plate span { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--oro-txt); }

/* ---------- Cinta métrica ---------- */
.cinta { position: relative; overflow: hidden; background: var(--azul); color: var(--marfil); border-block: 1px solid rgba(173,129,51,.55); }
.cinta__ticks { height: 12px; opacity: .85; background-image: linear-gradient(90deg, var(--oro) 0 1px, transparent 1px), linear-gradient(90deg, var(--oro) 0 1px, transparent 1px), linear-gradient(90deg, var(--oro) 0 1px, transparent 1px); background-size: 8px 4px, 40px 7px, 80px 12px; background-repeat: repeat-x; }
.cinta__ticks--bottom { transform: scaleY(-1); }
.cinta__track { display: flex; width: max-content; padding: 12px 0 14px; }
.cinta__list { flex: none; display: flex; align-items: center; gap: 24px; padding-right: 24px; white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.2; }
.cinta__list .rombo { width: 6px; height: 6px; background: var(--oro); transform: rotate(45deg); }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px 32px; }
.service { display: flex; flex-direction: column; }
.service__art { position: relative; height: 340px; background: var(--papel); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.service__art--center { align-items: center; }
.service__art img { width: auto; }
.art-colete { position: absolute; left: 6%; bottom: 7%; height: 70%; }
.art-paleto { position: absolute; right: 4%; bottom: 4%; height: 86%; }
.art-smoking { height: 90%; margin-bottom: 4%; }
.art-perchas { width: 94% !important; height: auto; }
.service__body { display: flex; flex-direction: column; gap: 14px; padding: 28px 2px 0; }
.service__head { display: flex; align-items: baseline; gap: 14px; }
.service__num { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--oro-txt); }
.service__title { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.1; }
.service__body > p { font-size: 16px; line-height: 1.65; color: var(--pizarra); }
.checks { margin-top: 4px; border-top: 1px solid var(--linea); }
.checks li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--linea); font-size: 15px; }
.checks li::before { content: ""; flex: none; width: 5px; height: 5px; background: var(--oro); transform: rotate(45deg); }

/* ---------- El oficio ---------- */
.oficio { padding-bottom: clamp(72px, 9vw, 128px); }
.oficio__band { position: relative; max-width: 1440px; margin: 0 auto; }
.oficio__band > img { width: 100%; aspect-ratio: 1672 / 941; }
.oficio__intro { position: absolute; left: clamp(16px, 5vw, 80px); top: 50%; transform: translateY(-50%); width: 30%; display: flex; flex-direction: column; gap: 20px; }
.oficio__intro .h2 { font-size: clamp(28px, 3.1vw, 46px); line-height: 1.06; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 32px; padding-top: clamp(48px, 6vw, 80px); }
.step { position: relative; display: flex; flex-direction: column; gap: 16px; }
.step__thread { position: absolute; left: 66px; right: -24px; top: 28px; height: 0; border-top: 2px dashed var(--oro); }
.step__btn { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--azul); color: var(--marfil); box-shadow: inset 0 0 0 5px var(--azul), inset 0 0 0 6px var(--oro); font-family: var(--serif); font-weight: 400; font-size: 19px; }
.step__btn--oro { background: var(--oro); color: var(--azul); box-shadow: inset 0 0 0 5px var(--oro), inset 0 0 0 6px var(--azul); }
.step__art { aspect-ratio: 3 / 2; background: var(--papel); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.step__art--azul { background: var(--azul); }
.step__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.step__art img.contain { width: 92%; height: 92%; object-fit: contain; }
.step:hover .step__art img { transform: scale(1.06); }
.step__head { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.step__head svg { flex: none; }
.step__head h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.1; }
.step > p { font-size: 16px; line-height: 1.65; color: var(--pizarra); }

/* ---------- Colaciones ---------- */
.colaciones { background-color: var(--azul); background-image: var(--rayas); color: var(--marfil); border-bottom: 6px solid var(--oro); }
.colaciones__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-rows: 1fr repeat(5, auto) 1fr;
  grid-template-areas: ". photos" "eyebrow photos" "title photos" "lead photos" "body photos" "cta photos" ". photos";
  column-gap: clamp(48px, 6vw, 96px);
  row-gap: 24px;
}
.colaciones .eyebrow { grid-area: eyebrow; }
.colaciones .h2 { grid-area: title; }
.colaciones .lead { grid-area: lead; }
.colaciones__body { grid-area: body; max-width: 500px; color: var(--claro); }
.colaciones__cta { grid-area: cta; padding-top: 8px; }
.colaciones__photos { grid-area: photos; align-self: center; display: flex; flex-direction: column; gap: 18px; }
.mosaic { display: flex; gap: 16px; }
.mosaic > div { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.mosaic > div:last-child { padding-top: 56px; }
.mosaic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.colaciones__photos figcaption { font-size: 13px; line-height: 1.5; color: var(--claro); }

/* ---------- Galería ---------- */
.visor {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr;
  grid-template-areas: "stage chips" "stage thumbs" "stage note" "stage .";
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: 24px;
}
.visor__stage { grid-area: stage; }
.visor__frame { position: relative; }
.visor__frame::before { content: ""; position: absolute; top: 28px; left: 28px; right: -28px; bottom: -28px; background-color: var(--azul); background-image: var(--rayas); }
.visor__img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--papel); }
.visor__img.is-changing { animation: fade-in .45s ease both; }
.visor__arrows { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.visor__arrows button { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; cursor: pointer; background: var(--marfil); color: var(--azul); }
.visor__arrows button + button { background: var(--azul); color: var(--marfil); border-bottom: 3px solid var(--oro); }
.visor__caption { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 44px; padding-bottom: 14px; border-bottom: 1px solid var(--linea); }
.visor__caption > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.visor__cat { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--oro-txt); }
.visor__title { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; }
.visor__count { flex: none; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--pizarra); }
.chips { grid-area: chips; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; background: transparent; color: var(--azul); border: 1px solid var(--azul); cursor: pointer; font-size: 14px; font-weight: 700; letter-spacing: .06em; transition: background-color .2s, color .2s; }
.chip span { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 15px; }
.chip:hover { background: var(--papel); }
.chip[aria-pressed="true"] { background: var(--azul); color: var(--marfil); }
.thumbs { grid-area: thumbs; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 560px; }
.thumb { display: block; padding: 0; border: 0; background: var(--papel); cursor: pointer; overflow: hidden; outline: 2px solid transparent; outline-offset: 3px; }
.thumb[hidden] { display: none; }
.thumb img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; opacity: .72; transition: transform .5s ease, opacity .3s ease; }
.thumb:hover img, .thumb[aria-current="true"] img { opacity: 1; }
.thumb:hover img { transform: scale(1.06); }
.thumb[aria-current="true"] { outline-color: var(--oro); }
.visor__note { grid-area: note; }

.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 40px clamp(40px, 6vw, 96px); padding-top: 80px; }
.feature > img { flex: 1 1 360px; min-width: 0; max-width: 520px; aspect-ratio: 1 / 1; object-fit: cover; }
.feature > div { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.feature h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.9vw, 40px); line-height: 1.08; }
.feature .text { max-width: 480px; }

/* ---------- El taller ---------- */
.taller { background: var(--papel); }
.taller__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px clamp(48px, 6vw, 96px); }
.taller__media { flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.taller__media > img:first-child { grid-row: span 2; width: 100%; height: 100%; object-fit: cover; }
.taller__media > img + img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.taller__tools { aspect-ratio: 4 / 3; background: var(--marfil); display: flex; align-items: center; justify-content: center; }
.taller__tools img { width: 88%; height: 88%; object-fit: contain; }
.taller__text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.contact { margin-top: 4px; border-top: 1px solid var(--linea); }
.contact li { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--linea); }
.contact svg { flex: none; margin-top: 2px; }
.contact li > div { display: flex; flex-direction: column; gap: 4px; }
.contact small { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--pizarra); }
.contact span, .contact a { font-size: 17px; line-height: 1.5; }
.maestro { display: flex; align-items: center; gap: 16px; padding-top: 10px; }
.maestro img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--oro); }
.maestro p { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.35; }

/* ---------- Llamada final y pie ---------- */
.final { background-color: var(--azul); background-image: var(--rayas); color: var(--marfil); border-bottom: 6px solid var(--oro); }
.final__inner { max-width: 880px; margin: 0 auto; padding: clamp(80px, 9vw, 120px) var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.final__inner > img { height: 96px; width: auto; }
.final h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.3vw, 62px); line-height: 1.02; }
.final .lead { color: var(--claro); }
.final .btns { justify-content: center; padding-top: 8px; }

.footer { background: var(--azul); color: var(--claro); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 48px 64px; padding-block: 72px 56px; }
.footer__top > img { width: 320px; max-width: 100%; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 40px 80px; }
.footer__cols > * { display: flex; flex-direction: column; gap: 6px; }
.footer__label { padding-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--oro); }
.footer__cols a, .footer__cols span:not(.footer__label) { display: inline-flex; align-items: center; min-height: 36px; color: var(--marfil); text-decoration: none; font-size: 15px; }
.footer__cols a:hover { color: var(--oro); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 22px 0 104px; border-top: 1px solid rgba(250,242,228,.16); font-size: 13px; line-height: 1.5; color: #B9B3A8; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 26px 0 8px; border-radius: 999px; background: var(--azul); color: var(--marfil); text-decoration: none; font-size: 15px; font-weight: 700; letter-spacing: .02em; box-shadow: 0 10px 28px rgba(16,28,51,.28), inset 0 0 0 1px rgba(173,129,51,.65); transition: opacity .35s ease, transform .35s var(--ease), background-color .2s; }
.wa-float:hover { background: var(--azul-2); color: var(--marfil); }
.wa-float__icon { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--oro); color: var(--azul); }
.wa-float__icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: wa-pulse 2.4s ease-out 2.2s 3; }
.js .wa-float.is-hidden { opacity: 0; transform: translateY(16px) scale(.92); pointer-events: none; }
@keyframes wa-pulse { from { box-shadow: 0 0 0 0 rgba(173,129,51,.6); } to { box-shadow: 0 0 0 18px rgba(173,129,51,0); } }

/* ---------- Animaciones ---------- */
@keyframes up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes wipe-v { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes unveil { from { clip-path: inset(0 0 100% 0); transform: scale(1.06); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide { from { opacity: 0; transform: translate(28px, 28px); } to { opacity: 1; transform: none; } }
@keyframes plate { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-33.3333%); } }

.a-in { animation: up .9s var(--ease) both; }
.a-rise { animation: rise 1s cubic-bezier(.2, .75, .15, 1) both; }
.stitch { animation: wipe 1.1s cubic-bezier(.6, .1, .3, 1) 1.15s both; }
.portrait__img { animation: unveil 1.4s cubic-bezier(.7, 0, .2, 1) .25s both; }
.portrait__panel { animation: slide 1.2s var(--ease) .55s both; }
.corner { animation: fade-in .8s ease 1.3s both; }
.portrait__plate { animation: plate .9s var(--ease) 1.45s both; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .22s; } .d3 { animation-delay: .36s; } .d4 { animation-delay: .6s; }
.d5 { animation-delay: .72s; } .d6 { animation-delay: .84s; } .d7 { animation-delay: .96s; }
.cinta__track { animation: marquee 45s linear infinite; }
.cinta:hover .cinta__track { animation-play-state: paused; }

@supports (animation-timeline: view()) {
  .reveal { animation: up linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  .reveal.r2 { animation-range: entry 10% entry 75%; }
  .reveal.r3 { animation-range: entry 20% entry 90%; }
  .reveal.r4 { animation-range: entry 30% cover 30%; }
  .step__thread { animation: wipe linear both; animation-timeline: view(); animation-range: cover 12% cover 30%; }
  .step__thread.t2 { animation-range: cover 20% cover 38%; }
  .step__thread.t3 { animation-range: cover 28% cover 46%; }
}

/* ---------- Tableta y celular ---------- */
@media (max-width: 900px) {
  .menu-btn { display: flex; }
  .header { border-bottom: 1px solid var(--linea); }
  .header__bar { padding-block: 12px; padding-right: 12px; }
  .header__logo img { height: 42px; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: var(--marfil); border-bottom: 1px solid var(--linea); }
  .js .nav.is-open { display: flex; }
  .nav a { min-height: 52px; border-bottom: 1px solid var(--linea); font-family: var(--serif); font-weight: 400; font-size: 21px; letter-spacing: 0; text-transform: none; }
  .nav .nav__wa { margin-top: 20px; justify-content: center; padding: 0 20px; min-height: 56px; background: var(--azul); color: var(--marfil); border: 0; border-bottom: 3px solid var(--oro); font-family: var(--sans); font-size: 15px; font-weight: 700; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "eyebrow" "title" "photo" "lead" "body" "cta" "facts"; row-gap: 22px; padding-block: 36px 64px; }
  .hero__photo { justify-self: start; width: min(calc(100% - 32px), 440px); margin: 18px 0 30px 8px; }
  .hero__lead { animation-delay: 1.1s; } .hero__body { animation-delay: 1.22s; } .hero__cta { animation-delay: 1.34s; } .hero__facts { animation-delay: 1.46s; }
  .portrait__img { animation-delay: .45s; } .portrait__panel { animation-delay: .75s; } .corner { animation-delay: 1.5s; } .portrait__plate { animation-delay: 1.65s; }

  .colaciones__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "eyebrow" "title" "lead" "photos" "body" "cta"; row-gap: 22px; }

  .visor { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "chips" "stage" "thumbs" "note"; }
  .visor__stage { max-width: 560px; }
}

@media (max-width: 760px) {
  .section-head { margin-bottom: 32px; }
  .costura { margin-bottom: 32px; }
  .oficio__intro { position: static; transform: none; width: auto; padding: 32px var(--gutter) 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 32px; }
  .step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 10px; align-content: start; padding-bottom: 32px; }
  .step:last-child { padding-bottom: 0; }
  .step > * { grid-column: 2; }
  .step > .step__btn { grid-column: 1; grid-row: 1 / span 3; width: 44px; height: 44px; font-size: 16px; box-shadow: inset 0 0 0 4px var(--azul), inset 0 0 0 5px var(--oro); }
  .step > .step__btn--oro { box-shadow: inset 0 0 0 4px var(--oro), inset 0 0 0 5px var(--azul); }
  .step > .step__thread { grid-column: auto; grid-row: auto; left: 21px; right: auto; top: 52px; bottom: 8px; width: 0; height: auto; border-top: 0; border-left: 2px dashed var(--oro); }
  .step__head h3 { font-size: 21px; }
  .step > p { font-size: 15px; line-height: 1.6; }
  .service__art { height: 230px; }
  .service__title { font-size: 24px; }
  .hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__facts > div { padding: 18px 8px 0 0; }
  .hero__facts dd { font-size: 21px; }
  .hero__facts dt { font-size: 12px; line-height: 1.4; }
  .portrait__panel { top: 40px; right: -24px; bottom: -28px; left: 52px; }
  .corner { width: 44px; height: 44px; }
  .corner.tl { top: -12px; left: -12px; } .corner.tr { top: -12px; right: -12px; }
  .corner.bl { bottom: -12px; left: -12px; } .corner.br { bottom: -12px; right: -12px; }
  .corner.in { display: none; }
  .portrait__plate { left: -8px; bottom: 28px; padding: 14px 20px 12px; gap: 6px; }
  .portrait__plate strong { font-size: 22px; }
  .portrait__plate span { font-size: 10px; }
  .cinta__list { font-size: 18px; gap: 18px; padding-right: 18px; }
  .cinta__track { padding: 10px 0 12px; animation-duration: 38s; }
  .mosaic { gap: 12px; } .mosaic > div { gap: 12px; } .mosaic > div:last-child { padding-top: 40px; }
  .visor__frame { margin-right: 16px; }
  .visor__frame::before { top: 16px; left: 16px; right: -16px; bottom: -16px; }
  .visor__arrows { right: 12px; bottom: 12px; }
  .visor__caption { margin-top: 30px; }
  .visor__title { font-size: 20px; }
  .thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .thumb { outline-offset: 2px; }
  .chips { gap: 8px; }
  .chip { padding: 0 14px; font-size: 13px; }
  .feature { padding-top: 56px; }
  .taller__media { gap: 12px; }
  .btns .btn { flex: 1 1 100%; }
  .final__inner > img { height: 80px; }
  .footer__top > img { margin-inline: auto; }
  .footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; width: 100%; }
  .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 60px; padding: 0; justify-content: center; }
  .wa-float__text { display: none; }
}

@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .step__thread, .step__thread.t2, .step__thread.t3 { animation-name: wipe-v; animation-range: cover 18% cover 48%; }
  }
}

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