/* Harzkunst – estilos. Paleta y tipografia tomadas del sitio original (tema Inspiro). */

/* Open Sans y Manrope (licencia OFL) alojadas en el propio servidor: sin Google Fonts ni terceros */
@font-face {
  font-family: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/open-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/open-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #fcfbf6;
  --ink: #444;
  --ink-dark: #253238;
  --muted: #59595b;
  --line: #ddd8cc;
  --gold: #d3973d;
  --gold-dark: #b9822c;
  --brown: #745d4b;
  --sand: #f6f2eb;
  --label: #897b71;
  --review: #f4f5f8;
  --danger: #b3261e;
  --ok: #1e7b45;
  --radius: 10px;
  --font: 'Open Sans', 'Segoe UI', system-ui, sans-serif;
  --font-head: Arial, Helvetica, sans-serif;
  --header-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.8 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); }
a:hover { color: var(--brown); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; color: #222; line-height: 1.35; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.625rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #101010; color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* ---------- Cabecera: marron #745d4b, logo blanco ---------- */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); padding: 8px 30px; background: var(--brown); transition: background-color .3s; }
.logo { display: block; flex: none; line-height: 0; }
.logo img { width: 88px; height: 80px; object-fit: contain; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.9rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: .5rem 0; border-bottom: 2px solid transparent; color: var(--bg); font: 400 16px/1.2 var(--font); text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current] { color: #fff; border-color: var(--gold); }
.badge { display: inline-block; min-width: 1.5em; padding: 0 .4em; border-radius: 99px; background: var(--gold); color: #fff; font-size: .75rem; font-weight: 700; text-align: center; }

/* En la portada la cabecera flota transparente sobre la foto y se vuelve marron al bajar (lo activa app.js) */
body.js-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; }
body.js-hero.scrolled .site-header { background: var(--brown); }

/* ---------- Estructura ---------- */
main { min-height: 60vh; }
.page { max-width: 1200px; margin: 0 auto; padding: 2.5rem clamp(1rem, 4vw, 2rem) 4rem; }
.page.narrow { max-width: 780px; }
.lead { font-size: 1.15rem; }
.section { max-width: 1320px; margin: 0 auto; padding: 3rem clamp(1rem, 3vw, 2rem); }
.sec-title { margin: 1rem 0 1.25rem; font: 600 19.4px/1.4 var(--font-head); color: var(--ink-dark); text-align: center; }
.hint { color: #767676; font-size: .88rem; }
.notice { padding: .9rem 1.1rem; background: #fff; border-left: 4px solid var(--gold); border-radius: var(--radius); }
.notice.status-ok { border-color: var(--ok); }
.notice.status-bad, .error-box { border-color: var(--danger); }

/* ---------- Botones: fondo #d3973d, letra clara, esquinas redondeadas ---------- */
.btn { display: inline-block; padding: 13.3px 24.7px; border: 0; border-radius: var(--radius); background: var(--gold); color: var(--bg); font: 400 17px/1.4 var(--font-head); text-decoration: none; cursor: pointer; transition: background-color .15s; }
.btn:hover { background: var(--gold-dark); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }
.link-btn { background: none; border: 0; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: .3rem .5rem; }
.link-btn:hover { color: var(--danger); }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; place-items: center; min-height: calc(100svh - var(--header-h)); padding: 4rem 1.5rem 6rem; text-align: center; color: #fff;
  background: linear-gradient(rgba(20, 20, 20, .38), rgba(20, 20, 20, .38)), url('/img/1920/2026/02/cropped-file_00000000acb071f49dd3aee03e9c7c671.png') center / cover no-repeat #3a3a3a; }
body.js-hero .hero { min-height: 100svh; padding-top: calc(var(--header-h) + 2rem); }
.hero-inner { max-width: 1200px; }
.hero h1 { margin: 0 0 .35em; font: 400 clamp(2.2rem, 6.2vw, 5rem)/1.25 var(--font); color: #fff; }
.hero-rule { width: min(260px, 45vw); margin: 0 auto 1.4rem; border: 0; border-top: 1px solid rgba(255, 255, 255, .45); }
.hero p { margin: 0 0 2rem; font-size: 20px; line-height: 1.8; }
.btn-hero { display: inline-block; padding: 10px 25px; border: 2px solid #fff; color: #fff; font: 400 16px/1.5 'Manrope', var(--font); letter-spacing: .02em; text-transform: uppercase; text-decoration: none; }
.btn-hero:hover { background: #fff; color: #222; }
.hero-down { position: absolute; bottom: 22px; left: 50%; display: block; margin-left: -16px; color: #fff; opacity: .85; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(7px); } }

/* ---------- Categorias: banda continua #f6f2eb con las tres fotos pegadas ---------- */
.cats { padding-top: 1.6rem; }
.cat-band { background: var(--sand); }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1320px; margin: 0 auto; }
.cat-tile { position: relative; display: block; height: 430px; overflow: hidden; background: var(--sand); color: inherit; text-decoration: none; }
/* El fondo de las fotos es #fcfbf6 (mas claro que la banda): "darken" lo funde con #f6f2eb sin costuras */
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: darken; transition: transform .4s; }
.cat-tile:hover img { transform: scale(1.03); }
.cat-info { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 20px; padding-bottom: 22px; }
.cat-label { padding: 13.3px 24.7px; border-radius: 5px; background: var(--label); color: #fff; font: 400 17px/1.4 var(--font-head); }

/* ---------- About me: fondo marron, texto a la izquierda y foto a la derecha ---------- */
.about { padding: 40px 30px; background: var(--brown); color: #fff; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; max-width: 1200px; margin: 0 auto; }
.about h2 { margin-bottom: 1rem; font: 700 17px/1.9 var(--font-head); letter-spacing: .03em; text-transform: uppercase; color: #fff; }
.about p { color: #fff; line-height: 1.9; }
.about .btn { margin-top: .6rem; }
.about-photo { width: 100%; max-width: 560px; height: auto; justify-self: end; border-radius: var(--radius); }

/* ---------- Productos ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 21px; }
.card { display: flex; flex-direction: column; text-align: center; background: transparent; }
.card-img { display: block; aspect-ratio: 1; overflow: hidden; background: #fff; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.04); }
/* Tarjeta de producto (Shop, categorias y portada): titulo gris Arial 17px, precio dorado */
.card h3 { flex: 1; margin: 20px 0 6px; font: 400 17px/1.4 var(--font-head); color: var(--muted); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--gold-dark); }
.card .price { margin: 0 0 12px; font: 400 14.6px/1.8 var(--font-head); color: var(--gold); }
.card form { margin: 0; }
.card .btn { padding: 10.5px 21px; border: 2px solid var(--bg); font: 400 15.7px/1.9 var(--font); }
.price { font-weight: 700; font-size: 1.1rem; color: var(--ink-dark); }
.price.big { font-size: 1.7rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.8rem; }
.chips a { display: block; padding: .35rem 1rem; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); text-decoration: none; font-size: .9rem; background: #fff; }
.chips a:hover, .chips a[aria-current] { background: var(--brown); border-color: var(--brown); color: #fff; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 2.2rem; }
.pagination a, .pagination span { padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; background: #fff; color: var(--ink); }
.pagination span { background: var(--brown); color: #fff; border-color: var(--brown); }

/* ---------- Uber uns: dos filas de tres fotos con esquinas redondeadas ---------- */
.about-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; margin: 1.6rem 0; }
.about-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: #eee9de; }
.about-gallery--tall img { aspect-ratio: 367 / 404; }
@media (max-width: 560px) { .about-gallery { grid-template-columns: 1fr; } }

/* ---------- Ficha de producto ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.gallery-main { width: 100%; height: auto; border-radius: var(--radius); background: #fff; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .5rem; list-style: none; padding: 0; margin: .8rem 0 0; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; overflow: hidden; }
.thumbs button:hover, .thumbs button:focus-visible { border-color: var(--gold); }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.add-form { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1.4rem; }
.details, .related { grid-column: 1 / -1; }
.details h3 { margin-top: 1.4rem; }
.related h2 { margin-top: 2rem; }
.qty { width: 5.2rem; padding: .55rem .6rem; font: inherit; border: 1px solid #b9b9c2; border-radius: 6px; background: #fff; }

/* ---------- Carrito ---------- */
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.cart-table th, .cart-table td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table thead th { background: var(--brown); color: #fff; font-size: .85rem; letter-spacing: .04em; font-weight: 600; }
.cart-table tbody th { font-weight: 600; }
.cart-table th a { color: inherit; text-decoration: none; }
.cart-table th a:hover { color: var(--gold-dark); }
.cart-table .thumb img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; }
.cart-table.compact th, .cart-table.compact td { padding: .6rem 1rem; }
.cart-table .total th, .cart-table .total td { font-weight: 700; font-size: 1.1rem; border-bottom: 0; }
.cart-actions { margin: 1rem 0 2rem; text-align: right; }
.cart-totals { max-width: 420px; margin-left: auto; padding: 1.5rem; background: #fff; border-radius: var(--radius); }
.cart-totals dl, .checkout-summary dl { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; margin: 0 0 1rem; }
.cart-totals dd, .checkout-summary dd { margin: 0; text-align: right; }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 2rem; align-items: start; }
fieldset { margin: 0 0 1.5rem; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
legend { padding: 0 .5rem; font: 700 1.1rem var(--font-head); color: #222; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .3rem; font-size: .9rem; font-weight: 600; }
.field .opt { font-weight: 400; color: #767676; }
abbr { text-decoration: none; color: var(--danger); }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; padding: .65rem .8rem; font: inherit; color: inherit; border: 1px solid #b9b9c2; border-radius: 6px; background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: 2px solid var(--gold); outline-offset: 0; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.error { margin: .3rem 0 0; color: var(--danger); font-size: .85rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 1rem; cursor: pointer; }
.check input { margin-top: .5rem; }
.bill-fields { display: none; margin-top: 1rem; }
#bill_same:not(:checked) ~ .bill-fields, .check:has(#bill_same:not(:checked)) + .bill-fields { display: block; }
.option { display: flex; align-items: flex-start; gap: .8rem; padding: .9rem 1rem; margin-bottom: .6rem; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.option:has(input:checked) { border-color: var(--gold); background: #fffaf1; }
.option:has(input:focus-visible) { outline: 3px solid var(--gold); }
.option.disabled { opacity: .55; cursor: not-allowed; }
.option input { margin-top: .5rem; accent-color: var(--gold-dark); }
.option-text { flex: 1; display: grid; }
.option-text small { color: #767676; }
.option-price { font-weight: 600; white-space: nowrap; }
.checkout-summary { position: sticky; top: calc(var(--header-h) + 16px); padding: 1.5rem; background: #fff; border-radius: var(--radius); box-shadow: 0 1px 3px rgba(16, 16, 16, .08); }
.summary-lines { list-style: none; margin: 0 0 1rem; padding: 0; }
.summary-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.checkout-summary .total { padding-top: .6rem; border-top: 2px solid var(--ink-dark); font-size: 1.15rem; font-weight: 700; }
.hp { position: absolute; left: -9999px; }

/* ---------- Pedido ---------- */
.box { margin: 1.5rem 0; padding: 1.4rem 1.6rem; background: #fff; border-radius: var(--radius); }
.box h2 { font-size: 1.2rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.4rem; margin: 0 0 1rem; }
.kv dd { margin: 0; }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
code { padding: .15rem .4rem; background: #f0eee6; border-radius: 4px; }

/* ---------- Resenas: tarjetas #f4f5f8 sobre el fondo crema ---------- */
.reviews { max-width: 1200px; }
.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
blockquote { margin: 0; padding: 30px; border-radius: 4px; background: var(--review); box-shadow: 0 6px 12px rgba(0, 0, 0, .08); color: var(--muted); }
blockquote p { margin: 0 0 20px; line-height: 1.9; }
blockquote footer { color: var(--muted); }

/* ---------- Instagram ---------- */
.social { max-width: 1320px; }
.ig-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ig-head .sec-title { margin: 0; text-align: left; }
.ig-icon { display: block; color: var(--brown); line-height: 0; }
.ig-icon:hover { color: var(--gold-dark); }
.ig-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 1.5rem; }
.ig-grid a { display: block; overflow: hidden; }
.ig-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .35s; }
.ig-grid a:hover img { transform: scale(1.05); }

/* ---------- Galeria ---------- */
.gal-section { margin-top: 2.5rem; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; }
.gal-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); transition: transform .3s; }
.gal-grid a { overflow: hidden; border-radius: var(--radius); }
.gal-grid a:hover img { transform: scale(1.05); }

/* ---------- Pie: marron #745d4b, titulos blancos, enlaces dorados ---------- */
.site-footer { padding: 50px 30px 22px; background: var(--brown); color: var(--bg); font-size: 16px; line-height: 1.6; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; }
.site-footer h2 { margin-bottom: 1rem; font: 700 20px/1.4 var(--font-head); letter-spacing: .01em; text-transform: uppercase; color: #fff; }
.site-footer p { margin: 0 0 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.copyright { max-width: 1200px; margin: 2.2rem auto 0; padding-top: 1.1rem; border-top: 1px solid rgba(252, 251, 246, .2); color: var(--gold); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid, .ig-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --header-h: 84px; }
  .logo img { width: 70px; height: 64px; }
  .site-header { padding: 8px 16px; }
  .main-nav ul { gap: .1rem 1.1rem; justify-content: flex-end; }
  .main-nav a { font-size: 15px; }
  .product, .checkout, .about-inner { grid-template-columns: 1fr; }
  .about-photo { justify-self: center; }
  .checkout-summary { position: static; order: -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-tile { height: 340px; }
  .cat-tile img { object-position: center 30%; }
}
@media (max-width: 700px) {
  .grid, .ig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 640px) {
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 80px 1fr auto; gap: .2rem .8rem; padding: .8rem; border-bottom: 1px solid var(--line); }
  .cart-table th, .cart-table td { border: 0; padding: .2rem 0; }
  .cart-table td[data-label]::before { content: attr(data-label) ': '; color: #767676; font-size: .8rem; }
  .cart-table .thumb { grid-row: span 3; }
  .cart-table.compact tr { display: table-row; padding: 0; }
  .cart-table.compact th, .cart-table.compact td { padding: .6rem .5rem; border-bottom: 1px solid var(--line); }
  .cart-actions { text-align: center; }
}
@media (max-width: 440px) {
  .grid, .ig-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
