/* ==========================================================================
   Compras y Punto · Portada
   Minimalista / premium. Sin dependencias: solo Google Fonts.
   ========================================================================== */

:root {
  --bg: #F7F4EF;
  --surface: #EEE9E1;
  --surface-strong: #E6E0D5;
  --white: #FFFDF9;
  --ink: #1C1B19;
  --ink-soft: #3A3833;
  --muted: #6E6A62;
  --line: #DFD9CE;
  --accent: #9A7A4A;
  --accent-light: #CDB07E;
  --dark: #1E221F;
  --dark-ink: #F3EFE7;
  --dark-muted: rgba(243, 239, 231, 0.68);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --radius-lg: 28px;
  --section-y: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base ------------------------------------------------------------------- */

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ol, ul { list-style: none; padding: 0; }

svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

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

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section-y); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; }

.eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.muted { color: var(--muted); }

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--ink-soft); }

.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-light { background: var(--dark-ink); color: var(--dark); }
.btn-light:hover { background: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  padding-bottom: 4px; border-bottom: 1px solid var(--ink);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* Announcement + header ---------------------------------------------------- */

.announce {
  background: var(--dark); color: var(--dark-ink);
  text-align: center;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px var(--gutter);
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 239, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
}

.logo {
  font-family: var(--serif);
  font-size: 28px; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1;
  white-space: nowrap;
}
.logo i { font-style: italic; font-weight: 500; color: var(--accent); }
.logo-dot { color: var(--accent); }

.main-nav { display: flex; gap: 36px; }
.main-nav a {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  position: relative; padding-block: 6px;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; justify-content: flex-end; gap: 4px; }

.icon-btn {
  position: relative;
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--ink);
  transition: background-color .25s var(--ease);
}
.icon-btn:hover { background: var(--surface); }

.cart-count {
  position: absolute; top: 6px; right: 4px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px;
  background: var(--accent); color: var(--white);
  font-size: 10px; font-weight: 600; line-height: 17px; text-align: center;
}

.menu-btn { display: none; }

/* Hero ------------------------------------------------------------------- */

.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 112px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero h1 em { font-style: italic; color: var(--accent); }

.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 40px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-media { position: relative; }

.hero-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #EFE9DF 0%, #E7E0D4 100%);
  isolation: isolate;
}
/* "sol" detrás de los productos */
.hero-stage::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 14%;
  width: 78%; aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #F8F4ED 0%, #F1EBE1 60%, rgba(241, 235, 225, 0) 72%);
}
/* superficie / repisa */
.hero-stage::after {
  content: ""; position: absolute; z-index: -1;
  left: 0; right: 0; bottom: 0; height: 19%;
  background: linear-gradient(180deg, #DDD5C7 0%, #E2DACD 100%);
}

.stage-item {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 18px 16px rgba(60, 44, 24, 0.22)) drop-shadow(0 4px 4px rgba(60, 44, 24, 0.12));
}
.stage-center { width: 31%; left: 34.5%; bottom: 16%; z-index: 1; }
.stage-left   { width: 32%; left: 7%;  bottom: 11.5%; z-index: 2; }
.stage-right  { width: 29%; right: 7%; bottom: 11.5%; z-index: 2; }

.hero-chip {
  position: absolute; left: -32px; top: 48px; z-index: 3;
  display: grid; gap: 2px;
  min-width: 230px;
  padding: 18px 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -20px rgba(28, 27, 25, 0.25);
}
.chip-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.hero-chip strong { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.2; }
.hero-chip small { font-size: 13px; color: var(--muted); }

/* Brand strip ------------------------------------------------------------- */

.brand-strip { border-block: 1px solid var(--line); }

.brand-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding-block: 24px;
}

.brand-logo { width: 60px; height: auto; mix-blend-mode: multiply; }

.brand-text { font-size: 15px; color: var(--ink-soft); max-width: 52ch; }
.brand-text strong { font-weight: 600; color: var(--ink); }

.brand-names {
  font-family: var(--serif); font-style: italic;
  font-size: 18px; color: var(--muted);
  text-align: right;
}

/* Products --------------------------------------------------------------- */

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.pill {
  padding: 9px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  transition: border-color .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 28px;
}

.card { display: flex; flex-direction: column; }

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: radial-gradient(120% 90% at 50% 35%, #F5F1EA 0%, #EAE4DA 100%);
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 16% 18% 18%;
  filter: drop-shadow(0 16px 14px rgba(60, 44, 24, 0.18)) drop-shadow(0 3px 3px rgba(60, 44, 24, 0.10));
  transition: transform .8s var(--ease);
}
.card:hover .card-media img { transform: translateY(-6px) scale(1.03); }

.tag {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.9);
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
}

.card-body { display: flex; flex-direction: column; flex: 1; padding-top: 20px; }

.card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.card-head h3 { font-size: 26px; font-weight: 600; line-height: 1.15; }
.format { font-size: 13px; color: var(--muted); white-space: nowrap; }

.card-body p { font-size: 14.5px; color: var(--muted); margin-bottom: 20px; }

