/* ==========================================================================
   Tinta y Rastro · hoja de estilos
   1. Variables y base       6. Formularios
   2. Utilidades             7. Secciones de portada
   3. Cabecera y menú        8. Catálogo, categorías y ficha
   4. Encabezados de sección 9. Carrito
   5. Tarjetas de producto  10. Contacto · footer · responsive
   ========================================================================== */

/* 1. Variables y base ---------------------------------------------------- */
:root {
  --ink: #121212;
  --paper: #fff;
  --soft: #f5f5f5;
  --sub: #696969;
  --muted: #777;
  --rule: #dedede;
  --lime: #c8f258;
  --purple: #cdb7ff;
  --pink: #ffbdc8;
  --blue: #addbfa;
  --danger: #b33148;
  --ok: #216b36;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --header-h: 148px;      /* alto del header arriba de la página */
  --header-sm: 78px;       /* alto del header al hacer scroll */
  --logo: 120px;
  --logo-sm: 58px;
  --gutter: 104px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-sm) + 20px); }
body { margin: 0; padding-top: var(--header-h); color: var(--ink); background: var(--paper); font: 15px/1.5 var(--font-body); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* 2. Utilidades ------------------------------------------------------------ */
.wrap { width: min(1270px, calc(100% - var(--gutter))); margin-inline: auto; }
.eyebrow-text,
.section-num,
.intro-kicker { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.honeypot { position: absolute !important; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  border: 1px solid var(--ink); background: var(--paper); padding: 12px 17px;
  font-size: 13px; font-weight: 600; transition: background .2s;
}
.btn:hover { background: var(--lime); }
.btn-dark { background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 15px 18px; }
.btn-dark:hover { background: #333; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* 3. Cabecera y menú ------------------------------------------------------- */
/* Fija arriba; al hacer scroll se compacta (clase .is-scrolled desde app.js) */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: var(--paper); box-shadow: 0 1px 12px rgba(0,0,0,.07); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); transition: height .25s ease; }
.brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: var(--logo); height: var(--logo); transition: width .25s ease, height .25s ease; }
.brand img { width: 100%; height: 100%; object-fit: contain; }
.site-header.is-scrolled .header-inner { height: var(--header-sm); }
.site-header.is-scrolled .brand { width: var(--logo-sm); height: var(--logo-sm); }
.menu-toggle {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  width: 44px; height: 44px; border: 1px solid var(--ink); background: var(--paper);
}
.menu-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-trigger { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--ink); background: var(--paper); }
.cart-trigger:hover { background: var(--lime); }
.cart-count { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.header-contact { white-space: nowrap; height: 44px; }

.main-nav {
  display: none; position: absolute; top: 100%; left: 0; z-index: 30;
  width: min(340px, calc(100vw - 36px)); max-height: 75vh; overflow-y: auto;
  flex-direction: column; gap: 4px; padding: 22px;
  background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 8px 25px #0001;
  font-size: 14px; font-weight: 600;
}
.main-nav.open { display: flex; }
.main-nav a { padding: 7px 3px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.main-nav .nav-group { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 10px; letter-spacing: .1em; }

/* 4. Encabezados de sección ------------------------------------------------ */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 39px; }
.section-num { margin-bottom: 16px; }
.section-num a:hover { text-decoration: underline; }
.section-head h2,
.page-title,
.intro h1,
.custom-intro h2 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.065em; }
.section-head h2 { font-size: clamp(38px, 4.5vw, 62px); margin: 0; }
.section-head h2 i,
.page-title i { font-style: normal; background: linear-gradient(transparent 73%, var(--pink) 73%); }
.section-head h2 i.hl-blue { background: linear-gradient(transparent 73%, var(--blue) 73%); }
.section-description { font-size: 14px; color: var(--muted); max-width: 420px; margin: 17px 0 0; }
.view-all { font-size: 11px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.view-all span { margin-left: 22px; font-size: 16px; }
.view-all:hover { background: var(--lime); }
.mobile-more { display: none; }
.page-title { font-size: clamp(38px, 6vw, 76px); letter-spacing: -.06em; margin: 18px 0 18px; }
.page-lead { max-width: 560px; color: #505050; margin: 0; }

/* 5. Tarjetas de producto -------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 19px; }
.product-card { display: flex; flex-direction: column; }
.product-link { display: block; }
.product-art {
  position: relative; aspect-ratio: .85; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #f3f3f3; border: 1px solid #eee;
}
.product-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-art img { transform: scale(1.04); }
.art-label { position: absolute; bottom: 13px; right: 13px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.badge { position: absolute; top: 12px; left: 12px; padding: 4px 9px; background: var(--ink); color: var(--paper); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.badge-out { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); }

/* Ilustraciones de reemplazo cuando el producto no tiene foto */
.art-object { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; transition: transform .25s; }
.art-stickers { background: #e8e2ff; }
.art-stickers .art-object { width: 65%; height: 68%; border-radius: 21px; background: #fff; border: 6px solid #141414; font-size: 80px; box-shadow: 15px 19px 0 #bfadfa; transform: rotate(-12deg); }
.art-imanes { background: #d4edfa; }
.art-imanes .art-object { width: 65%; aspect-ratio: 1; border-radius: 50%; background: #fff; border: 9px solid #222; font-size: 90px; box-shadow: -10px 14px 0 #76b5e0; transform: rotate(12deg); }
.art-tarjetas { background: #fff1cf; }
.art-tarjetas .art-object { width: 70%; aspect-ratio: 1.45; background: #fff; border: 3px solid #111; font-size: 70px; box-shadow: 10px 12px 0 #f2b8c6; transform: rotate(-6deg); }
.art-libretas { background: #ffdee4; }
.art-libretas .art-object { width: 60%; aspect-ratio: .72; background: #fff4c7; border: 2px solid #222; font-size: 76px; box-shadow: -16px 0 #111, 4px 10px 0 #ed97b0; transform: rotate(-8deg); }
.art-libros { background: #eeeddf; }
.art-libros .art-object { width: 60%; aspect-ratio: .78; background: #fff; border: 3px solid #111; font-size: 100px; box-shadow: 12px 14px 0 #a8bba1; transform: rotate(9deg); }
.art-sets { background: #ece3ff; }
.art-sets .art-object { width: 72%; height: 58%; border-radius: 16px; background: #d3f37b; border: 3px dashed #111; font-size: 90px; transform: rotate(-5deg); }
.product-card:hover .art-object { transform: rotate(0) scale(1.05); }

.product-title-line { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-top: 17px; }
.product-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.card-arrow { font-size: 18px; line-height: 1; }
.product-desc { color: var(--muted); font-size: 12px; margin-top: 4px; }
.product-purchase { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; }
.add-to-cart { border: 1px solid var(--ink); padding: 9px 12px; background: var(--paper); font-size: 12px; font-weight: 700; }
.add-to-cart:hover { background: var(--lime); }
.add-to-cart:disabled { opacity: .4; cursor: not-allowed; background: var(--paper); }
.product-consult { font-size: 12px; color: var(--muted); margin: auto 0 0; padding-top: 14px; }

/* 6. Formularios ----------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 21px; }
.form-double { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: flex; flex-direction: column; gap: 9px; font-size: 12px; font-weight: 700; }
.form .req { color: var(--danger); }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #cecece; border-radius: 0;
  background: var(--paper); font-size: 13px; font-weight: 400;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid #222; outline-offset: 2px; border-color: #222; }
.form textarea { resize: vertical; min-height: 97px; }
.form ::placeholder { color: #aaa; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-footer > span { font-size: 10px; color: var(--muted); }
.form-response { font-size: 12px; margin: 0; min-height: 18px; }
.form-response.error { color: var(--danger); }
.form-response.success { color: var(--ok); }

/* 7. Secciones de portada -------------------------------------------------- */
.products-section { padding-block: 56px 64px; scroll-margin-top: 30px; }

.intro { position: relative; padding-block: 8px 36px; }
.intro-kicker { display: flex; align-items: center; gap: 12px; }
.little-star { font-size: 19px; color: #ad87fc; }
.intro-body { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-top: 18px; }
.intro h1 { font-size: clamp(40px, 5.5vw, 77px); margin: 0; }
.intro h1 em { position: relative; font-style: normal; }
.intro h1 em::after { content: ''; position: absolute; z-index: -1; bottom: 4px; left: 1px; right: -4px; height: 13px; background: var(--lime); transform: rotate(-2deg); }
.intro-body > p { max-width: 255px; margin: 0 32px 10px 0; font-size: 14px; color: #505050; }

.custom-wrap { scroll-margin-top: 20px; }
.custom-panel { display: grid; grid-template-columns: 1fr 1.02fr; min-height: 540px; border: 1.5px solid var(--ink); }
.custom-intro { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; padding: 54px 58px; background: var(--lime); }
.eyebrow { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.chip { padding: 6px 12px; border: 1px solid #111; border-radius: 30px; font-size: 11px; font-weight: 700; letter-spacing: .07em; }
.asterisk { font-size: 36px; line-height: 1; }
.custom-intro h2 { font-size: clamp(42px, 4.3vw, 68px); margin: 72px 0 22px; }
.custom-intro h2 i { font-style: normal; border-bottom: 5px solid #111; }
.custom-intro p { max-width: 355px; font-size: 16px; }
.decor { position: absolute; bottom: 27px; right: 26px; width: 230px; height: 120px; pointer-events: none; }
.decor-circle { position: absolute; bottom: -86px; left: 8px; width: 192px; height: 192px; border: 16px solid #151515; border-radius: 50%; }
.decor-dash { position: absolute; left: -50px; bottom: 32px; width: 126px; height: 12px; background: #aa8ef8; transform: rotate(-30deg); }
.decor-star { position: absolute; right: -8px; bottom: -22px; font-size: 85px; color: #fd849f; }
.custom-form-wrap { padding: 46px 50px; background: var(--paper); }

.commission-section { padding-block: 93px 113px; background: var(--soft); scroll-margin-top: 30px; }
.commission-page { padding-block: 75px 110px; }
.commission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.commission-art { position: relative; height: 440px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.commission-art img { width: 100%; height: 100%; object-fit: cover; }
.commission-one { background: #ded3fa; }
.commission-two { background: #f9d6c4; }
.commission-shape { font-family: var(--font-display); font-weight: 700; line-height: .92; letter-spacing: -.08em; text-align: center; transition: transform .2s; }
.commission-one .commission-shape { font-size: clamp(60px, 8vw, 135px); padding: 70px 55px; background: #fff; border: 4px solid #111; box-shadow: 19px 17px #111; transform: rotate(-9deg); }
.commission-two .commission-shape { font-size: clamp(50px, 7.5vw, 110px); padding: 92px 55px; background: var(--lime); border: 3px solid #111; border-radius: 50%; transform: rotate(11deg); }
.commission-card:hover .commission-shape { transform: rotate(0); }
.commission-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 19px; }
.commission-meta strong { font-size: 17px; }
.commission-meta span { font-size: 12px; color: var(--muted); }

.instagram-section { padding-block: 100px 120px; scroll-margin-top: 30px; }
.instagram-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.instagram-grid > p { flex-basis: 100%; }
/* Tarjeta tipo reel: cabecera propia + video recortado a 9:16 (sin franjas negras ni pie de Instagram).
   Instagram muestra el video en una caja 4:5 con franjas a los lados: se agranda el iframe
   y se recorta al centro. --ig-head es el alto de la cabecera interna de Instagram que se oculta. */
.reel { --ig-head: 54px; flex: 0 1 calc((100% - 48px) / 3); min-width: 0; border: 1px solid var(--rule); background: #fff; }
.reel-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.reel-head img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid var(--rule); }
.reel-head div { flex: 1; min-width: 0; line-height: 1.2; }
.reel-head strong { display: block; font-size: 14px; }
.reel-head small { color: var(--muted); font-size: 12px; }
.reel-head a.btn { height: 34px; padding: 0 12px; font-size: 12px; }
.reel-video { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #111; container-type: inline-size; }
.reel-video iframe {
  position: absolute; border: 0;
  width: calc(100cqw / .703125);
  height: calc(100cqw / .703125 * 1.25 + var(--ig-head) + 400px);
  left: calc((100cqw - 100cqw / .703125) / 2);
  top: calc(var(--ig-head) * -1);
}

/* 8. Catálogo, categorías y ficha ------------------------------------------ */
.catalog-page { padding-block: 75px 110px; min-height: 58vh; }
.category-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 30px; }
.category-nav a { padding: 10px 14px; border: 1px solid #ddd; font-size: 13px; }
.category-nav a:hover, .category-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; margin-bottom: 34px; border-block: 1px solid var(--rule); font-size: 13px; }
.catalog-toolbar label { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.catalog-toolbar select { padding: 8px 10px; border: 1px solid #ccc; background: var(--paper); color: var(--ink); }
.catalog-empty { padding: 40px 0; color: var(--muted); }

.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 60px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #ddd; font-size: 13px; font-weight: 600; }
.pagination a:hover { border-color: var(--ink); background: var(--lime); }
.pagination [aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination .is-disabled { opacity: .35; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb a:hover { text-decoration: underline; }

.product-page { padding-block: 60px 100px; }
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; margin-top: 26px; }
.gallery-main { aspect-ratio: .85; }
.gallery-main .art-object { font-size: 150px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs button { width: 74px; height: 74px; padding: 0; border: 1px solid #ddd; background: #f3f3f3; }
.gallery-thumbs button[aria-current="true"] { border: 2px solid var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { position: sticky; top: 30px; }
.detail-info .page-title { font-size: clamp(34px, 4vw, 54px); margin: 14px 0 12px; }
.detail-price { font: 600 28px var(--font-display); margin: 0 0 6px; }
.detail-stock { font-size: 12px; color: var(--muted); margin: 0 0 26px; }
.detail-stock.is-low { color: #a45b00; }
.detail-stock.is-out { color: var(--danger); }
.detail-short { font-size: 16px; color: #333; margin: 0 0 28px; }
.detail-buy { display: flex; gap: 10px; align-items: stretch; margin-bottom: 14px; }
.qty { display: flex; border: 1px solid var(--ink); }
.qty button { width: 42px; border: 0; background: var(--paper); font-size: 18px; }
.qty button:hover { background: var(--soft); }
.qty input { width: 48px; border: 0; border-inline: 1px solid var(--rule); text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.detail-buy .btn-dark { flex: 1; }
.detail-note { font-size: 12px; color: var(--muted); margin: 0 0 34px; }
.detail-body { padding-top: 24px; border-top: 1px solid var(--rule); white-space: pre-line; color: #333; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.detail-tags span { padding: 4px 10px; border: 1px solid #ddd; border-radius: 20px; font-size: 11px; color: #555; }
.detail-custom { display: block; margin-top: 30px; padding: 18px 20px; background: var(--lime); border: 1px solid var(--ink); font-size: 13px; font-weight: 600; }
.related { margin-top: 110px; }

/* 9. Carrito --------------------------------------------------------------- */
.cart-backdrop { position: fixed; inset: 0; z-index: 100; background: #0009; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 101; width: min(440px, 100vw);
  display: flex; flex-direction: column; background: var(--paper); box-shadow: -12px 0 30px #0002;
  transform: translateX(105%); visibility: hidden; transition: transform .22s ease, visibility .22s;
}
.cart-drawer.open { transform: translateX(0); visibility: visible; }
.cart-top { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid #ddd; }
.cart-top h2 { margin: 0; font: 600 27px var(--font-display); }
.cart-close { border: 0; background: none; font-size: 30px; line-height: 1; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-line { display: flex; justify-content: space-between; gap: 14px; padding: 16px 0; border-bottom: 1px solid #ddd; }
.cart-line a:hover { text-decoration: underline; }
.cart-line small { display: block; margin-top: 7px; color: var(--muted); }
.cart-qty { display: flex; align-items: center; gap: 8px; }
.cart-qty button { min-width: 28px; height: 28px; border: 1px solid #ddd; background: #f3f3f3; }
.cart-bottom { padding: 24px; border-top: 1px solid #ddd; }
.cart-total { display: flex; justify-content: space-between; font-size: 19px; }
.cart-hint { margin: 15px 0; font-size: 12px; color: #666; }
.cart-checkout { width: 100%; }
.cart-form { gap: 14px; padding: 20px 24px 24px; border-top: 1px solid #ddd; overflow-y: auto; }
.cart-form .cart-total { font-size: 16px; }
.cart-form .btn-dark { width: 100%; }
.link-btn { align-self: center; border: 0; background: none; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.cart-done { padding: 30px 0; }
.cart-done h3 { font: 600 24px var(--font-display); margin: 0 0 8px; }

/* 10. Contacto · footer · responsive --------------------------------------- */
.contact-page { padding-block: 75px 125px; }
.contact-page .page-lead { margin-bottom: 50px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 70px; }
.contact-layout h2 { font: 600 35px var(--font-display); margin-top: 0; }
.contact-layout a { text-decoration: underline; text-underline-offset: 5px; }
.contact-layout .form { padding: 35px; border: 1px solid #ddd; }

.footer { padding-top: 34px; background: #131313; color: #fff; }
.footer-main { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-bottom: 22px; }
.footer-id { display: flex; align-items: center; gap: 26px; }
.footer-brand img { width: 84px; height: auto; }
.footer-main p { margin: 0; font-size: 14px; color: #aaa; }
.footer-links { display: flex; gap: 100px; }
.footer-links > div { display: flex; flex-direction: column; align-items: start; gap: 9px; }
.footer-links span { margin-bottom: 3px; font-size: 11px; letter-spacing: .1em; color: #aaa; }
.footer-links a { font-size: 13px; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0 18px; border-top: 1px solid #444; font-size: 10px; letter-spacing: .08em; color: #aaa; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 1000px) {
  .reel { flex-basis: calc((100% - 24px) / 2); }
  :root { --gutter: 56px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro-body { display: block; }
  .intro-body > p { max-width: 520px; margin: 23px 0 0; }
  .custom-intro { padding: 42px 35px; }
  .custom-intro h2 { margin-top: 80px; }
  .custom-form-wrap { padding: 42px 32px; }
  .product-detail { gap: 36px; }
  .footer-links { gap: 36px; }
}

@media (max-width: 760px) {
  :root { --gutter: 36px; --header-h: 100px; --header-sm: 66px; --logo: 76px; --logo-sm: 48px; }
  .header-actions { gap: 7px; }
  .cart-trigger, .menu-toggle { width: 40px; height: 40px; }
  .header-contact { height: 40px; padding: 8px 10px; font-size: 12px; }

  .section-head { align-items: start; }
  .section-head h2 { font-size: 43px; }
  .section-head > .view-all { display: none; }
  .mobile-more { display: block; width: max-content; margin: 31px auto 0; padding-bottom: 5px; border-bottom: 1px solid #111; font-size: 12px; font-weight: 700; }

  .products-section { padding-block: 40px 48px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; }
  .product-title { font-size: 13px; }
  .product-purchase { flex-wrap: wrap; }
  .art-stickers .art-object { font-size: 48px; }
  .art-imanes .art-object { font-size: 55px; }
  .art-libretas .art-object { font-size: 46px; }
  .art-libros .art-object { font-size: 60px; }
  .art-sets .art-object { font-size: 54px; }

  .intro { padding-block: 4px 28px; }
  .intro h1 { font-size: 47px; }
  .custom-panel { display: block; }
  .custom-intro { min-height: 310px; padding: 35px 28px; }
  .custom-intro h2 { font-size: 47px; margin: 43px 0 11px; }
  .custom-intro p { max-width: 270px; font-size: 13px; }
  .decor { transform: scale(.65); transform-origin: bottom right; }
  .custom-form-wrap { padding: 32px 23px; }
  .form { gap: 16px; }
  .form-double { gap: 11px; }
  .form-footer { flex-direction: column; align-items: stretch; }

  .commission-section { padding-block: 67px 78px; }
  .commission-grid { gap: 12px; }
  .commission-art { height: auto; aspect-ratio: .83; }
  .commission-one .commission-shape { font-size: 37px; padding: 34px 17px; box-shadow: 8px 8px #111; }
  .commission-two .commission-shape { font-size: 35px; padding: 35px 14px; }
  .commission-meta { display: block; }
  .commission-meta strong { display: block; font-size: 13px; }
  .commission-meta span { font-size: 11px; }

  .instagram-section { padding-block: 64px 80px; }
  .instagram-grid { gap: 20px; }
  .reel { flex-basis: 100%; max-width: 420px; }

  .catalog-page, .product-page { padding-block: 50px 80px; }
  .category-nav { flex-wrap: nowrap; overflow-x: auto; gap: 6px; margin: 24px 0; padding-bottom: 4px; scrollbar-width: none; }
  .category-nav a { white-space: nowrap; padding: 8px 11px; font-size: 12px; }
  .catalog-toolbar { flex-wrap: wrap; }
  .product-detail { grid-template-columns: 1fr; }
  .detail-info { position: static; }
  .gallery-main .art-object { font-size: 90px; }
  .related { margin-top: 70px; }

  .contact-layout { grid-template-columns: 1fr; gap: 24px; }
  .contact-layout .form { padding: 20px; }

  .footer { padding-top: 34px; }
  .footer-main { display: block; padding-bottom: 18px; }
  .footer-id { gap: 18px; }
  .footer-brand img { width: 64px; }
  .footer-links { flex-wrap: wrap; gap: 35px; margin-top: 26px; }
  .footer-bottom { flex-wrap: wrap; }
  .footer-tagline { display: none; }
}

@media (max-width: 430px) {
  :root { --logo: 62px; }
  .header-contact { font-size: 11px; padding: 7px 8px; }
  .header-contact .arrow { display: none; }
  .form-double { grid-template-columns: 1fr; }
  .intro h1 { font-size: 40px; }
  .custom-intro h2 { font-size: 41px; }
}

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

/* ==========================================================================
   Categorías portada (home) — lista minimalista
   ========================================================================== */
.cat-grid { display: flex; flex-direction: column; margin-top: 32px; }
.cat-card {
  display: flex; align-items: center; gap: 24px;
  padding: 20px 0; border-top: 1px solid #e8e2d9;
  text-decoration: none; color: inherit;
  transition: background .15s;
}
.cat-card:last-child { border-bottom: 1px solid #e8e2d9; }
.cat-card:hover { background: none; }
.cat-card:hover .cat-card-name { text-decoration: underline; text-underline-offset: 3px; }

/* Imagen cuadrada pequeña a la izquierda */
.cat-card-media {
  width: 72px; height: 72px; flex-shrink: 0;
  border-radius: 10px; overflow: hidden; background: #ede7db;
}
.cat-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-card-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 20px; letter-spacing: 4px; color: #c0af97; user-select: none;
}

/* Contenido central */
.cat-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cat-card-name {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 700; font-size: 18px; line-height: 1.2; color: var(--ink);
}
.cat-card-count { font-size: 11px; color: #aaa; letter-spacing: .04em; }
.cat-sub-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.cat-sub-tag {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 9px; border-radius: 99px; border: 1px solid #ddd;
  color: #888; background: transparent; text-decoration: none; transition: border-color .15s, color .15s;
}
.cat-sub-tag:hover { border-color: #aaa; color: var(--ink); }

/* Flecha derecha */
.cat-card-arrow { font-size: 18px; color: #ccc; flex-shrink: 0; transition: transform .2s, color .2s; }
.cat-card:hover .cat-card-arrow { transform: translateX(4px); color: var(--ink); }

@media (max-width: 480px) {
  .cat-card-media { width: 56px; height: 56px; }
  .cat-card-name { font-size: 15px; }
  .cat-sub-tags { display: none; }
}

/* ---------- Subcategorías en catálogo ---------- */
.subcat-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.subcat-tag {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 5px 14px; border-radius: 99px; border: 1.5px solid #d4c9b5;
  color: #5a4e3a; background: transparent; text-decoration: none; transition: background .15s, border-color .15s;
}
.subcat-tag:hover { background: #f1e9d8; border-color: #b5a88a; }
.subcat-tag.active { background: var(--ink, #1a1a1a); color: #fff; border-color: var(--ink, #1a1a1a); }
