:root {
  --ink: #0d0d0d;
  --ink-soft: #1f1f1f;
  --cream: #f6f1e7;
  --cream-dark: #ece4d2;
  --gold: #f7a52f;
  --gold-light: #ffd18f;
  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "DM Sans", -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 1.5; background: var(--ink); color: var(--cream); }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
h1, h2, h3, .brand { font-family: var(--font-display); font-weight: 600; margin: 0; }
p { margin: 0; }

/* Header */
.top-banner { background: var(--gold); color: var(--ink); text-align: center; padding: .5rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(13,13,13,.95); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(246,241,231,.1); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; }
.site-header .brand { font-size: 1.25rem; font-weight: 600; letter-spacing: .02em; }
.site-header nav { display: flex; align-items: center; gap: 2rem; font-size: .875rem; font-weight: 500; }
.site-header nav a:hover { color: var(--gold); }
.cart-link { background: var(--gold); color: var(--ink) !important; padding: .625rem 1.25rem; border-radius: 999px; display: flex; align-items: center; gap: .5rem; }

/* Storefront body */
.storefront { background: var(--cream); color: var(--ink); flex: 1; }
.storefront .wrap { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.btn { display: inline-block; border-radius: 999px; padding: .75rem 1.5rem; font-weight: 500; font-size: .875rem; line-height: 1.25rem; cursor: pointer; border: none; font-family: var(--font-sans); transition: background-color .15s; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: rgba(13,13,13,.85); }
.btn-ink:disabled { background: rgba(13,13,13,.3); cursor: not-allowed; }
.btn-outline { border: 1px solid rgba(13,13,13,.2); color: var(--ink); background: transparent; }

/* Capas de fondo responsive (imagen distinta para escritorio/móvil) */
.bg-layer { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: #333; }
.bg-layer.bg-mobile { display: none; }
@media (max-width: 639px) {
  .bg-layer.bg-desktop { display: none; }
  .bg-layer.bg-mobile { display: block; }
}

/* Hero (slider: puede tener 1 o varias slides, cada una con su propia imagen/texto) */
.hero { position: relative; border-radius: 1.5rem; overflow: hidden; aspect-ratio: 4/3; background: #333; display: flex; align-items: flex-end; }
@media (min-width: 640px) { .hero { aspect-ratio: 16/9; } }
.hero-slide { position: absolute; inset: 0; display: none; align-items: flex-end; }
.hero-slide.active { display: flex; }
.hero-slide::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, var(--ink), rgba(13,13,13,.4), transparent); }
.hero-content { position: relative; z-index: 2; padding: 2rem 2rem 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 640px) { .hero-content { padding: 3.5rem 4rem; } }
.hero-content .eyebrow { color: var(--gold); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .3em; }
.hero-dots { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; z-index: 2; }
.hero-dot { width: .55rem; height: .55rem; border-radius: 999px; background: rgba(246,241,231,.4); border: none; cursor: pointer; padding: 0; }
.hero-dot.active { background: var(--gold); }

/* Marcas: carrusel horizontal con flechas */
.brands-carousel-wrap { display: flex; align-items: center; gap: .75rem; }
.brands-carousel { display: flex; gap: 2rem; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; flex: 1; padding: .5rem 0; }
.brands-carousel::-webkit-scrollbar { display: none; }
.brand-item { display: flex; flex-direction: column; align-items: center; gap: .5rem; flex-shrink: 0; }
.brands-arrow { flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: 999px; border: 1px solid rgba(246,241,231,.3); background: transparent; color: var(--cream); cursor: pointer; font-size: 1rem; }
.brands-arrow:hover { background: rgba(246,241,231,.1); }
.hero-content h1 { font-size: 2.25rem; line-height: 1.15; color: var(--cream); max-width: 32rem; }
@media (min-width: 640px) { .hero-content h1 { font-size: 3rem; } }
.hero-content p { color: rgba(246,241,231,.7); max-width: 26rem; }

/* Section headings / eyebrow reused across home */
.eyebrow-gold { color: var(--gold); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .3em; }
h2.section-title { font-size: 1.5rem; }

/* Category / tiles */
.tiles { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tile { position: relative; height: 14rem; border-radius: 1rem; overflow: hidden; background: var(--ink-soft) center/cover; display: flex; align-items: flex-end; padding: 1.5rem; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.2), transparent); }
.tile span { position: relative; color: var(--cream); font-size: 1.25rem; font-weight: 600; font-family: var(--font-display); }

