:root {
  --cream: #faf7ef;
  --cream-2: #f2ecdb;
  --paper: #fffefa;
  --ink: #141b3d;
  --ink-2: #4a5070;
  --brown: #0e1a5c;
  --gold: #b8932f;
  --gold-2: #dcb94e;
  --line: #e7dec6;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(14, 26, 92, .22);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brown); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; color: var(--brown); font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 500; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 245, 236, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brown); }
.brand-mark {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-2), var(--gold));
  color: #fff; font-family: var(--serif); font-weight: 700; letter-spacing: .02em;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.2rem; }
.brand-text small { font-size: .78rem; color: var(--ink-2); }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: 999px;
}
.site-nav a:hover { background: var(--cream-2); color: var(--brown); }
.site-nav a[aria-current="page"] { background: var(--brown); color: var(--cream); }
.menu-toggle { display: none; }

@media (max-width: 880px) {
  .menu-toggle {
    display: inline-flex; font: inherit; font-weight: 600; font-size: .95rem;
    background: var(--brown); color: var(--cream); border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer;
  }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; padding: 12px 16px 20px; gap: 2px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 1.05rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: transform .15s ease, background .15s ease;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brown); color: var(--cream); }
.btn-primary:hover { background: #081142; color: #fff; }
.btn-ghost { border-color: var(--brown); color: var(--brown); }
.btn-ghost:hover { background: var(--brown); color: var(--cream); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow svg, .more svg { width: 18px; height: 18px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600;
  color: #8a6d1c; margin-bottom: .8em;
}
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 5vw, 64px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lead { margin-bottom: 1.6em; }
.hero-art { position: relative; }
.hero-photo {
  aspect-ratio: 784 / 718; border-radius: 48% 48% var(--radius) var(--radius) / 40% 40% var(--radius) var(--radius);
  background: var(--cream-2); object-fit: cover; width: 100%; height: auto;
  box-shadow: var(--shadow);
}
.hero-stamp {
  position: absolute; left: -24px; bottom: 32px; width: 120px; height: 120px; border-radius: 50%;
  background: var(--brown); color: var(--cream); display: grid; place-content: center; text-align: center;
  font-family: var(--serif); box-shadow: var(--shadow); transform: rotate(-8deg);
  border: 3px dashed var(--gold-2); outline: 6px solid var(--brown);
}
.hero-stamp span { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.hero-stamp strong { font-size: 2rem; line-height: 1; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin-inline: auto; width: 100%; }
  .hero-stamp { left: 0; width: 96px; height: 96px; }
  .hero-stamp strong { font-size: 1.6rem; }
}

/* Facts */
.facts { background: var(--brown); color: var(--cream); padding: 36px 0; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fact strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--gold-2); }
.fact span { font-size: .95rem; opacity: .9; }
@media (max-width: 880px) { .facts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .facts-grid { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section + .section { padding-top: 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head.left { text-align: left; margin-left: 0; margin-bottom: 24px; }
.section-head p { color: var(--ink-2); }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-2); color: var(--ink); }
.cat-emoji { font-size: 2.2rem; margin-bottom: 12px; }
.cat-card p { color: var(--ink-2); flex: 1; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brown); font-size: .95rem; }
@media (max-width: 880px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }

.story { background: var(--cream-2); padding-top: clamp(48px, 7vw, 96px) !important; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.story-photo { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); background: var(--line); box-shadow: var(--shadow); }
@media (max-width: 880px) { .story-grid { grid-template-columns: 1fr; } }

.split-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px);
}
.split-cta > div:first-child { max-width: 600px; }
.split-cta p { color: var(--ink-2); margin: 0; }

/* Inner pages */
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.page-hero + .section { padding-top: clamp(40px, 6vw, 72px); }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.4em; font-size: 1.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
@media (max-width: 880px) { .prose-grid { grid-template-columns: 1fr; } }
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: sticky; top: 96px; }
.check { list-style: none; padding: 0; margin: 0; }
.check li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px dashed var(--line); }
.check li:last-child { border-bottom: 0; }
.check li::before { content: '✓'; position: absolute; left: 0; top: 8px; color: var(--gold); font-weight: 700; }
.callout { background: var(--cream-2); border-left: 4px solid var(--gold); padding: 16px 20px; border-radius: 0 12px 12px 0; }
.small { font-size: .9rem; color: var(--ink-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips a {
  text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--paper);
  border: 1px solid var(--line); font-weight: 500; font-size: .95rem; color: var(--ink);
}
.chips a:hover { border-color: var(--gold); }
.cat-section { scroll-margin-top: 80px; }
.cat-section:nth-of-type(even) { background: var(--paper); padding-top: clamp(48px, 7vw, 96px); }
.product-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.product { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cat-section:nth-of-type(odd) .product { background: var(--paper); }
.product img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--cream-2); }
.product > div { padding: 16px 18px; }
.product h3 { margin: 0; font-size: 1.1rem; }
.product p { margin: .4em 0 0; font-size: .93rem; color: var(--ink-2); }
.note { font-family: var(--sans); font-size: .8rem; font-weight: 500; color: var(--gold); white-space: nowrap; }

