:root {
  --cream: #faf6f0;
  --paper: #fffdf9;
  --ink: #2c1810;
  --muted: #6b5348;
  --brand: #AF2B2B;
  --brand-dark: #7D1F1F;
  --gold: #C9A84C;
  --line: rgba(44, 24, 16, 0.1);
  --shadow: 0 18px 50px rgba(44, 24, 16, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 249, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand--logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex: 0 1 auto;
  min-width: 0;
}
.brand--logo img {
  width: auto;
  height: auto;
  max-width: min(52vw, 210px);
  max-height: 72px;
  object-fit: contain;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--brand); }

.nav-item-tienda--drawer {
  display: none;
}

.nav-tienda-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-tienda-ico {
  display: inline-flex;
  line-height: 0;
}

.nav-tienda-ico svg {
  width: 1.05rem;
  height: 1.05rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  line-height: 1;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-backdrop {
  display: none;
}

.header-shop-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-shrink: 0;
  min-width: 44px;
  height: 44px;
  padding: 0 0.9rem 0 0.7rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(175, 43, 43, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.header-shop-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(175, 43, 43, 0.28);
  color: #fff;
  text-decoration: none;
}
.header-shop-ico {
  display: inline-flex;
  line-height: 0;
}
.header-shop-ico svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}
.header-shop-label {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 8px 24px rgba(175, 43, 43, 0.28);
}
.btn-primary:hover {
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}
.btn-outline:hover { background: rgba(175, 43, 43, 0.06); text-decoration: none; }

/* Hero */
.hero {
  position: relative;
  min-height: clamp(420px, 72vh, 620px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
}

.hero-slider { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 10, 6, 0.15) 0%, rgba(20, 10, 6, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3.5rem 0 3rem;
  color: #fff;
}
.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f5e6c8;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.12;
  max-width: 14ch;
  margin-bottom: 0.85rem;
}
.hero p {
  font-size: 1.08rem;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-dots {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 3;
  display: flex;
  gap: 0.45rem;
}
.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}
.hero-dot.active { background: #fff; }

/* Sections */
section { padding: 4.5rem 0; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin-bottom: 0.5rem;
}
.section-head p {
  color: var(--muted);
  max-width: 58ch;
  margin: 0 auto;
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.product-card img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}
.product-body { padding: 1.25rem 1.35rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.product-body h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}
.product-body p { color: var(--muted); font-size: 0.95rem; flex: 1; }

/* About */
.about {
  background: var(--paper);
  border-block: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}
.about img {
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.about ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
}
.about li { margin-bottom: 0.45rem; }

/* Recipes */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.recipe-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem;
}
.recipe-card h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

/* Stores */
.stores { background: #f3ebe2; }
.store-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.store-card {
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.store-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.store-body { padding: 1.1rem 1.25rem 1.35rem; }
.store-body h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.store-body p { font-size: 0.9rem; color: var(--muted); }

.shop-banner {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.shop-banner p { opacity: 0.9; max-width: 50ch; }

/* Contact */
.contact-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.contact-box p { color: var(--muted); margin: 0.75rem 0 1.25rem; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 2rem 0;
  font-size: 0.88rem;
}
.site-footer a { color: #f0d9b8; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container { width: min(1120px, 94vw); }

  .header-inner {
    flex-wrap: nowrap;
    padding: 0.65rem 0;
    gap: 0.5rem;
  }
  .brand--logo {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 8.25rem);
  }
  .brand--logo img {
    max-width: 100%;
    max-height: 52px;
  }
  .nav-toggle { display: inline-flex; }
  .header-actions {
    position: relative;
    z-index: 130;
  }
  .header-shop-link {
    height: 40px;
    min-width: 40px;
    padding: 0 0.75rem 0 0.6rem;
  }
  .header-shop-ico svg {
    width: 1.05rem;
    height: 1.05rem;
  }
  .header-shop-label {
    font-size: 0.8rem;
  }

  .nav-item-tienda--drawer {
    display: list-item;
    margin-top: 0.35rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
  }

  .nav-tienda-link {
    display: flex;
    width: 100%;
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff !important;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 4px 14px rgba(175, 43, 43, 0.2);
    text-decoration: none;
  }

  .nav-tienda-link:hover,
  .nav-tienda-link:focus-visible {
    color: #fff !important;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    text-decoration: none;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 300px);
    z-index: 120;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(4.5rem + env(safe-area-inset-top, 0px)) 1.25rem 1.5rem;
    background: #fffdf9;
    border-left: 1px solid var(--line);
    box-shadow: -12px 0 40px rgba(44, 24, 16, 0.14);
    transform: translate3d(105%, 0, 0);
    transition: transform 0.28s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: none;
  }
  body.nav-open .site-nav {
    transform: translate3d(0, 0, 0);
  }
  body.nav-open { overflow: hidden; }

  .nav {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.15rem;
  }
  .nav a {
    display: block;
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--ink);
  }
  .nav a:hover,
  .nav a:focus-visible {
    background: rgba(175, 43, 43, 0.08);
    color: var(--brand);
    text-decoration: none;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(20, 10, 6, 0.45);
  }
  .nav-backdrop[hidden] { display: none; }

  body.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  body.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: clamp(360px, 68vh, 520px);
  }
  .hero-content {
    padding: 2.25rem 0 2.5rem;
  }
  .hero h1 {
    max-width: none;
    font-size: clamp(1.65rem, 7.2vw, 2.35rem);
  }
  .hero p {
    font-size: 0.98rem;
    max-width: none;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }
  .hero-dots {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0.85rem;
  }

  section { padding: 3rem 0; }
  .section-head { margin-bottom: 1.5rem; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about .section-head { text-align: center !important; }

  .products-grid,
  .recipes-grid,
  .store-list {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .contact-box {
    padding: 1.35rem 1.15rem;
  }
  .contact-box .btn {
    width: 100%;
    max-width: 320px;
  }

  .shop-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .shop-banner .btn { width: 100%; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.65rem;
  }
}

@media (max-width: 480px) {
  .container { width: min(1120px, 92vw); }
  .brand--logo img {
    max-width: min(54vw, 148px);
    max-height: 44px;
  }
  .btn {
    padding: 0.7rem 1.15rem;
    font-size: 0.9rem;
  }
  .product-body,
  .recipe-card {
    padding: 1.05rem 1.1rem 1.2rem;
  }
  .product-body h3 { font-size: 1.08rem; }
}
