/* ==========================================================================
   Kody Joyería — sistema visual
   Paleta: ónix · oro · champán · marfil · esmeralda  |  Bodoni Moda + Jost
   ========================================================================== */

:root {
  --onyx: #0F0E0C;
  --onyx-2: #1A1815;
  --onyx-3: #26231E;
  --gold: #C6A15B;
  --gold-text: #8A6A2F;          /* oro legible sobre marfil (AA) */
  --champagne: #E3CFA3;
  --ivory: #F5F0E6;
  --ivory-2: #EDE5D5;
  --paper: #FBF8F2;
  --emerald: #133A33;
  --emerald-2: #0D2B26;
  --ink: #0F0E0C;
  --muted: #625B50;
  --muted-light: #B4A88F;
  --line: rgba(15, 14, 12, .12);
  --line-light: rgba(227, 207, 163, .18);

  --serif: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1280px;
  --header-h: 72px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 20px 50px -24px rgba(15, 14, 12, .35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--champagne); color: var(--onyx); }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--gold); color: var(--onyx); padding: .6rem 1rem; }
.skip-link:focus { top: 1rem; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; }

/* ---------- Tipografía ---------- */
.display, .display-sm, .h1, .h2, .h3 { font-family: var(--serif); line-height: 1.08; letter-spacing: -.01em; }
.display { font-size: clamp(2.7rem, 6.4vw, 5rem); line-height: 1.02; }
.display-sm { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
.display em, .display-sm em { font-style: italic; color: var(--champagne); }
.h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
.h4 { font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; }
.eyebrow {
  margin: 0 0 .9rem; font-family: var(--sans); font-weight: 500; font-size: .72rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--gold-text);
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.rule { display: block; width: 56px; height: 1px; background: var(--gold); margin: 1.4rem 0; }
.center .rule, .section-head.center .rule { margin-inline: auto; }

.section-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head .lead { margin-bottom: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 52px; padding: .9rem 1.7rem; border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--sans); font-weight: 500; font-size: .76rem; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; text-align: center; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--onyx); }
.btn-gold:hover { background: var(--champagne); }
.btn-dark { background: var(--onyx); color: var(--ivory); }
.btn-dark:hover { background: var(--onyx-3); }
.btn-ghost { border-color: var(--onyx); color: var(--onyx); background: transparent; }
.btn-ghost:hover { background: var(--onyx); color: var(--ivory); }
.btn-ghost-light { border-color: var(--champagne); color: var(--champagne); background: transparent; }
.btn-ghost-light:hover { background: var(--champagne); color: var(--onyx); }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; color: inherit; font-size: inherit; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .74rem;
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--gold-text);
}
.link-arrow .icon { transition: transform .3s var(--ease); }
a:hover .link-arrow .icon, .link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Anuncio + cabecera ---------- */
.announce { background: var(--onyx-2); color: var(--champagne); text-align: center; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; }
.announce p { margin: 0; padding: .55rem var(--gutter); }
.announce span { color: var(--gold); margin-inline: .6rem; }

/* Sin backdrop-filter: crearía un contenedor para el menú móvil `position: fixed`. */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--onyx); color: var(--champagne); border-bottom: 1px solid var(--line-light); }
.menu-open .site-header { z-index: 65; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { text-decoration: none; color: var(--champagne); }
.logo { display: inline-flex; align-items: center; gap: .75rem; }
.logo-mark { width: 38px; height: 38px; color: var(--gold); flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--serif); font-size: 1.45rem; letter-spacing: .34em; margin-right: -.34em; }
.logo-sub { font-family: var(--sans); font-weight: 500; font-size: .52rem; letter-spacing: .62em; color: var(--gold); margin-top: .35rem; }
.logo-lg .logo-mark { width: 52px; height: 52px; }
.logo-lg .logo-name { font-size: 1.9rem; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); list-style: none; }
.main-nav a { position: relative; text-decoration: none; font-weight: 400; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; padding: .5rem 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-head, .nav-foot { display: none; }
.header-actions { display: flex; align-items: center; gap: .25rem; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: inherit; border-radius: 50%; text-decoration: none; }
.icon-btn:hover { color: var(--gold); }
.icon-btn .icon { width: 1.4rem; height: 1.4rem; }
.menu-toggle { display: none; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--gold); color: var(--onyx); font-size: .66rem; font-weight: 500; line-height: 18px; text-align: center; }
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(15, 14, 12, .55); animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } }

