/* =====================================================
   Recuerdos del Ayer — landing CSS (TEMA OSCURO cálido)
   Adaptado del proyecto hermano Voces del Jardín al
   nicho de gastronomía mexicana nostálgica.
   Paleta: cacao quemado + terracota + ocre cálido.
   ===================================================== */

:root {
  --bg: #1F1308;                 /* cacao oscuro */
  --bg-deep: #140A04;            /* footer aún más oscuro */
  --bg-garnet: #6B2818;          /* granate-terracota (top bar) */
  --bg-card: #2E1F12;            /* card cacao cálido */
  --bg-card-hover: #3A2818;
  --bg-card-bundle: #382414;     /* bundle, más ocre */
  --text: #FBF6EC;               /* crema casi blanco */
  --text-soft: #E0CBA8;          /* beige claro */
  --text-muted: #A88B66;         /* apagado pero legible */
  --gold: #C97E2F;               /* ocre quemado (acento principal) */
  --gold-light: #E8A763;         /* ocre claro luminoso */
  --gold-dark: #9B5F22;
  --green: #7A8C3A;              /* verde olivo mexicano (botones individuales) */
  --green-bright: #99B048;
  --red: #C24F2A;                /* rojo terracota vivo */
  --red-bright: #DC6638;
  --line: #4A3522;
  --line-soft: #342418;
  --serif: 'Cormorant Garamond', 'Lora', Georgia, 'Times New Roman', serif;
  --body: 'Crimson Pro', 'Lora', Georgia, serif;
  --sans: 'Inter', 'Source Sans 3', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --hand: 'Caveat', cursive;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27260%27%20height%3D%27260%27%20viewBox%3D%270%200%20260%20260%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%23C97E2F%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20opacity%3D%270.045%27%3E%3Cpath%20d%3D%27M40%2030%20Q40%2040%2050%2040%20Q60%2040%2060%2030%20Q60%2020%2050%2020%20Q40%2020%2040%2030%27%2F%3E%3Cpath%20d%3D%27M180%2055%20q12%200%2012%2010%20q0%208%20-12%208%20q-12%200%20-12%20-8%20q0%20-10%2012%20-10%27%2F%3E%3Cpath%20d%3D%27M70%20150%20Q80%20140%2090%20150%20T110%20150%27%2F%3E%3Cpath%20d%3D%27M210%20120%20q5%20-8%2010%200%20q5%208%2010%200%27%2F%3E%3Cpath%20d%3D%27M50%20210%20q6%20-9%2012%200%20q6%209%2012%200%27%2F%3E%3Cpath%20d%3D%27M160%20210%20Q170%20200%20180%20210%27%2F%3E%3Cpath%20d%3D%27M138%20100%20l3%204%20l4%20-1%20l-2%204%20l3%204%20l-4%20-1%20l-3%204%20l-1%20-4%20l-4%20-1%20l3%20-4%20l1%20-5%20z%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-repeat: repeat;
  background-size: 260px 260px;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--text); }
a { color: var(--gold-light); }

