/* =====================================================
   nataliapessi - main.css
   Estetica minimalista inspirada en boutiques de autor
   ===================================================== */

/* Paleta FENDI: blanco puro / negro puro / grises neutros. Sin marron, sin dorado en UI. */
:root {
  --color-bg: #FFFFFF;
  --color-bg-alt: #FAFAFA;
  --color-bg-soft: #F4F4F4;
  --color-text: #000000;
  --color-text-soft: #1F1F1F;
  --color-muted: #767676;
  --color-line: #E5E5E5;
  --color-line-strong: #CCCCCC;
  --color-accent: #000000;
  --color-gold: #000000;
  --color-danger: #B00020;
  --color-success: #0F5132;

  --font-serif: 'Cormorant Garamond', 'Bodoni Moda', 'Times New Roman', serif;
  --font-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --max-w: 1280px;
  --max-w-narrow: 760px;
  --radius: 2px;
  --transition: 0.22s ease;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-accent); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: 0.005em;
}

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: var(--max-w-narrow); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 0 0 auto;
}
.brand-text { font-weight: 500; }
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-soft);
}
.main-nav a:hover { color: var(--color-text); }
.cart-link, .icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.icon-btn:hover { color: var(--color-accent); }
.cart-count {
  position: absolute;
  top: 4px; right: 0;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 0.65rem;
  border-radius: 50%;
  min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--color-text);
}

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .brand { font-size: 1.25rem; flex: 1; text-align: center; }
  .main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-line);
    padding: 24px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav ul {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }
}

/* ---------- Flash ---------- */
.flash {
  padding: 12px 0;
  font-size: 0.9rem;
}
.flash-success { background: #ECF1E8; color: var(--color-success); }
.flash-error { background: #F4E4E4; color: var(--color-danger); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-slider, .hero-static, .hero-video-wrap {
  position: relative;
  height: clamp(440px, 70vh, 720px);
}
.hero-video-wrap {
  width: 100%;
  background: #1F1F1C;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 2;
}
.hero-video-wrap .hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  max-width: 760px;
  padding: 0 24px;
  animation: hero-rise 1.1s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-video-wrap .hero-titulo { color: #fff; }
.hero-video-wrap .hero-subtitulo {
  color: rgba(255,255,255,0.92);
  margin: 0 auto 1.5em;
  max-width: 540px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-ctas .btn { margin-left: 0 !important; }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.7);
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--color-text);
}
.eyebrow-light {
  color: rgba(255,255,255,0.75);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  margin-bottom: 12px;
}
.hero-credit {
  position: absolute;
  bottom: 12px;
  right: 16px;
  color: rgba(255,255,255,0.45);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  z-index: 3;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-video-wrap { background-image: linear-gradient(135deg, #3C2B1F, #1F1F1C); }
  .hero-video-wrap .hero-content { animation: none; }
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: flex-end;
  padding: 60px 24px;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.5) 100%);
}
.hero-static {
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 24px;
}
.hero-slide .hero-content { color: #fff; }
.hero-titulo {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  margin-bottom: 0.5em;
}
.hero-subtitulo {
  font-size: 1.1rem;
  margin-bottom: 1.5em;
  max-width: 540px;
}
.hero-slide .hero-subtitulo { margin: 0 auto 1.5em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.btn + .btn { margin-left: 12px; }
.btn-dark {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}
.btn-dark:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}
.btn-light {
  background: var(--color-bg-alt);
  color: var(--color-text);
}
.btn-light:hover { background: var(--color-bg); }
.btn-outline {
  background: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
}
.btn-outline:hover {
  background: var(--color-text);
  color: var(--color-bg);
}
.btn-lg { padding: 18px 40px; }
.btn-small {
  padding: 8px 16px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}
.btn-block {
  display: flex;
  width: 100%;
  margin-left: 0 !important;
  margin-top: 12px;
}
.link-btn {
  background: none; border: none;
  font-family: var(--font-sans);
  color: var(--color-muted);
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.85rem;
  padding: 4px 8px;
}
.link-btn:hover { color: var(--color-text); }

/* ---------- Section ---------- */
.section { padding: 80px 0; }
.section-soft { background: var(--color-bg-soft); }
.section-ig { background: var(--color-bg-soft); }
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--color-accent);
  margin: 16px auto 0;
}
.section-title-link a {
  color: inherit;
  text-decoration: none;
  border-bottom: none;
  transition: color var(--transition);
}
.section-title-link a:hover {
  color: var(--color-accent);
  text-decoration: none;
}
.section-cta { text-align: center; margin-top: 40px; }
.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-muted);
  margin-bottom: 12px;
}
.lead {
  font-size: 1.15rem;
  color: var(--color-text-soft);
  margin-bottom: 24px;
}
.text-center { text-align: center; }
.muted { color: var(--color-muted); }
.small { font-size: 0.85rem; }
.mt-section { margin-top: 80px; }
.mt-1 { margin-top: 16px; }