/* ---------- Hero ---------- */
.hero { background: var(--onyx); color: var(--ivory); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3rem, 7vw, 6rem); }
.hero .eyebrow { color: var(--gold); }
.hero .lead { color: var(--muted-light); margin-top: 1.6rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-ctas.center { justify-content: center; }
.hero-stats { display: flex; gap: clamp(1.5rem, 4vw, 3rem); margin: 3rem 0 0; padding-top: 1.8rem; border-top: 1px solid var(--line-light); }
.hero-stats dt { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--champagne); line-height: 1; }
.hero-stats dd { margin: .45rem 0 0; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-light); }
.hero-media { position: relative; margin: 0; padding: 0 1.2rem 1.2rem 0; }
.hero-media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-frame { position: absolute; inset: 1.2rem 0 0 1.2rem; border: 1px solid var(--gold); }
.hero-media figcaption { position: absolute; z-index: 2; left: -1px; bottom: 2.6rem; background: var(--onyx); padding: .9rem 1.2rem; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--champagne); }
.hero-media figcaption .eyebrow { display: block; margin: 0 0 .2rem; font-style: normal; font-size: .6rem; }

/* ---------- Franja de confianza ---------- */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust-list { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; }
.trust-list li { display: flex; gap: .9rem; align-items: flex-start; padding: 1.6rem 1.2rem; border-left: 1px solid var(--line); }
.trust-list li:first-child { border-left: 0; padding-left: 0; }
.trust-list .icon { width: 1.7rem; height: 1.7rem; color: var(--gold-text); margin-top: .15rem; }
.trust-list strong { display: block; font-weight: 500; font-size: .92rem; }
.trust-list span { display: block; font-size: .85rem; color: var(--muted); line-height: 1.45; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section-tint { background: var(--ivory-2); }
.section-emerald { background: var(--emerald); color: var(--ivory); }
.section-emerald .eyebrow { color: var(--gold); }
.section-emerald .lead { color: var(--champagne); opacity: .85; }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.row-head .section-head { margin: 0; }
.row-head .link-arrow { padding-bottom: .4rem; white-space: nowrap; }

/* Tiles de categoría */
.split-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
.split-tile { position: relative; display: block; overflow: hidden; color: var(--ivory); text-decoration: none; background: var(--onyx); }
.split-tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; opacity: .85; transition: transform 1.2s var(--ease), opacity .6s; }
.split-tile:hover img { transform: scale(1.04); opacity: .7; }
.split-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15, 14, 12, .85)); }
.tile-emerald::after { background: linear-gradient(180deg, transparent 35%, rgba(19, 58, 51, .92)); }
.split-tile-body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: clamp(1.4rem, 3vw, 2.4rem); }
.split-tile-body .eyebrow { color: var(--gold); }
.split-tile-body .h2 { display: block; margin-bottom: 1rem; }
.split-tile .link-arrow { color: var(--champagne); letter-spacing: .14em; line-height: 1.5; }

