/* Kym's Pet — sitio estático, 2026 */

:root {
  --cream: #f6f0e6;
  --cream-dark: #ebe3d4;
  --paper: #fbf8f2;
  --ink: #2a1a12;
  --ink-soft: #5c4336;
  --muted: #7a6356;
  --brown: #3c2418;
  --rose: #c57b6e;
  --rose-deep: #a35c52;
  --blush: #e8c9c0;
  --line: #d9cbb8;
  --gold: #b08968;
  --white: #fffcf7;
  --shadow: 0 18px 40px rgba(42, 26, 18, 0.08);
  --radius: 18px;
  --max: 1180px;
  --header: 4.5rem;
  --font-serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-sans: "Outfit", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--brown); }
:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 96%, white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(42, 26, 18, 0.04);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  width: 3rem;
  height: 3rem;
}
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand-tag {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-primary {
  background: var(--brown);
  color: var(--cream);
}
.btn-primary:hover { background: var(--ink); color: var(--cream); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--white); }
.btn-rose {
  background: var(--rose-deep);
  color: var(--white);
}
.btn-rose:hover { background: #8d4a41; color: var(--white); }
.btn svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }

/* ---------- Hero ---------- */
.hero {
  padding: 2.5rem 0 4.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-deep);
  font-weight: 500;
  margin: 0 0 1.1rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.4vw, 4.35rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.3rem;
  color: var(--ink);
}
.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-figure {
  position: relative;
  margin: 0;
}
.hero-figure img {
  width: 100%;
  height: min(78vh, 820px);
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 2px 2px 180px 2px;
  box-shadow: var(--shadow);
}
.hero-caption {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- Sections ---------- */
section { padding: 4.5rem 0; scroll-margin-top: calc(var(--header) + 0.6rem); }
.section-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-deep);
  font-weight: 500;
  margin: 0 0 0.7rem;
}
h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.015em;
}
.section-intro {
  max-width: 40rem;
  color: var(--ink-soft);
  margin: 0 0 2.6rem;
}

.band {
  background: var(--brown);
  color: var(--cream);
  padding: 4.75rem 0;
}
.band h2 { color: var(--cream); }
.band .section-kicker { color: var(--blush); }
.band .section-intro { color: color-mix(in srgb, var(--cream) 80%, #c4a890); }

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
}
.pillar-num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--rose);
  font-size: 1.15rem;
  display: block;
  margin-bottom: 0.45rem;
}
.pillar h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}
.pillar p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* Traceability */
.story {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.2rem;
  align-items: center;
}
.story ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.story li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.9rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.story li:last-child { border-bottom: 0; }
.story li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--rose-deep);
  font-size: 1.15rem;
}
.story li p { margin: 0; color: var(--ink-soft); }
.story-photo {
  margin: 0;
}
.story-photo img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  object-fit: contain;
  background: var(--cream-dark);
  box-shadow: var(--shadow);
}
.story-photo figcaption {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 1.25rem;
  align-items: start;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card .product-media {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem;
  aspect-ratio: 3 / 4;
}
.product-card picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}
.product-card .body {
  padding: 1.15rem 1.15rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.product-card h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0;
}
.product-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}
.product-price {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0.35rem 0 0.7rem;
  color: var(--ink);
}
.product-price .note {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.15rem;
}
.product-card .btn { width: 100%; margin-top: auto; }

.price-footnote {
  margin: 2rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}


/* Cómo lo hacemos / frescura */
.craft-intro-grid {
  display: block;
  max-width: 40rem;
  margin-bottom: 2.4rem;
}
.craft-copy p { color: var(--ink-soft); margin: 0 0 1rem; }
.craft-copy p:last-child { margin-bottom: 0; }
.craft-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
.craft-photos .bag-figure {
  max-width: 22rem;
}
.craft-photos figure { margin: 0; }
.craft-photos img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  background: var(--cream-dark);
  box-shadow: var(--shadow);
}
.craft-photos figcaption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.fresh-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
}
.fresh-points article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.3rem;
}
.fresh-points h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}
.fresh-points p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Delivery strip */
.delivery {
  padding: 0 0 4.5rem;
}
.delivery p {
  margin: 0;
  padding: 1.15rem 1.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.98rem;
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
}

/* Family */
.family-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: start;
}
.family-grid figure { margin: 0; }
.family-grid img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  background: color-mix(in srgb, var(--brown) 80%, black);
}
.family-grid .wide {
  grid-column: auto;
  grid-row: auto;
}
.family-grid .wide img { height: auto; min-height: 0; }
.family-grid figcaption {
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--cream) 78%, #c4a890);
  margin-top: 0.45rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
}
.contact-list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.contact-list li { margin: 0 0 1rem; }
.contact-list span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.socials { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.socials a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.1rem;
  font-size: 0.95rem;
}

.form {
  display: grid;
  gap: 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 500;
}
.form input, .form textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
.form textarea { min-height: 8rem; resize: vertical; }
.form .hint { font-size: 0.8rem; color: var(--muted); margin: 0; }
.form .btn { justify-self: start; }

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 60;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #3c2418;
  color: #f6f0e6;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(42, 26, 18, 0.25);
  text-decoration: none;
}
.wa-float:hover { background: var(--ink); color: var(--cream); }
.wa-float svg { width: 1.55rem; height: 1.55rem; fill: currentColor; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Legal page */
.legal { padding: 6rem 0 5rem; max-width: 42rem; }
.legal h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 1.5rem;
}
.legal h2 { font-size: 1.6rem; margin: 2rem 0 0.6rem; }
.legal p { color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .story, .contact-grid, .craft-intro-grid, .craft-photos, .fresh-points { grid-template-columns: 1fr; gap: 2rem; }
  .hero-figure img { height: min(64vh, 560px); border-radius: 2px 2px 80px 2px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .family-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .family-grid .wide { grid-column: auto; grid-row: auto; }
  .family-grid .wide img { min-height: 0; }
  .hero { padding-top: 1.5rem; }
}

@media (max-width: 720px) {
  .wrap { width: min(var(--max), calc(100% - 1.6rem)); }
  .nav-toggle { display: inline-flex; }
  .nav-panel {
    position: fixed;
    inset: var(--header) 0 0 0;
    background: var(--cream);
    z-index: 45;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    padding: 1.5rem;
  }
  .nav.is-open .nav-panel {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .nav-links .btn { margin-top: 0.5rem; }
  .pillars, .product-grid, .family-grid { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: 5.5rem; }
  .hero h1 { font-size: clamp(2.15rem, 10vw, 3rem); }
  section { padding: 3.4rem 0; }
  .wa-float { right: 0.85rem; bottom: 0.85rem; }
}

@media (min-width: 721px) {
  .nav-panel {
    position: static;
    inset: auto;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    padding: 0;
    background: transparent;
  }
}
body.nav-open { overflow: hidden; }

/* Fix: header CTA keeps light text */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--cream); }
