/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #FFF7F0;
  --bg-2: #FFEBDB;
  --ink: #14110F;
  --ink-soft: #4B4540;
  --ink-mute: #6B635C;
  --accent: #FF6F0A;       /* naranja del logo */
  --accent-deep: #C74B00;  /* naranja para texto sobre claro (contraste AA) */
  --sun: #FFC24B;
  --peach: #FF9E7A;
  --glass: rgba(255, 255, 255, 0.62);
  --line: rgba(20, 17, 15, 0.12);
  --radius: 24px;
  --shadow: 0 18px 50px -18px rgba(199, 75, 0, 0.35);
  --display: "Montserrat", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1rem, 4vw, 2rem);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 90px; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; text-wrap: balance; line-height: 1.08; letter-spacing: -0.025em; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--ink); color: #fff; z-index: 9999; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.glass {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
@supports (backdrop-filter: blur(20px)) {
  .glass {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
  }
}

/* =============================================================
   4. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 46px; padding: 0 1.3rem; border-radius: 999px;
  font-family: var(--display); font-weight: 800; font-size: .95rem; letter-spacing: -0.01em;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .25s;
}
.btn-lg { min-height: 56px; padding: 0 1.8rem; font-size: 1.05rem; }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -10px rgba(20, 17, 15, .6); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(20, 17, 15, .7); }
.btn-glass { background: rgba(255, 255, 255, .7); color: var(--ink); border: 1.5px solid var(--ink); }
.btn-glass:hover { background: #fff; transform: translateY(-2px); }

.kicker { font-family: var(--display); font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.kicker-dark { color: var(--accent-deep); }

/* =============================================================
   5. Nav
   ============================================================= */
.nav { position: fixed; inset: 14px 0 auto 0; z-index: 50; padding-inline: var(--gutter); }
.nav-inner {
  max-width: 1180px; margin-inline: auto; display: flex; align-items: center; gap: 1rem;
  padding: 8px 10px 8px 16px; border-radius: 999px; box-shadow: 0 10px 40px -16px rgba(20, 17, 15, .35);
  transition: box-shadow .3s;
}
.nav.is-solid .nav-inner { box-shadow: 0 14px 44px -14px rgba(20, 17, 15, .5); }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-name { font-family: var(--display); font-weight: 800; letter-spacing: .06em; font-size: 1rem; }
.nav-links { display: none; margin-left: auto; gap: 1.6rem; font-weight: 600; font-size: .95rem; }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { margin-left: auto; min-height: 42px; }
.nav-cta span { display: none; }

/* =============================================================
   6. Hero
   ============================================================= */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(to bottom, transparent, var(--bg)); z-index: -1; pointer-events: none; }
.hero-mesh {
  position: absolute; inset: -10%; z-index: -1;
  background:
    radial-gradient(40% 50% at 18% 28%, var(--accent) 0%, transparent 70%),
    radial-gradient(38% 46% at 82% 24%, var(--sun) 0%, transparent 70%),
    radial-gradient(44% 50% at 60% 90%, var(--peach) 0%, transparent 70%),
    var(--bg);
  filter: blur(36px) saturate(135%);
  animation: meshDrift 32s ease-in-out infinite;
}
@keyframes meshDrift { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.12) rotate(8deg); } }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-title { font-size: clamp(2.3rem, 7.4vw, 4.6rem); margin-block: 1rem 1.2rem; max-width: 16ch; }
.hl { position: relative; white-space: nowrap; background: linear-gradient(transparent 62%, rgba(255, 255, 255, .85) 62% 92%, transparent 92%); padding-inline: .1em 0; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--ink); max-width: 46ch; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-art { position: relative; justify-self: center; width: min(360px, 78%); }
.hero-logo { width: 100%; filter: drop-shadow(0 40px 50px rgba(120, 40, 0, .45)); animation: bob 6s ease-in-out infinite; transform: rotate(-4deg); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.chip { position: absolute; padding: .6rem 1rem; border-radius: 999px; font-weight: 600; font-size: .85rem; white-space: nowrap; box-shadow: 0 12px 30px -14px rgba(20, 17, 15, .5); }
.chip-a { left: -6%; top: 6%; }
.chip-b { right: -4%; bottom: 8%; }

/* =============================================================
   7. Sections
   ============================================================= */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-2); }
