/* Paleta extraída del logo: círculo de cacao, fondo dorado y flor ave del paraíso. */
:root {
  --cacao-900: #2a1512;
  --cacao-800: #3b1f1b;
  --cacao-700: #4b2824;
  --cacao-500: #6b4038;

  --gold-600: #d9ad33;
  --gold-500: #e5be47;
  --gold-400: #eaca5b;
  --gold-300: #efd773;
  --gold-100: #f9edd0;

  --orange: #dc732a;
  --coral: #c14036;
  --lime: #c8cf22;
  --sky: #49c6e0;

  --cream: #fdf8ee;
  --cream-dark: #f3e7d0;
  --ink: #2a1512;
  --muted: #6b4038;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(42, 21, 18, 0.1);
  --shadow-md: 0 6px 20px rgba(42, 21, 18, 0.12);
  --shadow-lg: 0 16px 40px rgba(42, 21, 18, 0.18);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }
img { max-width: 100%; display: block; }

a { color: var(--cacao-700); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.5rem;
  background: rgba(253, 248, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--cacao-800);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
}
.site-header .brand img { width: 42px; height: 42px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.site-header nav { display: flex; gap: 1.25rem; align-items: center; }
.site-header nav a {
  color: var(--cacao-700);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.site-header nav a:hover { color: var(--orange); }
.site-header nav a.nav-cta {
  background: var(--cacao-800);
  color: var(--gold-300);
  padding: 0.5rem 1rem;
  border-radius: 999px;
}
.site-header nav a.nav-cta:hover { background: var(--cacao-700); color: var(--gold-300); }
@media (max-width: 720px) {
  .site-header nav a.nav-link { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(239, 215, 115, 0.55), transparent 55%),
    radial-gradient(circle at 82% 78%, rgba(220, 115, 42, 0.25), transparent 52%),
    linear-gradient(135deg, var(--gold-500) 0%, var(--gold-300) 48%, var(--gold-500) 100%);
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 9vw, 6rem);
}
.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__logo {
  width: min(340px, 100%);
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255, 255, 255, 0.35);
}
.hero h1 { color: var(--cacao-900); }
.hero .eyebrow {
  display: inline-block;
  background: rgba(59, 31, 27, 0.12);
  color: var(--cacao-800);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.hero__lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--cacao-800);
  max-width: 46ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__logo { order: -1; width: min(240px, 70%); }
}

