/* La Trama — bazar de telas: lino crudo, terracota, índigo y mostaza, con costuras punteadas. */
:root {
  --bg: #f2ebdf; --paper: #faf6ee; --ink: #2a211c; --muted: #6b5f55; --line: rgba(42,33,28,.16);
  --accent: #b5532f; --terra: #b5532f; --indigo: #23305e; --mustard: #d9a43b; --sage: #8a9a76;
  --serif: "Young Serif", Georgia, serif; --sans: "Work Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.16,1,.3,1); --gut: clamp(16px, 4vw, 56px);
  --seam: repeating-linear-gradient(90deg, currentColor 0 8px, transparent 8px 14px);
}
body { background: var(--bg); color: var(--ink); font-family: var(--sans); background-image: radial-gradient(rgba(42,33,28,.05) 1px, transparent 1px); background-size: 6px 6px; }
::selection { background: var(--mustard); color: var(--ink); }
.wrap { width: min(1320px, 100%); margin-inline: auto; padding-inline: var(--gut); }
em { font-style: italic; color: var(--terra); }
.kick { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); margin-bottom: 16px; }
.kick::before { content: "✂"; font-size: 15px; }
.kick.light { color: var(--mustard); }
.h2 { font: 400 clamp(36px, 5vw, 70px)/1.04 var(--serif); letter-spacing: -.02em; }
.lead { font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); max-width: 50ch; margin-top: 16px; }
.sec-head { display: grid; gap: 22px; margin-bottom: 40px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 24px; border-radius: 10px; font-weight: 600; font-size: 15px; line-height: 1; transition: background .35s var(--ease), color .35s, transform .35s var(--ease); white-space: nowrap; position: relative; }
.btn-terra { background: var(--terra); color: #fff; }
.btn-terra::after { content: ""; position: absolute; inset: 4px; border: 1.5px dashed rgba(255,255,255,.5); border-radius: 7px; pointer-events: none; }
.btn-terra:hover { background: var(--indigo); }
.btn-line { border: 1.5px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.btn-sm { padding: 10px 14px; font-size: 14px; background: var(--ink); color: var(--bg); }
.btn-sm:hover { background: var(--terra); }
.btn-block { width: 100%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 100; background: var(--bg); transition: box-shadow .4s; }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); background: rgba(242,235,223,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav-in { display: flex; align-items: center; gap: 26px; height: 78px; width: min(1320px, 100%); margin-inline: auto; padding-inline: var(--gut); }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo svg { width: 36px; height: 36px; fill: none; stroke: var(--terra); stroke-width: 2.2; stroke-dasharray: 3 2.5; }
.logo span { display: grid; font: 400 26px/1 var(--serif); }
.logo small { font: 600 10.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.menu { display: none; gap: 24px; margin-left: auto; font-weight: 500; }
.menu a { position: relative; padding: 6px 0; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; color: var(--terra); background: var(--seam); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.menu a:hover::after { transform: scaleX(1); }
.nav-cta { display: none; }
.burger { margin-left: auto; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; }
.burger span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-open .menu { display: flex; flex-direction: column; position: fixed; inset: 78px 0 0 0; background: var(--bg); padding: 30px var(--gut); gap: 8px; font: 400 38px/1.25 var(--serif); }

/* Hero */
.hero { position: relative; min-height: min(92svh, 900px); display: grid; align-items: center; overflow: hidden; padding: 40px 0; }
.swatches { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 0; }
.sw { position: relative; overflow: hidden; }
.sw img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.sw::after { content: ""; position: absolute; inset: 10px; border: 1.5px dashed rgba(255,255,255,.55); pointer-events: none; }
.sw:hover img { transform: scale(1.08); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(60% 70% at 30% 50%, rgba(242,235,223,.25), transparent 70%); pointer-events: none; }
.hero-in { position: relative; z-index: 2; }
.hero-card { position: relative; max-width: 640px; padding: clamp(28px, 4vw, 52px); background: var(--paper); border-radius: 6px; box-shadow: 0 40px 80px -30px rgba(42,33,28,.55); }
.hero-card::before { content: ""; position: absolute; inset: 10px; border: 1.5px dashed var(--line); border-radius: 3px; pointer-events: none; }
.hero-card::after { content: ""; position: absolute; top: 18px; right: 18px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 1px 3px rgba(0,0,0,.25); }
.stamp { display: inline-block; font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--terra); padding: 7px 12px; border: 1.5px solid var(--terra); border-radius: 4px; transform: rotate(-2deg); }
.hero-title { font: 400 clamp(46px, 6.6vw, 96px)/1 var(--serif); letter-spacing: -.025em; margin: 22px 0 18px; }
.hero-lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 28px; padding-top: 20px; border-top: 1.5px dashed var(--line); font-size: 14px; color: var(--muted); }
.hero-facts b { display: block; font: 400 30px/1 var(--serif); color: var(--ink); }

/* Cinta */
.ribbon { overflow: hidden; background: var(--indigo); color: var(--bg); padding: 16px 0; border-block: 4px solid var(--mustard); }
.ribbon .marquee-track { display: flex; gap: 26px; width: max-content; animation: mq 42s linear infinite; font: 400 24px/1 var(--serif); white-space: nowrap; }
.ribbon i { font-style: normal; color: var(--mustard); }
@keyframes mq { to { transform: translateX(-50%); } }

/* Telas */
.fabrics { padding: clamp(70px, 9vw, 130px) 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 10px 16px; border-radius: 999px; border: 1.5px dashed var(--ink); font-weight: 600; font-size: 14px; transition: all .3s var(--ease); }
.chip:hover { background: var(--paper); }
.chip.is-on { background: var(--ink); color: var(--bg); border-style: solid; }
.fab-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.fab { background: var(--paper); border-radius: 8px; overflow: hidden; box-shadow: 0 20px 40px -32px rgba(42,33,28,.6); transition: transform .5s var(--ease), box-shadow .5s; }
.fab:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 34px 60px -36px rgba(42,33,28,.7); }
.fab-img { position: relative; aspect-ratio: 1; overflow: hidden; }
.fab-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.fab:hover .fab-img img { transform: scale(1.1) rotate(1deg); }
.ptag { position: absolute; right: 14px; bottom: 14px; display: grid; padding: 12px 16px 10px 26px; background: var(--paper); font: 400 22px/1 var(--serif); clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); }
.ptag::before { content: ""; position: absolute; left: 12px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); transform: translateY(-50%); }
.ptag small { font: 500 11px/1.3 var(--sans); color: var(--muted); }
.new { position: absolute; left: 14px; top: 14px; padding: 6px 10px; border-radius: 4px; background: var(--mustard); font-weight: 700; font-size: 12px; }
.fab-b { padding: 18px; display: grid; gap: 8px; }
.fab h3 { font: 400 24px/1.1 var(--serif); }
.fab-m { font-size: 13px; color: var(--muted); }
.dots { display: flex; gap: 6px; }
.dots i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.fab-buy { display: flex; gap: 8px; align-items: center; margin-top: 8px; padding-top: 14px; border-top: 1.5px dashed var(--line); }
.qty { display: flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; }
.qty button { width: 36px; height: 40px; font-size: 18px; transition: background .2s; }
.qty button:hover { background: var(--bg); }
.qty output { min-width: 30px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty span { font-size: 12px; color: var(--muted); margin-right: 4px; }
.add { flex: 1; padding: 12px 10px; border-radius: 10px; background: var(--terra); color: #fff; font-weight: 600; transition: background .3s; }
.add:hover { background: var(--indigo); }
.fab-note { margin-top: 30px; text-align: center; color: var(--muted); }

/* Calculadora */
.calc { padding: clamp(70px, 9vw, 130px) 0; background: var(--indigo); color: var(--bg); }
.calc .h2 em { color: var(--mustard); }
.calc .lead { color: rgba(242,235,223,.7); }
.calc-grid { display: grid; gap: 40px; align-items: start; }
.calc-img { margin-top: 30px; border-radius: 8px; overflow: hidden; aspect-ratio: 16/10; }
.calc-img img { width: 100%; height: 100%; object-fit: cover; }
.cl { position: relative; display: grid; gap: 12px; padding: clamp(24px, 3.5vw, 40px); border-radius: 8px; background: var(--paper); color: var(--ink); }
.cl::before { content: ""; position: absolute; inset: 10px; border: 1.5px dashed var(--line); border-radius: 4px; pointer-events: none; }
.cl-l { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 14px; }
.cl-l b { color: var(--terra); font-variant-numeric: tabular-nums; }
.cl select { position: relative; padding: 14px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; }
.cl input[type="range"] { width: 100%; accent-color: var(--terra); height: 28px; }
.cl-f { display: grid; gap: 6px; }
.cl-out { display: grid; gap: 4px; padding: 20px; border-radius: 6px; background: var(--ink); color: var(--bg); margin-top: 6px; }
.cl-out span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mustard); font-weight: 600; }
.cl-out b { font: 400 64px/1 var(--serif); font-variant-numeric: tabular-nums; }
.cl-out small { color: rgba(242,235,223,.7); }
.cl-sug { font-size: 14px; color: var(--muted); }
.cl-sug b { color: var(--ink); }

