/* ============================================================
   Lúmina — hoja de estilos
   Escrita mobile-first: los estilos base son para pantalla
   pequeña y se amplían con @media (min-width).
   ============================================================ */

:root {
  --dark: #0b0e13;
  --dark-2: #11151d;
  --dark-3: #171c26;
  --line-dark: #232b38;
  --line-dark-2: #2e3745;
  --on-dark: #e9edf4;
  --on-dark-muted: #8c96a7;
  --on-dark-dim: #5f6a7c;

  --light: #ffffff;
  --muted-bg: #f5f6f8;
  --line: #e3e6ec;
  --line-strong: #ccd2db;
  --ink: #0d1117;
  --muted: #5b6472;
  --dim: #8b93a1;

  --accent: #c02e46;
  --accent-hover: #a8243a;

  --display: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --r: 4px;
  /* Márgenes laterales y alto de cabecera: crecen con la pantalla */
  --gutter: 18px;
  --header-h: 60px;
}

@media (min-width: 640px) { :root { --gutter: 28px; --header-h: 68px; } }
@media (min-width: 900px) { :root { --gutter: 40px; --header-h: 76px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--dark);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { display: block; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

.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;
}

/* ---------- Tipografía de sección ---------- */

.eyebrow, .step-label {
  font-family: var(--sans);
  font-size: 11px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
}

.disclaimer {
  font-size: 12px; color: var(--dim); line-height: 1.75;
  margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line);
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: var(--r);
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  border: 1px solid transparent; text-align: center;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); }
.btn--outline { border-color: var(--line-strong); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--outline-light { border-color: var(--line-dark-2); color: var(--on-dark); }
.btn--outline-light:hover { border-color: var(--on-dark-dim); }
.btn--block { width: 100%; }

.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--r); color: var(--on-dark); flex: none;
}
.icon-btn:hover { background: var(--dark-3); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }

.logo {
  font-family: var(--display); font-size: 16px; font-weight: 700;
  letter-spacing: .24em; text-indent: .24em; color: var(--on-dark);
  white-space: nowrap;
}
.logo--light { color: #fff; }

/* ---------- Verificación de edad ---------- */

/* Solo se muestra si <html> lleva la clase need-age, que se decide con un
   script en línea antes del primer pintado para que no haya parpadeo. */
.agegate {
  position: fixed; inset: 0; z-index: 300;
  display: none; place-items: center; padding: 24px;
  background: var(--dark); color: #fff; overflow-y: auto;
}
html.need-age .agegate { display: grid; }
html.need-age body { overflow: hidden; }
.agegate__panel { max-width: 560px; width: 100%; }
.agegate__panel .logo { display: block; margin-bottom: 26px; font-size: 18px; }
.agegate__panel h1 { font-size: clamp(24px, 6vw, 38px); line-height: 1.2; margin-bottom: 16px; }
.agegate__panel p { color: var(--on-dark-muted); font-size: 15px; line-height: 1.75; }
.agegate__actions { display: grid; gap: 10px; margin: 26px 0 18px; }
.agegate__panel small { font-size: 12px; color: var(--on-dark-dim); }
.agegate__panel small a { text-decoration: underline; }

@media (min-width: 640px) { .agegate__actions { grid-auto-flow: column; justify-content: start; } }

/* ---------- Barra superior ---------- */

.topbar { background: var(--dark-2); border-bottom: 1px solid var(--line-dark); }
.topbar__inner {
  display: flex; align-items: center; justify-content: center;
  min-height: 42px; font-size: 12px; color: var(--on-dark-muted); text-align: center;
}
.topbar strong { color: var(--on-dark); font-weight: 500; }
.topbar__contact { display: none; }

@media (min-width: 900px) {
  .topbar__inner { justify-content: space-between; text-align: left; font-size: 12.5px; }
  .topbar__contact { display: block; }
}

/* ---------- Cabecera ---------- */

.header {
  position: sticky; top: 0; z-index: 60;
  background: var(--dark); border-bottom: 1px solid var(--line-dark);
}
.header__inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }

.menu-toggle {
  display: flex; flex-direction: column; gap: 5px;
  width: 40px; height: 40px; align-items: center; justify-content: center; flex: none;
}
.menu-toggle span { width: 18px; height: 2px; background: var(--on-dark); }

