/* ==========================================================================
   Mastcell Nutrition — Editorial Athletic Retail Stylesheet
   Mobile-First · CSS Grid & Flex · Black / Graphite / Olive / Warm Stone
   ========================================================================== */

:root {
  /* Core Brand Palette */
  --black: #0d0e0d;
  --graphite-900: #181a18;
  --graphite-800: #252825;
  --graphite-700: #373b37;
  --graphite-500: #5c615c;
  --graphite-400: #787d77;

  /* Surfaces */
  --white: #ffffff;
  --stone-50: #fafaf8;
  --stone-100: #f2f2ee;
  --stone-200: #e5e5df;
  --stone-300: #d1d1c9;

  /* Olive Accent (AA-checked on light & dark) */
  --olive-800: #3d4628;
  --olive-700: #4f5b34;
  --olive-600: #5c6a3d;
  --olive-300: #a3b378;
  --olive-100: #eef1e5;

  /* Feedback */
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --success: #3d4628;
  --success-bg: #eef1e5;

  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale & Geometry */
  --container-max: 1240px;
  --gutter: 1rem;
  --header-h: 64px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(13, 14, 13, 0.04), 0 8px 24px rgba(13, 14, 13, 0.05);
  --shadow-modal: 0 24px 64px rgba(13, 14, 13, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--graphite-900);
  background-color: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 999;
  padding: 0.65rem 1rem;
  border: 0;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: 3.5rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.section-kicker {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-700);
}

.section-kicker--light {
  color: var(--olive-300);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--black);
}

.section-title--light {
  color: var(--white);
}

.section-lead {
  margin: 0;
  max-width: 52ch;
  font-size: 0.96rem;
  color: var(--graphite-500);
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--olive-700);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--olive-800);
}

.btn-olive {
  background-color: var(--olive-600);
  color: var(--white);
}

.btn-olive:hover {
  background-color: var(--olive-700);
}

.btn-dark {
  background-color: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background-color: var(--graphite-800);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--stone-300);
  color: var(--graphite-900);
}

.btn-outline:hover {
  border-color: var(--black);
  background-color: var(--stone-100);
}

.btn-ghost-dark {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--white);
}

.btn-ghost-dark:hover {
  border-color: var(--white);
  background-color: rgba(255, 255, 255, 0.08);
}

.btn-sm {
  min-height: 38px;
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   BLOQUE 1: HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stone-200);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.brand-mark {
  display: inline-flex;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--black);
}

.brand-sub {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--olive-700);
}

.brand--light .brand-name {
  color: var(--white);
}

.brand--light .brand-sub {
  color: var(--olive-300);
}

.primary-nav {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--graphite-700);
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  transition: color 0.2s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--black);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background-color: var(--olive-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--graphite-900);
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.icon-btn:hover {
  background-color: var(--stone-100);
  border-color: var(--stone-200);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  border-radius: var(--radius-pill);
  background-color: var(--olive-700);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ==========================================================================
   BLOQUE 2: HERO BANNER (Mobile-first compact editorial split)
   ========================================================================== */
.hero {
  background-color: var(--stone-100);
  padding-block: 1rem 2rem;
  border-bottom: 1px solid var(--stone-200);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

.hero-copy {
  background-color: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: var(--olive-300);
}


.hero-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 7vw, 3.35rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--white);
}

.hero-subtitle {
  margin: 0 0 1.4rem;
  max-width: 44ch;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #cfd3cc;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-meta {
  margin: 1.65rem 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-meta-item dt {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ba197;
  margin-bottom: 0.2rem;
}

.hero-meta-item dd {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white);
}

.hero-visual {
  display: flex;
}

.hero-media-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--graphite-900);
  aspect-ratio: 4 / 3;
}

.hero-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ==========================================================================
   BLOQUE 3: CATEGORÍAS (Mobile: 2x2 Grid, Desktop: 4 columns)
   ========================================================================== */
.categories-section {
  background-color: var(--white);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  background-color: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--olive-600);
  box-shadow: var(--shadow-card);
}

