:root {
  --bg: #fbf6ec;
  --page: #ece0cd;
  --cream: #faf6f0;
  --ink: #211c18;
  --muted: #8a8077;
  --soft: #b4a99d;
  --line: #ece6dd;
  --gold: #b79357;
  --gold-dark: #9a7a44;
  --wa: #25d366;
  --wa-dark: #1da851;
  --radius: 14px;
  --maxw: 1180px;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-dark);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 5vw, 56px);
  background: rgba(236, 224, 205, 0.85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand-logo {
  width: 152px;
  height: auto;
}

.top-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.top-links a {
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s ease;
}

.top-links a:hover {
  color: var(--gold-dark);
}

.nav-cta {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
}

.nav-cta:hover {
  background: var(--gold-dark);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--gold-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: clamp(40px, 8vw, 96px) clamp(18px, 5vw, 56px);
}

.hero-copy {
  max-width: 560px;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 4.7rem);
}

h1 em {
  font-style: italic;
  color: var(--gold-dark);
}

.hero-text {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.75;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}

/* ---------- Steps ---------- */
.steps {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(24px, 4vw, 40px) clamp(18px, 5vw, 56px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.step strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- Menu ---------- */
.menu-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(54px, 8vw, 100px) clamp(18px, 5vw, 56px) clamp(40px, 6vw, 80px);
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}

.menu-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tab-button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tab-button:hover {
  color: var(--ink);
  border-color: var(--line);
}

.tab-button.is-active {
  background: var(--cream);
  border-color: var(--gold);
  color: var(--gold-dark);
  font-weight: 600;
}

.search-box {
  flex: 1;
  min-width: 220px;
  max-width: 320px;
  margin-left: auto;
}

.search-box input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 20px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--gold);
}

.search-box input::placeholder {
  color: var(--soft);
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: clamp(18px, 2.5vw, 30px);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(120, 90, 50, 0.12);
}

.product-card-media {
  position: relative;
  overflow: hidden;
}

.product-card-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gold-dark);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
}

.product-card h3 {
  font-size: 1.3rem;
  line-height: 1.12;
  margin-bottom: 6px;
}

.product-presentation {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 14px;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.price {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
}

.order-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.order-button:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #fff;
}

.empty-state {
  margin-top: 30px;
  padding: 36px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

/* ---------- Floating WhatsApp ---------- */
.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--wa);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
  transition: background 0.2s ease, transform 0.15s ease;
}

.floating-whatsapp:hover {
  background: var(--wa-dark);
}

.floating-whatsapp:active {
  transform: scale(0.97);
}

/* ---------- Footer ---------- */
.site-footer {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  padding: 56px 18px 64px;
  margin-top: 40px;
  background: var(--page);
  border-top: 1px solid var(--line);
}

.footer-logo {
  width: 150px;
}

.footer-tagline {
  margin: 0;
  color: var(--muted);
  max-width: 360px;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-note {
  margin: 6px 0 0;
  color: var(--soft);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  .hero-copy {
    max-width: none;
    order: 2;
  }

  .hero-media {
    order: 1;
  }

  .hero-media img {
    aspect-ratio: 16 / 11;
  }

  .hero-media::after {
    display: none;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .menu-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    max-width: none;
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .top-links {
    gap: 14px;
    font-size: 0.9rem;
  }

  .brand-logo {
    width: 128px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-info {
    padding: 13px 13px 16px;
  }

  .product-card h3 {
    font-size: 1.06rem;
  }

  .product-presentation {
    font-size: 0.82rem;
    margin-bottom: 10px;
  }

  .product-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .order-button {
    width: 100%;
    justify-content: center;
  }

  .floating-whatsapp span {
    display: none;
  }

  .floating-whatsapp {
    padding: 14px;
  }
}

/* ---------- Tarjetas con opciones ---------- */
.product-card {
  cursor: pointer;
}

.product-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---------- Ventana (modal) de tamaños ---------- */
body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(33, 28, 24, 0.55);
  backdrop-filter: blur(3px);
}

.modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  width: min(720px, 100%);
  max-height: 88vh;
  overflow: hidden;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(33, 28, 24, 0.3);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: #fff;
}

.modal-body {
  display: contents;
}

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

.modal-detail {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 28px;
  overflow-y: auto;
}

.modal-category {
  position: static;
  align-self: flex-start;
  margin-bottom: 12px;
  background: var(--cream);
}

.modal-detail h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1;
  margin-bottom: 6px;
}

.modal-desc {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
}

.modal-hint {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.variant-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.variant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.variant-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.variant-name {
  font-weight: 600;
}

.variant-price {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold-dark);
}

@media (max-width: 620px) {
  .modal {
    padding: 12px;
  }

  .modal-card {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }

  .modal-media img {
    aspect-ratio: 16 / 10;
  }

  .modal-detail {
    padding: 20px 18px 24px;
  }

  .variant-row {
    flex-wrap: wrap;
  }

  .variant-row .order-button {
    width: 100%;
    justify-content: center;
  }
}
