:root {
  --bg: oklch(15% 0.02 50);
  --bg-raise: oklch(19% 0.024 50);
  --surface: oklch(23% 0.026 50);
  --line: oklch(70% 0.02 50 / 16%);
  --cream: oklch(96% 0.015 75);
  --cream-dim: oklch(74% 0.03 65);
  --caramel: oklch(74% 0.14 58);
  --caramel-deep: oklch(58% 0.13 52);
  --olive: oklch(60% 0.06 124);
  --panel: oklch(93% 0.02 75);
  --panel-text: oklch(24% 0.02 50);
  --espresso: oklch(22% 0.045 48);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'General Sans', system-ui, sans-serif;

  --container: 1240px;
  --radius: 6px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.accent {
  font-style: italic;
  font-weight: 500;
  color: var(--caramel);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--caramel);
  margin: 0 0 16px;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--caramel);
  outline-offset: 3px;
}

/* Buttons & links */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn--solid { background: var(--caramel); color: oklch(18% 0.02 50); }
.btn--solid:hover { background: var(--caramel-deep); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--cream); }
.btn--ghost:hover { border-color: var(--caramel); color: var(--caramel); }
.btn--lg { padding: 18px 40px; font-size: 1.05rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: gap .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.link-arrow::after { content: '\2192'; }
.link-arrow:hover { border-color: var(--caramel); color: var(--caramel); gap: 14px; }

/* Reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Nav */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: oklch(15% 0.02 50 / 70%);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
  position: relative;
}
.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav__logo-img {
  height: 52px;
  width: 52px;
  object-fit: cover;
  border-radius: 10px;
}
.nav__links {
  display: flex;
  gap: 32px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav__links a { text-decoration: none; color: var(--cream-dim); transition: color .3s var(--ease); }
.nav__links a:hover { color: var(--caramel); }
.nav__links .nav__cta { display: none; }
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 76px;
  overflow: hidden;
  background: url('assets/hero/hero-productos-c.jpg') center 40% / cover no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    oklch(15% 0.02 50 / 55%) 0%,
    oklch(15% 0.02 50 / 35%) 45%,
    oklch(15% 0.02 50 / 80%) 100%);
}
.hero__glow {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 78% 22%, oklch(55% 0.15 55 / 0.28), transparent 55%),
    radial-gradient(circle at 12% 88%, oklch(50% 0.08 125 / 0.15), transparent 55%);
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform .6s var(--ease);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: 760px;
  margin: 0;
  margin-left: max(24px, calc((100vw - var(--container)) / 2 + 24px));
  padding: 80px 0;
}
.hero__lead {
  font-size: 1.15rem;
  color: var(--cream-dim);
  max-width: 520px;
  margin-bottom: 40px;
}
.hero__actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }

.hero__inner .reveal:nth-child(1) { transition-delay: .1s; }
.hero__inner .reveal:nth-child(2) { transition-delay: .25s; }
.hero__inner .reveal:nth-child(3) { transition-delay: .4s; }

.hero__gooey {
  position: relative;
  width: 100%;
  height: clamp(5rem, 15.5vw, 12.25rem);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 28px;
}
.hero__gooey-filter { position: absolute; width: 0; height: 0; }
.hero__gooey-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  filter: url(#gooey-threshold);
}
.hero__gooey-text {
  position: absolute;
  left: 0;
  display: inline-block;
  white-space: nowrap;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  color: var(--cream);
  font-size: clamp(3.25rem, 10vw, 8rem);
  letter-spacing: -0.01em;
  opacity: 0;
  user-select: none;
}

/* Marquee */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-raise);
  overflow: hidden;
  padding: 18px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--cream-dim);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* About */

.about { padding: 120px 0; background: var(--panel); color: var(--panel-text); }
.about .eyebrow, .about .accent { color: var(--caramel-deep); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr;
  gap: 64px;
  align-items: center;
}
.about__media {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 8px;
  border-radius: 20px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  box-shadow:
    0 1px 0 oklch(96% 0.015 75 / 6%) inset,
    0 40px 80px -30px oklch(15% 0.02 50 / 55%),
    0 14px 28px -16px oklch(15% 0.02 50 / 45%);
}
.about__media::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 14px;
  background: linear-gradient(160deg, oklch(58% 0.13 52 / 55%) 0%, oklch(15% 0.02 50 / 55%) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.about__media img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  filter: grayscale(20%) contrast(1.02);
}
.about__text h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 24px; }
.about__text p { color: var(--panel-text); opacity: .75; max-width: 480px; margin: 0 0 16px; }
.about__text p:last-child { margin-bottom: 0; }

/* Products */

.products { padding: 120px 0; background: var(--bg-raise); border-top: 1px solid var(--line); }
.products__title { font-size: clamp(2rem, 4.5vw, 3.25rem); margin: 0 auto 48px; max-width: 600px; text-align: center; }