.category-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: var(--stone-100);
  overflow: hidden;
}

.category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.category-card:hover .category-media img {
  transform: scale(1.04);
}


.category-body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.category-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
}

.category-desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--graphite-500);
}

.category-link {
  margin-top: auto;
  padding-top: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--olive-700);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ==========================================================================
   BLOQUE 4: PRODUCTOS POPULARES (Mobile: 2 per row, Desktop: 4 per row)
   ========================================================================== */
.products-section {
  background-color: var(--stone-100);
  border-top: 1px solid var(--stone-200);
  border-bottom: 1px solid var(--stone-200);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-pill {
  padding: 0.48rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--stone-300);
  background-color: var(--white);
  color: var(--graphite-700);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.filter-pill:hover {
  border-color: var(--black);
  color: var(--black);
}

.filter-pill.is-active {
  background-color: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.product-card:hover {
  border-color: var(--stone-300);
  box-shadow: var(--shadow-card);
}

.product-card[hidden] {
  display: none;
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: var(--stone-100);
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.product-card:hover .product-media img {
  transform: scale(1.03);
}

.product-tag {
  position: absolute;
  bottom: 0.55rem;
  left: 0.55rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--graphite-800);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  border: 1px solid var(--stone-200);
}

.product-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-cat {
  margin: 0 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive-700);
}

.product-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--black);
}

.product-desc {
  margin: 0 0 0.7rem;
  font-size: 0.79rem;
  line-height: 1.45;
  color: var(--graphite-500);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  margin: auto 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--black);
}

.product-price span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--graphite-500);
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

/* Apparel Size Selector (Cards & Modal) */
.size-selector {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
}

.size-selector--modal {
  margin: 0.85rem 0 1rem;
}

.size-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite-500);
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.size-pill {
  min-width: 32px;
  height: 28px;
  padding: 0 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--stone-300);
  background-color: var(--stone-50);
  color: var(--graphite-800);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.size-pill:hover {
  border-color: var(--black);
}

.size-pill.is-selected {
  background-color: var(--olive-700);
  border-color: var(--olive-700);
  color: var(--white);
}

.size-selector--modal .size-pill {
  min-width: 42px;
  height: 36px;
  font-size: 0.8rem;
}

.cart-item-meta {
  margin: 0.15rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--graphite-500);
}

.cofepris-inline-note {
  margin: 1.75rem 0 0;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background-color: var(--white);
  border-left: 3px solid var(--olive-700);
  font-size: 0.82rem;
  color: var(--graphite-700);
}

/* ==========================================================================
   BLOQUE 5: VENTAJAS DE LA TIENDA
   ========================================================================== */
.benefits-section {
  background-color: var(--black);
  color: var(--white);
}

.benefits-top {
  margin-bottom: 2rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.benefit-card {
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background-color: var(--graphite-900);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.benefit-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background-color: rgba(163, 179, 120, 0.14);
  color: var(--olive-300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.benefit-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--white);
}

.benefit-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #c2c6bf;
}

/* ==========================================================================
   BLOQUE 6: BANNER DE IMAGEN (Interval-inspired Editorial)
   ========================================================================== */
.editorial-banner {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background-color: var(--graphite-900);
  overflow: hidden;
}

.editorial-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.editorial-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(13, 14, 13, 0.88) 0%,
    rgba(13, 14, 13, 0.68) 52%,
    rgba(13, 14, 13, 0.25) 100%
  );
}

.editorial-banner-content {
  position: relative;
  z-index: 1;
  padding-block: 3.5rem;
  max-width: 640px;
  margin-inline: 0;
}


.editorial-title {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--white);
}

.editorial-subtitle {
  margin: 0 0 1.5rem;
  max-width: 40ch;
  font-size: 1rem;
  color: #d8dcd5;
}

/* ==========================================================================
   BLOQUE 7: ACERCA DE LA EMPRESA
   ========================================================================== */