/* ===== TOP BAR ===== */
.topbar {
  background: linear-gradient(180deg, var(--bg-garnet) 0%, #3A1408 100%);
  border-bottom: 2px solid #8A3520;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  font-family: var(--serif);
  font-size: 1.02rem;
  position: relative;
  z-index: 50;
}
.topbar-item { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text); }
.topbar-item strong { color: var(--gold-light); font-weight: 700; }
.topbar-dot { width: 10px; height: 10px; border-radius: 50%; background: #5BAE42; box-shadow: 0 0 10px #5BAE42; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:1; transform:scale(1);} 50%{opacity:0.45; transform:scale(0.8);} }
.topbar-warn { color: var(--red-bright); font-weight: 600; }
.topbar-timer {
  font-weight: 700; color: #1F1308; letter-spacing: 0.1em;
  background: var(--gold-light); padding: 0.3rem 0.9rem; border-radius: 3px;
  font-variant-numeric: tabular-nums; font-size: 1.15rem;
  box-shadow: 0 0 14px rgba(232,167,99,0.4);
}

/* ===== HEADER STICKY ===== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(31, 19, 8, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand-logo { font-family: var(--serif); }
.brand-logo-name { font-size: 1.3rem; font-weight: 700; letter-spacing: 0.18em; color: var(--gold-light); text-transform: uppercase; }
.brand-logo-sub { font-size: 0.65rem; letter-spacing: 0.3em; color: var(--text-muted); text-transform: uppercase; margin-top: 2px; }
.header-cta {
  display: inline-flex; align-items: center; gap: 0.8rem;
  background: var(--gold); color: #1F1308;
  font-family: var(--sans); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  padding: 0.7rem 1.3rem; border: 1px solid var(--gold-light); border-radius: 30px;
  transition: all 0.2s ease;
}
.header-cta:hover { background: var(--gold-light); color: #1F1308; box-shadow: 0 0 20px rgba(232,167,99,0.4); }
.header-cta-price { font-size: 1rem; border-left: 1px solid rgba(0,0,0,0.25); padding-left: 0.8rem; }

/* ===== HERO ===== */
.hero { text-align: center; padding: 1.8rem 1.5rem 0.4rem; max-width: 880px; margin: 0 auto; }
.hero-eyebrow {
  font-family: var(--serif); font-size: 0.82rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.7rem;
}
.hero-headline {
  font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 700; line-height: 1.12; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 0.8rem;
}
.hero-headline .gold { color: var(--gold-light); }
.hero-headline .red { color: var(--red-bright); }
.hero-sub {
  font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 1.7vw, 1.18rem);
  color: var(--text-soft); max-width: 640px; margin: 0 auto 1rem; line-height: 1.45;
}
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 1.8rem;
  flex-wrap: wrap; margin-top: 1rem; padding: 1rem 0;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.hero-stat { font-family: var(--serif); color: var(--text-soft); font-size: 0.9rem; }
.hero-stat strong { color: var(--gold-light); font-size: 1.4rem; font-weight: 700; display: block; }

/* ===== PRODUCTS ===== */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; max-width: 1180px;
  margin: 2.5rem auto; padding: 0 1.5rem;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px; padding: 2rem 1.5rem 1.5rem;
  display: flex; flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}
.product-card:hover { background: var(--bg-card-hover); border-color: var(--gold-dark); transform: translateY(-3px); }
.product-card.featured {
  background: var(--bg-card-bundle);
  border: 2px solid var(--gold);
  box-shadow: 0 0 30px rgba(201,126,47,0.18);
  position: relative;
  padding-top: 3.5rem;
}
.featured-banner {
  position: absolute; top: 0; left: 0; right: 0;
  background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  color: #1F1308; font-family: var(--sans); font-size: 0.78rem;
  font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.5rem; text-align: center; border-radius: 7px 7px 0 0;
}
.featured-banner .stars { color: #1F1308; }

.product-badge {
  display: inline-block; background: var(--line);
  color: var(--gold-light); font-family: var(--sans);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 3px;
  margin-bottom: 1rem; align-self: flex-start;
}
.product-cover {
  width: 100%; max-width: 220px;
  margin: 0 auto 1.2rem;
  aspect-ratio: 2/3;
  background: #1A0E04; border-radius: 4px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.product-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-title {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.3rem; line-height: 1.2;
}
.product-subtitle {
  font-family: var(--serif); font-style: italic;
  color: var(--text-soft); font-size: 0.95rem;
  margin-bottom: 1rem; line-height: 1.4;
}

.product-price-old {
  font-family: var(--serif); color: var(--text-muted);
  text-decoration: line-through; font-size: 1.1rem;
  margin-bottom: 0.1rem;
}
.product-price {
  font-family: var(--serif); color: var(--gold-light);
  font-size: 3rem; font-weight: 700; line-height: 1;
  display: flex; align-items: baseline; gap: 0.2rem;
}
.product-price .currency { font-size: 1.5rem; }
.product-save {
  display: inline-block; background: var(--red);
  color: white; font-family: var(--sans);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 3px;
  margin-top: 0.4rem; margin-bottom: 1.2rem;
}

.product-benefits {
  list-style: none; margin: 1rem 0 1.5rem;
  font-family: var(--body); font-size: 0.97rem;
  color: var(--text-soft);
}
.product-benefits li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  line-height: 1.4;
}
.product-benefits li:last-child { border-bottom: none; }
.product-benefits li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--gold); font-weight: 700;
}
.product-benefits li strong { color: var(--text); }