.btn-add {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; min-height: 48px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 600;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-add svg { width: 18px; height: 18px; }
.btn-add:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Editorial -------------------------------------------------------------- */

.editorial { background: var(--dark); color: var(--dark-ink); padding-block: var(--section-y); }

.editorial-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.editorial-media { position: relative; padding-right: 14%; padding-bottom: 6%; }
.editorial-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.editorial-product {
  position: absolute; right: 2%; bottom: 0;
  width: 25%;
  filter: drop-shadow(0 24px 22px rgba(0, 0, 0, 0.45));
}

.editorial .eyebrow { color: var(--accent-light); }
.editorial h2 { color: var(--dark-ink); margin-bottom: 24px; }
.editorial-copy p:not(.eyebrow) { color: var(--dark-muted); font-size: 17px; max-width: 42ch; margin-bottom: 36px; }

/* Ingredients ------------------------------------------------------------ */

.ingredients-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.ingredients-intro { position: sticky; top: 120px; }
.ingredients-intro h2 { margin-bottom: 20px; }
.ingredients-intro p.muted { max-width: 38ch; font-size: 17px; }

.ingredient-list li {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.ingredient-list li:last-child { border-bottom: 1px solid var(--line); }

.num { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.06em; }

.ingredient-list h3 { font-size: 28px; line-height: 1.15; margin-bottom: 6px; }
.ingredient-list h3 i { font-size: 18px; color: var(--muted); margin-left: 6px; font-weight: 500; }
.ingredient-list p { font-size: 15px; color: var(--muted); }

.in {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* Values ----------------------------------------------------------------- */

.values { background: var(--surface); padding-block: clamp(56px, 7vw, 88px); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}

.value svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 18px; stroke-width: 1.3; }
.value h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: 0; margin-bottom: 6px; }
.value p { font-size: 14.5px; color: var(--muted); max-width: 30ch; }

/* Newsletter ------------------------------------------------------------- */

.newsletter {
  text-align: center;
  padding: clamp(48px, 7vw, 88px) var(--gutter);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.newsletter h2 { margin-bottom: 16px; }
.newsletter p.muted { margin-inline: auto; max-width: 44ch; margin-bottom: 36px; }

.newsletter-form {
  display: flex; gap: 10px;
  max-width: 480px; margin-inline: auto;
}
.newsletter-form input {
  flex: 1; min-width: 0;
  min-height: 52px; padding: 0 22px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg);
  font-size: 15px;
}
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form input:focus { outline: none; border-color: var(--ink); }

/* Footer ----------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 88px); overflow: hidden; }

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}
.footer-about .logo { display: inline-block; margin-bottom: 14px; }
.footer-about p { font-size: 15px; max-width: 32ch; }

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 6px;
}
.footer-col a { font-size: 15px; color: var(--muted); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--ink); }

.disclaimer {
  font-size: 13px; line-height: 1.6; color: var(--muted);
  padding-block: 24px;
  border-top: 1px solid var(--line);
}

.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
  padding-block: 20px;
  border-top: 1px solid var(--line);
}

.footer-wordmark {
  font-family: var(--serif); font-weight: 600;
  font-size: min(12.4vw, 178px);
  line-height: 1; letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--surface-strong);
  padding-block: 8px clamp(16px, 3vw, 40px);
  user-select: none;
}
.footer-wordmark i { font-style: italic; font-weight: 500; }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1080px) {
  .main-nav { gap: 24px; }
  .brand-inner { grid-template-columns: auto 1fr; }
  .brand-names { display: none; }
}

@media (max-width: 900px) {
  .header-inner { height: 64px; }
  .menu-btn { display: inline-grid; margin-left: -10px; }
  .main-nav { display: none; }
  .logo { font-size: 24px; text-align: center; }
  .header-inner .logo { justify-self: center; }

  .hero-grid,
  .editorial-grid,
  .ingredients-grid { grid-template-columns: 1fr; }

  .hero-media { max-width: 520px; width: 100%; justify-self: center; }
  .hero-chip { left: 16px; top: 16px; min-width: 0; }

  .editorial-media { max-width: 560px; }

  .ingredients-intro { position: static; }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }

  .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-top { grid-template-columns: repeat(3, 1fr); }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .hide-sm { display: none; }

  .hero h1 { margin-bottom: 20px; }
  .lead { margin-bottom: 32px; }
  .hero-ctas .btn { flex: 1 1 100%; }

  .brand-inner { gap: 16px; padding-block: 20px; }
  .brand-logo { width: 48px; }
  .brand-text { font-size: 14px; }

  .section-head { margin-bottom: 20px; }
  .section-head .link-arrow { display: none; }
  .pills { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; margin-bottom: 28px; }
  .pills::-webkit-scrollbar { display: none; }
  .pill { white-space: nowrap; }

  .product-grid { gap: 32px 12px; }
  .tag { top: 8px; left: 8px; padding: 4px 8px; font-size: 9.5px; }
  .card-body { padding-top: 14px; }
  .card-head { flex-direction: column; gap: 2px; margin-bottom: 14px; }
  .card-head h3 { font-size: 21px; }
  .card-body p { display: none; }
  .btn-add { min-height: 42px; padding: 0 14px; font-size: 13px; }

  .ingredient-list li { grid-template-columns: 32px 1fr; gap: 12px; padding-block: 22px; }
  .ingredient-list h3 { font-size: 24px; }
  .ingredient-list h3 i { display: block; margin-left: 0; font-size: 16px; }
  .in { grid-column: 2; }

  .values-grid { gap: 32px 20px; }

  .newsletter-form { flex-direction: column; }

  .footer-top { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
}

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