/* ---------- botones ---------- */
.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cacao-800); color: var(--gold-300); }
.btn-primary:hover { background: var(--cacao-900); }
.btn-secondary { background: rgba(255, 255, 255, 0.85); color: var(--cacao-800); }
.btn-secondary:hover { background: #fff; }
.btn-wa { background: var(--orange); color: #fff; }
.btn-wa:hover { background: #c96522; }
.btn-add {
  background: var(--cream-dark);
  color: var(--cacao-800);
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  width: 100%;
}
.btn-add:hover { background: var(--orange); color: #fff; }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }

/* ---------- secciones ---------- */
section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); }
.eyebrow-dark {
  display: inline-block;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-alt { background: var(--gold-100); }
.section-cacao {
  background:
    radial-gradient(circle at 15% 20%, rgba(220, 115, 42, 0.16), transparent 50%),
    var(--cacao-800);
  color: var(--gold-100);
}
.section-cacao h2, .section-cacao h3 { color: var(--gold-300); }
.section-cacao p { color: rgba(249, 237, 208, 0.85); }
.section-cacao .eyebrow-dark { color: var(--gold-400); }

/* ---------- historia ---------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.story__facts { display: grid; gap: 1rem; }
.fact {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.fact__icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--gold-100);
  font-size: 1.3rem;
}
.fact h3 { margin: 0 0 0.15rem; font-size: 1rem; }
.fact p { margin: 0; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 800px) { .story { grid-template-columns: 1fr; } }

/* ---------- tour ---------- */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.tour-step {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(239, 215, 115, 0.25);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.tour-step__num {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold-400);
  color: var(--cacao-900);
  font-weight: 800;
  font-family: "Fraunces", serif;
  margin-bottom: 0.9rem;
}
.tour-step p { font-size: 0.94rem; margin: 0; }

.tour-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.note-chip {
  background: rgba(239, 215, 115, 0.14);
  border: 1px solid rgba(239, 215, 115, 0.3);
  color: var(--gold-300);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- productos ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.4rem;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card__image-link { display: block; aspect-ratio: 1 / 1; background: var(--gold-100); }
.product-card__image-link img { width: 100%; height: 100%; object-fit: cover; }
.product-card__placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-size: 2.8rem;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
}
.product-card__placeholder.large { aspect-ratio: 1/1; font-size: 5rem; border-radius: var(--radius); }
.product-card__body { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product-card__body h3 { margin: 0; font-size: 1.02rem; }
.product-card__body h3 a { color: inherit; text-decoration: none; }
.product-card__body .btn-add { margin-top: auto; }
.price { font-family: "Fraunces", serif; font-weight: 700; color: var(--orange); font-size: 1.15rem; margin: 0; }
.out-of-stock { color: var(--coral); font-size: 0.85rem; font-weight: 600; margin: 0; }

.empty-catalog {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #fff;
  border: 2px dashed var(--cream-dark);
  border-radius: var(--radius);
  color: var(--muted);
}

/* ---------- reseñas ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
}
.review {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.review__stars { color: var(--gold-600); letter-spacing: 0.1em; font-size: 0.95rem; }
.review__text { font-size: 0.95rem; margin: 0; flex: 1; }
.review__meta { margin-top: auto; padding-top: 0.6rem; border-top: 1px solid var(--cream-dark); }
.review__author { font-size: 0.85rem; color: var(--cacao-700); font-weight: 700; margin: 0; }
.review__origin { font-size: 0.78rem; color: var(--muted); opacity: 0.75; margin: 0; }

/* ---------- visita / cta ---------- */
.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.visit__card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-md);
}
.visit__list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 0.8rem; }
.visit__list li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; }
.visit__list span:first-child { font-size: 1.1rem; }
@media (max-width: 800px) { .visit { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer {
  background: var(--cacao-900);
  color: rgba(249, 237, 208, 0.75);
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer .brand-line {
  font-family: "Fraunces", serif;
  color: var(--gold-300);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.site-footer a { color: var(--gold-400); }

/* ---------- detalle de producto ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding-top: 2.5rem;
}
.product-detail__image img { width: 100%; border-radius: var(--radius); aspect-ratio: 1/1; object-fit: cover; }
.product-detail__info a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.product-detail__info .description { line-height: 1.6; color: var(--muted); }
.product-detail__info .btn-add { width: auto; padding: 0.8rem 1.6rem; }
@media (max-width: 640px) { .product-detail { grid-template-columns: 1fr; } }

/* ---------- carrito ---------- */
.cart-toggle {
  position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 60;
  background: var(--cacao-800); color: var(--gold-300); border: none; border-radius: 999px;
  padding: 0.85rem 1.3rem; font-size: 1rem; font-weight: 700; cursor: pointer;
  box-shadow: var(--shadow-lg); font-family: inherit;
}
.cart-panel {
  position: fixed; bottom: 5rem; right: 1.2rem; z-index: 60;
  width: min(330px, calc(100vw - 2.4rem));
  background: #fff; border-radius: var(--radius-lg); padding: 1.4rem;
  box-shadow: var(--shadow-lg); max-height: 72vh; overflow-y: auto;
}
.cart-panel h2 { font-size: 1.15rem; margin-top: 0; }
.cart-panel ul { list-style: none; padding: 0; margin: 0 0 0.8rem; }
.cart-panel li {
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0; font-size: 0.9rem; border-bottom: 1px solid var(--cream-dark);
}
.cart-panel li button { background: none; border: none; color: var(--coral); cursor: pointer; font-size: 1rem; }
.cart-total { font-weight: 700; font-family: "Fraunces", serif; }
.cart-panel form { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.6rem; }
.cart-panel label { font-size: 0.82rem; display: flex; flex-direction: column; gap: 0.25rem; font-weight: 600; }
.cart-panel input {
  padding: 0.55rem; border-radius: 8px; border: 1px solid var(--cream-dark);
  font-family: inherit; font-size: 0.9rem;
}
.cart-panel input:focus { outline: 2px solid var(--gold-500); border-color: transparent; }

/* ---------- admin ---------- */
.admin-wrap { max-width: 900px; margin: 0 auto; padding: 1.5rem; }
.admin-nav { display: flex; gap: 1.2rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.admin-nav a { color: var(--cacao-700); text-decoration: none; font-weight: 700; font-size: 0.92rem; }
.admin-nav a:hover { color: var(--orange); }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
th, td { text-align: left; padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--cream-dark); font-size: 0.9rem; }
th { background: var(--gold-100); font-family: "Fraunces", serif; }
.form-grid { display: flex; flex-direction: column; gap: 0.85rem; max-width: 480px; }
.form-grid label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.9rem; font-weight: 600; }
.form-grid input, .form-grid textarea, .form-grid select {
  padding: 0.55rem; border-radius: 8px; border: 1px solid var(--cream-dark); font-family: inherit; font-size: 0.92rem;
}
.form-grid .btn { align-self: flex-start; }
.checkbox-row { flex-direction: row !important; align-items: center; gap: 0.5rem !important; }
.badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.75rem; background: var(--gold-100); font-weight: 700; }
.error { color: var(--coral); font-weight: 600; }