/* ---------- Cat grid ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.cat-card {
  position: relative;
  display: block;
  background: var(--color-bg-alt);
  overflow: hidden;
  transition: transform var(--transition);
  border-radius: var(--radius);
}
.cat-card:hover { transform: translateY(-2px); }
.cat-card-img {
  aspect-ratio: 1/1;
  background-color: var(--color-bg-soft);
  background-size: cover;
  background-position: center;
}
.cat-card-placeholder {
  background: var(--color-bg-soft);
}
.cat-card-body { padding: 24px; text-align: center; }
.cat-card-body h3 {
  font-size: 1.5rem;
  margin: 0;
  transition: color 0.22s ease;
  position: relative;
  display: inline-block;
}
.cat-card-body h3::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: var(--color-text);
  margin: 6px auto 0;
  transition: width 0.3s cubic-bezier(.22,.61,.36,1);
}
.cat-card:hover .cat-card-body h3::after { width: 36px; }
.cat-card-cta {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 2px;
  font-weight: 500;
}

/* ---------- Product grid + card ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px;
}
.product-card {
  position: relative;
  background: transparent;
}
.product-card-img {
  position: relative;
  display: block;
  aspect-ratio: 1/1;
  background: var(--color-bg-alt);
  overflow: hidden;
  border-radius: var(--radius);
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform 0.6s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-body { padding: 16px 4px; }
.product-cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-muted);
  margin: 0 0 6px;
}
.product-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0 0 6px;
  font-weight: 500;
}
.product-price {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  margin: 0;
}
.badge-nuevo {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  text-transform: uppercase;
}

.card-badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius);
}
.badge-new {
  background: var(--color-text);
  color: var(--color-bg);
}
.badge-discount {
  background: #8B2A2A;
  color: #fff;
}
.badge.inline {
  margin-left: 12px;
  vertical-align: middle;
}
.badge-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 244, 239, 0.85);
  color: var(--color-text);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 1;
}
.product-card.is-sold-out .product-card-img img { opacity: 0.6; }
.price-compare-sm {
  color: var(--color-muted);
  text-decoration: line-through;
  margin-right: 8px;
  font-size: 0.85rem;
  font-weight: 400;
}
.price-final { color: #8B2A2A; }

.stock-alert {
  padding: 14px 18px;
  background: #F4E4E4;
  color: #6B2020;
  border-left: 3px solid #8B2A2A;
  margin-bottom: 24px;
  font-size: 0.9rem;
}
.stock-alert strong { display: block; margin-bottom: 4px; }

.color-swatches {
  display: flex;
  gap: 8px;
  margin: -8px 0 16px;
}
.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  box-shadow: inset 0 0 0 2px var(--color-bg-alt);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-text); }
.breadcrumb .current { color: var(--color-text); }

.page-header { text-align: center; margin-bottom: 48px; }
.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}
.page-sub {
  color: var(--color-text-soft);
  max-width: 640px;
  margin: 0 auto;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.cat-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  padding: 8px 18px;
  border: 1px solid var(--color-line);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--color-text-soft);
  background: transparent;
  border-radius: 999px;
}
.pill:hover { border-color: var(--color-text); }
.pill.is-active {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}
.sort-form select {
  padding: 10px 12px;
  border: 1px solid var(--color-line);
  background: var(--color-bg-alt);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-muted);
}
.empty-state p { margin-bottom: 24px; }

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) {
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
}
.gallery-main {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
}
.gallery-main img {
  width: 100%; height: 100%; object-fit: cover;
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.thumb {
  width: 70px; height: 70px;
  border: 1px solid var(--color-line);
  background: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--color-text); }

.product-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 8px 0 4px;
}
.product-subtitle {
  font-style: italic;
  color: var(--color-muted);
  margin-bottom: 16px;
}
.product-price-block { margin: 16px 0 24px; }
.price-main {
  font-size: 1.6rem;
  font-weight: 500;
}
.price-compare {
  color: var(--color-muted);
  text-decoration: line-through;
  margin-right: 12px;
  font-size: 1.1rem;
}
.product-desc-short {
  color: var(--color-text-soft);
  margin-bottom: 24px;
}

.cuotas-line {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin: 0 0 22px;
  padding: 12px 16px;
  background: var(--color-bg-soft);
  border-left: 3px solid #009EE3;
  line-height: 1.5;
}
.cuotas-line svg { color: #009EE3; flex-shrink: 0; }
.cuotas-line strong { color: var(--color-text); font-weight: 600; }

.medios-pago {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
}
.medios-titulo {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-muted);
  margin: 0 0 6px;
  font-weight: 500;
}
.medios-sub {
  font-size: 0.82rem;
  color: var(--color-text-soft);
  margin: 0 0 14px;
  line-height: 1.5;
}
.medios-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.medios-logos img {
  height: 28px;
  width: auto;
  display: block;
  transition: opacity 0.18s ease;
}
.medios-logos img:hover { opacity: 0.75; }
.medios-pago.is-compact .medios-logos { justify-content: center; }
.footer-medios {
  padding: 24px 0 8px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 16px;
}
.site-footer .medios-pago { border: none; margin: 0; padding: 0; }
.site-footer .medios-logos img { opacity: 0.92; }
.buy-form { margin-bottom: 24px; }
.field {
  display: block;
  margin-bottom: 16px;
}
.field-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-muted);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  background: var(--color-bg-alt);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-text);
}
.qty-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}
.qty-row .field { flex: 0 0 100px; margin-bottom: 0; }
.qty-row .btn { flex: 1; }
.btn-wa {
  display: block;
  width: 100%;
  margin-top: 12px;
  margin-left: 0 !important;
}
.unavailable {
  padding: 16px;
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-muted);
  color: var(--color-text-soft);
  margin-bottom: 24px;
}
.product-desc-long {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--color-line);
  color: var(--color-text-soft);
  line-height: 1.7;
}
.product-desc-long h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.link-ml {
  margin-top: 24px;
  font-size: 0.9rem;
}
.link-ml a { text-decoration: underline; color: var(--color-accent); }

/* ---------- Carrito ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 880px) {
  .cart-layout { grid-template-columns: 1fr; gap: 32px; }
}
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}
@media (max-width: 600px) {
  .cart-item {
    grid-template-columns: 70px 1fr;
    grid-template-rows: auto auto;
  }
  .cart-item-qty, .cart-item-del { grid-column: 2; justify-self: end; }
}
.cart-item-img {
  width: 80px; height: 80px;
  background: var(--color-bg);
  overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 0 0 4px;
}
.cart-item-price { font-weight: 500; margin: 0; }
.cart-item-qty {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cart-item-qty input {
  width: 60px;
  padding: 8px;
  border: 1px solid var(--color-line);
  text-align: center;
  font-family: var(--font-sans);
}
.cart-summary {
  background: var(--color-bg-alt);
  padding: 32px 24px;
  border-radius: var(--radius);
  position: sticky;
  top: 100px;
}
.summary-title {
  font-size: 1.2rem;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}
.summary-row.total {
  border-top: 1px solid var(--color-line);
  margin-top: 8px;
  padding-top: 16px;
  font-size: 1.15rem;
}

/* ---------- Checkout ---------- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 880px) {
  .checkout-layout { grid-template-columns: 1fr; gap: 32px; }
}
.form-section {
  border: 1px solid var(--color-line);
  padding: 24px;
  margin-bottom: 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}
.form-section legend {
  padding: 0 8px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
}
.checkout-summary {
  background: var(--color-bg-alt);
  padding: 32px 24px;
  position: sticky;
  top: 100px;
}
.summary-items {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.summary-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 0.9rem;
}
.summary-items li:last-child { border-bottom: 0; }
.checkout-summary hr {
  border: 0;
  border-top: 1px solid var(--color-line);
  margin: 12px 0;
}

.info-card {
  background: var(--color-bg-alt);
  padding: 24px;
  margin: 32px 0;
  text-align: left;
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
}
.info-card p { margin: 6px 0; }

/* ---------- Contacto ---------- */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 32px 0;
}
.contact-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-line);
}
.contact-list li:last-child { border-bottom: 0; }

