/* ============================================================
   AMURA · Sistema visual
   Papel blanco · tinta gris carbón · dorado con propósito.
   Reglas: bordes finos en lugar de sombras anchas, una sola
   acción principal por bloque, jerarquía tipográfica marcada.
   ============================================================ */
:root {
  --white: #ffffff;
  --ink: #1b1b1e;
  --ink-soft: #3c3c42;
  --gray-600: #5b5c61;
  --gray-400: #a7a8ad;
  --line: #e4e4e7;
  --wash: #f4f4f5;
  --gold: #b98f22;
  --gold-deep: #7c6116;
  --gold-soft: #f6efda;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", Arial, sans-serif;
  --r-card: 16px;
  --r-pill: 999px;
  --r-input: 10px;
  --max: 1140px;
  --space-section: clamp(4rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 1.8rem + 4vw, 3.9rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { margin: 0; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(var(--max), 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.7rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
  min-height: 48px;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-gold { background: var(--gold); color: var(--ink); font-weight: 600; }
.btn-gold:hover { background: #a37f1e; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 0.9rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid var(--gold);
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ink);
  line-height: 1;
}
.brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  color: var(--gray-600);
  margin-top: 0.15rem;
}
.main-nav { display: flex; gap: 1.75rem; }
.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--ink); border-bottom-color: var(--gold); }
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: var(--r-pill);
  padding: 0.65rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  min-height: 44px;
}
.cart-btn:hover { background: #000; }
.cart-count {
  min-width: 1.5rem;
  height: 1.5rem;
  padding-inline: 0.35rem;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Héroe ---------- */
.hero { padding-block: clamp(3rem, 6vw, 5rem) var(--space-section); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 .gold-word { color: var(--gold-deep); }
.lede {
  font-size: 1.13rem;
  color: var(--gray-600);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--gray-600);
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  max-width: 34rem;
}
.hero-meta strong { color: var(--ink); font-weight: 600; }
.hero-art {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}
.hero-art img { margin-inline: auto; }
.hero-caption {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--gray-600);
}
.hero-caption strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Franja de servicio ---------- */
.service-strip { border-block: 1px solid var(--line); background: var(--white); }
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-list li { padding-block: 1.4rem; }
.service-list strong {
  display: block;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.service-list span { font-size: 0.92rem; color: var(--gray-600); }
.service-list li + li { border-left: 1px solid var(--line); padding-left: 1.5rem; }

/* ---------- Secciones ---------- */
.section { padding-block: var(--space-section); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}
.section-head h2 { max-width: 16ch; }
.section-sub { color: var(--gray-600); max-width: 60ch; margin-bottom: 2.5rem; }
.gold-rule {
  width: 64px;
  height: 3px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.25rem;
}

/* ---------- Filtros ---------- */
.filters { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.chip {
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.6rem 1.3rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  min-height: 44px;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Catálogo ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 160ms ease;
}
.card:hover { border-color: var(--gold); }
.card-art { padding: 1.75rem 1.75rem 0.5rem; }
.card-art img { width: 100%; height: 230px; object-fit: contain; }
.card-body {
  padding: 1.25rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.card-line {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}
.card-name { font-size: 1.45rem; }
.card-desc { font-size: 0.92rem; color: var(--gray-600); flex: 1; }
.card-price { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.card-price small { font-weight: 400; color: var(--gray-600); font-size: 0.85rem; }
.card-actions { display: flex; gap: 0.6rem; margin-top: 0.6rem; }
.card-actions .btn { flex: 1; padding: 0.7rem 0.5rem; font-size: 0.88rem; min-height: 44px; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-outline:hover { border-color: var(--ink); }

/* ---------- Cómo comprar ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  border-top: 1px solid var(--line);
}
.steps li { counter-increment: step; }
.steps .step-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 0.75rem;
}
.steps strong { display: block; font-size: 1.05rem; color: var(--ink); margin-bottom: 0.3rem; }
.steps p { font-size: 0.95rem; color: var(--gray-600); }

/* ---------- La casa ---------- */
.house-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.house-statement { font-family: var(--serif); font-size: 1.5rem; line-height: 1.45; color: var(--ink); }
.house-facts { margin: 0; border-top: 1px solid var(--line); }
.house-facts > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.house-facts dt { font-size: 0.95rem; color: var(--gray-600); }
.house-facts dd { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--ink); }

/* ---------- Contacto ---------- */
.contact-box {
  background: var(--ink);
  color: #e8e8ea;
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}
.contact-box h2 { color: #fff; margin-bottom: 0.75rem; }
.contact-box p { color: #c9c9cd; max-width: 40ch; }
.contact-box .btn-gold { justify-self: end; white-space: nowrap; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #c9c9cd; margin-top: var(--space-section); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-block: 3rem 2rem;
  flex-wrap: wrap;
}
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 0.9rem; margin-top: 0.6rem; max-width: 30ch; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; font-size: 0.92rem; }
.footer-nav a:hover { color: #fff; }
.footer-base {
  border-top: 1px solid #34343a;
  padding-block: 1.25rem;
  font-size: 0.85rem;
  color: #8f8f95;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Carrito (panel lateral) ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 22, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 150;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(420px, 100vw);
  background: var(--white);
  z-index: 160;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 220ms ease;
  border-left: 1px solid var(--line);
}
.cart-panel.open { transform: translateX(0); }
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.cart-head h2 { font-size: 1.5rem; }
.icon-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover { border-color: var(--ink); }
.cart-items {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.9rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.cart-item img {
  width: 64px;
  height: 76px;
  object-fit: contain;
  background: var(--wash);
  border-radius: 8px;
}
.cart-item-name { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.cart-item-size { font-size: 0.85rem; color: var(--gray-600); }
.cart-item-price { font-size: 0.9rem; color: var(--ink); font-weight: 500; margin-top: 0.3rem; }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  margin-top: 0.5rem;
}
.qty button {
  background: transparent;
  border: 0;
  width: 34px;
  height: 34px;
  font-size: 1.05rem;
  cursor: pointer;
  color: var(--ink);
}
.qty output { min-width: 1.6rem; text-align: center; font-size: 0.9rem; }
.cart-remove {
  background: transparent;
  border: 0;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.25rem;
  line-height: 1;
}
.cart-remove:hover { color: var(--ink); }
.cart-empty { padding: 3rem 1rem; text-align: center; color: var(--gray-600); }
.cart-empty p { margin-bottom: 1.5rem; }
.cart-foot { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--line); }
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  color: var(--ink);
}
.cart-total strong { font-size: 1.35rem; }
.cart-note { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 1.1rem; }
.cart-foot .btn + .btn { margin-top: 0.6rem; }
.link-btn {
  background: none;
  border: 0;
  color: var(--gray-600);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.88rem;
  padding: 0.4rem;
}
.link-btn:hover { color: var(--ink); }

/* ---------- Diálogos ---------- */
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0;
  width: min(880px, calc(100vw - 2rem));
  color: var(--ink-soft);
}
dialog::backdrop { background: rgba(20, 20, 22, 0.5); }
.dialog-inner { padding: clamp(1.5rem, 4vw, 2.5rem); position: relative; }
.dialog-close { position: absolute; top: 1rem; right: 1rem; }
.qv-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.25rem; align-items: start; }
.qv-art { border-radius: 14px; padding: 1.5rem; }
.qv-art img { width: 100%; height: 320px; object-fit: contain; }
.qv-line {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}
.qv-grid h3 { font-size: 2rem; margin-block: 0.35rem 0.6rem; }
.qv-desc { color: var(--gray-600); margin-bottom: 1.25rem; }
.qv-notes { margin: 0 0 1.5rem; border-top: 1px solid var(--line); }
.qv-notes > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}
.qv-notes dt { color: var(--gray-600); }
.qv-notes dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }
.size-options { display: flex; gap: 0.6rem; margin-bottom: 1.25rem; }
.size-option input { position: absolute; opacity: 0; }
.size-option span {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  font-size: 0.9rem;
}
.size-option span strong { color: var(--ink); }
.size-option input:checked + span { border-color: var(--ink); background: var(--gold-soft); }
.size-option input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.qv-buy { display: flex; gap: 0.8rem; align-items: stretch; flex-wrap: wrap; }
.qv-buy .qty { margin-top: 0; height: 48px; }
.qv-buy .btn { flex: 1; }
.qv-price { font-size: 1.5rem; font-weight: 600; color: var(--ink); margin-bottom: 1rem; }

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.checkout-grid h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.88rem; font-weight: 500; color: var(--ink); margin-bottom: 0.35rem; }
.field input, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--gold-deep);
  outline-offset: 1px;
  border-color: var(--gold-deep);
}
.field .error { display: none; font-size: 0.83rem; color: #a4262c; margin-top: 0.25rem; }
.field.invalid input { border-color: #a4262c; }
.field.invalid .error { display: block; }
.order-lines { list-style: none; margin: 0 0 1rem; padding: 0; border-top: 1px solid var(--line); }
.order-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.65rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}
.checkout-actions { display: flex; gap: 0.7rem; margin-top: 1.25rem; }
.checkout-actions .btn { flex: 1; }

/* ---------- Aviso ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 150%);
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-pill);
  font-size: 0.93rem;
  z-index: 200;
  transition: transform 220ms ease;
  max-width: calc(100vw - 2rem);
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); }
.toast strong { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .house-grid { grid-template-columns: 1fr; }
  .contact-box { grid-template-columns: 1fr; }
  .contact-box .btn-gold { justify-self: start; }
  .steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .qv-grid { grid-template-columns: 1fr; }
  .qv-art img { height: 240px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; gap: 0; }
  .service-list li + li { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  .grid { grid-template-columns: 1fr; }
  .card-art img { height: 210px; }
  .header-inner { gap: 1rem; }
  .brand-name { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