.product-cta {
  display: block; text-align: center; text-decoration: none;
  font-family: var(--sans); font-weight: 700; font-size: 1rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 1rem 1.5rem; border-radius: 4px;
  margin-top: auto;
  transition: all 0.2s ease;
}
.product-cta.green {
  background: var(--green);
  color: white;
  border: 1px solid var(--green-bright);
}
.product-cta.green:hover { background: var(--green-bright); box-shadow: 0 0 18px rgba(153,176,72,0.3); }
.product-cta.gold {
  background: var(--gold);
  color: #1F1308;
  border: 1px solid var(--gold-light);
  font-size: 1.05rem;
}
.product-cta.gold:hover { background: var(--gold-light); box-shadow: 0 0 25px rgba(232,167,99,0.45); }

.product-trust {
  font-family: var(--sans); font-size: 0.78rem;
  color: var(--text-muted); text-align: center;
  margin-top: 0.8rem;
}
.product-trust .secure { color: var(--green-bright); }

/* ===== BUNDLE: vol-stack + bonuses ===== */
.vol-stack {
  display: flex; align-items: center; justify-content: center;
  gap: 0.6rem; margin: 0.5rem 0 1rem;
  padding: 0.8rem; background: rgba(0,0,0,0.2);
  border-radius: 6px; border: 1px solid var(--line);
}
.vol-chip {
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px; padding: 0.5rem 0.7rem;
  flex: 1; max-width: 90px; position: relative;
}
.vol-chip.exclusive { border-color: var(--gold); background: var(--bg-card-bundle); }
.vol-chip-badge {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #1F1308;
  font-family: var(--sans); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.15rem 0.5rem; border-radius: 2px;
  white-space: nowrap;
}
.vol-num {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700;
  color: var(--gold-light); line-height: 1;
}
.vol-lbl {
  font-family: var(--sans); font-size: 0.66rem;
  color: var(--text-soft); letter-spacing: 0.05em;
  text-transform: uppercase; margin-top: 0.3rem;
  text-align: center; line-height: 1.2;
}
.vol-plus { color: var(--gold); font-weight: 700; font-size: 1.3rem; }

.bundle-bonuses {
  background: rgba(0,0,0,0.25);
  border: 1px dashed var(--gold-dark);
  border-radius: 4px; padding: 1rem 1.2rem;
  margin: 1rem 0; font-family: var(--body);
}
.bundle-bonuses-title {
  font-family: var(--serif); color: var(--gold-light);
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  text-align: center; margin-bottom: 0.8rem;
}
.bonus-item {
  padding: 0.4rem 0;
  font-size: 0.93rem; color: var(--text-soft);
  border-bottom: 1px solid var(--line-soft);
}
.bonus-item:last-child { border-bottom: none; }
.bonus-tag {
  display: inline-block; background: var(--line);
  color: var(--gold-light); font-family: var(--sans);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.05em; padding: 0.2rem 0.5rem;
  border-radius: 2px; margin-right: 0.6rem;
}
.bonus-tag.exclusive { background: var(--gold); color: #1F1308; }
.bonus-value {
  float: right; color: var(--gold-light);
  font-family: var(--serif); font-weight: 600;
  font-size: 0.85rem;
}

/* ===== CONTEXT ===== */
.context {
  max-width: 780px; margin: 3rem auto;
  padding: 0 1.5rem; text-align: center;
}
.context h2 {
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text); margin-bottom: 1.2rem; font-style: italic;
}
.context p {
  font-family: var(--body); color: var(--text-soft);
  font-size: 1.08rem; line-height: 1.7;
  margin-bottom: 1.2rem;
}
.context .hl {
  color: var(--gold-light); font-weight: 600; font-style: italic;
}
.context .note {
  font-family: var(--serif); font-style: italic;
  color: var(--gold); font-size: 1.15rem;
  margin-top: 1.5rem;
}