/* ---------- Legal docs ---------- */
.legal-doc { max-width: 760px; }
.legal-doc h2 {
  margin-top: 32px;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 8px;
}
.legal-doc h3 { margin-top: 24px; font-size: 1.15rem; }
.legal-doc ul, .legal-doc ol { line-height: 1.7; margin-bottom: 16px; padding-left: 24px; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc p { line-height: 1.7; color: var(--color-text-soft); }
.legal-doc a { color: var(--color-accent); text-decoration: underline; }
.legal-doc a:hover { color: var(--color-text); }

.arr-form { background: var(--color-bg-alt); padding: 32px; border-radius: var(--radius); margin-top: 24px; }
.alert-success-box {
  background: #ECF1E8;
  border-left: 4px solid var(--color-success);
  padding: 24px;
  margin: 24px 0;
}
.alert-success-box h3 { margin-top: 0; color: var(--color-success); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 60px 0 24px;
  margin-top: 80px;
}
.site-footer a { color: var(--color-bg); opacity: 0.85; }
.site-footer a:hover { opacity: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 16px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0 0 16px;
  color: var(--color-bg);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.footer-bottom {
  text-align: center;
  padding-top: 16px;
}
.site-footer .muted { color: rgba(247,244,239,0.6); }

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0F1F15;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
  z-index: 90;
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: visible;
}
.wa-fab svg {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: block;
}
.wa-fab:hover {
  transform: scale(1.08);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}
.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: 1;
  animation: wa-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);    opacity: 0.55; }
  70%  { transform: scale(1.7);  opacity: 0; }
  100% { transform: scale(1.7);  opacity: 0; }
}
.wa-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--color-text);
  color: var(--color-bg);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--color-text);
}
.wa-fab:hover .wa-tooltip,
.wa-fab:focus-visible .wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 600px) {
  .wa-tooltip { display: none; }
  .wa-fab { width: 54px; height: 54px; bottom: 18px; right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-pulse { animation: none; opacity: 0.3; }
}

/* ---------- Search overlay ---------- */
.search-overlay {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-line);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 60;
}
.search-overlay.is-open {
  max-height: 75vh;
  overflow-y: auto;
}
.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-line);
}
.search-form-icon { color: var(--color-muted); flex-shrink: 0; }
.search-form input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-text);
  padding: 8px 0;
  outline: none;
}
.search-form input::placeholder { color: var(--color-muted); }
.search-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--color-muted);
  padding: 4px 12px;
  line-height: 1;
}
.search-close:hover { color: var(--color-text); }

