/* La Post Street — diseño premium mobile-first */
:root {
  --bg: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f8f8f7;
  --text: #141413;
  --muted: #5a5854;
  --accent: #1a1a18;
  --olive: #4d563e;
  --olive-hover: #3a422d;
  --sand: #f0f0ee;
  --line: #e8e7e4;
  --line-strong: #d4d2cc;
  /* Tipografía local (sin petición a Google Fonts = carga más rápida) */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --radius-sm: 4px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow: 0 2px 8px rgba(20, 20, 19, 0.04), 0 12px 40px rgba(20, 20, 19, 0.06);
  --shadow-hover: 0 8px 24px rgba(20, 20, 19, 0.08), 0 20px 50px rgba(20, 20, 19, 0.1);
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
  --focus-ring: 0 0 0 3px rgba(77, 86, 62, 0.22);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection {
  background: rgba(77, 86, 62, 0.18);
  color: var(--text);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body:not(.admin-body):not(.admin-login-body):not(.page-error) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive); text-decoration: none; text-underline-offset: 0.2em; transition: color 0.18s var(--ease); }
a:hover { color: var(--olive-hover); text-decoration: underline; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section--muted {
  background: linear-gradient(180deg, var(--sand) 0%, var(--bg-subtle) 100%);
  border-block: 1px solid var(--line);
}
.narrow { max-width: 480px; margin-inline: auto; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.lead { font-size: 1.1rem; }

.page-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.page-intro { max-width: 58ch; line-height: 1.65; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(20, 20, 19, 0.04);
}
.site-header::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--olive) 0%, #7d8a63 42%, var(--olive) 100%);
  opacity: 0.92;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.35rem;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: opacity 0.2s var(--ease), color 0.2s;
}
.logo:hover { opacity: 0.88; text-decoration: none; color: var(--accent); }
.logo span { color: var(--olive); font-weight: 600; }
.nav-toggle {
  display: none;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.nav-toggle:hover { border-color: var(--muted); background: var(--sand); }
.nav-toggle:focus-visible { outline: none; box-shadow: var(--focus-ring); }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    background: var(--bg-card);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.25rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  }
  .main-nav.is-open { display: flex; }
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
}
.main-nav__primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.15rem;
  margin-right: auto;
}
.main-nav__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 901px) {
  .main-nav__tools {
    padding-left: 1rem;
    margin-left: 0.25rem;
    border-left: 1px solid var(--line);
  }
}
.main-nav__primary a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s;
}
.main-nav__primary a:hover {
  background: rgba(77, 86, 62, 0.08);
  text-decoration: none;
  color: var(--olive-hover);
}
.main-nav__primary a:focus-visible { outline: none; box-shadow: var(--focus-ring); }
@media (max-width: 900px) {
  .main-nav { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav__primary { margin-right: 0; flex-direction: column; align-items: stretch; }
  .main-nav__primary a { border-radius: var(--radius); }
  .main-nav__tools {
    margin-top: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav__tools .btn { justify-content: center; }
}

/* Hero */
.hero {
  min-height: min(72vh, 34rem);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 100% 0%, rgba(77, 86, 62, 0.07) 0%, transparent 52%),
    radial-gradient(ellipse 90% 70% at 0% 100%, rgba(77, 86, 62, 0.05) 0%, transparent 45%),
    linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 62%);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 7vw, 4.5rem) 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: multiply;
}
.hero .container { position: relative; z-index: 1; }
.hero__inner { max-width: 38rem; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6.5vw, 3.5rem);
  margin: 0.65rem 0 1.1rem;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--text);
  text-wrap: balance;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--olive);
  margin: 0;
  opacity: 0.95;
}
.hero__lead { max-width: 34rem; font-size: clamp(1.02rem, 2.4vw, 1.15rem); color: var(--muted); line-height: 1.68; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s, transform 0.15s var(--ease), box-shadow 0.2s;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn:active { transform: scale(0.98); }
.btn--primary {
  background: linear-gradient(180deg, #2a2a28 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 2px 8px rgba(0, 0, 0, 0.12);
  border-color: #0d0d0c;
}
.btn--primary:hover {
  background: linear-gradient(180deg, #000 0%, #1a1a18 100%);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 8px 28px rgba(0, 0, 0, 0.2);
}
.btn--outline { border-color: var(--line-strong); color: var(--accent); background: var(--bg); }
.btn--outline:hover { background: var(--accent); color: #fff; border-color: var(--accent); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); background: var(--sand); text-decoration: none; }
.btn--sm { padding: 0.4rem 0.75rem; font-size: 0.85rem; }
.btn--lg { padding: 0.85rem 1.75rem; }
.btn--block { width: 100%; }
.btn--link { background: none; border: none; color: #b33; cursor: pointer; text-decoration: underline; padding: 0; font: inherit; }

/* Cards & grids */
.grid { display: grid; gap: 1.25rem; }
.grid--cats { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid--products { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid--blog { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--projects { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
}
.card a { color: inherit; text-decoration: none; }
.card--cat {
  padding: 1.5rem 1.35rem;
  min-height: 7.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  transition: border-color 0.2s, background 0.2s;
}
.card--cat:hover { background: linear-gradient(145deg, #fafaf9 0%, #fff 100%); }
.card__name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.card__link { font-size: 0.8125rem; font-weight: 600; color: var(--olive); letter-spacing: 0.02em; }
.card__img { aspect-ratio: 4/3; background: var(--sand); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s var(--ease); }
.card:hover .card__img img { transform: scale(1.04); }
.card__title { font-size: 1rem; font-weight: 600; margin: 0.85rem 1.1rem 0.25rem; line-height: 1.35; }
.card__price { margin: 0 1.1rem 1.1rem; font-weight: 700; font-size: 1.06rem; letter-spacing: -0.02em; color: var(--olive); }

.card--blog,
.card--project {
  padding: 1.25rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}
.card--blog h2,
.card--project h2 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}
.card--blog .muted,
.card--project .muted { font-size: 0.8125rem; margin: 0; }
.card--blog p:last-of-type { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--muted); }
.card--project .badge { align-self: flex-start; margin: 0.15rem 0 0.35rem; }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1.75rem;
  padding-bottom: 0.85rem;
  position: relative;
  line-height: 1.2;
}
.section__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, var(--olive) 0%, #8a9674 100%);
  border-radius: 3px;
}
.split { display: grid; gap: 2rem; }
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; }
}
.mini-list { display: flex; flex-direction: column; gap: 0.35rem; margin: 1rem 0; }
.mini-list a {
  padding: 0.4rem 0.5rem;
  margin: 0 -0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: background 0.15s var(--ease);
}
.mini-list a:hover { background: var(--sand); text-decoration: none; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .features { grid-template-columns: 1fr 1fr; }
}
.features li {
  padding: 1.15rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.features li:hover { border-color: #d8d8d8; box-shadow: var(--shadow); }

.cta-final {
  background: linear-gradient(165deg, var(--sand) 0%, #e8ebe3 55%, var(--sand) 100%);
  color: var(--text);
  text-align: center;
  border-top: 1px solid var(--line);
  position: relative;
}
.cta-final::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 28rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 86, 62, 0.25), transparent);
}
.cta-final__inner { padding: clamp(2.5rem, 6vw, 4rem) 1rem; }
.cta-final h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.cta-final .btn--primary { background: var(--accent); color: #fff; }
.cta-final .btn--primary:hover { background: #000; color: #fff; }

/* Product page */
.product-page { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.product-layout {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 960px) {
  .product-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}
.product-gallery-wrap {
  position: relative;
}
@media (min-width: 960px) {
  .product-gallery-wrap {
    position: sticky;
    top: 5.25rem;
  }
}
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.product-gallery__main {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--sand);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.product-gallery__frame {
  margin: 0;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #ebeae6 0%, var(--sand) 100%);
}
.product-gallery__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
  gap: 0.5rem;
  max-width: 100%;
}
@media (min-width: 640px) {
  .product-gallery__thumbs { grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr)); }
}
.product-gallery__thumb {
  position: relative;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s, transform 0.15s;
  aspect-ratio: 4 / 3;
}
.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-gallery__thumb:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.product-gallery__thumb.is-active {
  border-color: var(--olive);
  box-shadow: 0 0 0 1px rgba(77, 86, 62, 0.15);
}
.product-gallery__thumb:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.product-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.product-info__header {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.product-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.2vw, 2.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--text);
  text-wrap: balance;
}
.product-price-block { margin: 0; }
.product-price {
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
  font-weight: 700;
  color: var(--olive);
  letter-spacing: -0.02em;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}
.product-price__tax {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.product-compare-wrap {
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.product-compare {
  margin: 0;
  text-decoration: line-through;
  color: var(--muted);
  font-size: 1.05rem;
}
.product-badge-sale {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(179, 51, 51, 0.12);
  color: #8a2222;
  border: 1px solid rgba(179, 51, 51, 0.25);
}
.product-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 52ch;
}
.product-subheading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  color: var(--text);
}
.product-specs {
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.specs--product {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 0.92rem;
}
.specs--product .specs__row {
  display: grid;
  grid-template-columns: minmax(6.5rem, 32%) 1fr;
  gap: 0.35rem 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.specs--product .specs__row:last-child { border-bottom: none; padding-bottom: 0; }
.specs--product .specs__row:first-child { padding-top: 0; }
.specs--product dt {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.specs--product dd { margin: 0; color: var(--text); line-height: 1.45; }
.product-purchase {
  margin-bottom: 2rem;
  padding: 1.35rem 1.35rem 1.5rem;
  background: linear-gradient(180deg, #fff 0%, var(--bg-subtle) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(20, 20, 19, 0.05);
}
.add-cart {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
  max-width: 100%;
}
.add-cart__label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: -0.35rem;
}
.input--product {
  max-width: 100%;
}
.input--qty { max-width: 6.5rem; text-align: center; font-weight: 600; }
.add-cart__qty-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
  margin-top: 0.25rem;
}
.add-cart__qty-row .btn--cart {
  flex: 1;
  min-width: min(100%, 12rem);
}
.btn--cart {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.product-long {
  margin-top: 0.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.prose--product {
  font-size: 1rem;
  max-width: 65ch;
}
/* Generic specs (otras vistas) */
.specs:not(.specs--product) {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.9rem;
}

/* Forms */
.input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:hover { border-color: #ccc; }
.input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(90, 99, 72, 0.12); }
.input--sm { padding: 0.35rem 0.5rem; font-size: 0.9rem; }
.input--lg { font-size: 1.05rem; padding: 0.75rem 1rem; }
.form-grid { display: flex; flex-direction: column; gap: 1rem; }
.form-grid--2 {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
}
.checkbox { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; }

/* Tables */
.table { width: 100%; border-collapse: collapse; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 0.65rem 0.75rem; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.table th { background: var(--sand); font-weight: 600; }

/* Alerts */
.alert { padding: 0.85rem 1.1rem; border-radius: var(--radius-lg); margin-bottom: 1rem; line-height: 1.5; }
.alert--success { background: #e8f2e4; border: 1px solid #b6d4a8; color: #2d4a22; }
.alert--error { background: #fce8e6; border: 1px solid #e8a8a0; color: #5c2220; }

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}
.breadcrumbs a {
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.breadcrumbs a:hover { background: var(--sand); text-decoration: none; color: var(--olive-hover); }
.breadcrumbs span { margin: 0 0.15rem; color: var(--line-strong); }
.breadcrumbs__current { color: var(--text); font-weight: 500; max-width: 100%; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 2.5rem; align-items: center; }
.pagination a {
  min-width: 2.5rem;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.pagination a:hover { background: var(--sand); text-decoration: none; border-color: #ccc; }
.pagination a.is-current {
  background: linear-gradient(180deg, var(--olive) 0%, #3d4628 100%);
  color: #fff;
  border-color: #2d3320;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}
.pagination a:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Admin: medios y variantes de producto */
.admin-panel-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.admin-subtitle {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 1rem;
}
.admin-upload-row { max-width: 640px; margin-bottom: 1.5rem; }
.admin-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.admin-media-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
}
.admin-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--sand);
}
.admin-variant-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}
.admin-variant-delete { margin-top: 0.5rem; }
.admin-variant-preview { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 28%);
  color: var(--text);
  margin-top: auto;
  padding: clamp(2.75rem, 6vw, 4rem) 0 1.75rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.6);
}
.site-footer__col { min-width: 0; }
.site-footer__heading {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 0.65rem;
}
.site-footer__brand {
  display: block;
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.site-footer__tagline { margin: 0 0 0.75rem; font-size: 0.9rem; line-height: 1.5; max-width: 28ch; }
.site-footer a { color: var(--olive); font-weight: 500; }
.site-footer a:hover { color: var(--olive-hover); }
.site-footer__grid { display: grid; gap: 1.75rem 2rem; }
@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: repeat(3, 1fr); }
}
.site-footer__grid a { display: block; margin-bottom: 0.35rem; }
.site-footer__contact { margin: 0.5rem 0 0; font-size: 0.95rem; }
.site-footer__contact a { color: var(--olive); display: inline; text-decoration: underline; }
.site-footer__legal { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.site-footer__copy { font-size: 0.8125rem; color: var(--muted); }
.split-block__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
  line-height: 1.2;
  color: var(--text);
}
.checkout-section__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 1.75rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.checkout-section__title:first-of-type { margin-top: 0; }
.checkout-section__title--sm {
  font-size: 1rem;
  margin: 1.25rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: none;
}
.checkout-aside__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.checkout-aside ul { margin: 0 0 1rem; padding-left: 1.1rem; line-height: 1.55; font-size: 0.95rem; }
.admin-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-brand__name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: #fff; line-height: 1.2; }
.admin-brand__sub { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #9a9a95; }
.admin-login__eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 0.35rem;
}
.admin-login__title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}
.admin-login__lead { margin: 0 0 1.25rem; font-size: 0.95rem; }
.admin-login__hint { margin: 1.25rem 0 0; line-height: 1.45; }
.contact-form-embed { margin-top: 2rem; }
.error-404-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.75rem; }
.page-error {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-error .container { width: min(100% - 2rem, var(--container)); }

/* Prose CMS */
.prose { max-width: 68ch; font-size: 1.05rem; }
.prose > * + * { margin-top: 1rem; }
.prose p { margin-top: 0; line-height: 1.7; }
.prose h2, .prose h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; margin: 1.75rem 0 0.75rem; line-height: 1.25; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin: 0.35rem 0; }
.prose a { text-decoration: underline; text-underline-offset: 0.15em; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); }

.main-content { flex: 1; width: 100%; min-height: 0; }

/* Checkout */
.checkout-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) {
  .checkout-grid { grid-template-columns: 2fr 1fr; }
}
.checkout-aside { background: var(--bg-card); border: 1px solid var(--line); padding: 1.25rem; border-radius: var(--radius); height: fit-content; }

/* Admin */
.admin-body { margin: 0; background: #fafafa; }
.admin-shell { display: grid; min-height: 100vh; }
@media (min-width: 900px) {
  .admin-shell { grid-template-columns: 220px 1fr; }
}
.admin-sidebar {
  background: #2c2c2a;
  color: #eee;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.admin-brand { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 1rem; }
.admin-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.admin-nav a { color: #ddd; padding: 0.35rem 0; font-size: 0.9rem; }
.admin-nav a:hover { color: #fff; }
.admin-nav a:focus-visible { outline: none; color: #fff; text-decoration: underline; }
.admin-user { margin-top: auto; font-size: 0.8rem; color: #999; }
.admin-main { padding: 1.5rem; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat { background: #fff; border: 1px solid var(--line); padding: 1rem; border-radius: var(--radius); }
.stat span { display: block; font-size: 0.8rem; color: var(--muted); }
.stat strong { font-size: 1.35rem; }
.admin-login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #f0f0f0; }
.admin-login-card { background: #fff; padding: 2rem; border-radius: 8px; box-shadow: var(--shadow); width: min(100% - 2rem, 400px); }

.badge {
  display: inline-block;
  background: rgba(77, 86, 62, 0.1);
  color: var(--olive-hover);
  border: 1px solid rgba(77, 86, 62, 0.2);
  padding: 0.28rem 0.65rem;
  border-radius: 99px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gallery { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}

.search-form { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }

.inline-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; margin: 1rem 0; }
.cart-remove-row { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.coupon-row { display: flex; gap: 0.5rem; margin: 1.5rem 0; flex-wrap: wrap; max-width: 400px; }
.cart-summary { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