/* ===== COUNTDOWN BAND ===== */
.countdown-band {
  background: linear-gradient(135deg, #3A1408 0%, #6B2818 100%);
  border-top: 1px solid var(--gold-dark);
  border-bottom: 1px solid var(--gold-dark);
  padding: 1.8rem 1rem; text-align: center;
}
.countdown-band-label {
  font-family: var(--serif); color: var(--gold-light);
  font-size: 1rem; letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.countdown-boxes {
  display: flex; justify-content: center; gap: 1rem;
}
.cd-box {
  background: var(--bg-deep);
  border: 1px solid var(--gold-dark);
  border-radius: 6px;
  padding: 0.8rem 1.2rem;
  min-width: 80px;
}
.cd-box-num {
  font-family: var(--serif); color: var(--gold-light);
  font-size: 2rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cd-box-label {
  font-family: var(--sans); color: var(--text-muted);
  font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ===== STORIES ===== */
.stories {
  max-width: 1100px; margin: 3.5rem auto;
  padding: 0 1.5rem;
}
.stories h2 {
  font-family: var(--serif); text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--text); font-style: italic;
}
.stories-sub {
  text-align: center; font-family: var(--serif);
  color: var(--text-muted); font-size: 0.95rem;
  margin-bottom: 2rem; font-style: italic;
}
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.story-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 1.5rem; border-radius: 6px;
}
.story-stars { color: var(--gold-light); font-size: 1.1rem; margin-bottom: 0.6rem; }
.story-text {
  font-family: var(--body); color: var(--text-soft);
  font-size: 1rem; line-height: 1.6; font-style: italic;
  margin-bottom: 0.8rem;
}
.story-author {
  font-family: var(--sans); color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== FAQ ===== */
.faq {
  max-width: 800px; margin: 3.5rem auto;
  padding: 0 1.5rem;
}
.faq h2 {
  font-family: var(--serif); text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--text); font-style: italic;
}
.faq-sub {
  text-align: center; font-family: var(--serif);
  color: var(--text-muted); font-size: 0.95rem;
  margin-bottom: 2rem; font-style: italic;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px; margin-bottom: 0.7rem;
}
.faq-item[open] { background: var(--bg-card-hover); border-color: var(--gold-dark); }
.faq-item summary {
  padding: 1rem 1.3rem;
  font-family: var(--serif); font-weight: 600;
  font-size: 1.05rem; color: var(--text-soft);
  cursor: pointer; list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.3rem;
  color: var(--gold-light); font-size: 1.5rem;
  font-weight: 300; transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer {
  padding: 0 1.3rem 1.2rem;
  font-family: var(--body); color: var(--text-soft);
  font-size: 0.98rem; line-height: 1.6;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.5rem;
  text-align: center; margin-top: 4rem;
}
.footer-brand {
  font-family: var(--serif); font-size: 1.6rem;
  font-weight: 700; color: var(--gold-light);
  letter-spacing: 0.1em;
}
.footer-meta {
  font-family: var(--serif); color: var(--text-muted);
  font-size: 0.85rem; font-style: italic;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}
.footer-links {
  font-family: var(--sans); font-size: 0.88rem;
  color: var(--text-soft); margin-bottom: 1.2rem;
}
.footer-links a {
  color: var(--gold-light); text-decoration: none;
  margin: 0 0.4rem;
}
.footer-links a:hover { color: var(--gold); text-decoration: underline; }
.footer-legal {
  font-family: var(--sans); font-size: 0.78rem;
  color: var(--text-muted); max-width: 720px;
  margin: 1rem auto 0; line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
  .topbar { gap: 1.2rem; font-size: 0.9rem; padding: 0.6rem; }
  .topbar-item { font-size: 0.88rem; }
  .topbar-timer { font-size: 1rem; padding: 0.2rem 0.6rem; }
  .site-header { padding: 0.7rem 1rem; }
  .brand-logo-name { font-size: 1.05rem; letter-spacing: 0.12em; }
  .brand-logo-sub { font-size: 0.58rem; letter-spacing: 0.2em; }
  .header-cta { padding: 0.55rem 0.9rem; font-size: 0.78rem; }
  .header-cta-price { font-size: 0.92rem; }
  .hero-stats { gap: 1.2rem; }
  .hero-stat strong { font-size: 1.2rem; }
  .product-card { padding: 1.5rem 1.2rem 1.2rem; }
  .product-card.featured { padding-top: 3rem; }
  .product-price { font-size: 2.5rem; }
  .vol-stack { gap: 0.3rem; padding: 0.6rem; }
  .vol-chip { padding: 0.4rem 0.5rem; max-width: 70px; }
  .vol-num { font-size: 1.3rem; }
  .vol-lbl { font-size: 0.58rem; }
  .countdown-boxes { gap: 0.6rem; }
  .cd-box { padding: 0.6rem 0.9rem; min-width: 65px; }
  .cd-box-num { font-size: 1.6rem; }
}