/* ---------- Grid de productos ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.75rem, 1.6vw, 1.5rem); }
.card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-media { position: relative; display: block; overflow: hidden; background: var(--ivory-2); }
.card-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.badge { position: absolute; top: .75rem; left: .75rem; background: var(--onyx); color: var(--champagne); padding: .35rem .6rem; font-size: .6rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.1rem 1.2rem; }
.card-body .eyebrow { margin-bottom: .45rem; font-size: .62rem; }
.card-title { font-family: var(--serif); font-size: 1.18rem; line-height: 1.2; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-meta { margin: .4rem 0 1rem; font-size: .8rem; color: var(--muted); line-height: 1.4; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-top: auto; }
.price { font-weight: 500; font-size: 1.02rem; letter-spacing: .02em; }
.btn-add {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .35rem; min-height: 40px;
  padding: .5rem .85rem; border: 1px solid var(--onyx); background: transparent; border-radius: var(--radius);
  font-weight: 500; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; transition: background .25s, color .25s;
}
.btn-add .icon { width: 1rem; height: 1rem; }
.btn-add:hover, .btn-add.is-added { background: var(--onyx); color: var(--champagne); }

/* ---------- Marcas ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.75rem, 1.6vw, 1.25rem); }
.brand-tile { position: relative; display: block; overflow: hidden; text-decoration: none; color: var(--ivory); border: 1px solid var(--line-light); background: var(--emerald-2); }
.brand-tile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; opacity: .8; transition: opacity .6s, transform 1.2s var(--ease); }
.brand-tile:hover img { opacity: .6; transform: scale(1.05); }
.brand-tile-body { position: absolute; inset: auto 0 0 0; padding: 1.4rem; background: linear-gradient(180deg, transparent, rgba(13, 43, 38, .95) 45%); }
.brand-tile-body .eyebrow { color: var(--gold); margin-bottom: .4rem; font-size: .6rem; }
.brand-tile-name { display: block; font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.1; }
.brand-tile-copy { display: block; margin: .5rem 0 .9rem; font-size: .88rem; color: var(--champagne); opacity: .85; line-height: 1.45; }
.brand-tile .link-arrow { color: var(--gold); }

/* ---------- Banner editorial ---------- */
.banner { position: relative; overflow: hidden; background: var(--onyx); color: var(--ivory); min-height: clamp(420px, 70vh, 640px); display: flex; align-items: center; }
.banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(15, 14, 12, .92) 20%, rgba(15, 14, 12, .1)); }
.banner-copy { position: relative; z-index: 2; padding-block: 4rem; }
.banner-copy > * { max-width: 34rem; }
.banner-copy .eyebrow { color: var(--gold); }
.banner-copy p:not(.eyebrow) { color: var(--muted-light); margin: 1.4rem 0 2rem; }

/* ---------- La Casa ---------- */
.casa-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.casa-media { margin: 0; position: relative; }
.casa-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.casa-media::after { content: ""; position: absolute; inset: -1rem 1rem 1rem -1rem; border: 1px solid var(--gold); z-index: -1; }
.casa-copy p { color: var(--muted); }
.pillars { list-style: none; margin-top: 2rem; border-top: 1px solid var(--line); }
.pillars li { display: flex; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.pillars span { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--gold-text); min-width: 2rem; }
.pillars strong { font-weight: 500; letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; }
.pillars p { margin: .2rem 0 0; font-size: .95rem; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.5rem); list-style: none; counter-reset: s; }
.steps li { text-align: center; padding: 2.2rem 1.4rem; background: var(--paper); border: 1px solid var(--line); }
.step-num { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.2rem; font-family: var(--serif); font-size: 1.1rem; color: var(--gold-text); position: relative; }
.step-num::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--gold); transform: rotate(45deg); }
.steps h3 { margin-bottom: .6rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- FAQ / acordeón ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.15rem; line-height: 1.3; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--gold-text); transition: transform .3s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-item p { margin: 0 0 1.4rem; color: var(--muted); max-width: 70ch; }
.faq-item p a { color: var(--gold-text); }
.faq-compact summary { font-size: 1rem; padding: 1rem 0; }
.faq-compact p { font-size: .92rem; }

/* ---------- CTA ---------- */
.cta-band { background: var(--onyx); color: var(--ivory); text-align: center; padding-block: clamp(4rem, 8vw, 6rem); }
.cta-inner > p { color: var(--muted-light); margin: 1rem auto 2rem; max-width: 46ch; }
.cta-mark { width: 64px; height: 64px; color: var(--gold); margin: 0 auto 1.6rem; }