.about-section {
  background-color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.about-paragraph {
  margin: 1rem 0 0;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--graphite-700);
}

.regulatory-box {
  margin-top: 1.5rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-md);
  background-color: var(--olive-100);
  border: 1px solid #d7dfC4;
}

.regulatory-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--olive-800);
}

.regulatory-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--graphite-700);
}

.about-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--stone-200);
  background-color: var(--stone-100);
}

.about-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-caption {
  padding: 0.85rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  background-color: var(--stone-50);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--graphite-500);
  border-top: 1px solid var(--stone-200);
}

/* ==========================================================================
   BLOQUE 8: FORMULARIO DE CONTACTO
   ========================================================================== */
.contact-section {
  background-color: var(--stone-100);
  border-top: 1px solid var(--stone-200);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-lead {
  margin: 0.85rem 0 1.5rem;
  max-width: 46ch;
  color: var(--graphite-700);
  font-size: 0.96rem;
}

.contact-details {
  margin: 0;
  display: grid;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--stone-300);
}

.contact-detail-row dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--olive-700);
  margin-bottom: 0.2rem;
}

.contact-detail-row dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--black);
}

.contact-detail-row a:hover {
  text-decoration: underline;
  color: var(--olive-700);
}

.contact-card {
  background-color: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--black);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--stone-300);
  border-radius: var(--radius-sm);
  background-color: var(--stone-50);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.form-field input:focus,
.form-field textarea:focus {
  background-color: var(--white);
  border-color: var(--olive-700);
  outline: none;
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--danger);
  background-color: var(--danger-bg);
}

.field-error {
  min-height: 1.1em;
  font-size: 0.78rem;
  color: var(--danger);
}

.form-status {
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.form-status.is-success {
  padding: 0.8rem 1rem;
  background-color: var(--success-bg);
  color: var(--success);
  border: 1px solid #cfd8b9;
}

/* ==========================================================================
   BLOQUE 9: FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--black);
  color: #c7cbc4;
  padding-block: 3rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-tagline {
  margin: 0.85rem 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--olive-300);
}

.footer-desc {
  margin: 0;
  max-width: 34ch;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #a6aba3;
}

.footer-heading {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: 0.88rem;
}

.footer-links a:hover,
.footer-link-btn:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-link-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font-size: inherit;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #90968d;
}

.footer-bottom p {
  margin: 0;
}

.footer-cofepris {
  font-size: 0.76rem;
  color: #a3a99f;
}

/* ==========================================================================
   NATIVE <dialog> MODALS & DRAWERS
   ========================================================================== */
dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  background-color: rgba(13, 14, 13, 0.62);
  backdrop-filter: blur(3px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.modal-dialog {
  width: min(94vw, 620px);
  max-height: 88dvh;
  padding: 0;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  background-color: var(--white);
  color: var(--graphite-900);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
}

.modal-dialog--product {
  width: min(94vw, 760px);
}

.modal-dialog[open] {
  display: flex;
  flex-direction: column;
}

.modal-shell {
  display: flex;
  flex-direction: column;
  max-height: 88dvh;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid var(--stone-200);
  flex-shrink: 0;
}

.modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--black);
}

/* Slide-over Drawers (Mobile Menu & Cart) */
.drawer-dialog {
  margin: 0;
  padding: 0;
  border: 0;
  max-width: none;
  max-height: none;
  height: 100dvh;
  width: min(88vw, 390px);
  background-color: var(--white);
  color: var(--graphite-900);
  box-shadow: var(--shadow-modal);
}

.drawer-dialog--left {
  margin-right: auto;
}

.drawer-dialog--right {
  margin-left: auto;
}

.drawer-dialog[open] {
  display: flex;
}

.drawer-panel {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--stone-200);
  flex-shrink: 0;
}

.drawer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1.25rem;
  display: grid;
}

.mobile-nav-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.9rem 0;
  border: 0;
  border-bottom: 1px solid var(--stone-100);
  background: transparent;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black);
}