/* Product category tabs (transitions-dev: tabs-sliding) */
:root {
  --tabs-dur: 250ms;
  --tabs-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tabs-text-muted: var(--cream-dim);
  --tabs-text-active: oklch(18% 0.02 50);
  --tabs-bar-bg: var(--surface);
  --tabs-pill-bg: var(--caramel);
}
.products__tabs {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px;
  width: max-content;
  margin: 0 auto 48px;
  padding: 4px;
  border-radius: 100px;
  background: var(--tabs-bar-bg);
  border: 1px solid var(--line);
}
.t-tab {
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  height: 38px;
  padding: 0 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--tabs-text-muted);
  cursor: pointer;
  border-radius: 100px;
  z-index: 1;
  transition: color var(--tabs-dur) var(--tabs-ease);
}
.t-tab:not([aria-selected="true"]):hover,
.t-tab[aria-selected="true"] { color: var(--tabs-text-active); }
.t-tabs-pill {
  position: absolute;
  top: 4px;
  left: 0;
  height: 38px;
  width: 0;
  background: var(--tabs-pill-bg);
  border-radius: 100px;
  transform: translateX(0);
  transition: transform var(--tabs-dur) var(--tabs-ease), width var(--tabs-dur) var(--tabs-ease);
  will-change: transform, width;
  z-index: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .t-tabs-pill, .t-tab { transition: none !important; }
}

/* Product panel swap */
.product-cat[data-panel] {
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.product-cat[data-panel]:not(.is-active) { display: none; }
.product-cat[data-panel].panel-anim { opacity: 0; transform: translateY(10px); }
@media (prefers-reduced-motion: reduce) {
  .product-cat[data-panel] { transition: none !important; }
}

.tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--caramel);
  border: 1px solid var(--caramel-deep);
  border-radius: 100px;
  padding: 4px 12px;
}

.products__frame {
  position: relative;
  margin: 0 auto;
  max-width: 840px;
  padding: 8px 32px;
  background: var(--espresso);
  border: 3px solid var(--cream);
  border-radius: 28px;
  box-shadow: 0 32px 64px oklch(15% 0.02 50 / 45%);
  transform: rotate(-0.6deg);
}

.product-cat {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid oklch(96% 0.015 75 / 12%);
}
.product-cat:last-of-type { border-bottom: none; }

.product-cat__media {
  position: relative;
  flex: 0 0 200px;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--cream);
  transform: translateY(0) scale(1);
  box-shadow: 0 0 0 oklch(15% 0.02 50 / 0%);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.product-cat__media:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 18px 32px -12px oklch(15% 0.02 50 / 50%);
}
@media (prefers-reduced-motion: reduce) {
  .product-cat__media { transition: none !important; transform: none !important; }
  .product-cat__media:hover { transform: none; box-shadow: none; }
}
.product-cat__media .flavor-slider__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.product-cat__media .flavor-slider__img.is-active { opacity: 1; }

.product-cat__body { flex: 1; min-width: 0; }
.product-cat__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.product-cat__title { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: clamp(1.4rem, 2.5vw, 2rem); color: var(--cream); margin: 0; }
.product-cat__head .tag { background: var(--bg-raise); }

.flavor-marquee {
  position: relative;
  height: 132px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}
.flavor-marquee__track {
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: marquee-vertical 14s linear infinite;
}
.flavor-marquee__item {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--cream-dim);
  letter-spacing: 0.02em;
  padding: 2px 0;
  transition: opacity .3s var(--ease);
}

@keyframes marquee-vertical {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.products__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 0;
}
.products__more p { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; margin: 0; color: var(--cream); }
.products__more .link-arrow { color: var(--cream); border-color: oklch(96% 0.015 75 / 25%); }
.products__more .link-arrow:hover { color: var(--caramel); border-color: var(--caramel); }

/* Shipping */

.shipping { background: var(--panel); color: var(--panel-text); padding: 100px 0; }
.shipping__inner { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.shipping__inner svg { flex-shrink: 0; width: 56px; height: 56px; color: var(--caramel-deep); }
.shipping h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 12px; }
.shipping p { max-width: 480px; opacity: .75; margin: 0 0 16px; }
.shipping .link-arrow { border-color: oklch(24% 0.02 50 / 30%); color: var(--panel-text); }
.shipping .link-arrow:hover { color: var(--caramel-deep); border-color: var(--caramel-deep); }

/* Locations */