/* ---------- Encabezado de página ---------- */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); color: var(--ivory); }
.page-hero-dark { background: var(--onyx); }
.page-hero-emerald { background: var(--emerald); }
.page-hero .eyebrow { color: var(--gold); }
.page-hero .lead { color: var(--champagne); opacity: .8; margin: 1.1rem 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin-bottom: 1.6rem; font-size: .74rem; letter-spacing: .08em; }
.crumbs li { color: inherit; opacity: .7; }
.crumbs li + li::before { content: "◆"; font-size: .45rem; margin-right: .5rem; vertical-align: middle; color: var(--gold); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { opacity: 1; }
.product .crumbs { color: var(--muted); }

/* ---------- Toolbar de catálogo ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { min-height: 40px; padding: .45rem 1.1rem; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; font-size: .74rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; transition: all .25s; }
.chip:hover { border-color: var(--onyx); }
.chip[aria-pressed="true"] { background: var(--onyx); border-color: var(--onyx); color: var(--champagne); }
.toolbar-right { display: flex; align-items: center; gap: 1rem; }
.result-count { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.select select { min-height: 40px; padding: .4rem 2.2rem .4rem .9rem; border: 1px solid var(--line); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F0E0C' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .7rem center / 14px; border-radius: var(--radius); font-size: .82rem; appearance: none; }
.card.is-hidden { display: none; }
.seo-copy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.seo-copy h2 { margin-bottom: 1rem; }
.seo-copy p { color: var(--muted); }

/* ---------- Ficha de producto ---------- */
.product-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.gallery-main { background: var(--ivory-2); }
.gallery-slide img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.js .gallery-slide:not(.is-active) { display: none; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .75rem; }
.gallery-thumbs button { width: 84px; padding: 0; border: 1px solid transparent; background: none; opacity: .6; transition: opacity .2s, border-color .2s; }
.gallery-thumbs button[aria-current="true"], .gallery-thumbs button:hover { opacity: 1; border-color: var(--gold); }
.gallery-thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.product-info .eyebrow { margin-bottom: .7rem; }
.product-ref { margin: .8rem 0 0; font-size: .85rem; color: var(--muted); letter-spacing: .04em; }
.product-price { margin: 1.4rem 0; font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.1rem); }
.product-price span { font-family: var(--sans); font-size: .75rem; letter-spacing: .2em; color: var(--muted); }
.product-desc { color: var(--muted); padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.buy-row { display: flex; gap: .75rem; margin: 1.6rem 0 .75rem; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line); background: var(--paper); }
.qty-btn { width: 44px; border: 0; background: none; display: grid; place-items: center; }
.qty-btn .icon { width: 1rem; height: 1rem; }
.qty input { width: 44px; border: 0; background: none; text-align: center; font-weight: 500; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.product-perks { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; list-style: none; margin: 1.4rem 0 2.2rem; font-size: .82rem; color: var(--muted); }
.product-perks li { display: flex; align-items: center; gap: .45rem; }
.product-perks .icon { color: var(--gold-text); width: 1.1rem; height: 1.1rem; }
.specs-title { margin-bottom: .8rem; }
.specs { margin: 0 0 2rem; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 40% 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 400; }

/* ---------- Contacto / formularios ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { display: flex; gap: 1.1rem; padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: border-color .25s; }
a.contact-card:hover { border-color: var(--gold); }
.contact-card > .icon { width: 1.7rem; height: 1.7rem; color: var(--gold-text); }
.contact-card p { margin: .3rem 0 .4rem; color: var(--muted); }
.contact-form { padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--paper); border: 1px solid var(--line); }
.contact-form > p { color: var(--muted); margin: .6rem 0 1.4rem; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-weight: 400; font-size: 1rem; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198, 161, 91, .25); }
.field [aria-invalid="true"] { border-color: #A23B2A; }
.form-error { color: #A23B2A; font-size: .85rem; margin: 0 0 .9rem; }

/* ---------- Legal ---------- */
.legal-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 1.5rem); padding: 1.4rem; background: var(--paper); border: 1px solid var(--line); }
.toc ol { list-style: none; display: grid; gap: .55rem; font-size: .86rem; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.prose { max-width: 72ch; min-width: 0; }
.prose h2 { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.65rem); margin: 2.6rem 0 1rem; }
.prose h2:first-of-type { margin-top: 1rem; }
.prose p, .prose li { color: #3D3830; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1rem; display: grid; gap: .45rem; }
.prose a { color: var(--gold-text); overflow-wrap: anywhere; }
.prose .link-btn { color: var(--gold-text); }
.updated { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted) !important; }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--ivory-2); font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
code { font-size: .85em; background: var(--ivory-2); padding: .1rem .35rem; }

