/* ===================== Zavaleta Mineralien — diseño peruano ===================== */
:root {
  --bg: #fff7ec;
  --bg-alt: #fdebd3;
  --surface: #ffffff;
  --surface-2: #fff1de;
  --text: #2a1530;
  --muted: #6d5862;
  --line: rgba(42, 21, 48, .14);
  --magenta: #e0267d;
  --orange: #f47b20;
  --yellow: #ffc42e;
  --turq: #0fa3a3;
  --red: #d7263d;
  --purple: #4b1d6b;
  --green: #2fa84f;
  --ok: #1f8f4e;
  --warn: #c76a00;
  --radius: 16px;
  --pop: 4px 4px 0 var(--text);
  --pop-lg: 7px 7px 0 var(--text);
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --header-h: 76px;
  /* Franja textil andina */
  --awayo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24'%3E%3Crect width='48' height='24' fill='%23d7263d'/%3E%3Cpolygon points='0,0 6,4 12,0 18,4 24,0 30,4 36,0 42,4 48,0' fill='%23ffc42e'/%3E%3Cpolygon points='0,24 6,20 12,24 18,20 24,24 30,20 36,24 42,20 48,24' fill='%23ffc42e'/%3E%3Cpolygon points='24,5 33,12 24,19 15,12' fill='%230fa3a3'/%3E%3Cpolygon points='24,9 28,12 24,15 20,12' fill='%23fff7ec'/%3E%3Cpolygon points='0,5 9,12 0,19' fill='%23e0267d'/%3E%3Cpolygon points='48,5 39,12 48,19' fill='%23e0267d'/%3E%3C/svg%3E");
  --awayo-2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='16'%3E%3Crect width='40' height='16' fill='%234b1d6b'/%3E%3Cpolygon points='0,16 10,4 20,16' fill='%23f47b20'/%3E%3Cpolygon points='20,16 30,4 40,16' fill='%23e0267d'/%3E%3Cpolygon points='10,0 20,10 30,0' fill='%23ffc42e'/%3E%3Crect x='0' y='14' width='40' height='2' fill='%230fa3a3'/%3E%3C/svg%3E");
  /* Grecas escalonadas (chakana) para fondos */
  --steps: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 10h6v6h6v6h6v12h-6v6h-6v6h-12v-6h-6v-6h-6v-12h6v-6h6v-6z' fill='none' stroke='%232a1530' stroke-opacity='.06' stroke-width='2'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--magenta); text-decoration: none; font-weight: 500; }
a:hover { color: var(--purple); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; margin: 0 0 .5em; letter-spacing: -.025em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.35rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; font: 700 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--magenta); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--orange);
  clip-path: polygon(33% 0, 67% 0, 67% 33%, 100% 33%, 100% 67%, 67% 67%, 67% 100%, 33% 100%, 33% 67%, 0 67%, 0 33%, 33% 33%); }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }

/* ---------- Franjas textiles ---------- */
.header::after, .section--alt::before, .section--alt::after, .footer::before {
  content: ""; position: absolute; left: 0; right: 0; height: 14px; background: var(--awayo) repeat-x; background-size: auto 100%;
}

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.5em; border-radius: 999px;
  border: 2px solid var(--text); font-weight: 700; font-size: .95rem; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn--primary { background: var(--magenta); color: #fff; box-shadow: var(--pop); }
.btn--primary:hover { color: #fff; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--text); }
.btn--primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--text); }
.btn--ghost { background: var(--surface); color: var(--text); }
.btn--ghost:hover { background: var(--yellow); color: var(--text); }
.btn--added { background: var(--green); color: #fff; box-shadow: none; }
.btn--sm { padding: .55em 1.05em; font-size: .85rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--magenta); }
.icon-btn { background: var(--surface); border: 2px solid var(--text); border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; font-weight: 700; }
.icon-btn:hover { background: var(--yellow); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(255, 247, 236, .94); backdrop-filter: blur(12px); }
.header::after { bottom: -10px; height: 10px; }
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo svg { width: 34px; height: 34px; }
.logo__text { font: 800 1.35rem/1 var(--display); letter-spacing: -.02em; }
.logo__text strong { color: var(--magenta); font-weight: 800; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--text); font-size: .95rem; font-weight: 600; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 2px; background: var(--orange); transform: scaleX(0); transition: transform .2s; }
.nav a:hover::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.lang { position: relative; display: flex; align-items: center; border: 2px solid var(--text); border-radius: 999px; background: var(--turq); color: #fff; }
.lang:hover { background: #0c8f8f; }
.lang:focus-within { outline: 3px solid var(--magenta); outline-offset: 3px; }
.lang svg { width: 17px; height: 17px; margin-left: 10px; pointer-events: none; }
.lang__code { font-size: .82rem; font-weight: 800; letter-spacing: .04em; padding: .6em 26px .6em 6px; pointer-events: none; }
.lang select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.lang select option { color: var(--text); background: var(--surface); }
.lang::after { content: ""; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cart-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--text); background: var(--yellow); display: grid; place-items: center; color: var(--text); box-shadow: 3px 3px 0 var(--text); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn__count { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--magenta); color: #fff; border: 2px solid var(--text); font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.cart-btn.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.2) rotate(-8deg); } }
.menu-btn { display: none; width: 44px; height: 44px; border: 2px solid var(--text); background: var(--surface); border-radius: 50%; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.menu-btn span { width: 16px; height: 2px; background: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 72px; overflow: hidden; background: var(--steps), var(--bg); }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero h1 .hl { color: var(--magenta); }
.hero .lead { font-size: 1.12rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 28px; }
.hero__photo { position: relative; margin: 0; max-width: 600px; width: 100%; justify-self: center; }
.hero__photo::before { /* sol inca asomando detrás de la foto */
  content: ""; position: absolute; width: 62%; aspect-ratio: 1; top: -16%; right: -14%; border-radius: 50%; z-index: 0;
  background: repeating-conic-gradient(var(--yellow) 0 7.5deg, var(--orange) 7.5deg 15deg);
  -webkit-mask: radial-gradient(circle, transparent 0 28%, #000 28.5%); mask: radial-gradient(circle, transparent 0 28%, #000 28.5%);
  animation: spin 80s linear infinite;
}
.hero__photo img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 3px solid var(--text); border-radius: 22px; box-shadow: 10px 10px 0 var(--magenta); transform: rotate(1.5deg); }
.hero__photo::after { content: ""; position: absolute; z-index: 2; left: 18px; right: 18px; bottom: -7px; height: 14px; background: var(--awayo) repeat-x; background-size: auto 100%; border: 2px solid var(--text); border-radius: 4px; transform: rotate(1.5deg); }
.hero__photo figcaption { position: absolute; z-index: 3; left: -10px; top: 22px; padding: .45em 1em; border-radius: 999px; background: var(--yellow); border: 2px solid var(--text); box-shadow: 3px 3px 0 var(--text); font-weight: 700; font-size: .85rem; transform: rotate(-3deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.next-event { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: .6em 1.1em; border-radius: 999px; background: var(--surface); border: 2px solid var(--text); color: var(--text); font-size: .9rem; font-weight: 500; }
.next-event:hover { color: var(--text); background: var(--yellow); }
.next-event__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47, 168, 79, .25); }
.next-event__count { color: var(--magenta); font-weight: 800; }

.stats { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats li { padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; border: 2px solid var(--text); border-radius: var(--radius); box-shadow: var(--pop); }
.stats li:nth-child(1) { background: var(--magenta); color: #fff; }
.stats li:nth-child(2) { background: var(--orange); color: var(--text); }
.stats li:nth-child(3) { background: var(--turq); color: #fff; }
.stats li:nth-child(4) { background: var(--yellow); color: var(--text); }
.stats strong { font: 800 2.6rem/1 var(--display); }
.stats span { font-size: .9rem; font-weight: 500; }

/* ---------- Secciones ---------- */
.section { position: relative; padding: 104px 0; }
.section--alt::before { top: 0; }
.section--alt::after { bottom: 0; }
.section__head { margin-bottom: 40px; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* Ferias: sección nocturna morada */
#eventos { background: var(--purple); color: #fff7ec; }
#eventos .eyebrow { color: var(--yellow); }
#eventos .eyebrow::before { background: var(--magenta); }
#eventos .lead, #eventos .past { color: #e5d3ee; }
#nosotros { background: var(--steps), var(--bg-alt); }
#nosotros::before, #nosotros::after { background-image: var(--awayo-2); height: 16px; }

/* ---------- Toolbar / chips ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.toolbar__right { display: flex; gap: 10px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 2px solid var(--text); background: var(--surface); color: var(--text); padding: .45em 1.05em; border-radius: 999px; font-size: .88rem; font-weight: 600; transition: .15s; }
.chip:hover { background: var(--surface-2); }
.chip[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--text); color: var(--yellow); }
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 14px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.search input, .toolbar select { background: var(--surface); border: 2px solid var(--text); border-radius: 999px; padding: .55em 1.1em; font-size: .9rem; min-width: 0; }
.search input { padding-left: 40px; width: 240px; }
.toolbar select { padding-right: 2.2em; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }

/* ---------- Productos ---------- */
.grid { display: grid; gap: 24px; }
.products { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 2px solid var(--text); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--pop); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translate(-3px, -3px); box-shadow: var(--pop-lg); }
.card__media, .modal__media, .line__media {
  position: relative; display: grid; place-items: center; border: 0; padding: 18px; width: 100%;
  background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--glow) 40%, #fff) 0 38%, color-mix(in srgb, var(--glow) 18%, #fff7ec) 70%);
}
.card__media { aspect-ratio: 1 / .85; border-bottom: 2px solid var(--text); }
.card__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--awayo) repeat-x; background-size: auto 100%; }
.card:nth-child(4n+2) .card__media::after { background-image: var(--awayo-2); }
.card__media svg, .card__media img { width: 80%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.card__media img { width: 100%; object-fit: cover; }
.card:hover .card__media svg { transform: scale(1.06) rotate(-2deg); }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card__loc { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--turq); margin-bottom: .4rem; }
.card__title { font-size: 1.4rem; margin-bottom: .3rem; }
.card__title button { all: unset; cursor: pointer; }
.card__title button:hover { color: var(--magenta); }
.card__meta { color: var(--muted); font-size: .88rem; }
.card__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font: 800 1.35rem/1 var(--display); color: var(--text); }
.price--lg { font-size: 1.9rem; }
.price--ask { font: 600 .82rem/1.2 var(--sans); color: var(--muted); }
.price--ask.price--lg { font-size: 1rem; }
.card--sold .card__media svg { filter: grayscale(.8); opacity: .6; }

.badge { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .35em .8em; border-radius: 999px; border: 2px solid currentColor; }
.card__media .badge, .modal__media .badge { position: absolute; top: 14px; left: 14px; z-index: 1; background: var(--surface); }
.badge--sold { color: var(--red); }
.badge--reserved { color: var(--warn); }
.badge--ok { background: var(--green); border-color: var(--green); color: #fff; }
.badge--tbc { background: transparent; color: var(--yellow); }
.badge--type { color: var(--purple); background: #f1e6f7; border-color: transparent; }
.badge--sample { color: var(--magenta); background: #fde3ef; border-color: transparent; }

/* ---------- Eventos ---------- */
.route { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.route::-webkit-scrollbar { display: none; }
.route__stop { flex: none; font-size: .88rem; font-weight: 600; padding: .45em 1em; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 2px solid rgba(255, 247, 236, .35); color: #fff7ec; }
.route__stop--origin { background: var(--red); border-color: var(--red); }
.route__stop--home { background: var(--turq); border-color: var(--turq); }
.route__line { flex: 1 0 24px; height: 3px; background: repeating-linear-gradient(90deg, var(--yellow) 0 8px, transparent 8px 14px); }

.events { display: grid; gap: 16px; }
.event { display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; align-items: center; padding: 22px 26px; background: #5d2b80; border: 2px solid rgba(255, 247, 236, .18); border-radius: var(--radius); color: #fff7ec; }
.event--next { background: #fff7ec; color: var(--text); border: 2px solid var(--text); box-shadow: 7px 7px 0 var(--yellow); }
.event--next .badge--tbc { color: var(--purple); }
.event--next .event__when { color: var(--muted); }
.event--next .event__count { color: var(--magenta); }
.event__date { display: flex; flex-direction: column; align-items: center; padding: 12px 0; border-radius: 12px; background: var(--yellow); color: var(--text); text-transform: uppercase; border: 2px solid var(--text); }
.event--next .event__date { background: var(--magenta); color: #fff; }
.event__day { font: 800 2.2rem/1 var(--display); }
.event__month { font-size: .78rem; font-weight: 800; letter-spacing: .1em; }
.event__year { font-size: .7rem; opacity: .75; }
.event__tags { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.event__count { font-size: .82rem; color: var(--yellow); font-weight: 700; }
.event h3 { margin-bottom: .25em; }
.event__where { margin: 0; font-weight: 500; }
.event__when { margin: 0; color: #e5d3ee; font-size: .9rem; }
.event__actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; text-align: center; }
.event:not(.event--next) .btn--ghost { background: transparent; color: #fff7ec; border-color: #fff7ec; }
.event:not(.event--next) .btn--ghost:hover { background: #fff7ec; color: var(--text); }
.event:not(.event--next) .btn--primary { box-shadow: 4px 4px 0 var(--yellow); border-color: #fff7ec; }
.event .link-btn { color: inherit; opacity: .8; }

.showroom { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 26px 28px; border-radius: var(--radius); background: var(--turq); color: #fff; border: 2px solid var(--text); box-shadow: 7px 7px 0 var(--magenta); }
.showroom h3 { margin-bottom: .2em; }
.showroom p { margin: 0; max-width: 60ch; }
.showroom .btn--ghost { background: #fff; }
.past { margin-top: 32px; }
.past summary { cursor: pointer; font-weight: 600; }
.past ul { padding-left: 1.2em; margin: 12px 0 0; }
.past li { margin-bottom: 6px; font-size: .92rem; }

/* ---------- Distribuidores ---------- */
#countryChips { margin-bottom: 24px; }
.distributors { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.dist { padding: 22px; background: var(--surface); border: 2px solid var(--text); border-radius: var(--radius); border-top-width: 8px; }
.dist:nth-child(4n+1) { border-top-color: var(--magenta); }
.dist:nth-child(4n+2) { border-top-color: var(--orange); }
.dist:nth-child(4n+3) { border-top-color: var(--turq); }
.dist:nth-child(4n+4) { border-top-color: var(--yellow); }
.dist__top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.dist__flag { font-size: 1.6rem; line-height: 1; margin-right: auto; }
.dist h3 { margin-bottom: .15em; }
.dist__city { color: var(--muted); font-size: .9rem; margin-bottom: .7em; }
.dist__links { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; overflow-wrap: anywhere; }

.wholesale { position: relative; overflow: hidden; margin-top: 56px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 44px 40px 52px; border-radius: calc(var(--radius) + 6px); background: var(--orange); border: 2px solid var(--text); box-shadow: var(--pop-lg); }
.wholesale::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: var(--awayo-2) repeat-x; background-size: auto 100%; }
.wholesale h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.wholesale p { max-width: 60ch; font-weight: 500; }
.wholesale .btn--primary { background: var(--purple); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.checks li { position: relative; padding-left: 28px; font-size: .95rem; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; background: var(--yellow); border: 2px solid var(--text); transform: rotate(45deg) scale(.8); }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about__copy p { color: var(--muted); font-size: 1.07rem; }
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.values li { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--text); box-shadow: var(--pop); display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; }
.values__icon { grid-row: span 2; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.15rem; border: 2px solid var(--text); }
.values li:nth-child(1) .values__icon { background: var(--magenta); }
.values li:nth-child(2) .values__icon { background: var(--turq); }
.values li:nth-child(3) .values__icon { background: var(--orange); }
.values h3 { font-size: 1.25rem; margin-bottom: .15em; }
.values p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.contact__list li { display: flex; flex-direction: column; gap: 2px; padding-bottom: 16px; border-bottom: 2px dashed var(--line); overflow-wrap: anywhere; }
.contact__list li > span:first-child { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--turq); }
.form { display: grid; gap: 18px; padding: 36px; border-radius: calc(var(--radius) + 6px); background: var(--surface); border: 2px solid var(--text); box-shadow: 8px 8px 0 var(--turq); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; min-width: 0; }
.form input:not([type=checkbox]), .form select, .form textarea { width: 100%; background: var(--bg); border: 2px solid var(--line); border-radius: 10px; padding: .75em 1em; font-size: .95rem; font-weight: 400; color: var(--text); transition: border-color .15s; }
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--magenta); }
.form label.is-invalid input, .form label.is-invalid textarea { border-color: var(--red); }
.form__check { grid-template-columns: auto 1fr !important; align-items: start; gap: 10px !important; font-weight: 400 !important; color: var(--muted); }
.form__check input { margin-top: .25em; accent-color: var(--magenta); width: 17px; height: 17px; }
.form__check.is-invalid span { color: var(--red); }
.form .btn { justify-self: start; }
.form__status { margin: 0; font-size: .9rem; min-height: 1.4em; font-weight: 600; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-error { color: var(--red); }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--text); color: #fff7ec; padding: 52px 0 40px; }
.footer::before { top: 0; height: 16px; }
.footer .logo { color: #fff7ec; }
.footer .logo__text strong { color: var(--yellow); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__tag { color: #d9c8d6; font-size: .88rem; margin: 6px 0 0; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: var(--yellow); font-size: .9rem; }
.footer__copy { color: #d9c8d6; font-size: .85rem; margin: 0; }

/* ---------- Drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(42, 21, 48, .5); z-index: 80; backdrop-filter: blur(3px); }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); z-index: 90; background: var(--bg); border-left: 2px solid var(--text); display: flex; flex-direction: column; transform: translateX(105%); transition: transform .3s ease; }
.drawer.is-open { transform: none; }
.drawer__head { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 30px 24px 20px; border-bottom: 2px solid var(--text); background: var(--yellow); }
.drawer__head::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px; background: var(--awayo) repeat-x; background-size: auto 100%; }
.drawer__head h2 { font-size: 1.6rem; margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 12px 24px; }
.drawer__empty { color: var(--muted); padding: 24px 0; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 2px dashed var(--line); }
.line__media { aspect-ratio: 1; border-radius: 12px; padding: 6px; border: 2px solid var(--text); }
.line__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.line__info strong { font-size: .95rem; }
.line__info span { color: var(--muted); font-size: .8rem; }
.line__info .price { font-size: 1.05rem; color: var(--text); }
.drawer__foot { padding: 20px 24px 24px; border-top: 2px solid var(--text); display: grid; gap: 12px; background: var(--surface); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.drawer__total strong { font: 800 1.4rem/1.1 var(--display); text-align: right; }
.drawer__note { color: var(--muted); font-size: .82rem; margin: 0; }
.drawer__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drawer__actions .btn--ghost { background: #25d366; color: var(--text); }
.drawer__foot .link-btn { justify-self: center; }

/* ---------- Modal ---------- */
.modal { width: min(920px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 2px solid var(--text); border-radius: calc(var(--radius) + 6px); background: var(--surface); color: var(--text); overflow: auto; box-shadow: 10px 10px 0 var(--magenta); }
.modal::backdrop { background: rgba(42, 21, 48, .55); backdrop-filter: blur(4px); }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.modal__inner { display: grid; grid-template-columns: 1fr 1fr; }
.modal__media { min-height: 380px; border-right: 2px solid var(--text); }
.modal__media svg, .modal__media img { width: 84%; }
.modal__info { padding: 40px 36px; }
.modal__info > p { color: var(--muted); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.specs div { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.specs__wide { grid-column: 1 / -1; }
.specs dt { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--turq); }
.specs dd { margin: 2px 0 0; font-size: .93rem; font-weight: 500; }
.modal__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; padding: 18px 16px 20px; background: var(--bg); border-bottom: 2px solid var(--text); transform: translateY(-130%); transition: transform .3s ease; z-index: -1; }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 2px dashed var(--line); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .menu-btn { display: flex; }
  .header__actions { margin-left: auto; }
  .hero__inner, .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .hero__photo { max-width: 560px; order: -1; }
  .hero__photo::before { width: 46%; top: -10%; right: -6%; }
  .hero__photo figcaption { left: 8px; }
  .hero { padding-top: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .event { grid-template-columns: 80px 1fr; }
  .event__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .wholesale { grid-template-columns: 1fr; padding: 30px 26px 44px; }
  .wholesale .btn { justify-self: start; }
  .modal__inner { grid-template-columns: 1fr; }
  .modal__media { min-height: 260px; border-right: 0; border-bottom: 2px solid var(--text); }
}
@media (max-width: 600px) {
  .section { padding: 76px 0; }
  .logo__text { font-size: 1.15rem; }
  .header__actions { gap: 8px; }
  .toolbar__right, .search, .search input, .toolbar select { width: 100%; }
  .checks, .form__row { grid-template-columns: 1fr; }
  .form { padding: 22px; box-shadow: 5px 5px 0 var(--turq); }
  .stats li { padding: 16px; }
  .stats strong { font-size: 2.1rem; }
  .event { padding: 18px; gap: 16px; grid-template-columns: 64px 1fr; }
  .event__day { font-size: 1.8rem; }
  .event__actions .btn { flex: 1 1 auto; }
  .modal__info { padding: 28px 22px; }
  .drawer__actions { grid-template-columns: 1fr; }
}
@media (max-width: 350px) { .logo__text { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.form__send { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.header { top: env(safe-area-inset-top, 0px); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }

/* ---------- Fotos ---------- */
.has-photo { padding: 0 !important; overflow: hidden; }
.card__media.has-photo img, .modal__media.has-photo img, .line__media.has-photo img { width: 100%; height: 100%; object-fit: contain; }
.card__media.has-photo { aspect-ratio: 4 / 3; }
.card:hover .card__media.has-photo img { transform: scale(1.03); }
.card__media.has-photo img, .modal__media.has-photo img, .line__media.has-photo img { position: absolute; inset: 0; }
.line__media.has-photo { border-radius: 12px; }

.photo { position: relative; margin: 0; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; border: 3px solid var(--text); border-radius: 18px; }
.photo figcaption { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); padding: .4em .95em; border-radius: 999px; background: var(--yellow); color: var(--text); border: 2px solid var(--text); font-weight: 700; font-size: .82rem; box-shadow: 3px 3px 0 var(--text); }

.showroom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.showroom__copy { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.photo--events img { aspect-ratio: 4 / 3; box-shadow: 6px 6px 0 var(--text); }

.wholesale { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) auto; }
.photo--wholesale img { aspect-ratio: 4 / 3; box-shadow: 5px 5px 0 var(--text); }
.photo--wholesale figcaption { background: var(--surface); }

.about { grid-template-columns: minmax(0, .75fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.photo--about img { aspect-ratio: 3 / 4; box-shadow: 8px 8px 0 var(--magenta); transform: rotate(-1.5deg); }
.photo--about figcaption { transform: rotate(-1.5deg); }

@media (max-width: 1100px) {
  .about { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .about .values { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .wholesale { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .wholesale > .btn { grid-column: 2; }
}
@media (max-width: 980px) {
  .showroom { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .photo--about { max-width: 420px; }
  .wholesale { grid-template-columns: 1fr; }
  .wholesale > .btn { grid-column: auto; }
}
@media (max-width: 600px) {
  .photo figcaption, .hero__photo figcaption { font-size: .72rem; padding: .35em .8em; left: 10px; bottom: 10px; max-width: calc(100% - 20px); }
  .hero__photo figcaption { bottom: auto; top: 14px; }
}

/* Aviso "Próxima feria": tarjeta compacta en móvil (punto + texto, días debajo) */
@media (max-width: 600px) {
  .next-event { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: 10px; row-gap: 6px; width: 100%; border-radius: 16px; padding: .75em 1em; line-height: 1.4; }
  .next-event__dot { margin-top: .4em; }
  .next-event__count { grid-column: 2; justify-self: start; background: var(--magenta); color: #fff; border-radius: 999px; padding: .15em .75em; font-size: .78rem; line-height: 1.4; }
}

.section--wholesale .wholesale { margin-top: 0; }