.mobile-nav-link:hover {
  color: var(--olive-700);
}

.drawer-footer-note {
  margin-top: auto;
  padding: 1.25rem;
  background-color: var(--stone-100);
  font-size: 0.85rem;
}

.drawer-footer-note p {
  margin: 0 0 0.35rem;
  color: var(--olive-700);
}

/* Search Modal Content */
.search-box {
  padding: 1rem 1.3rem 0.5rem;
}

.search-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--stone-300);
  background-color: var(--stone-50);
  font-size: 0.98rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--olive-700);
  background-color: var(--white);
}

.search-results {
  padding: 0.75rem 1.3rem 1.3rem;
  overflow-y: auto;
  display: grid;
  gap: 0.65rem;
}

.search-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stone-200);
  background-color: var(--stone-50);
}

.search-item img {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
}

.search-item-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
}

.search-item-meta {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--graphite-500);
}

.search-empty {
  padding: 1.5rem 0;
  text-align: center;
  color: var(--graphite-500);
  font-size: 0.9rem;
}

/* Product Detail Modal Content */
.product-modal-body {
  padding: 1.3rem 1.3rem 1.75rem;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.product-modal-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  object-fit: cover;
  background-color: var(--stone-100);
}

.product-modal-info h2 {
  margin: 0.3rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--black);
}

.product-modal-price {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--olive-800);
}

.product-specs {
  margin: 1rem 0;
  padding: 0.9rem 1rem 0.9rem 1.85rem;
  border-radius: var(--radius-sm);
  background-color: var(--stone-100);
  list-style: disc;
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.product-modal-disclaimer {
  margin: 0.85rem 0 1.1rem;
  font-size: 0.78rem;
  color: var(--graphite-500);
  border-left: 2px solid var(--olive-600);
  padding-left: 0.7rem;
}

/* Cart Drawer Content */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cart-empty {
  margin: auto 0;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--graphite-500);
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--stone-200);
}

.cart-item img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background-color: var(--stone-100);
}

.cart-item-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--black);
}

.cart-item-price {
  margin: 0.2rem 0 0.5rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--olive-700);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.qty-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--stone-300);
  border-radius: 6px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  font-weight: 600;
}

.qty-btn:hover {
  background-color: var(--stone-100);
}

.qty-val {
  min-width: 26px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.remove-item-btn {
  border: 0;
  background: transparent;
  font-size: 0.78rem;
  color: var(--graphite-500);
  text-decoration: underline;
}

.remove-item-btn:hover {
  color: var(--danger);
}

.cart-footer {
  padding: 1.1rem 1.25rem 1.35rem;
  border-top: 1px solid var(--stone-200);
  background-color: var(--stone-50);
  flex-shrink: 0;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.cart-summary-row strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--black);
}

.cart-shipping-note {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  color: var(--graphite-500);
}

.cart-footer-actions {
  display: grid;
  gap: 0.5rem;
}

.cart-feedback {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--olive-800);
  font-weight: 500;
}

.cart-footer[hidden] {
  display: none;
}

/* In-Cart Checkout View */
.checkout-back-btn {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--olive-700);
}

.checkout-back-btn:hover {
  text-decoration: underline;
}

.checkout-summary {
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  background-color: var(--stone-100);
  border: 1px solid var(--stone-200);
  font-size: 0.82rem;
}

.checkout-summary-list {
  margin: 0 0 0.65rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  color: var(--graphite-700);
}

.checkout-summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.checkout-summary-total {
  padding-top: 0.55rem;
  border-top: 1px solid var(--stone-300);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
}

.checkout-form {
  display: grid;
  gap: 0.8rem;
}

.checkout-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.checkout-form .form-field {
  gap: 0.25rem;
}

.checkout-form .form-field label {
  font-size: 0.8rem;
}

.checkout-form .form-field input {
  padding: 0.6rem 0.75rem;
  font-size: 0.88rem;
}