.section-head { margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.8rem, 5vw, 3rem); margin-top: .4rem; }

.toolbar { display: flex; flex-wrap: wrap; gap: .8rem; padding: 10px; border-radius: 20px; margin-bottom: 1rem; box-shadow: var(--shadow); }
.search { flex: 1 1 240px; display: flex; align-items: center; gap: .6rem; background: #fff; border-radius: 14px; padding: 0 14px; border: 1.5px solid var(--line); }
.search input { flex: 1; min-height: 46px; border: 0; outline: 0; background: transparent; min-width: 0; }
.search:focus-within { border-color: var(--ink); }
.sort select { min-height: 46px; padding: 0 14px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); cursor: pointer; }

.chips { display: flex; gap: .5rem; overflow-x: auto; overflow-y: visible; padding: 6px 2px 14px; margin-bottom: .6rem; scrollbar-width: thin; }
.chip-btn { flex: 0 0 auto; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-weight: 600; font-size: .92rem; transition: background .2s, border-color .2s, transform .3s var(--ease-out); }
.chip-btn:hover { transform: translateY(-2px); border-color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--ink); color: var(--ink); }

/* Product grid */
.grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.card { position: relative; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: flex; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.card[hidden] { display: none; }
.card-link { display: flex; flex-direction: column; width: 100%; }
.card-media { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(135deg, #FFE9D6, #FFD0A8); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; transition: transform .6s var(--ease-out); }
.card-media img.ph { width: 46%; height: auto; padding: 0; mix-blend-mode: normal; opacity: .9; }
.card:hover .card-media img { transform: scale(1.07); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; }
.badge-sample { left: auto; right: 12px; background: #fff; color: var(--ink); border: 1.5px dashed var(--ink); }
.card-body { display: flex; flex-direction: column; gap: .35rem; padding: 18px 18px 20px; flex: 1; }
.card-cat { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); }
.card-title { font-size: 1.12rem; line-height: 1.2; letter-spacing: -0.015em; }
.card-desc { font-size: .93rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: .6rem; }
.price strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; letter-spacing: -0.03em; }
.price .price-none { font-size: 1.05rem; }
.price small { display: block; margin-top: 4px; font-size: .72rem; color: var(--ink-mute); }
.btn-go { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; background: var(--accent); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: .85rem; border: 1.5px solid var(--ink); transition: background .25s, color .25s, gap .3s var(--ease-out); white-space: nowrap; }
.card:hover .btn-go { background: var(--ink); color: #fff; gap: .7rem; }
.empty, .no-results { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); font-weight: 500; grid-column: 1 / -1; }

.steps { display: grid; gap: 1rem; }
.step { padding: 26px; border-radius: var(--radius); box-shadow: var(--shadow); }
.step-n { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--accent); -webkit-text-stroke: 1.5px var(--ink); }
.step h3 { font-size: 1.3rem; margin: .8rem 0 .4rem; }
.step p { color: var(--ink-soft); }
.disclosure { margin-top: 1.6rem; max-width: 70ch; font-size: .95rem; color: var(--ink-soft); }

/* =============================================================
   8. Footer
   ============================================================= */
.footer { background: var(--ink); color: #F4EEE8; padding: 48px 0; }
.footer-inner { display: grid; gap: 1.2rem; }
.footer .brand-name { color: #fff; }
.footer-legal { font-size: .85rem; color: #C9BFB5; max-width: 72ch; }
.footer-ig { font-family: var(--display); font-weight: 800; color: var(--accent); }
.footer-ig:hover { text-decoration: underline; }

/* =============================================================
   9. Reveal
   ============================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =============================================================
   10. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .nav-cta span { display: inline; }
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-legal { grid-column: 1 / -1; order: 3; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { margin-left: 0; }
  .hero { padding: 170px 0 110px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   11. Reduced motion: solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-logo { animation: none; }
}