.search-results {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 24px 24px;
}
.search-result-item {
  display: flex;
  gap: 16px;
  padding: 12px;
  text-decoration: none;
  color: var(--color-text);
  border-radius: 2px;
  align-items: center;
  transition: background 0.18s ease;
}
.search-result-item:hover { background: var(--color-bg); }
.search-result-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 2px;
  background: var(--color-bg);
}
.search-result-body { flex: 1; min-width: 0; }
.search-result-cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-muted);
  margin: 0 0 2px;
}
.search-result-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin: 0 0 4px;
}
.search-result-price { font-size: 0.95rem; font-weight: 500; }
.search-result-price s { color: var(--color-muted); font-weight: 400; margin-right: 6px; }
.search-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--color-muted);
}
.search-empty .btn { margin-top: 12px; }
.search-loading {
  text-align: center;
  padding: 24px;
  color: var(--color-muted);
  font-size: 0.85rem;
}
.search-footer {
  text-align: center;
  padding: 12px;
  border-top: 1px solid var(--color-line);
  margin-top: 8px;
}
.search-footer a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
}

.search-form-page {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  max-width: 560px;
}
.search-form-page input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--color-line);
  font-family: var(--font-sans);
  font-size: 1rem;
}
.search-form-page input:focus {
  outline: none;
  border-color: var(--color-text);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.product-card.reveal { transition-delay: 0.05s; }
.cat-card.reveal { transition-delay: 0.05s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Carrusel horizontal destacados ---------- */
.product-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 24px;
  margin: 0 -16px;
  scrollbar-width: thin;
}
.product-carousel::-webkit-scrollbar { height: 6px; }
.product-carousel::-webkit-scrollbar-track { background: transparent; }
.product-carousel::-webkit-scrollbar-thumb { background: var(--color-line); border-radius: 3px; }
.product-carousel > * {
  flex: 0 0 240px;
  scroll-snap-align: start;
}
@media (min-width: 720px) {
  .product-carousel > * { flex: 0 0 280px; }
}
