:root {
  --ivory: #f7f3ec;
  --paper: #fffdf9;
  --sand: #ece4d6;
  --ink: #1a1714;
  --ink-2: #4a433b;
  --muted: #857b6f;
  --line: #e0d6c6;
  --gold: #b08d57;
  --gold-deep: #8a6a3a;
  --night: #15120f;
  --ok: #3f6b4f;
  --danger: #a3412f;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 2px;
  --shadow: 0 30px 80px -30px rgba(26, 23, 20, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: clamp(16px, 0.45vw + 10px, 21px); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1760px, 100% - clamp(32px, 7vw, 160px)); margin-inline: auto; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--gold); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 2rem;
  font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--ink); border-radius: var(--radius);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { font-family: var(--sans); font-size: .75rem; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); margin-left: .5rem; letter-spacing: 0; text-transform: none; }

.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; position: relative; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.3; }

/* Barra superior y header */
.announce {
  background: var(--night); color: #d9cbb2;
  text-align: center; font-size: .72rem; letter-spacing: .12em; padding: .6rem 16px;
}
.header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; }
.nav { display: flex; gap: 2.2rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.nav a, .nav-link-desk { position: relative; padding: .4rem 0; }
.nav a::after, .nav-link-desk::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav-link-desk:hover::after { transform: scaleX(1); }
.logo { font-family: var(--serif); font-size: 1.9rem; letter-spacing: .42em; padding-left: .42em; font-weight: 500; }
.header__actions { display: flex; justify-content: flex-end; align-items: center; gap: 1.2rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.menu-btn { display: none; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--gold-deep); color: #fff;
  font-size: .65rem; font-weight: 600; letter-spacing: 0; display: grid; place-items: center;
}
.cart-count[hidden], .drawer__foot[hidden] { display: none; }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* Hero */
.hero { padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 5.6vw, 7rem); font-weight: 400; }
.hero h1 em { color: var(--gold-deep); font-style: italic; }
.lead { margin-top: 1.6rem; font-size: 1.12rem; color: var(--ink-2); max-width: 36rem; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.4rem; }
.hero__stats { display: grid; grid-template-columns: repeat(3, auto); gap: 2.5rem; margin: 3rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line); justify-content: start; }
.hero__stats dt { font-family: var(--serif); font-size: 1.6rem; }
.hero__stats dd { margin: 0; font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.hero__art {
  width: min(100%, calc((100vh - 230px) * .8)); justify-self: end;
  aspect-ratio: 4 / 5; position: relative;
  background: radial-gradient(120% 90% at 50% 30%, #fffaf0 0%, var(--sand) 60%, #ddd0ba 100%);
  box-shadow: var(--shadow);
}
.hero__art svg { width: 100%; height: 100%; animation: float 9s ease-in-out infinite; }
.hero__label {
  position: absolute; left: 1.5rem; bottom: 1.4rem;
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2);
}
@keyframes float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }

/* Categorías */
.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cat-card {
  background: var(--paper); padding: 1.6rem 1rem 1.3rem; display: grid; justify-items: center; gap: .8rem;
  font-family: var(--serif); font-size: 1.3rem; transition: background .3s;
}
.cat-card:hover { background: #fff; }
.cat-card__art { width: 84px; height: 84px; transition: transform .6s var(--ease); }
.cat-card:hover .cat-card__art { transform: scale(1.08) rotate(-4deg); }

/* Tienda */
.shop { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.filters { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip {
  height: 38px; padding: 0 1.1rem; border: 1px solid var(--line); border-radius: 19px;
  font-size: .78rem; letter-spacing: .06em; transition: all .25s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.select select {
  height: 38px; padding: 0 2.2rem 0 1rem; border: 1px solid var(--line); border-radius: 19px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1714' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center / 14px;
  font: inherit; font-size: .78rem; color: var(--ink); appearance: none; cursor: pointer;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(260px, 20vw, 380px), 1fr)); gap: 2.5rem 1.5rem; }
.card { cursor: pointer; text-align: left; display: block; width: 100%; animation: rise .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.card__media {
  aspect-ratio: 4 / 5; position: relative; overflow: hidden;
  background: radial-gradient(100% 80% at 50% 35%, #fffcf6, var(--sand));
}
.card__media svg { width: 100%; height: 100%; transition: transform .9s var(--ease); }
.card:hover .card__media svg { transform: scale(1.06); }
.card__badge {
  position: absolute; top: 1rem; left: 1rem; background: var(--paper); padding: .3rem .7rem;
  font-size: .65rem; letter-spacing: .18em; text-transform: uppercase;
}
.card__quick {
  position: absolute; inset: auto 1rem 1rem; height: 44px; background: var(--ink); color: var(--paper);
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; display: grid; place-items: center;
  opacity: 0; transform: translateY(8px); transition: all .4s var(--ease);
}
.card:hover .card__quick, .card:focus-visible .card__quick { opacity: 1; transform: none; }
.card__body { padding-top: 1rem; display: flex; justify-content: space-between; gap: 1rem; }
.card__name { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.card__meta { font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.card__price { font-size: .92rem; white-space: nowrap; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 3rem 0; }

/* Taller */
.craft { background: var(--night); color: #e8dfd0; padding: clamp(4rem, 9vw, 8rem) 0; }
.craft__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.craft h2 { color: #fbf6ec; }
.craft__copy > p { margin-top: 1.4rem; color: #b8ab96; max-width: 32rem; }
.steps { list-style: none; padding: 0; margin: 2.6rem 0 0; display: grid; gap: 1.6rem; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding-top: 1.4rem; border-top: 1px solid #332c24; }
.steps span { font-family: var(--serif); color: var(--gold); font-size: 1.2rem; }
.steps h3 { color: #fbf6ec; margin-bottom: .3rem; }
.steps p { color: #a89b86; font-size: .92rem; }
.craft__art { aspect-ratio: 1; background: radial-gradient(70% 70% at 50% 45%, #2a231b, var(--night) 75%); }
.craft__art svg { width: 100%; height: 100%; }

/* Garantía */
.guarantee { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; padding: clamp(4rem, 8vw, 6rem) 0; border-bottom: 1px solid var(--line); }
.guarantee h3 { margin-bottom: .6rem; }
.guarantee h3::before { content: ""; display: block; width: 28px; height: 1px; background: var(--gold); margin-bottom: 1.2rem; }
.guarantee p { color: var(--ink-2); font-size: .92rem; }

/* Testimonios */
.testimonials { padding: clamp(4rem, 8vw, 6rem) 0; text-align: center; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 1rem; }
.quotes figure { margin: 0; }
.quotes blockquote { margin: 0; font-family: var(--serif); font-size: 1.45rem; font-style: italic; line-height: 1.35; }
.quotes figcaption { margin-top: 1.2rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* Newsletter */
.newsletter {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  background: var(--paper); border: 1px solid var(--line); padding: clamp(2rem, 5vw, 4rem); margin-bottom: clamp(4rem, 8vw, 6rem);
}
.newsletter p { margin-top: .8rem; color: var(--ink-2); }
.newsletter__form { display: flex; gap: .6rem; }
.newsletter__form input { flex: 1; min-width: 0; }

input, select, textarea {
  height: 52px; padding: 0 1rem; border: 1px solid var(--line); background: var(--paper);
  font: inherit; font-weight: 400; color: var(--ink); border-radius: var(--radius); width: 100%;
  transition: border-color .2s;
}
input:focus { outline: none; border-color: var(--gold); }
input.invalid { border-color: var(--danger); }

/* Footer */
.footer { background: var(--night); color: #b8ab96; padding: 4rem 0 2rem; font-size: .9rem; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #fbf6ec; margin-bottom: 1rem; font-weight: 500; }
.footer a { display: block; margin-bottom: .5rem; }
.footer a:hover { color: var(--gold); }
.logo--footer { color: #fbf6ec; display: inline-block; margin-bottom: .8rem; }
.footer__legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #2c261f; font-size: .75rem; }

/* Overlay, modales y carrito */
.overlay { position: fixed; inset: 0; background: rgba(21, 18, 15, .45); backdrop-filter: blur(3px); z-index: 40; animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.modal {
  border: 0; padding: 0; background: var(--paper); color: var(--ink);
  width: min(1000px, 100% - 32px); max-height: calc(100dvh - 32px); overflow: auto; box-shadow: var(--shadow);
}
.modal[open] { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.modal::backdrop { background: rgba(21, 18, 15, .5); backdrop-filter: blur(3px); }
.modal__close { position: absolute; top: .6rem; right: .6rem; z-index: 2; }
.modal--small { width: min(480px, 100% - 32px); padding: 2.4rem; }
.modal--small > p { margin: .8rem 0 1.4rem; color: var(--ink-2); }

.pm { display: grid; grid-template-columns: 1fr 1fr; }
.pm__art { background: radial-gradient(100% 80% at 50% 35%, #fffcf6, var(--sand)); min-height: 420px; }
.pm__art svg { width: 100%; height: 100%; }
.pm__info { padding: clamp(1.6rem, 4vw, 3rem); }
.pm__info h2 { font-size: clamp(2rem, 3.5vw, 2.6rem); }
.pm__price { font-size: 1.2rem; margin-top: .6rem; }
.pm__desc { color: var(--ink-2); margin: 1.2rem 0 1.6rem; font-size: .95rem; }
.opt { border: 0; padding: 0; margin: 0 0 1.4rem; display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.opt legend { padding: 0; margin-bottom: .6rem; }
.opt--text input { margin-top: .6rem; text-transform: none; letter-spacing: 0; font-size: .95rem; }
.opt__row { display: flex; gap: .4rem; flex-wrap: wrap; }
.pill {
  min-width: 48px; height: 40px; padding: 0 .9rem; border: 1px solid var(--line);
  font-size: .82rem; letter-spacing: .04em; text-transform: none; display: inline-flex; align-items: center; gap: .5rem;
}
.pill:hover { border-color: var(--ink-2); }
.pill.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.pm__perks { list-style: none; padding: 0; margin: 1.2rem 0 0; font-size: .82rem; color: var(--muted); display: grid; gap: .3rem; }
.pm__perks li::before { content: "— "; color: var(--gold); }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 50;
  background: var(--paper); display: flex; flex-direction: column; box-shadow: var(--shadow);
  transform: translateX(100%); transition: transform .5s var(--ease); visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.7rem; }
.ship-bar { padding: 1rem 1.5rem; font-size: .82rem; color: var(--ink-2); }
.ship-bar__track { height: 2px; background: var(--line); margin-top: .6rem; }
.ship-bar__track span { display: block; height: 100%; background: var(--gold); width: 0; transition: width .6s var(--ease); }
.drawer__items { list-style: none; margin: 0; padding: 0 1.5rem; flex: 1; overflow: auto; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.line__art { width: 84px; height: 100px; background: radial-gradient(100% 80% at 50% 35%, #fffcf6, var(--sand)); }
.line__art svg { width: 100%; height: 100%; }
.line__name { font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; }
.line__opts { font-size: .75rem; color: var(--muted); margin-top: .2rem; }
.line__qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: .7rem; }
.line__qty button { width: 30px; height: 30px; }
.line__qty span { min-width: 24px; text-align: center; font-size: .85rem; }
.line__right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: end; font-size: .9rem; }
.line__remove { font-size: .72rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.drawer__empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.drawer__empty p { margin-bottom: 1.4rem; font-family: var(--serif); font-size: 1.4rem; color: var(--ink-2); }
.drawer__foot { padding: 1.2rem 1.5rem 1.5rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.row { display: flex; justify-content: space-between; font-size: .9rem; }
.row.muted { color: var(--muted); }
.row.total { font-size: 1.05rem; font-weight: 500; padding: .5rem 0 .8rem; }
.fine { font-size: .74rem; color: var(--muted); text-align: center; margin-top: .4rem; }

/* Checkout */
.modal--checkout { width: min(1080px, 100% - 32px); }
.checkout { display: grid; grid-template-columns: 1.4fr 1fr; }
.checkout__main { padding: clamp(1.6rem, 4vw, 3rem); }
.checkout__main h2 { margin-bottom: 1.4rem; }
.checkout__main h3 { font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; margin: 1.8rem 0 .9rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field-grid label { display: grid; gap: .35rem; font-size: .8rem; color: var(--ink-2); }
.field-grid label:first-child { grid-column: 1 / -1; }
.span-2 { grid-column: 1 / -1; }
.pay-options { display: grid; gap: .6rem; }
.pay { display: flex; gap: .9rem; align-items: start; padding: 1rem 1.1rem; border: 1px solid var(--line); cursor: pointer; transition: border-color .2s; }
.pay:has(input:checked) { border-color: var(--ink); }
.pay input { width: 16px; height: 16px; margin-top: .25rem; accent-color: var(--ink); }
.pay strong { display: block; font-weight: 500; font-size: .92rem; }
.pay small { color: var(--muted); font-size: .8rem; }
.form-error { color: var(--danger); font-size: .85rem; margin-top: 1rem; }
.checkout__summary { background: var(--ivory); padding: clamp(1.6rem, 4vw, 3rem); display: flex; flex-direction: column; gap: .5rem; }
.checkout__summary h3 { font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; margin-bottom: .6rem; }
.checkout__summary ul { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .8rem; }
.checkout__summary li { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; }
.checkout__summary li small { display: block; color: var(--muted); font-size: .75rem; }
.done { text-align: center; padding: 4rem 2rem; display: grid; justify-items: center; gap: 1rem; }
.done__mark { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-deep); display: grid; place-items: center; font-size: 1.6rem; }
.done p { color: var(--ink-2); max-width: 30rem; margin-bottom: 1rem; }

.size-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.size-table th, .size-table td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.size-table th { font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper); padding: .9rem 1.4rem; font-size: .85rem;
  opacity: 0; pointer-events: none; transition: all .4s var(--ease); max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsivo */
@media (max-width: 960px) {
  .hero__inner, .craft__inner, .newsletter { grid-template-columns: 1fr; }
  .hero__art { max-width: 520px; width: 100%; margin-inline: auto; }
  .guarantee { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .pm, .checkout { grid-template-columns: 1fr; }
  .pm__art { min-height: 300px; aspect-ratio: 1; }
}
@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .4s var(--ease);
  }
  .nav.open { max-height: 260px; }
  .nav a { padding: 1rem 16px; border-top: 1px solid var(--line); }
  .nav-link-desk { display: none; }
  .header__inner { height: 64px; }
  .logo { font-size: 1.5rem; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .hero__stats dt { font-size: 1.2rem; }
  .categories { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .card__name { font-size: 1.1rem; }
  .card__body { flex-direction: column; gap: .2rem; }
  .card__quick { display: none; }
  .guarantee { grid-template-columns: 1fr; gap: 2rem; }
  .newsletter__form { flex-direction: column; }
  .field-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ================= Animación y efectos ================= */

/* Pantalla de entrada */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--night);
  display: grid; place-content: center; justify-items: center; gap: 1.4rem;
}
.loader__letters { display: flex; gap: .5em; overflow: hidden; font-family: var(--serif); font-size: clamp(3rem, 10vw, 6rem); color: #f3e6cc; line-height: 1.1; padding: 0 .2em; }
.loader__letters span { display: inline-block; }
.loader__line { width: min(260px, 60vw); height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform-origin: left; }
.motion-off .loader { display: none; }

/* Titular por líneas */
.hero h1 .h-line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .h-line > * { display: inline-block; }

/* Anillo 3D */
.hero__art canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; cursor: grab; touch-action: pan-y; }
.hero__art canvas:active { cursor: grabbing; }
.hero__art::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 30% at 50% 45%, rgba(255, 236, 196, .55), transparent 70%);
}
.metal-switch { position: absolute; top: 1.2rem; right: 1.2rem; z-index: 2; display: none; gap: .5rem; }
.is-3d .metal-switch { display: flex; }
.metal-switch button {
  width: 26px; height: 26px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 35% 30%, #fff, var(--c) 55%, color-mix(in srgb, var(--c) 60%, #000));
  box-shadow: 0 2px 6px rgba(0,0,0,.15); transition: transform .3s var(--ease);
}
.metal-switch button::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid transparent; transition: border-color .3s; }
.metal-switch button.is-active::after { border-color: var(--ink); }
.metal-switch button:hover { transform: scale(1.12); }
.hero__hint {
  position: absolute; right: 1.5rem; bottom: 1.4rem; display: none;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.is-3d .hero__hint { display: block; }

/* Franja de texto */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 1.3rem 0; margin-bottom: clamp(3rem, 6vw, 5rem); background: var(--paper); }
.marquee__track { display: flex; width: max-content; align-items: center; gap: 2.4rem; white-space: nowrap; }
.marquee__track span { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); font-style: italic; color: var(--ink); }
.marquee__track i { font-style: normal; color: var(--gold); font-size: 1rem; }
.motion-off .marquee__track { animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Línea dorada bajo títulos */
.has-rule { position: relative; }
.has-rule::after {
  content: ""; display: block; width: 64px; height: 1px; margin-top: 1rem; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .3s;
}
.has-rule.rule-in::after, .motion-off .has-rule::after { transform: scaleX(1); }
.newsletter .has-rule::after { margin-inline: 0; }

/* Tarjetas: esperan a estar en pantalla, brillo que sigue al mouse */
.grid:not(.in) .card { animation-play-state: paused; }
.motion-off .grid .card { animation-play-state: running; }
.card__media { transform-style: preserve-3d; will-change: transform; }
.card__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 245, 220, .55), transparent 60%);
  mix-blend-mode: soft-light;
}
.card:hover .card__media::after { opacity: 1; }
.card__media svg { filter: drop-shadow(0 16px 18px rgba(90, 66, 30, .12)); }

/* Encabezado que se esconde al bajar */
.header { transition: border-color .3s, transform .5s var(--ease); }
.header.is-hidden { transform: translateY(-100%); }

/* Cursor personalizado */
.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor body, .has-cursor a, .has-cursor button { cursor: none; }
.has-cursor .hero__art canvas { cursor: none; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; border-radius: 50%; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold-deep); }
.cursor__ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid rgba(138, 106, 58, .55);
  display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
}
.cursor__ring.is-link { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(176, 141, 87, .12); }
.cursor__ring.is-view { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--ink); border-color: var(--ink); }
.cursor__label { color: var(--paper); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; opacity: 0; transition: opacity .2s; }
.cursor__ring.is-view .cursor__label { opacity: 1; }
/* Los diálogos quedan por encima de todo: ahí se usa el cursor normal */
.has-cursor dialog, .has-cursor dialog * { cursor: auto; }
.has-cursor dialog button, .has-cursor dialog label, .has-cursor dialog a { cursor: pointer; }
.has-cursor dialog input { cursor: text; }

/* Pieza que vuela al carrito */
.fly { position: fixed; z-index: 95; pointer-events: none; transform-origin: center; }
@media (max-width: 760px) {
  .is-3d .hero__hint { display: none; }
  .hero__label { left: 1rem; bottom: 1rem; font-size: .62rem; }
}

/* ================= Catálogo con fotos reales ================= */
.card__media { background: #fff; }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: opacity .6s var(--ease), transform .9s var(--ease); }
.card__img--alt { opacity: 0; }
.card:hover .card__img--alt { opacity: 1; }
.card:hover .card__img:not(.card__img--alt) { opacity: 0; }
.card:hover .card__img { transform: scale(1.05); }
.card__media::after { mix-blend-mode: multiply; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 236, 200, .35), transparent 60%); }
.dots { display: flex; gap: 4px; margin-top: .45rem; }
.dots i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.is-pending { color: var(--gold-deep); }
.chip { display: inline-flex; align-items: center; gap: .45rem; }
.filters { row-gap: .6rem; }

.cat-card__art { width: 120px; height: 120px; }
.cat-card__art img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cat-card small { font-family: var(--sans); font-size: .72rem; color: var(--muted); letter-spacing: .08em; margin-top: -.5rem; }

.pm__art { background: #fff; display: grid; place-items: center; }
.pm__art img { width: 100%; height: 100%; max-height: 80vh; object-fit: contain; padding: 4%; animation: fade .4s; }
.pm__code { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .4rem; }
.pm__material { margin-top: 1rem; padding: .8rem 1rem; background: var(--ivory); font-size: .88rem; color: var(--ink-2); border-left: 2px solid var(--gold); }
.pm__material.is-pending { color: var(--ink-2); }
.pm__note { font-size: .8rem; color: var(--muted); margin: -.4rem 0 1.2rem; line-height: 1.5; }
.pill.is-off { opacity: .45; border-style: dashed; }
.line__art { background: #fff; }
.line__art img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }

.checkout__intro { color: var(--ink-2); font-size: .92rem; margin: -.6rem 0 .4rem; max-width: 34rem; }
.field-note { display: grid; gap: .35rem; font-size: .8rem; color: var(--ink-2); margin-top: 1.2rem; }
textarea { width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); background: var(--paper); font: inherit; font-weight: 400; color: var(--ink); border-radius: var(--radius); resize: vertical; }
textarea:focus { outline: none; border-color: var(--gold); }
.checkout__summary li small { line-height: 1.4; }
.fine--left { text-align: left; margin-top: 0; }
.contact-actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: flex-end; }
.muted-note { color: var(--muted); }
.steps span { font-size: 1.05rem; }
.steps li { grid-template-columns: 5.5rem 1fr; }
.fly { object-fit: contain; background: transparent; }
@media (max-width: 760px) {
  .cat-card__art { width: 90px; height: 90px; }
  .contact-actions { justify-content: flex-start; }
}

/* ================= Logo Karat ================= */
.logo-mark {
  display: inline-block; aspect-ratio: 626 / 189; height: 44px; background: currentColor;
  -webkit-mask: url("img/karat-logo.svg") no-repeat center / contain;
          mask: url("img/karat-logo.svg") no-repeat center / contain;
}
.logo { padding-left: 0; letter-spacing: 0; display: inline-flex; align-items: center; color: var(--ink); }
.loader__logo { height: clamp(70px, 14vw, 140px); color: #f3e6cc; }
.logo-mark--footer { height: 52px; color: #fbf6ec; margin-bottom: .8rem; }
@media (max-width: 760px) { .logo .logo-mark { height: 36px; } }
.pill small { font-size: .7rem; color: var(--muted); letter-spacing: 0; }

/* ================= Portada con fotos reales ================= */
.hero__art { background: #fff; overflow: hidden; }
.hero__art::before { display: none; }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(1.04);
  transition: opacity 1.2s var(--ease), transform 6s linear; pointer-events: none; }
.hero__slide.is-on { opacity: 1; transform: scale(1); pointer-events: auto; }
.hero__slide img { width: 100%; height: 100%; object-fit: contain; padding: 8% 6% 14%; }
.hero__label { z-index: 2; right: 1.5rem; }
.hero__dots { position: absolute; top: 1.4rem; right: 1.4rem; display: flex; gap: 6px; z-index: 2; }
.hero__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .4s, transform .4s; }
.hero__dots i.is-on { background: var(--gold-deep); transform: scale(1.3); }

/* Controles de la portada: flechas, miniaturas y contador */
.hero__dots { display: none; }
.hero__slide img { padding: 6% 6% 22%; }
.hero__arrow {
  position: absolute; top: 42%; z-index: 3; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 253, 249, .9); border: 1px solid var(--line);
  box-shadow: 0 6px 20px -8px rgba(26, 23, 20, .35); transition: background .3s, transform .3s var(--ease), opacity .3s;
}
.hero__arrow svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.4; }
.hero__arrow:hover { background: var(--ink); transform: scale(1.06); }
.hero__arrow:hover svg { stroke: var(--paper); }
.hero__arrow--prev { left: 1rem; }
.hero__arrow--next { right: 1rem; }
.hero__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 1rem 1.2rem 1.1rem;
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label count" "thumbs thumbs"; gap: .7rem 1rem;
  background: linear-gradient(to top, rgba(255, 255, 255, .96) 70%, rgba(255, 255, 255, 0));
}
.hero__bar .hero__label { position: static; grid-area: label; }
.hero__count { grid-area: count; font-size: .7rem; letter-spacing: .18em; color: var(--muted); }
.hero__thumbs { grid-area: thumbs; display: flex; gap: .5rem; }
.hero__thumb {
  flex: 1; max-width: 64px; aspect-ratio: 1; background: #fff; border: 1px solid var(--line);
  opacity: .55; transition: opacity .3s, border-color .3s, transform .3s var(--ease);
}
.hero__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.hero__thumb:hover { opacity: 1; transform: translateY(-2px); }
.hero__thumb.is-on { opacity: 1; border-color: var(--ink); }
@media (max-width: 760px) {
  .hero__arrow { width: 40px; height: 40px; top: 38%; }
  .hero__arrow--prev { left: .5rem; }
  .hero__arrow--next { right: .5rem; }
  .hero__thumb { max-width: 48px; }
  .hero__bar .hero__label { font-size: .6rem; }
}
.pay.is-off { opacity: .5; cursor: not-allowed; }
#coSubmit[disabled] { opacity: .6; }
.done__mark:not(:empty) { font-family: var(--serif); }
.checkout__summary li > span:last-child { white-space: nowrap; }
.checkout__summary .form-error { margin: 0 0 .4rem; }
.checkout[hidden], .done[hidden], .pay-options:empty { display: none; }
/* Scroll táctil fluido dentro de la ficha, el pago y el carrito */
.modal, .drawer__items { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; }