.store-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.store { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.store p { color: var(--ink-2); margin: 0; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contact-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s;
}
.contact-card:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--ink); }
.contact-card svg { width: 28px; height: 28px; fill: var(--gold); margin-bottom: 12px; }
.contact-card p { margin: 0; color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--brown); color: #dfe2f0; padding: 56px 0 24px; margin-top: 40px; }
.site-footer a { color: #fff; text-decoration-color: var(--gold-2); }
.site-footer a:hover { color: var(--gold-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { font-family: var(--serif); font-size: 1.4rem; color: #fff; margin-bottom: .3em; }
.footer-title { font-weight: 600; color: var(--gold-2); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { margin-bottom: 6px; }
.badge { display: inline-block; border: 1px solid var(--gold-2); color: var(--gold-2); border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 600; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); font-size: .9rem; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Fichas de producto */
.product { display: flex; flex-direction: column; }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 2px; }
.product-ph { aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 3rem; background: linear-gradient(135deg, var(--cream-2), var(--line)); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px !important; }
.tags span { font-size: .78rem; font-weight: 600; color: var(--brown); background: var(--cream-2); border-radius: 999px; padding: 2px 10px; }
.product details { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; font-size: .9rem; }
.product summary { cursor: pointer; font-weight: 600; color: var(--brown); list-style: none; }
.product summary::-webkit-details-marker { display: none; }
.product summary::after { content: ' +'; color: var(--gold); }
.product details[open] summary::after { content: ' −'; }
.product details p { color: var(--ink-2); }
.nutri { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .85rem; }
.nutri caption { text-align: left; font-weight: 600; color: var(--ink-2); padding-bottom: 4px; }
.nutri th, .nutri td { padding: 4px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.nutri td { text-align: right; font-variant-numeric: tabular-nums; }
.nutri tr.sub th { padding-left: 12px; color: var(--ink-2); }

/* Sin foto: composición de respaldo */
.hero-fallback {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; place-items: center; padding: 18% 12% 12%;
  background: radial-gradient(circle at 50% 35%, #fff7e6 0, var(--cream-2) 60%, var(--line) 100%);
}
.hero-fallback span { font-size: clamp(3rem, 8vw, 5rem); filter: drop-shadow(0 8px 12px rgba(14,26,92,.18)); }
.story-fallback {
  display: grid; grid-template-columns: auto 1fr; align-content: center; gap: 10px 20px; padding: 32px;
  background: var(--brown); color: var(--cream);
}
.story-fallback strong { font-family: var(--serif); font-size: 1.8rem; color: var(--gold-2); line-height: 1.2; }
.story-fallback span { align-self: center; }

/* Logo */
.brand-logo { width: 54px; height: auto; display: block; }
.footer-logo { width: 110px; height: auto; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 12px; }
.hero-logo { width: 46%; max-width: 220px; height: auto; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.hero-art:has(.hero-fallback) .hero-stamp { display: none; }

/* Banda familia */
.family-band { position: relative; margin: 0 0 clamp(48px, 7vw, 96px); overflow: hidden; background: var(--brown); }
.family-band img { width: 100%; height: clamp(260px, 42vw, 520px); object-fit: cover; object-position: center 35%; opacity: .92; }
.family-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,26,92,.82) 0%, rgba(14,26,92,.35) 45%, rgba(14,26,92,0) 70%); }
.family-copy { position: absolute; inset: 0; display: flex; align-items: center; z-index: 1; }
.family-quote { font-family: var(--serif); font-size: clamp(1.8rem, 4.5vw, 3.4rem); line-height: 1.1; color: #fff; margin: 0; max-width: 12ch; }
.side-img { width: calc(100% + 56px); max-width: none; margin: -28px -28px 20px; border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 16 / 10; object-fit: cover; }