.nav { display: none; }
.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.cart-button {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px; border-radius: var(--r);
  border: 1px solid var(--line-dark-2); color: var(--on-dark); font-size: 13px;
}
.cart-button:hover { border-color: var(--on-dark-dim); }
.cart-button__label { display: none; }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  display: grid; place-items: center; background: var(--accent);
  color: #fff; font-size: 11px; font-weight: 600;
}

@media (min-width: 420px) { .cart-button__label { display: inline; } }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .header__inner { gap: 32px; }
  .logo { font-size: 18px; }
  .nav { display: flex; align-items: center; gap: 26px; margin-left: 8px; }
}

/* Navegación: enlace y submenú de categorías */
.nav__link {
  font-size: 14px; color: var(--on-dark-muted); padding: 6px 0;
  border-bottom: 1px solid transparent; white-space: nowrap;
}
.nav__link:hover, .nav__link.is-active { color: var(--on-dark); border-bottom-color: var(--accent); }

.nav__group { position: relative; display: flex; align-items: center; gap: 2px; }
.nav__more { display: grid; place-items: center; width: 22px; height: 22px; color: var(--on-dark-dim); border-radius: 2px; }
.nav__more:hover { color: var(--on-dark); }
.nav__more svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.nav__more[aria-expanded="true"] svg { transform: rotate(180deg); }

/* El panel arranca pegado al botón y el aire se logra con relleno:
   así el ratón nunca cruza una zona muerta y el submenú no se cierra. */
.nav__sub {
  position: absolute; top: 100%; left: -16px; z-index: 5;
  display: none; flex-direction: column; gap: 2px;
  min-width: 210px; padding: 12px 10px 10px;
  background: transparent; border: 0;
}
.nav__sub::before {
  content: ''; position: absolute; left: 0; right: 0; top: 12px; bottom: 0; z-index: 0;
  background: var(--dark-2); border: 1px solid var(--line-dark); border-radius: var(--r);
}
.nav__sub a {
  position: relative; z-index: 1;
  padding: 9px 12px; border-radius: 2px; font-size: 13.5px; color: var(--on-dark-muted);
}
.nav__sub a:hover, .nav__sub a.is-active { background: var(--dark-3); color: var(--on-dark); }
.nav__group.is-open .nav__sub,
.nav__group:hover .nav__sub,
.nav__group:focus-within .nav__sub { display: flex; }

/* Buscador */
.searchbar { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-dark); }
.searchbar label { display: none; font-size: 13px; color: var(--on-dark-muted); white-space: nowrap; }
.searchbar input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: var(--r);
  border: 1px solid var(--line-dark-2); background: var(--dark-2);
  color: var(--on-dark); outline: none;
}
.searchbar input:focus { border-color: var(--accent); }
.searchbar__close { font-size: 13px; color: var(--on-dark-muted); white-space: nowrap; }
@media (min-width: 640px) { .searchbar label { display: block; } }

/* ---------- Panel de menú móvil ---------- */

.navpanel {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 75;
  width: min(340px, 88%); display: flex; flex-direction: column;
  background: var(--dark-2); border-right: 1px solid var(--line-dark);
  transform: translateX(-102%); transition: transform .28s ease;
  overflow-y: auto;
}
.navpanel.is-open { transform: none; }

.navpanel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line-dark);
}
.navpanel__nav { display: flex; flex-direction: column; padding: 8px 0; }
.navpanel__link {
  padding: 15px 20px; font-size: 16px; color: var(--on-dark-muted);
  border-bottom: 1px solid var(--line-dark);
}
.navpanel__link:hover, .navpanel__link.is-active { color: #fff; }

.navpanel__group { padding: 20px; border-bottom: 1px solid var(--line-dark); }
.navpanel__title {
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--on-dark-dim); margin-bottom: 10px;
}
.navpanel__cat { display: block; padding: 9px 0; font-size: 15px; color: var(--on-dark-muted); }
.navpanel__cat:hover, .navpanel__cat.is-active { color: var(--on-dark); }

.navpanel__foot { padding: 22px 20px 30px; }
.navpanel__foot p { margin-top: 18px; font-size: 12.5px; color: var(--on-dark-dim); line-height: 1.8; }
.navpanel__foot strong { color: var(--on-dark); font-weight: 500; }

