/* ==========================================================================
   Sazónica — estilos globales (mobile-first)
   Paleta extraída del mockup. Los hex finales se confirmarán con la marca.
   ========================================================================== */

:root {
  /* Brand */
  --color-amber: #F2A20E;
  --color-amber-dark: #D88F08;
  --color-lime: #B8C92C;
  --color-lime-dark: #9DAD25;
  --color-cta: #E94F2A;
  --color-cta-hover: #CC3F1C;
  --color-dark: #15201A;

  /* Neutrals */
  --color-bg: #FFFFFF;
  --color-cream: #FBF8F1;
  --color-text: #1A1A1A;
  --color-muted: #6B7280;
  --color-border: #ECECEC;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --tap-min: 44px;
  --radius: 14px;
}

/* Reset */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; }

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.5;
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0.95rem 2.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--cta {
  background: var(--color-cta);
  color: white;
}
.btn--cta:hover { background: var(--color-cta-hover); }

/* ==========================================================================
   Nav (mobile-first: hamburguesa por defecto, menú expandido en >= 720px)
   ========================================================================== */

.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  padding: 1rem 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav__logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: white;
  color: var(--color-cta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.nav__toggle {
  width: var(--tap-min);
  height: var(--tap-min);
  background: transparent;
  border: 0;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav.is-open .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 1rem;
  right: 1rem;
  background: rgba(21, 32, 26, 0.96);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 0.75rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.nav.is-open .nav__menu { display: flex; }

.nav__menu li {
  width: 100%;
}
.nav__link {
  display: block;
  width: 100%;
  min-height: var(--tap-min);
  padding: 0.75rem 1rem;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.nav__link:hover { background: rgba(255, 255, 255, 0.08); }

.nav__lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.25rem;
}
.nav__lang-link {
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  padding: 0 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.nav__lang-link.is-active {
  color: white;
  font-weight: 700;
}

@media (min-width: 720px) {
  .nav { padding: 1.5rem 0; }
  .nav__toggle { display: none; }
  .nav__menu {
    position: static;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    display: flex;
  }
  .nav__menu li { width: auto; }
  .nav__link {
    min-height: 0;
    padding: 0;
    color: white;
    opacity: 0.92;
    font-size: 0.95rem;
    border-radius: 0;
  }
  .nav__link:hover { background: transparent; opacity: 1; }
  .nav__lang {
    border: 0;
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.7);
  }
  .nav__lang-link { min-height: 0; padding: 0; color: rgba(255, 255, 255, 0.7); }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: var(--color-amber);
  position: relative;
  padding-top: 5rem;
  overflow: hidden;
}
.hero__title {
  text-align: center;
  color: white;
  font-size: clamp(2rem, 9vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 auto;
  max-width: 14ch;
}
.hero__subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  margin: 1rem auto 0;
  max-width: 38ch;
  padding: 0 0.5rem;
}
.hero__jars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.4rem;
  margin: 2rem auto 0;
  padding: 0 0.5rem;
  max-width: 900px;
}
.hero__jar {
  width: clamp(44px, 13vw, 130px);
  height: clamp(140px, 36vw, 300px);
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 100%);
  border: 2px dashed rgba(255, 255, 255, 0.35);
  border-radius: 12px 12px 6px 6px;
  position: relative;
}
.hero__jar::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 12px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 4px 4px 2px 2px;
}
.hero__jar--tall { height: clamp(165px, 42vw, 340px); }
.hero__jar--center {
  height: clamp(180px, 48vw, 380px);
  width: clamp(54px, 16vw, 150px);
  background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.1) 100%);
}

.hero__band {
  background: var(--color-lime);
  padding: 2.5rem 1rem 3rem;
  margin-top: -1.5rem;
  position: relative;
  display: flex;
  justify-content: center;
}

@media (min-width: 720px) {
  .hero { padding-top: 7rem; }
  .hero__jars { gap: 0.75rem; margin-top: 3rem; }
  .hero__band { padding: 3rem 0 4rem; margin-top: -2rem; }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.products,
.beneficios {
  padding: 3.5rem 0;
}
@media (min-width: 720px) {
  .products,
  .beneficios { padding: 5rem 0; }
}

.products { background: var(--color-bg); }
.beneficios { background: var(--color-cream); }

.section__title {
  text-align: center;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.section__subtitle {
  text-align: center;
  color: var(--color-muted);
  margin: 0 auto 2.5rem;
  max-width: 50ch;
  padding: 0 0.5rem;
}

/* Products grid */
.products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 560px) {
  .products__grid { gap: 1.5rem; }
}
@media (min-width: 900px) {
  .products__grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 560px) {
  .product-card { padding: 1.5rem; }
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}
.product-card__image {
  aspect-ratio: 1;
  background: var(--color-cream);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__image-placeholder {
  width: 55%;
  height: 70%;
  background: linear-gradient(180deg, #E8E2D0 0%, #D6CFB8 100%);
  border-radius: 10px 10px 6px 6px;
  position: relative;
}
.product-card__image-placeholder::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 10px;
  background: #B8B19A;
  border-radius: 3px;
}
.product-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}
.product-card__tagline {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin: 0;
}
.product-card--unavailable { opacity: 0.55; }

/* Beneficios */
.beneficios__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .beneficios__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}
.beneficio { text-align: center; padding: 0 0.5rem; }
.beneficio__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--color-lime);
}
.beneficio:nth-child(1) .beneficio__icon { background: var(--color-amber); }
.beneficio:nth-child(2) .beneficio__icon { background: var(--color-lime); }
.beneficio:nth-child(3) .beneficio__icon { background: var(--color-cta); }
.beneficio__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.beneficio__body {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

/* Nosotros */
.nosotros {
  max-width: 60ch;
  margin: 3rem auto 0;
  text-align: center;
  padding: 0 0.5rem;
}
.nosotros__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.nosotros__body {
  color: var(--color-muted);
  line-height: 1.7;
  margin: 0;
  font-size: 0.95rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1.5rem;
}
@media (min-width: 720px) {
  .footer { padding: 3rem 0 2rem; }
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 560px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}
.footer__heading {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.footer__text {
  font-size: 0.9rem;
  margin: 0 0 0.4rem;
}
.footer__text--muted { opacity: 0.7; }
.footer__link {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 0.4rem 0;
  min-height: var(--tap-min);
  transition: color 0.15s ease;
}
.footer__link:hover { color: white; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}
