/* ============================================================
   styles.css — custom, complementa Tailwind CDN
   ============================================================ */

:root {
  --bosque: #2A5550;
  --nude:   #E8D4CC;
  --melon:  #E89968;
  --crema:  #F7EDE7;
}

html { scroll-behavior: smooth; }

body {
  font-family: Helvetica, Arial, system-ui, sans-serif;
  color: var(--bosque);
  background: var(--nude);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-serif {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
}

/* ---------- Navbar ---------- */
[data-navbar] {
  background: rgba(232, 212, 204, 0);
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
[data-navbar].is-scrolled {
  background: rgba(232, 212, 204, .88);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  box-shadow: 0 4px 24px -16px rgba(42, 85, 80, .25);
}

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Formas orgánicas decorativas ---------- */
.organic-blob {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
  filter: blur(.5px);
}

/* ---------- WhatsApp floating button ---------- */
.wa-fab {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right, 1.25rem));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 1.25rem));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: #25D366;
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(37, 211, 102, .55), 0 2px 6px rgba(0,0,0,.12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(37, 211, 102, .65), 0 2px 6px rgba(0,0,0,.15);
}
.wa-fab::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  background: rgba(37, 211, 102, .35);
  z-index: -1;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(.85); opacity: .7; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab::after { animation: none; }
}

/* ---------- Cart drawer ---------- */
[data-cart-drawer] {
  transition: transform .3s cubic-bezier(.32,.72,0,1);
}

/* ---------- Product card hover ---------- */
.producto-card {
  transition: transform .25s ease, box-shadow .25s ease;
}
.producto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -28px rgba(42, 85, 80, .35);
}

/* ---------- Botón principal ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  background: var(--bosque);
  color: #fff;
  border-radius: 9999px;
  font-weight: 500;
  letter-spacing: .02em;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  cursor: pointer;
}
.btn-primary:hover {
  background: #234742;
  box-shadow: 0 10px 24px -12px rgba(42, 85, 80, .5);
}
.btn-primary:focus-visible {
  outline: 3px solid rgba(232, 153, 104, .55);
  outline-offset: 3px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.45rem;
  background: transparent;
  color: var(--bosque);
  border: 1.5px solid var(--bosque);
  border-radius: 9999px;
  font-weight: 500;
  transition: background .2s ease, color .2s ease;
  cursor: pointer;
}
.btn-outline:hover {
  background: var(--bosque);
  color: #fff;
}

/* ---------- Pills / chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  padding: .4rem .9rem;
  border-radius: 9999px;
  font-size: .85rem;
  background: rgba(42, 85, 80, .08);
  color: var(--bosque);
  border: 1px solid rgba(42, 85, 80, .12);
  transition: background .2s ease;
}
.chip-filter {
  cursor: pointer;
}
.chip-filter.is-active {
  background: var(--bosque);
  color: #fff;
  border-color: var(--bosque);
}

/* ---------- Tabular nums for prices ---------- */
.tabular-nums { font-variant-numeric: tabular-nums; }

/* ---------- Focus rings consistentes ---------- */
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(232, 153, 104, .55);
  outline-offset: 2px;
  border-radius: 6px;
}