/* Product grid / cards */
.product-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.product-card { display: flex; flex-direction: column; border: 1px solid rgba(13,13,13,.1); border-radius: 1rem; overflow: hidden; background: #fff; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,.08); }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--cream-dark); padding: 1rem; }
.product-card .body { padding: 1rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.product-card .brand { color: var(--gold); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.product-card h3 { font-family: var(--font-sans); font-weight: 500; font-size: 1rem; }
.product-card .price { margin-top: auto; font-weight: 600; font-size: 1.125rem; }
.product-card .no-stock { color: #dc2626; font-size: .75rem; font-weight: 500; }

/* Filters */
.filters { display: flex; flex-direction: column; gap: 1.5rem; width: 100%; }
@media (min-width: 640px) { .filters { width: 14rem; flex-shrink: 0; } }
.filter-group h4 { margin: 0 0 .5rem; font-size: .75rem; font-family: var(--font-sans); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: rgba(13,13,13,.5); }
.filter-group label { display: block; font-size: .875rem; padding: .15rem 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { border: 1px solid rgba(13,13,13,.15); border-radius: 999px; padding: .5rem 1rem; font-size: .875rem; font-weight: 500; }
.chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Cart / checkout */
.card { border: 1px solid rgba(13,13,13,.1); border-radius: 1rem; background: #fff; padding: 1rem; }
.cart-row { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-bottom: 1px solid rgba(13,13,13,.1); }
.cart-row img { width: 4rem; height: 4rem; object-fit: contain; background: var(--cream-dark); border-radius: .75rem; padding: .3rem; }
.cart-row .grow { flex: 1; }
.cart-row input[type=number] { width: 4rem; text-align: center; border: 1px solid rgba(13,13,13,.15); border-radius: .5rem; padding: .4rem; }
form label { display: flex; flex-direction: column; gap: .25rem; font-size: .875rem; font-weight: 500; margin-bottom: 1rem; }
form input[type=text], form input[type=email], form input[type=tel], form input[type=number], form input[type=password], form select, form textarea {
  border: 1px solid rgba(13,13,13,.15); border-radius: .5rem; padding: .6rem .75rem; font-weight: 400; font-family: var(--font-sans); font-size: .9375rem;
}
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--gold); }
.zone-ok { color: #15803d; font-size: .75rem; font-weight: 600; }
.zone-warn { color: #b45309; font-size: .75rem; font-weight: 600; }
.error { color: #dc2626; font-size: .875rem; }

/* Footer */
.site-footer { background: var(--ink); border-top: 1px solid rgba(246,241,231,.1); padding: 2.5rem 0; text-align: center; color: rgba(246,241,231,.6); font-size: .8125rem; }
.whatsapp-fab {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 999px;
  background: #25D366; color: #fff; box-shadow: 0 10px 25px rgba(0,0,0,.25);
  transition: transform .15s;
}
.whatsapp-fab:hover { transform: scale(1.05); }
.whatsapp-fab svg { width: 1.75rem; height: 1.75rem; fill: currentColor; }

/* Admin */
.admin-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--cream); color: var(--ink); font-family: var(--font-sans); }
.admin-header { background: var(--ink); color: var(--cream); }
.admin-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; }
.admin-header .brand { font-size: 1.125rem; }
.admin-header nav { display: flex; align-items: center; gap: 1.5rem; font-size: .875rem; }
.admin-header nav a:hover { color: var(--gold); }
.admin-shell main { flex: 1; padding: 2rem 1.5rem; }
.admin-shell h1 { font-size: 1.5rem; margin-bottom: .25rem; }
.login-box { max-width: 24rem; margin: 10vh auto; background: #fff; border-radius: 1rem; padding: 2rem; }
table.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: .75rem; overflow: hidden; }
table.admin-table th, table.admin-table td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid rgba(13,13,13,.08); font-size: .875rem; }
table.admin-table th { background: var(--cream-dark); font-weight: 600; }