/* Mercería */
.merc { padding: clamp(70px, 9vw, 130px) 0; }
.merc-grid { display: grid; gap: 16px; }
.mc { position: relative; border-radius: 8px; overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; color: #fff; }
.mc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mc:hover img { transform: scale(1.06); }
.mc::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(42,33,28,.85), transparent 60%); }
.mc div { position: relative; z-index: 2; padding: 22px; }
.mc h3 { font: 400 28px/1.1 var(--serif); }
.mc p { font-size: 14px; opacity: .85; margin: 4px 0 10px; }
.mc b { display: inline-block; padding: 6px 10px; border-radius: 4px; background: var(--mustard); color: var(--ink); font-size: 13px; }

/* Talleres */
.work { padding: clamp(70px, 9vw, 130px) 0; background: var(--paper); }
.work-grid { display: grid; gap: 40px; align-items: center; }
.work-img { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; }
.work-img img { width: 100%; height: 100%; object-fit: cover; }
.work-img figcaption { position: absolute; left: 14px; bottom: 14px; padding: 8px 12px; border-radius: 6px; background: var(--paper); font-size: 13px; font-weight: 600; }
.courses { margin-top: 28px; border-top: 1.5px dashed var(--line); }
.courses li { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 20px 0; border-bottom: 1.5px dashed var(--line); }
.courses h3 { font: 400 24px/1.15 var(--serif); }
.courses p { font-size: 14px; color: var(--muted); }
.courses b { font: 400 26px/1 var(--serif); color: var(--terra); }
.courses .btn { grid-column: 1 / -1; justify-self: start; }
.work-n { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Tienda */
.store { position: relative; padding: clamp(80px, 12vw, 160px) 0; overflow: hidden; }
.store-bg { position: absolute; inset: 0; }
.store-bg img { position: absolute; left: 0; top: -15%; height: 130%; }
.store::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(42,33,28,.35); }
.store-in { position: relative; z-index: 2; }
.store-card { position: relative; max-width: 560px; padding: clamp(26px, 4vw, 46px); background: var(--paper); border-radius: 6px; display: grid; gap: 12px; }
.store-card::before { content: ""; position: absolute; inset: 10px; border: 1.5px dashed var(--line); border-radius: 3px; pointer-events: none; }
.st-open { position: relative; justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 4px; background: var(--bg); font-weight: 600; font-size: 13px; }
.st-open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #a99; }
.st-open.is-open::before { background: #2f9e5b; box-shadow: 0 0 0 4px rgba(47,158,91,.2); }
.store-card p { color: var(--muted); }
.store-card b { color: var(--ink); }
.st-list { display: grid; gap: 6px; }
.st-list li::before { content: "✂ "; color: var(--terra); }
.st-cta { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* FAQ */
.faq { padding: clamp(70px, 9vw, 130px) 0; }
.faq-grid { display: grid; gap: 36px; }
.acc details { border-bottom: 1.5px dashed var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 400 22px/1.25 var(--serif); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 28px/1 var(--sans); color: var(--terra); transition: transform .4s var(--ease); }
.acc details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.acc details p { padding: 0 0 22px; color: var(--muted); }

/* Footer */
.foot { background: var(--ink); color: rgba(242,235,223,.7); padding-top: 64px; }
.foot-in { display: grid; gap: 28px; padding-bottom: 40px; }
.foot .logo span { color: var(--bg); }
.foot .logo small { color: rgba(242,235,223,.5); }
.foot-in p { margin-top: 10px; }
.foot h4 { font: 400 20px/1 var(--serif); color: var(--mustard); }
.foot a { cursor: pointer; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 20px; border-top: 1.5px dashed rgba(255,255,255,.12); font-size: 13px; }

/* Responsive */
@media (min-width: 540px) { .fab-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) {
  .merc-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .mc-big { min-height: 420px; }
  .courses li { grid-template-columns: 1fr auto auto; }
  .courses .btn { grid-column: auto; }
}
@media (min-width: 960px) {
  .menu, .nav-cta { display: flex; }
  .burger { display: none; }
  .sec-head { grid-template-columns: 1fr auto; align-items: end; }
  .fab-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .calc-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .work-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; }
  .foot-in { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (min-width: 1280px) { .fab-grid { grid-template-columns: repeat(5, 1fr); gap: 18px; } .fab-b { padding: 16px; } .qty button { width: 30px; } }
@media (max-width: 719px) {
  .swatches { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 1fr); }
  .hero { min-height: auto; padding: 120px 0 40px; }
}
@media (prefers-reduced-motion: reduce) { .ribbon .marquee-track { animation-duration: 160s; } }