.checkout-success {
  padding: 1.25rem 0.25rem;
  display: grid;
  gap: 0.85rem;
  text-align: left;
}

.checkout-success-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background-color: var(--olive-100);
  color: var(--olive-800);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
}

.checkout-success h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--black);
}

.checkout-success p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--graphite-700);
}


/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 300;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-pill);
  background-color: var(--black);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(13, 14, 13, 0.28);
  border: 1px solid rgba(163, 179, 120, 0.35);
}

/* ==========================================================================
   LEGAL PAGES (15-Clause Editorial Layout)
   ========================================================================== */
.legal-hero {
  background-color: var(--black);
  color: var(--white);
  padding-block: 2.5rem 2.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #a6aba3;
}

.legal-breadcrumb a:hover {
  color: var(--white);
  text-decoration: underline;
}

.legal-hero-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5.5vw, 2.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--white);
}

.legal-hero-subtitle {
  margin: 0 0 1.25rem;
  max-width: 62ch;
  font-size: 0.98rem;
  color: #cfd3cc;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--olive-300);
}

.legal-main {
  background-color: var(--stone-100);
  padding-block: 2.5rem 4rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}

.legal-sidebar {
  background-color: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.legal-sidebar-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-700);
}

.legal-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.legal-nav-link {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--graphite-700);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.legal-nav-link:hover {
  background-color: var(--stone-100);
  color: var(--black);
}

.legal-nav-link[aria-current="page"] {
  background-color: var(--black);
  color: var(--white);
  font-weight: 600;
}

.legal-document {
  background-color: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-card);
}

.legal-clauses {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.75rem;
}

.legal-clause {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--stone-200);
}

.legal-clause:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}


.legal-clause h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--black);
}

.legal-clause p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.68;
  color: var(--graphite-700);
}

.legal-clause a {
  color: var(--olive-700);
  text-decoration: underline;
}

.legal-back-row {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--stone-200);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-links a[aria-current="page"] {
  color: var(--olive-300);
  font-weight: 600;
}

@media (min-width: 640px) {
  .legal-document {
    padding: 2.25rem 2rem;
  }
}

@media (min-width: 960px) {
  .legal-hero {
    padding-block: 3.25rem 3.5rem;
  }

  .legal-main {
    padding-block: 3rem 5rem;
  }

  .legal-grid {
    grid-template-columns: 270px 1fr;
    gap: 2.25rem;
  }

  .legal-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }

  .legal-document {
    padding: 2.75rem 3rem;
  }
}

.benefits-section,
.editorial-banner,
.about-section,
.contact-section,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

@media (prefers-contrast: more) {
  :root {
    --graphite-500: #2b2e2b;
    --stone-200: #b8b8ae;
    --stone-300: #8e8e84;
  }

  .btn,
  .filter-pill,
  .size-pill,
  .product-card,
  .category-card {
    border-width: 2px;
  }
}

@media (forced-colors: active) {
  .btn,
  .icon-btn,
  .filter-pill,
  .size-pill {
    border: 1px solid ButtonText;
  }

  :focus-visible {
    outline: 3px solid Highlight;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Tablet >= 640px, Desktop >= 960px)
   ========================================================================== */
@media (min-width: 640px) {
  :root {
    --gutter: 1.5rem;
  }

  .section {
    padding-block: 4.5rem;
  }

  .hero-copy {
    padding: 2.5rem;
  }

  .product-actions {
    grid-template-columns: 1fr 1fr;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-modal-body {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  :root {
    --header-h: 74px;
    --gutter: 2rem;
  }

  .primary-nav {
    display: block;
  }

  .burger-btn {
    display: none;
  }

  .hero {
    padding-block: 2rem 2.75rem;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.35rem;
  }

  .hero-media-frame {
    aspect-ratio: auto;
    min-height: 520px;
  }

  .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }

  .categories-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .editorial-banner {
    min-height: 520px;
  }

  .about-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 3.5rem;
  }

  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
  }

  .contact-card {
    padding: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1.45fr 1fr 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