.locations { position: relative; padding: 120px 0; overflow: hidden; }
.about, .products, .cta-final, .shipping { position: relative; overflow: hidden; }
.about::before, .products::before, .locations::before, .cta-final::before, .shipping::before {
  content: '';
  position: absolute;
  inset: -15%;
  z-index: 0;
  background:
    radial-gradient(circle at 88% 12%, oklch(58% 0.13 52 / 42%), transparent 55%),
    radial-gradient(circle at 8% 90%, oklch(60% 0.06 124 / 26%), transparent 55%);
  pointer-events: none;
  animation: locations-glow 18s ease-in-out infinite alternate;
}
.about::before, .cta-final::before, .shipping::before {
  background:
    radial-gradient(circle at 85% 15%, oklch(42% 0.1 50 / 60%), transparent 55%),
    radial-gradient(circle at 12% 85%, oklch(42% 0.1 50 / 50%), transparent 55%);
}
@keyframes locations-glow {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-5%, 4%) scale(1.15); }
}
.about .container, .products .container, .locations .container, .cta-final .container, .shipping .container { position: relative; z-index: 1; }
.locations__title { font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: 64px; max-width: 600px; }
.locations__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.location-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow:
    0 1px 0 oklch(96% 0.015 75 / 5%) inset,
    0 32px 64px -28px oklch(15% 0.02 50 / 50%);
}
.location-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.location-card p { color: var(--cream-dim); margin: 0 0 16px; }
.location-card .muted { font-size: 0.8rem; opacity: .6; }
.location-card__map {
  margin: 20px 0 16px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 10px;
  background: linear-gradient(135deg, var(--caramel-deep), var(--surface));
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.location-card__map:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 40px oklch(15% 0.02 50 / 45%);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.location-card__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  border-radius: 3px;
  filter: invert(90%) hue-rotate(180deg) grayscale(20%) brightness(0.95) contrast(0.9);
}

/* CTA final */

.cta-final { padding: 140px 0; text-align: center; background: var(--panel); color: var(--panel-text); }
.cta-final h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 16px; }
.cta-final .accent { color: var(--caramel-deep); }
.cta-final p { color: var(--panel-text); opacity: .75; margin: 0 0 40px; font-size: 1.1rem; }

/* Footer */

.footer { border-top: 1px solid var(--line); background: var(--bg-raise); padding: 0 0 48px; }
.footer__banner { position: relative; height: 280px; overflow: hidden; margin-bottom: 48px; }
.footer__banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.footer__banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(15% 0.02 50 / 10%) 0%, var(--bg-raise) 100%);
}
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer__links { display: flex; gap: 24px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer__links a { text-decoration: none; color: var(--cream-dim); }
.footer__links a:hover { color: var(--caramel); }
.footer__social a { color: var(--cream-dim); transition: color .3s var(--ease); }
.footer__social a:hover { color: var(--caramel); }
.footer__copy { width: 100%; text-align: center; color: var(--cream-dim); font-size: 0.8rem; margin-top: 24px; opacity: .6; }

/* WhatsApp flotante (mobile) */

.whatsapp-float {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px oklch(15% 0.02 50 / 40%);
  z-index: 40;
  transition: transform .3s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* Responsive */

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__media { order: -1; max-width: 320px; margin: 0 auto; }

  .products__frame { transform: none; padding: 8px 16px; border-radius: 20px; }
  .product-cat { flex-direction: column; align-items: flex-start; gap: 16px; }
  .product-cat__media { flex: 0 0 auto; width: 100%; aspect-ratio: 16/10; }
  .products__more { flex-direction: column; align-items: flex-start; }

  .locations__grid { grid-template-columns: 1fr; gap: 32px; }

  .nav__links {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0 24px;
    gap: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
  }
  .nav__links.is-open { max-height: 360px; padding: 24px; }
  .nav__links .nav__cta { display: inline-flex; }
  .nav__inner > .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .whatsapp-float { display: flex; }
}

@media (max-width: 540px) {
  .shipping__inner { text-align: center; flex-direction: column; }
  .shipping__inner svg { margin: 0 auto; }

  .footer__banner { height: 180px; }
  .footer__links { flex-wrap: wrap; justify-content: center; gap: 16px 24px; }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .hero__glow { transition: none; }
  .location-card__map, .location-card__map:hover { transition: none; transform: none; box-shadow: none; }
  .about::before, .products::before, .locations::before, .cta-final::before { animation: none; }

  .product-cat__media .flavor-slider__img { transition: none; }
  .flavor-marquee__track { animation: none; }
  .flavor-marquee__item { opacity: 1; }

  .hero__gooey { height: auto; }
  .hero__gooey-stage { filter: none; }
  .hero__gooey-text {
    filter: none !important;
    opacity: 1 !important;
  }
  .hero__gooey-text[data-gooey="1"] {
    position: static;
    white-space: normal;
    font-size: clamp(3.25rem, 10vw, 8rem);
  }
  .hero__gooey-text[data-gooey="2"] { display: none; }
}