.notfound { min-height: 60vh; display: grid; place-items: center; }
.notfound .lead { margin-inline: auto; }

/* ---------- Pie ---------- */
.site-footer { background: var(--onyx); color: var(--muted-light); padding-top: clamp(3.5rem, 7vw, 5.5rem); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 3.5rem); padding-bottom: 3rem; }
.footer-brand a { color: var(--champagne); text-decoration: none; display: inline-block; margin-bottom: 1.4rem; }
.footer-brand p { max-width: 32ch; }
.footer-title { font-family: var(--sans); font-weight: 500; font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.site-footer ul { list-style: none; display: grid; gap: .65rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--champagne); text-decoration: underline; }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: .6rem; overflow-wrap: anywhere; }
.footer-contact .icon { color: var(--gold); width: 1.1rem; height: 1.1rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; padding-block: 1.6rem; border-top: 1px solid var(--line-light); font-size: .78rem; }
.footer-bottom p { margin: 0; }

/* ---------- Bolsa de compras ---------- */
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(440px, 100%);
  display: flex; flex-direction: column; background: var(--ivory); box-shadow: -20px 0 60px rgba(0, 0, 0, .25);
  transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s;
}
.cart.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; background: var(--onyx); color: var(--champagne); }
.cart-title { font-family: var(--serif); font-size: 1.5rem; }
.cart-body { flex: 1; overflow-y: auto; padding: .5rem 1.25rem; overscroll-behavior: contain; }
.cart-empty { padding: 2rem 0; color: var(--muted); }
.cart-empty a { color: var(--gold-text); }
.cart-items { list-style: none; }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 76px; height: 95px; object-fit: cover; }
.cart-item h3 { font-family: var(--serif); font-size: 1rem; line-height: 1.25; }
.cart-item h3 a { text-decoration: none; }
.cart-item-ref { font-size: .75rem; color: var(--muted); margin: .2rem 0 .5rem; }
.cart-item .qty-btn { width: 34px; height: 34px; }
.cart-item .qty span { min-width: 28px; display: grid; place-items: center; font-weight: 500; font-size: .9rem; }
.cart-item-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-item-price { font-weight: 500; font-size: .92rem; white-space: nowrap; }
.cart-remove { background: none; border: 0; padding: 0; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; color: var(--muted); }
.cart-foot { padding: 1.1rem 1.25rem calc(1.1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); max-height: 62vh; overflow-y: auto; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .4rem; }
.cart-total span { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; }
.cart-total strong { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.cart-note { font-size: .8rem; color: var(--muted); line-height: 1.45; }
.cart-foot .field { margin-bottom: .7rem; }
.cart-foot .field input { min-height: 44px; }
.cart-legal { margin: .8rem 0 0; font-size: .74rem; color: var(--muted); text-align: center; }
.cart-legal a { color: var(--gold-text); }

/* ---------- Cookies, WhatsApp flotante, toast ---------- */
.cookie {
  position: fixed; z-index: 80; left: 1rem; right: 1rem; bottom: 1rem; max-width: 560px;
  padding: 1.3rem 1.4rem; background: var(--onyx); color: var(--champagne); border: 1px solid var(--line-light); box-shadow: var(--shadow);
  font-size: .88rem; animation: rise .5s var(--ease);
}
.cookie p { margin-bottom: 1rem; color: var(--muted-light); }
.cookie a { color: var(--gold); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie .btn { min-height: 44px; padding: .6rem 1.1rem; flex: 1; }
.cookie .btn-ghost { border-color: var(--champagne); color: var(--champagne); }
.cookie .btn-ghost:hover { background: var(--champagne); color: var(--onyx); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.wa-float {
  position: fixed; z-index: 40; right: 1.1rem; bottom: calc(1.1rem + env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--gold); color: var(--onyx); box-shadow: 0 10px 30px rgba(15, 14, 12, .35); transition: transform .3s var(--ease), background .3s;
}
.wa-float:hover { transform: scale(1.06); background: var(--champagne); }
.wa-float .icon { width: 1.7rem; height: 1.7rem; }

.toast {
  position: fixed; z-index: 90; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  max-width: calc(100% - 2rem); padding: .9rem 1.3rem; background: var(--onyx); color: var(--champagne);
  border-left: 2px solid var(--gold); font-size: .88rem; box-shadow: var(--shadow); animation: rise .35s var(--ease);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: inline-grid; margin-left: -10px; }
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem; }
  .brand { justify-self: center; }
  .header-actions { justify-self: end; margin-right: -10px; }
  .logo-mark { width: 32px; height: 32px; }
  .logo-name { font-size: 1.2rem; }
  .main-nav {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 70; width: min(340px, 86vw); margin: 0;
    display: flex; flex-direction: column; padding: 1rem 1.5rem 2rem; background: var(--onyx);
    transform: translateX(-100%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s;
  }
  .main-nav.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease); }
  .nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
  .nav-head .eyebrow { margin: 0; color: var(--gold); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line-light); }
  .main-nav ul a { display: block; padding: 1.1rem 0; font-family: var(--serif); font-size: 1.6rem; letter-spacing: .02em; text-transform: none; }
  .main-nav ul a::after { display: none; }
  .nav-foot { display: grid; gap: .6rem; margin-top: auto; font-size: .85rem; color: var(--muted-light); }
  .nav-foot a { text-decoration: none; }

  .hero-inner { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .hero-media { order: -1; max-width: 520px; width: 100%; margin-inline: auto; }
  .hero-media img { aspect-ratio: 4 / 4.4; }
  .trust-list { grid-template-columns: 1fr 1fr; }
  .trust-list li { padding: 1.3rem 1rem; border-left: 0; border-top: 1px solid var(--line); }
  .trust-list li:nth-child(-n+2) { border-top: 0; }
  .trust-list li:nth-child(odd) { padding-left: 0; }
  .casa-inner, .product-grid, .contact-grid, .legal-grid, .seo-copy { grid-template-columns: 1fr; }
  .product-grid > *, .legal-grid > * { min-width: 0; }
  .casa-media { max-width: 560px; }
  .brand-grid { grid-template-columns: 1fr 1fr; }
  .gallery { position: static; }
  .toc { position: static; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 1rem; }
  .hide-sm { display: none; }
  .grid { grid-template-columns: 1fr 1fr; }
  .split-tiles { grid-template-columns: 1fr; }
  .split-tile img { aspect-ratio: 4 / 3.6; }
  .row-head { flex-direction: column; align-items: flex-start; }
  .card-body { padding: .85rem .8rem 1rem; }
  .card-title { font-size: 1.02rem; }
  .card-meta { font-size: .74rem; margin-bottom: .8rem; }
  .price { font-size: .92rem; }
  .btn-add { width: 100%; justify-content: center; }
  .badge { top: .5rem; left: .5rem; font-size: .54rem; padding: .3rem .45rem; }
  .hero-stats { gap: 1.2rem; justify-content: space-between; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .hero-media figcaption { bottom: 1.6rem; font-size: .95rem; padding: .7rem 1rem; }
  .banner::before { background: linear-gradient(180deg, rgba(15, 14, 12, .55), rgba(15, 14, 12, .92)); }
  .toolbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .toolbar > * { min-width: 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) .3rem; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .toolbar-right { justify-content: space-between; }
  .buy-row { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .cookie { left: .75rem; right: .75rem; bottom: .75rem; }
  .wa-float { width: 52px; height: 52px; right: .9rem; }
  .announce { font-size: .58rem; letter-spacing: .14em; }
}

@media (max-width: 380px) {
  .grid { gap: .6rem; }
  .brand-grid { grid-template-columns: 1fr; }
  .trust-list { grid-template-columns: 1fr; }
  .trust-list li { border-top: 1px solid var(--line) !important; padding-left: 0; }
  .trust-list li:first-child { border-top: 0 !important; }
  .logo-sub { letter-spacing: .5em; }
}

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

@media print {
  .site-header, .announce, .site-footer, .wa-float, .cart, .cookie, .toast { display: none !important; }
  body { background: #fff; }
}
