:root {
  --bg: #0c0a0a; --surface: #161212; --surface-2: #1e1818; --line: #342a2a;
  --cream: #f5e6ca; --text: #ece3d4; --muted: #a99d90;
  --red: #8e2a2a; --red-hi: #a93434; --red-text: #e0716a;
  --radius: 12px; --wrap: 1140px;
  --display: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--cream); }
h1, h2, h3 { font-family: var(--display); color: var(--cream); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.kicker { color: var(--red-text); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; margin: 0 0 .6rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: #fff; color: #000; padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .75rem 1.3rem; border-radius: 8px; border: 1px solid var(--red); background: var(--red); color: #fff4e0; font: 600 .95rem/1.2 inherit; font-family: inherit; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--red-hi); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--cream); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-small { padding: .5rem .85rem; font-size: .85rem; }

/* Cabecera */
.header { position: sticky; top: 0; z-index: 20; background: #000; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 18px; min-height: 76px; width: min(1280px, 100% - 32px); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 800 1.35rem/1 var(--display); letter-spacing: .12em; }
.brand img { width: 64px; height: 64px; object-fit: cover; object-position: 40% 45%; }
.brand small { display: block; color: var(--red-text); font-size: .7rem; letter-spacing: .5em; margin-top: 4px; }
.nav { display: flex; gap: 2px; margin-inline: auto; }
.nav a { text-decoration: none; padding: .5rem .7rem; font-size: .93rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { border-color: var(--red-text); }
.header-actions { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.cart-link { text-decoration: none; font-size: .9rem; }
.cart-link span { background: var(--red); border-radius: 99px; padding: 0 7px; font-size: .75rem; font-weight: 700; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--cream); border-radius: 8px; padding: .45rem .8rem; font: inherit; }
@media (max-width: 1120px) {
  .header-row { flex-wrap: wrap; gap: 10px; padding-block: 8px; }
  .menu-toggle { display: block; margin-left: auto; }
  .nav { display: none; order: 5; width: 100%; flex-direction: column; margin: 0; }
  .nav.is-open { display: flex; }
}
@media (max-width: 560px) {
  .header-actions { order: 4; width: 100%; justify-content: space-between; }
  .brand img { width: 52px; height: 52px; }
}

/* Carrusel de portada */
.slider { position: relative; background: #1a1515; display: grid; }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(440px, 46vw, 600px); opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 48px clamp(24px, 6vw, 88px) 76px; }
.slide-text h1, .slide-text h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.slide-text p:not(.kicker) { font-size: 1.1rem; color: var(--muted); max-width: 34ch; }
.slide-media { display: grid; place-items: center; background: #000; overflow: hidden; min-height: 0; }
.slide-media img { width: 100%; height: 100%; max-height: 600px; object-fit: contain; }
.slide-media svg { width: min(70%, 380px); }
.slide-flip .slide-text { order: 2; }
.slide-flip .slide-media { background: radial-gradient(circle at 50% 40%, #3a1717, #000 75%); }
.slider-arrow { position: absolute; top: 50%; translate: 0 -50%; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #ffffff33; background: #000a; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.prev { left: 12px; } .next { right: 12px; }
.slider-bar { position: absolute; bottom: 16px; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 14px; background: #000a; padding: 4px 14px; border-radius: 99px; }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { width: 28px; height: 22px; border: 0; padding: 0; background: none; cursor: pointer; transition: width .25s; display: flex; align-items: center; }
.slider-dots button::before { content: ""; width: 100%; height: 4px; border-radius: 4px; background: #ffffff59; }
.slider-dots button.is-active { width: 44px; }
.slider-dots button.is-active::before { background: #fff; }
.slider-pause { background: none; border: 0; color: #fff; font: .75rem inherit; cursor: pointer; }
@media (max-width: 780px) {
  .slide { grid-template-columns: 1fr; grid-template-rows: 260px 1fr; }
  .slide-media { order: -1; }
  .slide-flip .slide-text { order: 0; }
  .slide-media svg { width: auto; height: 190px; }
  .slide-text { padding: 24px 20px 72px; }
  .slider-arrow { top: 130px; }
}

/* Secciones */
.block { padding: 56px 0; }
.block-alt { background: var(--surface); border-block: 1px solid var(--line); }
.title { margin-bottom: 1.2rem; }
.page-head { background: linear-gradient(180deg, #000, #1b1111); border-bottom: 1px solid var(--line); padding: 48px 0 36px; }
.lead { color: var(--muted); max-width: 62ch; margin: 0; font-size: 1.08rem; }
.tiles { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
a.tile:hover { border-color: var(--red-text); }
.tile p { color: var(--muted); margin: 0 0 12px; }
.tile span { margin-top: auto; color: var(--red-text); font-weight: 600; }
.tile-art { height: 150px; display: grid; place-items: center; background: #000; border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
.tile-art img, .tile-art svg { height: 140px; width: auto; }
.split { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.steps { padding-left: 1.2rem; } .steps li { margin-bottom: .6rem; }

/* Catálogo */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button, .tabs button { background: transparent; color: var(--cream); border: 1px solid var(--line); border-radius: 99px; padding: .45rem 1rem; font: inherit; font-size: .9rem; cursor: pointer; }
.filters button[aria-pressed="true"], .tabs button[aria-selected="true"] { background: var(--red); border-color: var(--red); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.product:hover { border-color: var(--red-text); }
.thumb { aspect-ratio: 1; background: #000; display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-empty img { width: 60%; height: 60%; object-fit: contain; opacity: .35; }
.product-info { padding: 14px 16px 18px; }
.product-info h3 { margin-bottom: .3rem; }
.price { color: var(--cream); font-weight: 700; font-size: 1.15rem; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #ffffff66; display: inline-block; }
.empty { grid-column: 1 / -1; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); padding: 48px 20px; }
.detail { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.detail .thumb { border-radius: var(--radius); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches label { cursor: pointer; display: block; margin: 0; }
.swatches input { position: absolute; opacity: 0; width: 1px; }
.swatches .dot { width: 34px; height: 34px; }
.swatches input:checked + .dot { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--cream); }
.swatches input:focus-visible + .dot { outline: 2px solid var(--cream); outline-offset: 6px; }

/* Formularios */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); margin-bottom: 20px; }
.block-alt .card { background: var(--bg); }
fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
legend { font: 700 1.15rem var(--display); color: var(--cream); margin-bottom: 10px; padding: 0; }
label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 14px; }
input, select, textarea { display: block; width: 100%; margin-top: 5px; padding: .65rem .75rem; background: #0a0808; color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: 400 1rem inherit; font-family: inherit; }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { display: inline-block; width: auto; margin: 0 .5rem 0 0; accent-color: var(--red); }
input[type=color] { height: 42px; padding: 3px; width: 70px; }
.check { font-weight: 400; }
.row { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hp { position: absolute; left: -9999px; }
.msg { min-height: 1.4em; margin: 0 0 10px; font-size: .92rem; }
.msg.error { color: #ff9a92; } .msg.ok { color: #9bd69b; }

/* Pedidos, tablas y panel */
.item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; overflow-wrap: anywhere; }
.item-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.badge { display: inline-block; background: var(--surface-2); border: 1px solid var(--red-text); color: var(--cream); border-radius: 99px; padding: .15rem .7rem; font-size: .8rem; font-weight: 700; }
dl { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 4px 14px; margin: 12px 0; font-size: .92rem; }
dt { color: var(--muted); } dd { margin: 0; white-space: pre-line; }
@media (max-width: 520px) { dl { grid-template-columns: 1fr; } dd { margin-bottom: 8px; } }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.repeat { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 10px; }
.repeat label { margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: none; color: var(--text); border-radius: 99px; padding: 4px 10px 4px 4px; font: .85rem inherit; cursor: pointer; }
.preview { width: 160px; height: 160px; object-fit: cover; border-radius: 8px; background: #000; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
mark { background: #4a3a12; color: #ffe9a8; padding: 0 4px; border-radius: 3px; }

/* Pie */
.footer { background: #000; border-top: 3px solid var(--red); padding: 40px 0 20px; margin-top: 20px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); font-size: .92rem; }
.footer h2 { font-size: 1.05rem; }
.footer a { display: block; text-decoration: none; padding: 2px 0; }
.footer a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; font-size: .85rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