@media (min-width: 900px) { .navpanel { display: none; } }

/* ---------- Portada ---------- */

.hero { background: var(--dark); color: var(--on-dark); padding: 44px 0 0; }
.hero__grid { display: grid; gap: 34px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 100px;
  border: 1px solid var(--line-dark-2); background: var(--dark-2);
  font-size: 11.5px; color: var(--on-dark-muted); line-height: 1.4;
}
.pill__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 46, 70, .22); flex: none;
}

.hero h1 { font-size: clamp(29px, 8vw, 52px); line-height: 1.12; margin: 20px 0 18px; color: #fff; }
.hero__lead { font-size: 15px; line-height: 1.8; color: var(--on-dark-muted); }
.hero__cta { display: grid; gap: 10px; margin-top: 26px; }

@media (min-width: 520px) { .hero__cta { grid-auto-flow: column; justify-content: start; } }

.hero__stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  margin-top: 52px; border-top: 1px solid var(--line-dark);
}
.hero__stats div { padding: 20px 0; border-right: 1px solid var(--line-dark); }
.hero__stats div:nth-child(2n) { border-right: 0; }
.hero__stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
.hero__stats strong {
  display: block; font-family: var(--display); font-size: 24px;
  font-weight: 600; color: #fff; letter-spacing: -.03em;
}
.hero__stats span { font-size: 12px; color: var(--on-dark-muted); }

