/* Núcleo (demo): estilo editorial, papel y tinta */
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-display: swap; font-weight: 400 900; src: url('../fonts/bodoni-moda-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bodoni Moda'; font-style: italic; font-display: swap; font-weight: 400 900; src: url('../fonts/bodoni-moda-latin-wght-italic.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-display: swap; font-weight: 400 700; src: url('../fonts/instrument-sans-latin-wght-normal.woff2') format('woff2'); }

:root { --paper: #f4f1ea; --ink: #161512; --clay: #b4552d; --stone: #6f6a60; --line: rgba(22, 21, 18, 0.14); --pill: #b4552d; --scroll-bar: #b4552d; --gutter: clamp(1.1rem, 3.2vw, 3rem); }
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: 'Instrument Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.55; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
h1, h2, h3 { font-family: 'Bodoni Moda', serif; font-weight: 500; line-height: 1.04; letter-spacing: -0.01em; }
.kicker { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); }

/* Aviso superior */
.notice { background: var(--ink); color: var(--paper); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; --mq-t: 40s; -webkit-mask-image: none; mask-image: none; }
.notice .marquee-track { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.notice span { white-space: nowrap; }

/* Encabezado */
.head { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 0.9rem var(--gutter); background: rgba(244, 241, 234, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: transform 0.45s var(--ease-out); }
.head.is-hidden { transform: translateY(-100%); }
.head-nav { display: flex; gap: 1.4rem; font-size: 0.85rem; }
.head-nav a, .head-link { text-decoration: none; position: relative; }
.head-nav a::after, .head-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out); }
.head-nav a:hover::after, .head-link:hover::after { transform: scaleX(1); transform-origin: left; }
.logo { font-family: 'Bodoni Moda', serif; font-size: 1.5rem; letter-spacing: 0.24em; text-decoration: none; padding-left: 0.24em; }
.head-end { display: flex; justify-content: flex-end; align-items: center; gap: 1.4rem; font-size: 0.85rem; }
.bag-btn { display: inline-flex; align-items: center; gap: 0.45rem; }
.bag-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.35rem; height: 1.35rem; padding: 0 0.3rem; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 0.72rem; }
.bag-count.bump { animation: bagBump 0.5s var(--ease-out); }
@keyframes bagBump { 40% { transform: scale(1.4); background: var(--clay); } }
@media (max-width: 760px) { .head-nav, .head-link { display: none; } .head { grid-template-columns: auto 1fr; } .logo { padding-left: 0; font-size: 1.3rem; } }

/* Héroe */
.hero { position: relative; min-height: calc(100svh - 6rem); display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.hero-media { position: absolute; inset: -8% 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 30%, rgba(10, 8, 5, 0.62)); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; width: 100%; padding: 0 var(--gutter) clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 640px) { .hero-copy { padding-bottom: 4.6rem; } } /* deja libre la etiqueta de demo */
.hero .kicker { color: rgba(255, 255, 255, 0.85); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(3.3rem, 12.5vw, 11.5rem); line-height: 0.96; }
.hero h1 em { font-weight: 400; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem; margin-top: 1.6rem; }
.hero-foot p { max-width: 26rem; font-size: 1.02rem; }
.link-btn { display: inline-flex; gap: 0.6rem; padding: 0.85rem 1.5rem; border-radius: 99px; background: var(--paper); color: var(--ink); font-size: 0.9rem; font-weight: 500; text-decoration: none; }

/* Manifiesto */
.manifesto { padding: clamp(5rem, 12vw, 10rem) var(--gutter); max-width: 76rem; }
.manifesto-text { margin-top: 1.5rem; font-family: 'Bodoni Moda', serif; font-size: clamp(1.9rem, 4.6vw, 4rem); line-height: 1.14; }

/* Secciones */
.section { padding: clamp(3.5rem, 7vw, 6rem) var(--gutter); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.section-head h2, .guide h2, .atelier h2 { font-size: clamp(2.5rem, 6.4vw, 5.2rem); }
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.filter { padding: 0.5rem 1rem; border: 1px solid var(--line); border-radius: 99px; font-size: 0.82rem; transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.count { margin: 1.4rem 0 1rem; font-size: 0.8rem; color: var(--stone); }

/* Cuadrícula de productos */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: clamp(1.2rem, 2.2vw, 2rem) clamp(0.8rem, 1.6vw, 1.4rem); }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.card { display: block; width: 100%; text-align: left; }
.card-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #e6e1d6; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.card:hover .card-photo img { transform: scale(1.06); }
.card-tag { position: absolute; left: 0.6rem; top: 0.6rem; padding: 0.2rem 0.55rem; background: var(--paper); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.card-cta { position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0.6rem; padding: 0.65rem; background: var(--paper); font-size: 0.8rem; text-align: center; transform: translateY(calc(100% + 0.8rem)); transition: transform 0.6s var(--ease-out); }
.card:hover .card-cta, .card:focus-visible .card-cta { transform: none; }
@media (hover: none) { .card-cta { display: none; } }
.card-meta { display: flex; justify-content: space-between; gap: 0.6rem; margin-top: 0.7rem; font-size: 0.88rem; }
.card-meta span:last-child { color: var(--stone); white-space: nowrap; }

/* Lookbook */
.lookbook { background: var(--ink); color: var(--paper); }
.look-head { padding: clamp(3.5rem, 6vw, 4rem) var(--gutter) 1.6rem; }
.lookbook .kicker { color: rgba(244, 241, 234, 0.65); margin-bottom: 0.7rem; }
.look-head h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.look-track { padding: 0 var(--gutter) clamp(3rem, 6vw, 4rem); gap: 1rem; }
.hs-on .look-track { padding-bottom: 0; }
.look { width: 68vw; }
.look-wide { width: 84vw; }
.look img { width: 100%; height: 52vh; object-fit: cover; }
.look figcaption { display: flex; gap: 0.8rem; margin-top: 0.7rem; font-size: 0.85rem; }
.look figcaption span { color: #e7a184; font-family: 'Bodoni Moda', serif; }
@media (min-width: 1024px) { .look { width: 24vw; } .look-wide { width: 46vw; } .look img { height: 58vh; } .look-track { gap: 1.5rem; } }

/* Atelier */
.atelier { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(4rem, 9vw, 8rem) var(--gutter) clamp(3rem, 5vw, 4rem); }
.atelier-photo { overflow: hidden; height: clamp(22rem, 46vw, 40rem); position: relative; }
.atelier-photo img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }
.atelier-copy .kicker { margin-bottom: 1rem; }
.atelier-copy > p:not(.kicker) { margin-top: 1.4rem; color: var(--stone); max-width: 32rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.stats dt { font-size: 0.74rem; color: var(--stone); }
.stats dd { margin: 0.2rem 0 0; font-family: 'Bodoni Moda', serif; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; }
@media (max-width: 860px) { .atelier { grid-template-columns: 1fr; } }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding-top: 0; }
.step { border-top: 1px solid var(--ink); padding-top: 1rem; }
.step > span { font-family: 'Bodoni Moda', serif; font-style: italic; color: var(--clay); }
.step h3 { font-size: 1.9rem; margin-top: 0.4rem; }
.step p { margin-top: 0.5rem; color: var(--stone); font-size: 0.92rem; max-width: 22rem; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* Guía */
.guide { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem clamp(2rem, 5vw, 5rem); }
.guide .kicker { margin-bottom: 1rem; }
.acc details { border-top: 1px solid var(--line); }
.acc details:last-child { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; cursor: pointer; font-size: 1.05rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary span { transition: transform 0.35s var(--ease-out); }
.acc details[open] summary span { transform: rotate(45deg); }
.acc p { padding-bottom: 1.2rem; color: var(--stone); font-size: 0.95rem; }
.table-wrap { padding-bottom: 1.2rem; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { padding: 0.55rem 0.5rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { font-weight: 500; color: var(--stone); font-size: 0.78rem; }
@media (max-width: 760px) { .guide { grid-template-columns: 1fr; } }

/* Tira de fotos */
.strip { padding: 1rem 0 clamp(3rem, 6vw, 5rem); --mq-t: 55s; --mq-gap: 0.8rem; }
.strip img { width: clamp(9rem, 16vw, 14rem); height: auto; aspect-ratio: 4 / 5; object-fit: cover; flex: none; }

/* Pie */
.foot { padding: 0 var(--gutter) 5rem; border-top: 1px solid var(--line); overflow: hidden; }
.foot-word { font-family: 'Bodoni Moda', serif; font-size: 20.5vw; line-height: 1; letter-spacing: 0.02em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(22, 21, 18, 0.35); padding: 1.5rem 0 0.5rem; white-space: nowrap; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; font-size: 0.82rem; color: var(--stone); }
.foot-row nav { display: flex; gap: 1rem; }
.foot-row a { text-underline-offset: 3px; }

/* Vista de producto */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: rgba(22, 21, 18, 0.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.pd { width: min(60rem, 94vw); max-height: 92svh; overflow: auto; margin: auto; }
.pd[open] { animation: pdIn 0.55s var(--ease-out); }
@keyframes pdIn { from { opacity: 0; transform: translateY(26px); } }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; }
.pd-photo { background: #e6e1d6; }
.pd-photo img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; }
.pd-info h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-top: 0.6rem; }
.pd-price { margin-top: 0.7rem; font-size: 1.1rem; }
.pd-desc { margin-top: 1rem; color: var(--stone); font-size: 0.95rem; }
.pd-color { margin-top: 1rem; font-size: 0.88rem; }
.sizes { border: 0; padding: 0; margin-top: 1rem; }
.sizes legend { font-size: 0.88rem; margin-bottom: 0.5rem; }
.size-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.size { min-width: 2.75rem; height: 2.75rem; padding: 0 0.6rem; border: 1px solid var(--line); font-size: 0.85rem; transition: all 0.2s ease; }
.size:hover { border-color: var(--ink); }
.size[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pd-error { margin-top: 0.6rem; color: #a2281a; font-size: 0.85rem; }
.add-btn { width: 100%; margin-top: 1.3rem; padding: 1rem; background: var(--ink); color: var(--paper); font-size: 0.92rem; position: relative; overflow: hidden; transition: background 0.3s ease; }
.add-btn:hover { background: var(--clay); }
.add-btn:disabled { opacity: 0.4; cursor: not-allowed; background: var(--ink); }
.pd-note { margin-top: 0.8rem; color: var(--stone); font-size: 0.76rem; text-align: center; }
.dlg-close { position: absolute; right: 0.7rem; top: 0.7rem; z-index: 2; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--paper); font-size: 0.9rem; transition: transform 0.4s var(--ease-out); }
.dlg-close:hover { transform: rotate(90deg); }
.dlg-close-static { position: static; }
@media (max-width: 680px) { .pd-grid { grid-template-columns: 1fr; } .pd-photo img { aspect-ratio: 4 / 4; } }

/* Bolsa */
.bag { position: fixed; inset: 0 0 0 auto; margin: 0 0 0 auto; width: min(27rem, 100vw); max-width: none; height: 100dvh; max-height: none; }
.bag[open] { display: flex; flex-direction: column; animation: bagIn 0.55s var(--ease-out); }
@keyframes bagIn { from { transform: translateX(100%); } }
.bag-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); }
.bag-head h2 { font-size: 1.7rem; }
.bag-items { flex: 1; overflow-y: auto; padding: 1.1rem 1.3rem; }
.bag-empty { color: var(--stone); font-size: 0.95rem; padding: 2rem 0; text-align: center; }
.bag-item { display: grid; grid-template-columns: 4.6rem 1fr auto; gap: 0.9rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.bag-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.bag-item small { display: block; color: var(--stone); font-size: 0.78rem; margin-top: 0.15rem; }
.bag-qty { display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 0.5rem; font-size: 0.85rem; }
.bag-qty button { width: 1.6rem; height: 1.6rem; border: 1px solid var(--line); }
.bag-remove { font-size: 0.75rem; color: var(--stone); text-decoration: underline; text-underline-offset: 2px; align-self: start; }
.bag-foot { padding: 1rem 1.3rem 1.3rem; border-top: 1px solid var(--line); }
.bag-ship { font-size: 0.82rem; }
.ship-track { height: 3px; background: var(--line); margin-top: 0.5rem; }
.ship-track span { display: block; height: 100%; width: 100%; background: var(--clay); transform: scaleX(var(--ship, 0)); transform-origin: 0 50%; transition: transform 0.6s var(--ease-out); }
.bag-total { display: flex; justify-content: space-between; margin-top: 1rem; font-size: 1.05rem; }
.modal-open { overflow: hidden; }
