/* Lyra Boutique · tienda web
   Sin compilación: este archivo se sirve tal cual (el servidor no corre npm). */

@font-face { font-family: "Jost"; src: url("../fonts/jost-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #2b211b;
  --ink-soft: #5c4f45;
  --muted: #8a7c70;
  --gold: #a9802f;
  --gold-deep: #8a6721;
  --champagne: #efe6d6;
  --champagne-soft: #f7f2ea;
  --line: #e4dccf;
  --paper: #ffffff;
  --ok: #3f7a4f;
  --danger: #a3392b;

  --display: "Cinzel", "Times New Roman", serif;
  --body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-input: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
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; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
.stack { display: grid; gap: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Tipografía ------------------------------------------------------------- */
.display { font-family: var(--display); font-weight: 600; letter-spacing: .04em; line-height: 1.15; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.2; }
.page-title { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.2vw, 38px); letter-spacing: .03em; }
.section-title { font-family: var(--display); font-weight: 600; font-size: clamp(21px, 2.4vw, 27px); letter-spacing: .03em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); max-width: 34em; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.prose { max-width: 70ch; }
.prose h2 { font-size: 21px; margin: 2em 0 .5em; }
.prose p, .prose li { color: var(--ink-soft); }

/* Botones: etiqueta de prenda, extremos redondos ------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: #fff;
  font-weight: 500; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--champagne-soft); border-color: var(--ink); color: var(--ink); }
.btn--wa { background: #1f7a4d; border-color: #1f7a4d; }
.btn--wa:hover { background: #17603c; border-color: #17603c; }
.btn--block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink-soft); text-decoration: underline; cursor: pointer; font-size: 15px; }

/* Encabezado -------------------------------------------------------------- */
.topbar { background: var(--ink); color: var(--champagne); font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: var(--champagne); }
.header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.header .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand span { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: .14em; }
.nav { display: flex; gap: 22px; flex: 1; }
.nav a { text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; text-decoration: none; background: none; border: 0; cursor: pointer;
}
.icon-link:hover { background: var(--champagne-soft); }
.icon-link svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--gold); color: #fff; font-size: 12px; font-weight: 600; line-height: 19px; text-align: center;
}
.menu-toggle { display: none; }
.search-row { border-top: 1px solid var(--line); background: var(--champagne-soft); }
.search-row form { display: flex; gap: 10px; padding: 12px 0; }

@media (max-width: 860px) {
  .topbar .hide-sm { display: none; }
  .header .wrap { gap: 10px; min-height: 64px; }
  .brand img { width: 38px; height: 38px; }
  .brand span { font-size: 18px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* Formularios --------------------------------------------------------------- */
.field { display: grid; gap: 6px; }
.field label, .field .label { font-size: 15px; font-weight: 500; }
.field .hint { font-size: 13.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-input); background: #fff;
}
.textarea { min-height: 90px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(169,128,47,.18); }
.field.has-error .input, .field.has-error .select { border-color: var(--danger); }
.error { color: var(--danger); font-size: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }

.alert { padding: 14px 18px; border-radius: var(--radius-input); margin: 18px 0; font-size: 15.5px; }
.alert--ok { background: #eef5ef; color: var(--ok); }
.alert--error { background: #f8ece9; color: var(--danger); }
.alert--info { background: var(--champagne-soft); color: var(--ink-soft); }

/* Portada ----------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(28px, 5vw, 64px) 0; }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 5.4vw, 64px); letter-spacing: .03em; line-height: 1.05; }
.hero .lead { margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { position: relative; background: var(--champagne); aspect-ratio: 4 / 5; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption {
  position: absolute; left: 0; bottom: 0; padding: 14px 18px; background: rgba(255,255,255,.92);
  font-size: 15px; max-width: 85%;
}
.hero-photo figcaption a { font-weight: 500; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-photo { aspect-ratio: 1 / 1; } }

.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-tile {
  position: relative; display: flex; align-items: flex-end; aspect-ratio: 1 / 1;
  background: var(--champagne); text-decoration: none; overflow: hidden;
}
.category-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.category-tile:hover img { transform: scale(1.03); }
.category-tile span {
  position: relative; margin: 14px; padding: 8px 16px; background: #fff;
  font-family: var(--display); font-weight: 600; letter-spacing: .06em; font-size: 16px;
}
@media (max-width: 860px) { .categories { grid-template-columns: repeat(2, 1fr); } }

.section { padding: clamp(36px, 6vw, 72px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.section-head a { font-weight: 500; }

.visit { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 64px); background: var(--champagne-soft); padding: clamp(28px, 5vw, 56px); }
.visit dl { margin: 0; display: grid; gap: 14px; }
.visit dt { font-weight: 600; }
.visit dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

/* Catálogo ---------------------------------------------------------------- */
.catalog { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 28px 0 64px; }
.filters { display: grid; gap: 26px; align-content: start; position: sticky; top: 100px; }
.filters h2 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.filters ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.filters a { display: block; padding: 6px 0; text-decoration: none; color: var(--ink-soft); }
.filters a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.filters a[aria-current="true"]::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--gold); vertical-align: middle; }
.catalog-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
@media (max-width: 860px) {
  .catalog { grid-template-columns: 1fr; gap: 16px; }
  .filters { position: static; grid-template-columns: 1fr 1fr; gap: 14px; }
  .filters ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .filters a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
  .filters a[aria-current="true"] { border-color: var(--ink); }
  .filters a[aria-current="true"]::before { display: none; }
}

.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
.products--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .products, .products--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } }

.card { display: grid; gap: 10px; align-content: start; text-decoration: none; }
.card-photo { position: relative; aspect-ratio: 4 / 5; background: var(--champagne); overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card-photo img { transform: scale(1.02); transition: transform .4s ease; }
.card-badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; background: var(--gold); color: #fff; font-size: 13px; font-weight: 600; border-radius: 999px; }
.card-name { font-weight: 500; line-height: 1.3; }
.placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--display); font-size: clamp(38px, 6vw, 64px); color: rgba(169,128,47,.45);
}

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.price strong { font-weight: 600; }
.price--sale strong { color: var(--gold-deep); }
.price s { color: var(--muted); font-size: .88em; }

/* La etiqueta de tallas: lo que de verdad hay hoy en la tienda */
.sizes { display: flex; flex-wrap: wrap; gap: 4px; }
.size-tag {
  min-width: 30px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 4px;
  font-size: 12.5px; text-align: center; color: var(--ink-soft); background: #fff;
}
.size-tag.is-out { color: #bdb2a6; text-decoration: line-through; border-style: dashed; }
.stock-note { font-size: 13.5px; color: var(--gold-deep); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; padding: 0 14px; }
.pagination [aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Producto ---------------------------------------------------------------- */
.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); padding: 28px 0 64px; }
.gallery { display: grid; gap: 12px; }
.gallery-main { aspect-ratio: 4 / 5; background: var(--champagne); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.thumbs button { padding: 0; border: 1px solid transparent; background: var(--champagne); aspect-ratio: 1; cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy { display: grid; gap: 22px; align-content: start; position: sticky; top: 100px; }
.buy h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 500; }
.buy .price { font-size: 24px; }
.option-group { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.option-group legend { font-weight: 500; margin-bottom: 10px; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option {
  min-width: 54px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer;
}
.option[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.option:disabled { color: #bdb2a6; text-decoration: line-through; cursor: not-allowed; background: var(--champagne-soft); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 20px; }
.qty input { width: 44px; border: 0; text-align: center; -moz-appearance: textfield; background: none; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.buy-row .btn { flex: 1; }
.facts { border-top: 1px solid var(--line); }
.facts details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.facts summary { cursor: pointer; font-weight: 500; }
.facts p { color: var(--ink-soft); margin: 10px 0 0; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } .buy { position: static; } }

/* Carrito y pedido ---------------------------------------------------------- */
.checkout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 56px); padding: 28px 0 64px; align-items: start; }
@media (max-width: 960px) { .checkout { grid-template-columns: 1fr; } }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-photo { aspect-ratio: 4 / 5; background: var(--champagne); overflow: hidden; }
.line-photo img { width: 100%; height: 100%; object-fit: cover; }
.line-photo .placeholder { font-size: 28px; }
.line-meta { display: grid; gap: 6px; }
.line-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.line-total { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .line { grid-template-columns: 72px 1fr; } .line-total { grid-column: 2; text-align: left; } }

.summary { background: var(--champagne-soft); padding: 24px; display: grid; gap: 14px; position: sticky; top: 100px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.summary-row.total { border-top: 1px solid var(--line); padding-top: 14px; font-size: 20px; font-weight: 600; }
.box { border: 1px solid var(--line); padding: clamp(18px, 3vw, 28px); display: grid; gap: 18px; }
.box + .box { margin-top: 18px; }
.box h2 { font-size: 20px; font-weight: 600; }

.choice { display: grid; gap: 10px; }
.choice label {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-input); cursor: pointer;
}
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.choice label:has(input:checked) { border-color: var(--ink); background: var(--champagne-soft); }
.choice label:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.choice small { display: block; color: var(--muted); font-size: 14px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; counter-increment: step; }
.steps li::before {
  content: counter(step); width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold);
  display: grid; place-items: center; font-weight: 600; color: var(--gold-deep);
}
.status { display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--champagne); }
.status--confirmed, .status--delivered { background: #e6f1e8; color: var(--ok); }
.status--cancelled, .status--returned { background: #f6e5e2; color: var(--danger); }
.pre { white-space: pre-line; }

/* Cuenta -------------------------------------------------------------------- */
.auth { max-width: 460px; margin: 0 auto; padding: 48px 0 72px; display: grid; gap: 22px; }
.account { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; padding: 28px 0 64px; align-items: start; }
@media (max-width: 860px) { .account { grid-template-columns: 1fr; } }
.order-list { display: grid; gap: 14px; }
.order-card { border: 1px solid var(--line); padding: 18px 20px; display: grid; gap: 8px; text-decoration: none; }
.order-card:hover { border-color: var(--ink); }
.order-card header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Pie --------------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--champagne); margin-top: 32px; }
.footer a { color: var(--champagne); }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer h2 { font-family: var(--display); font-size: 17px; letter-spacing: .06em; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer .newsletter { display: flex; gap: 8px; margin-top: 14px; }
.footer .newsletter .input { background: transparent; border-color: rgba(239,230,214,.35); color: #fff; }
.footer .newsletter .input::placeholder { color: rgba(239,230,214,.6); }
.footer .newsletter .btn { background: var(--gold); border-color: var(--gold); }
.footer-legal { border-top: 1px solid rgba(239,230,214,.2); padding-top: 18px; padding-bottom: 26px; font-size: 13.5px; color: rgba(239,230,214,.75); }
@media (max-width: 860px) { .footer-main { grid-template-columns: 1fr; gap: 28px; } }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #1f7a4d; color: #fff; box-shadow: 0 6px 18px rgba(31,122,77,.35);
}
.wa-float svg { width: 28px; height: 28px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