@media (min-width: 900px) {
  .hero { padding-top: 76px; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
  .hero__lead { font-size: 16px; max-width: 560px; }
  .hero__stats { grid-template-columns: repeat(4, 1fr); margin-top: 68px; }
  .hero__stats div { border-bottom: 0 !important; padding: 26px 0; }
  .hero__stats div:nth-child(2n) { border-right: 1px solid var(--line-dark); }
  .hero__stats div:last-child { border-right: 0; }
  .hero__stats strong { font-size: 30px; }
}

/* ---------- Panel de partículas ----------
   El ancho lo fija el contenedor; el canvas se redibuja al
   cambiar de tamaño, así que la figura se adapta siempre. */

.stage {
  position: relative; width: 100%; aspect-ratio: 5 / 4;
  border-radius: var(--r); border: 1px solid var(--line-dark);
  background:
    radial-gradient(90% 70% at 50% 8%, rgba(192, 46, 70, .14), rgba(192, 46, 70, 0) 62%),
    radial-gradient(120% 110% at 50% 104%, #151a24 0%, var(--dark-2) 52%, #0d1119 100%);
  overflow: hidden;
}
.stage canvas { display: block; width: 100%; height: 100%; }
.stage__label {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-size: 9.5px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--on-dark-dim); pointer-events: none;
}

@media (min-width: 640px) { .stage { aspect-ratio: 16 / 10; } }
@media (min-width: 900px) {
  .stage { aspect-ratio: 1 / 1; }
  .stage__label { left: 18px; bottom: 16px; font-size: 10px; }
}

.shot { margin: 0; }
.shot__cap { margin-top: 12px; font-size: 12px; line-height: 1.7; color: var(--on-dark-dim); }
.shot__cap strong { color: var(--on-dark); font-weight: 500; }

/* ---------- Vistas ----------
   Con JavaScript se muestra solo la vista activa. Sin JavaScript
   no se oculta nada, así que todo el contenido sigue accesible. */

html.js main { visibility: hidden; }
html.js.is-ready main { visibility: visible; }
html.js .view { display: none; }
html.js .view.is-active { display: block; }

/* ---------- Secciones ---------- */

.section { padding: 56px 0; }
.section--light { background: var(--light); }
.section--muted { background: var(--muted-bg); }
.section--dark { background: var(--dark); color: var(--on-dark); }

@media (min-width: 900px) { .section { padding: 92px 0; } }

.sec-head { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.sec-head h2 { font-size: clamp(23px, 5.5vw, 38px); line-height: 1.18; margin-top: 12px; }
.sec-head__lead { margin-top: 14px; font-size: 14.5px; line-height: 1.8; color: var(--muted); }

@media (min-width: 900px) {
  .sec-head {
    display: grid; grid-template-columns: 1fr 380px; gap: 48px;
    align-items: end; padding-bottom: 26px;
  }
  .sec-head__lead { margin-top: 0; }
}

.sec-head--dark { border-bottom-color: var(--line-dark); }
.sec-head--dark h2 { color: #fff; }
.sec-head--dark .sec-head__lead { color: var(--on-dark-muted); }

/* Encabezado de página interior */
.pagehead { background: var(--dark); color: var(--on-dark); padding: 36px 0 40px; }
.pagehead h1 { font-size: clamp(25px, 6.5vw, 44px); line-height: 1.15; color: #fff; margin: 14px 0; }
.pagehead p { font-size: 15px; line-height: 1.8; color: var(--on-dark-muted); max-width: 620px; }
@media (min-width: 900px) { .pagehead { padding: 62px 0 66px; } }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--on-dark-dim); }
.crumbs a:hover { color: var(--on-dark); }

/* ---------- Catálogo ---------- */

.catalog { margin-top: 26px; }

.filters-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 46px; margin-bottom: 18px;
  border: 1px solid var(--line-strong); border-radius: var(--r);
  font-size: 14px; background: var(--light); color: var(--ink);
}

.filters { display: none; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.filters.is-open { display: block; }
.filters__group { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.filters__group:last-of-type { border-bottom: 0; margin-bottom: 0; }
.filters__group h3 {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px;
}

.filters__list { display: flex; flex-direction: column; }
.filter-cat {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0; font-size: 15px; color: var(--muted); text-align: left;
}
.filter-cat:hover { color: var(--ink); }
.filter-cat span { font-size: 12px; color: var(--dim); }
.filter-cat.is-active { color: var(--ink); font-weight: 500; }
.filter-cat.is-active span { color: var(--accent); }

input[type="range"] { width: 100%; accent-color: var(--accent); margin: 4px 0 8px; }
#priceValue { font-family: var(--display); font-size: 17px; font-weight: 600; }

.check { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 15px; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
.check:hover { color: var(--ink); }

.toolbar { display: grid; gap: 14px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.result { font-size: 13px; color: var(--muted); }
.field { display: grid; gap: 6px; }
.field span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
select {
  width: 100%; height: 46px; padding: 0 40px 0 14px; border-radius: var(--r);
  border: 1px solid var(--line-strong); background: var(--light); font-size: 15px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
                    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

@media (min-width: 640px) {
  .toolbar { grid-auto-flow: column; align-items: end; justify-content: space-between; }
  .field { display: flex; align-items: center; gap: 12px; }
  .field span { white-space: nowrap; }
  select { width: auto; min-width: 230px; }
}

@media (min-width: 900px) {
  .catalog { display: grid; grid-template-columns: 230px 1fr; gap: 48px; margin-top: 40px; }
  .filters-toggle { display: none; }
  .filters {
    display: block; position: sticky; top: calc(var(--header-h) + 24px);
    padding-bottom: 0; margin-bottom: 0; border-bottom: 0;
  }
}

/* ---------- Rejilla de productos ---------- */

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 30px 20px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card { display: flex; flex-direction: column; min-width: 0; }
.card__media { position: relative; }
.card__link { display: block; width: 100%; }

.art {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 1 / 1; border-radius: var(--r);
  border: 1px solid var(--line); overflow: hidden;
  color: var(--ink); background: var(--muted-bg);
}
.art__svg {
  width: 56%; height: auto; max-width: 150px;
  transition: transform .4s cubic-bezier(.22, .61, .36, 1), color .25s ease;
}

.art--clay  { background: #f2efec; }
.art--sand  { background: #f4f1ea; }
.art--sage  { background: #eef1ec; }
.art--slate { background: #eef0f3; }
.art--rose  { background: #f5eeef; }
.art--wine  { background: #f4eded; }
.art--plum, .art--ink { background: var(--dark-2); border-color: var(--line-dark); color: var(--on-dark-muted); }

.badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  padding: 5px 8px; border-radius: 2px;
  background: var(--ink); color: #fff;
  font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.badge--new { background: var(--accent); }
.badge--sale { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.card__media--dark .badge { background: #fff; color: var(--ink); border: 0; }

@media (min-width: 700px) { .badge { top: 12px; left: 12px; padding: 6px 10px; font-size: 10px; } }

.wish {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 30px; height: 30px; border-radius: var(--r);
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line);
  font-size: 14px; line-height: 1; color: var(--muted);
}
.wish:hover, .wish.is-on { color: var(--accent); }
@media (min-width: 700px) { .wish { top: 10px; right: 10px; width: 34px; height: 34px; font-size: 15px; } }

.quick {
  position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 2;
  height: 36px; border-radius: var(--r);
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 500;
  transition: opacity .18s ease, transform .18s ease;
}
@media (min-width: 900px) {
  .quick { left: 12px; right: 12px; bottom: 12px; height: 42px; font-size: 13px; opacity: 0; transform: translateY(6px); }
  .card:hover .quick, .card:focus-within .quick { opacity: 1; transform: none; }
  .card:hover .art__svg { transform: translateY(-5px); color: var(--accent); }
}

.card__info { padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 700px) { .card__info { padding-top: 16px; gap: 8px; } }

.card__cat { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.card__name {
  font-family: var(--display); font-size: 15px; font-weight: 600;
  line-height: 1.3; text-align: left; padding: 0; color: var(--ink);
}
.card__name:hover { color: var(--accent); }
.card__desc { display: none; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.card__foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line);
}
.card__price { font-family: var(--display); font-size: 16px; font-weight: 600; }
.card__was { font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--dim); text-decoration: line-through; margin-right: 6px; }
.card__inst { display: none; font-size: 12px; color: var(--dim); }
.card__rate { font-size: 11.5px; color: var(--dim); }
.card__rate b { color: var(--ink); font-weight: 600; }

@media (min-width: 700px) {
  .card__name { font-size: 19px; }
  .card__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card__inst { display: inline; }
  .card__price { font-size: 19px; }
  .card__rate { font-size: 12.5px; }
}

.catalog__foot { display: flex; justify-content: center; margin-top: 40px; }
@media (min-width: 900px) { .catalog__foot { margin-top: 52px; } }

.empty {
  grid-column: 1 / -1; padding: 56px 20px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--muted-bg);
}
.empty h3 { font-size: 19px; margin-bottom: 8px; }
.empty p { font-size: 14px; color: var(--muted); }

/* ---------- Fichas destacadas ---------- */

.cases { display: grid; gap: 18px; margin-top: 30px; }
@media (min-width: 1000px) { .cases { grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 44px; } }

.case {
  display: flex; flex-direction: column;
  border: 1px solid var(--line-dark); border-radius: var(--r);
  background: var(--dark-2); padding: 22px;
}
@media (min-width: 700px) { .case { padding: 30px; } }

.case__head { padding-bottom: 18px; border-bottom: 1px solid var(--line-dark); }
.case__cat { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.case__name { font-size: 22px; color: #fff; line-height: 1.2; }
.case__thumb { display: none; }

@media (min-width: 520px) {
  .case__head { display: grid; grid-template-columns: 1fr 116px; gap: 20px; align-items: start; }
  .case__thumb {
    display: grid; place-items: center; aspect-ratio: 1 / 1;
    border: 1px solid var(--line-dark); border-radius: var(--r); color: var(--on-dark-dim);
  }
  .case__thumb svg { width: 56%; height: auto; }
}
@media (min-width: 700px) { .case__name { font-size: 26px; } }

.case__desc { font-size: 14px; line-height: 1.8; color: var(--on-dark-muted); margin: 18px 0; }
.case h4 {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-dim); margin-bottom: 12px;
}
.case__list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.case__list li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.65; color: var(--on-dark-muted); }
.case__list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 1px; background: var(--accent); }
.case__tags {
  font-size: 12px; line-height: 1.7; color: var(--on-dark-dim);
  padding-top: 16px; border-top: 1px solid var(--line-dark); margin-bottom: 20px;
}
.case__foot { display: grid; gap: 14px; margin-top: auto; }
@media (min-width: 480px) { .case__foot { grid-auto-flow: column; align-items: center; justify-content: space-between; } }
.case__price { font-family: var(--display); font-size: 22px; font-weight: 600; color: #fff; }
.case__price small { display: block; font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--on-dark-dim); }

/* ---------- Pasos numerados ---------- */

.steps { display: grid; gap: 26px; margin-top: 34px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 44px; margin-top: 52px; } }

.steps li { border-top: 2px solid var(--ink); padding-top: 20px; }
.steps__num { display: block; font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.steps h3 { font-size: 19px; margin-bottom: 10px; }
.steps p { font-size: 14.5px; line-height: 1.85; color: var(--muted); }

/* ---------- Detalle con listas ---------- */

.detail { display: grid; gap: 30px; margin-top: 32px; }
@media (min-width: 700px) { .detail { grid-template-columns: repeat(2, 1fr); gap: 36px; } }
@media (min-width: 1000px) { .detail { grid-template-columns: repeat(3, 1fr); gap: 44px; margin-top: 48px; } }

.detail__col h3 {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line-strong);
}
.detail__col ul { display: flex; flex-direction: column; gap: 10px; }
.detail__col li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.detail__col li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border: 1.5px solid var(--accent); border-radius: 50%;
}

/* ---------- Banda de aviso ---------- */

.band { display: grid; gap: 26px; }
@media (min-width: 900px) { .band { grid-template-columns: 190px 1fr; gap: 52px; align-items: start; } }

.band__date { border-left: 2px solid var(--accent); padding-left: 16px; }
.band__date strong { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; color: #fff; line-height: 1.2; }
.band__date span { font-size: 13px; color: var(--on-dark-muted); }
@media (min-width: 900px) { .band__date strong { font-size: 26px; } }

.band__body h2 { font-size: clamp(21px, 5vw, 32px); color: #fff; line-height: 1.22; margin-bottom: 16px; }
.band__body > p { font-size: 15px; line-height: 1.8; color: var(--on-dark-muted); max-width: 620px; }
.band__list { display: flex; flex-direction: column; gap: 9px; margin: 22px 0 26px; }
.band__list li { position: relative; padding-left: 18px; font-size: 14px; color: var(--on-dark-muted); }
.band__list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 1px; background: var(--accent); }

/* ---------- Bloques de dos columnas ---------- */

.about, .contact { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .about { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
  .contact { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
}

.about__copy h2 { font-size: clamp(23px, 5.5vw, 38px); line-height: 1.18; margin: 12px 0 18px; }
.about__copy p { font-size: 15px; line-height: 1.85; color: var(--muted); margin-bottom: 15px; }
@media (min-width: 900px) { .about__copy p { max-width: 540px; } }

.about__form, .contact__form {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--muted-bg); padding: 24px 20px;
}
@media (min-width: 700px) { .about__form, .contact__form { padding: 32px 30px; } }

.about__form h3 { font-size: 20px; margin-bottom: 10px; }
.about__form > p { font-size: 14px; line-height: 1.75; color: var(--muted); margin-bottom: 20px; }
.about__form input {
  width: 100%; height: 48px; padding: 0 14px; margin-bottom: 12px;
  border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--light); outline: none;
}
.about__form input:focus { border-color: var(--accent); }
.form-msg { font-size: 12px; color: var(--dim); margin: 12px 0 0; }
.form-msg.is-ok { color: #2f6b3f; }

/* ---------- Contacto ---------- */

.contact__list { display: flex; flex-direction: column; gap: 18px; }
.contact__item { border-top: 1px solid var(--line); padding-top: 16px; }
.contact__item h3 { font-size: 16px; margin-bottom: 6px; }
.contact__item p { font-size: 14px; line-height: 1.75; color: var(--muted); }
.contact__form label { display: grid; gap: 7px; font-size: 13px; font-weight: 500; margin-bottom: 14px; }
.contact__form input, .contact__form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong);
  border-radius: var(--r); background: var(--light); outline: none; resize: vertical;
}
.contact__form input { height: 48px; }
.contact__form textarea { min-height: 120px; }
.contact__form input:focus, .contact__form textarea:focus { border-color: var(--accent); }

/* ---------- Páginas de texto ---------- */

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(21px, 4.5vw, 30px); margin: 38px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 24px 0 10px; }
.prose p { font-size: 15px; line-height: 1.85; color: var(--muted); margin-bottom: 15px; }
.prose ul { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 20px; }
.prose li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.75; color: var(--muted); }
.prose li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 7px; height: 7px; border: 1.5px solid var(--accent); border-radius: 50%;
}
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose section { scroll-margin-top: calc(var(--header-h) + 20px); }

/* ---------- Pie ---------- */

.footer { background: var(--dark-2); border-top: 1px solid var(--line-dark); color: var(--on-dark-muted); padding: 44px 0 24px; }
.footer__grid { display: grid; gap: 30px; padding-bottom: 32px; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.5fr repeat(3, 1fr); gap: 44px; padding-bottom: 44px; } }

.footer__note { font-size: 13px; line-height: 1.8; margin-top: 16px; color: var(--on-dark-dim); }
@media (min-width: 900px) { .footer__note { max-width: 320px; } }
.footer h4 {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px;
}
.footer nav { display: flex; flex-direction: column; gap: 10px; }
.footer nav a { font-size: 13.5px; }
.footer nav a:hover { color: #fff; }
.footer__bottom {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 20px; font-size: 12px; color: var(--on-dark-dim);
}
@media (min-width: 640px) { .footer__bottom { flex-direction: row; justify-content: space-between; gap: 20px; flex-wrap: wrap; } }

/* ---------- Capas y carrito ---------- */

.overlay {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(6, 8, 12, .62);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.overlay.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 71;
  width: 100%; display: flex; flex-direction: column;
  background: var(--light); border-left: 1px solid var(--line);
  transform: translateX(102%); transition: transform .28s ease;
}
.drawer.is-open { transform: none; }
@media (min-width: 640px) { .drawer { width: min(440px, 92%); } }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.drawer__head h2 { font-size: 19px; }
.drawer-count { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--dim); }
.drawer__head .icon-btn { color: var(--ink); }
.drawer__head .icon-btn:hover { background: var(--muted-bg); }

.drawer__body { flex: 1; overflow-y: auto; padding: 0 20px; }
@media (min-width: 640px) { .drawer__body { padding: 0 24px; } }

.drawer__empty { padding: 56px 20px; text-align: center; }
.drawer__empty-title { font-family: var(--display); font-size: 19px; margin-bottom: 8px; }
.drawer__empty p { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

.ci { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ci__media { aspect-ratio: 1 / 1; }
.ci__media .art__svg { width: 62%; max-width: none; }
.ci__name { font-family: var(--display); font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.ci__meta { font-size: 12px; color: var(--dim); margin-bottom: 10px; }
.ci__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ci__price { font-family: var(--display); font-size: 14px; font-weight: 600; }
.ci__qty { display: flex; align-items: center; gap: 9px; }
.ci__qty button {
  width: 28px; height: 28px; border: 1px solid var(--line-strong);
  border-radius: 2px; display: grid; place-items: center; font-size: 15px;
}
.ci__qty button:hover { border-color: var(--ink); }
.ci__qty span { font-size: 13px; min-width: 18px; text-align: center; }
.ci__remove { font-size: 12px; color: var(--dim); text-decoration: underline; }

.drawer__foot { padding: 18px 20px 22px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .drawer__foot { padding: 22px 24px 26px; } }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; }
.row strong { font-family: var(--display); font-size: 20px; font-weight: 600; }
.drawer__hint { font-size: 12px; color: var(--dim); margin: 8px 0 16px; }
.drawer__legal { font-size: 11px; color: var(--dim); text-align: center; margin: 12px 0 0; line-height: 1.6; }

/* ---------- Modales ---------- */

.modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6, 8, 12, .68); }

.modal__panel {
  position: relative; z-index: 1;
  width: 100%; height: 100%; max-height: 100%; overflow-y: auto;
  background: var(--light); padding: 44px 20px 32px;
}
@media (min-width: 640px) {
  .modal { padding: 24px; }
  .modal__panel {
    width: min(580px, 100%); height: auto; max-height: 90vh;
    border-radius: var(--r); padding: 42px 38px 36px;
  }
}

.modal__panel--product { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .modal__panel--product { width: min(980px, 100%); padding: 0; grid-template-columns: .85fr 1.15fr; }
}

.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  background: var(--light); border: 1px solid var(--line); color: var(--ink);
}
.modal__close:hover { background: var(--muted-bg); }

.modal__media { border: 0; border-radius: 0; aspect-ratio: 5 / 4; }
.modal__media .art__svg { width: 40%; }
@media (min-width: 640px) { .modal__media { border-radius: var(--r) var(--r) 0 0; } }
@media (min-width: 900px) {
  .modal__media { border-radius: var(--r) 0 0 var(--r); aspect-ratio: auto; }
  .modal__media .art__svg { width: 50%; }
}

.modal__body { padding: 26px 20px 34px; }
@media (min-width: 900px) { .modal__body { padding: 44px 44px 40px; } }

.modal__body h2, .modal__panel h2 { font-size: clamp(22px, 5.5vw, 32px); line-height: 1.2; margin: 12px 0 10px; }
.modal-rating { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.modal-description { font-size: 14.5px; line-height: 1.8; color: var(--muted); }
.modal-price { font-family: var(--display); font-size: 23px; font-weight: 600; margin: 18px 0 0; }

.modal__sub {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
  margin: 28px 0 6px; padding-top: 20px; border-top: 1px solid var(--line);
}

.specs { margin: 0; }
.specs > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 12.5px; color: var(--dim); }
.specs dd { margin: 0; font-size: 13.5px; line-height: 1.6; }
@media (min-width: 520px) { .specs > div { grid-template-columns: 140px 1fr; gap: 16px; } }

.acc { border-bottom: 1px solid var(--line); padding: 14px 0; }
.acc summary { font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; }
.acc summary::after { content: '+'; float: right; color: var(--dim); font-size: 16px; }
.acc[open] summary::after { content: '−'; }
.acc p { font-size: 13.5px; line-height: 1.75; color: var(--muted); margin-top: 10px; }

.modal__buy { display: grid; gap: 10px; margin-top: 26px; }
@media (min-width: 420px) { .modal__buy { grid-template-columns: auto 1fr; } }
.qty { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line-strong); border-radius: var(--r); }
.qty button { width: 48px; height: 50px; font-size: 17px; }
.qty button:hover { background: var(--muted-bg); }
.qty__value { min-width: 34px; text-align: center; font-size: 14px; }
.modal__legal { font-size: 12px; color: var(--dim); margin-top: 16px; line-height: 1.7; }

/* ---------- Checkout ---------- */

.notice {
  background: #fdf3f4; border-left: 3px solid var(--accent);
  padding: 13px 15px; font-size: 13.5px; line-height: 1.7;
  color: #6d2a37; margin: 16px 0 24px;
}
.form-grid { display: grid; gap: 14px; }
@media (min-width: 520px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid label { display: grid; gap: 7px; font-size: 13px; font-weight: 500; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid input {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-strong);
  border-radius: var(--r); background: var(--light); outline: none;
}
.form-grid input:focus { border-color: var(--accent); }

.shipping { border: 1px solid var(--line-strong); border-radius: var(--r); padding: 16px; margin: 24px 0; }
.shipping legend {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 0 8px;
}
.shipping label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 0; font-size: 14px; }
.shipping label b { width: 100%; font-size: 13px; font-weight: 500; color: var(--muted); }
.shipping input { accent-color: var(--accent); flex: none; }
@media (min-width: 520px) {
  .shipping label { flex-wrap: nowrap; }
  .shipping label b { width: auto; margin-left: auto; }
}

.row--total { padding: 18px 0; border-top: 1px solid var(--line); margin-top: 4px; }
.row--total strong { font-size: 22px; }

.checkout-done { display: none; text-align: center; padding: 20px 0; }
.checkout-done.is-on { display: block; }
.checkout-done__mark {
  width: 48px; height: 48px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 21px;
}
.checkout-done h3 { font-size: 21px; margin-bottom: 10px; }
.checkout-done p { font-size: 14px; line-height: 1.75; color: var(--muted); margin-bottom: 22px; }

/* ---------- Aviso flotante ---------- */

.toast {
  position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 130;
  transform: translateY(150%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 18px; border-radius: var(--r);
  background: var(--ink); color: #fff; font-size: 13.5px;
  transition: transform .28s ease;
}
.toast.is-on { transform: none; }
.toast__action { font-size: 13px; color: #f0a9b4; text-decoration: underline; white-space: nowrap; }
@media (min-width: 640px) {
  .toast { left: 50%; right: auto; bottom: 26px; transform: translate(-50%, 150%); max-width: 440px; }
  .toast.is-on { transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
