/* MAVIX Moda — Storefront. Tokens 1:1 con branding.md */
:root {
  --mavix-bg:          #F4F1EA; /* Arena Warm */
  --mavix-heading:     #1C2541; /* Azul Noche Profundo */
  --mavix-body:        #2D3748; /* Gris Antracita */
  --mavix-accent-gold: #D4AF37; /* Dorado Champagne */
  --mavix-accent-sage: #7B9E87; /* Verde Salvia */
  --mavix-cta:         #7B9E87;
  --mavix-cta-hover:   #688873;
  --mavix-disabled:    #D1CBC1;
  --mavix-surface:     #FFFFFF;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1200px;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(28,37,65,.08);
  --shadow-md: 0 8px 24px rgba(28,37,65,.10);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--mavix-body);
  background: var(--mavix-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--mavix-heading);
  line-height: 1.15;
  margin: 0;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-sm { padding: .6rem 1.1rem; font-size: .85rem; }
.btn-primary {
  background: var(--mavix-cta);
  color: #fff;
}
.btn-primary:hover { background: var(--mavix-cta-hover); }
.btn-ghost {
  background: transparent;
  color: var(--mavix-heading);
  border-color: var(--mavix-heading);
}
.btn-ghost:hover { background: var(--mavix-heading); color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--mavix-disabled);
  color: #fff;
  cursor: not-allowed;
}

/* Barra de anuncio */
.announce {
  background: var(--mavix-heading);
  color: #fff;
  text-align: center;
  font-size: .8rem;
  letter-spacing: .02em;
  padding: .55rem 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244,241,234,.92);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid rgba(28,37,65,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand-logo { height: 46px; width: auto; display: block; }
.main-nav {
  display: flex;
  gap: 1.75rem;
  font-weight: 500;
  font-size: .95rem;
}
.main-nav a {
  color: var(--mavix-heading);
  position: relative;
  padding: .25rem 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--mavix-accent-gold);
  transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: .35rem; }
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: none; background: transparent;
  color: var(--mavix-heading);
  cursor: pointer;
  border-radius: 50%;
  transition: background-color .18s ease, color .18s ease;
}
.icon-btn:hover { background: rgba(28,37,65,.06); color: var(--mavix-accent-gold); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--mavix-accent-sage);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* Hero */
.hero { padding: 72px 0 48px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 3rem;
}
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mavix-accent-sage);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.hero-copy p {
  font-size: 1.1rem;
  max-width: 46ch;
  margin: 0 0 2rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-art { display: flex; justify-content: center; }
.hero-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #fff 0%, #efeadf 100%);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-mark { width: 62%; opacity: .95; }
.hero-badge {
  position: absolute;
  bottom: 18px; right: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--mavix-accent-gold);
  font-size: .85rem;
}

/* Secciones genéricas */
.section { padding: 64px 0; }
.section-alt { background: var(--mavix-surface); }
.section-head { text-align: center; max-width: 56ch; margin: 0 auto 2.75rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: .6rem; }
.section-head p { margin: 0; color: var(--mavix-body); opacity: .9; }

/* Categorías */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.cat-card {
  background: var(--mavix-surface);
  border: 1px solid rgba(28,37,65,.07);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-icon {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  color: var(--mavix-heading);
  display: flex; align-items: center; justify-content: center;
}
.cat-icon svg { width: 40px; height: 40px; }
.cat-card:hover .cat-icon { color: var(--mavix-accent-gold); }
.cat-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.cat-link { font-size: .85rem; font-weight: 600; color: var(--mavix-accent-sage); }

/* Productos */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.product-card {
  background: var(--mavix-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #efeadf, #e4ddce);
}
.product-tag {
  position: absolute;
  top: 12px; left: 12px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 999px;
  color: #fff;
}
.product-tag.gold { background: var(--mavix-accent-gold); color: var(--mavix-heading); }
.product-tag.sage { background: var(--mavix-accent-sage); }
.product-info { padding: 1.1rem 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; }
.product-info h3 { font-size: 1.05rem; }
.product-cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mavix-accent-sage); margin: 0; }
.product-price { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--mavix-heading); margin: .2rem 0 .75rem; }
.product-price span { font-size: .72rem; font-weight: 500; color: var(--mavix-body); opacity: .7; }
.product-info .btn { align-self: flex-start; }

/* Valores */
.values { background: var(--mavix-bg); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.value-icon { width: 48px; height: 48px; margin: 0 auto .9rem; color: var(--mavix-accent-sage); }
.value-icon svg { width: 40px; height: 40px; }
.value h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.value p { margin: 0; font-size: .95rem; }

/* Newsletter */
.newsletter { background: var(--mavix-heading); color: #fff; padding: 64px 0; }
.nl-inner { text-align: center; max-width: 54ch; margin: 0 auto; }
.newsletter h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: .6rem; }
.newsletter p { opacity: .85; margin: 0 0 1.75rem; }
.nl-form { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.nl-form input {
  flex: 1 1 280px;
  max-width: 340px;
  padding: .85rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-family: var(--font-body);
  font-size: .95rem;
}
.nl-form input::placeholder { color: rgba(255,255,255,.6); }
.nl-form input:focus { outline: none; border-color: var(--mavix-accent-gold); }

/* Footer */
.site-footer { background: var(--mavix-surface); color: var(--mavix-body); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 56px 24px 40px;
}
.footer-logo { height: 40px; margin-bottom: 1rem; }
.footer-brand p { max-width: 34ch; font-size: .92rem; margin: 0; }
.footer-col h4 { font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mavix-heading); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: .92rem; padding: .3rem 0; color: var(--mavix-body); transition: color .18s ease; }
.footer-col a:hover { color: var(--mavix-accent-gold); }
.footer-bottom { border-top: 1px solid rgba(28,37,65,.08); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 24px; font-size: .82rem; opacity: .8; }
.footer-bottom-inner p { margin: 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: .4rem; }
}
@media (max-width: 520px) {
  .cat-grid, .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
