/* =========================================================================
   Vibo — app.css
   Importar DESPUÉS de tokens.css y components.css.
   Solo usa tokens del sistema. Sin dependencias externas.
   ========================================================================= */

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body.vibo-page { margin: 0; overflow-x: hidden; }
img, picture, svg { max-width: 100%; }
img { height: auto; }
:where(button, a) { -webkit-tap-highlight-color: transparent; }

.vibo-skip {
  position: fixed; left: 12px; top: 12px; z-index: 200;
  background: var(--vibo-ink); color: #fff; padding: 10px 16px;
  border-radius: 10px; text-decoration: none; font-weight: 600;
  transform: translateY(-160%); transition: transform .18s var(--vibo-ease);
}
.vibo-skip:focus { transform: translateY(0); }

.vibo-container { width: min(1200px, 100% - 2 * var(--vibo-gutter)); margin-inline: auto; }
.vibo-section { padding-block: clamp(56px, 9vw, 104px); }
.vibo-section--tight { padding-block: clamp(36px, 6vw, 64px); }

.vibo-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--vibo-green-strong);
}
.vibo-eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--vibo-green);
}

.vibo-sec-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 44px); }
.vibo-sec-head .vibo-eyebrow { margin-bottom: 14px; }
.vibo-sec-head p { color: var(--vibo-muted); margin: 12px 0 0; font-size: 17px; }

/* ---------- reveal on scroll (only hidden when JS is active) ---------- */
.js .vibo-reveal { opacity: 0; transform: translateY(16px); }
.js .vibo-reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .5s var(--vibo-ease), transform .5s var(--vibo-ease);
}

/* ---------- header ---------- */
.vibo-header {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--vibo-warm) 80%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--vibo-ease), background-color .2s var(--vibo-ease);
}
.vibo-header.is-scrolled {
  border-bottom-color: var(--vibo-border);
  background: color-mix(in srgb, var(--vibo-warm) 92%, transparent);
}
.vibo-header__inner {
  display: flex; align-items: center; gap: 14px;
  min-height: 60px; transition: min-height .2s var(--vibo-ease);
}
@media (min-width: 1024px) { .vibo-header__inner { min-height: 74px; } }
.vibo-header.is-scrolled .vibo-header__inner { min-height: 56px; }
@media (min-width: 1024px) { .vibo-header.is-scrolled .vibo-header__inner { min-height: 62px; } }

.vibo-header__logo { display: flex; align-items: center; flex: 0 0 auto; }
.vibo-header__logo img { width: 116px; height: auto; display: block; }
@media (min-width: 1024px) { .vibo-header__logo img { width: 148px; } }

.vibo-nav { margin-left: auto; display: none; align-items: center; gap: 30px; }
@media (min-width: 900px) { .vibo-nav { display: flex; } }
.vibo-nav a {
  color: var(--vibo-ink); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 6px 2px; position: relative;
}
.vibo-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--vibo-green); border-radius: 2px; transition: right .18s var(--vibo-ease);
}
.vibo-nav a:hover::after, .vibo-nav a:focus-visible::after { right: 0; }

.vibo-header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
@media (min-width: 900px) { .vibo-header__actions { margin-left: 0; } }

.vibo-icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--vibo-border); border-radius: 12px;
  background: var(--vibo-white); color: var(--vibo-ink); cursor: pointer;
  transition: border-color .16s var(--vibo-ease), transform .12s var(--vibo-ease);
}
.vibo-icon-btn:hover { border-color: var(--vibo-ink); }
.vibo-icon-btn:active { transform: scale(.96); }
.vibo-icon-btn svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .vibo-menu-btn { display: none; } }

.vibo-cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px;
  padding: 0 5px; border-radius: 999px; background: var(--vibo-green-strong); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
  transform: scale(0); transition: transform .2s var(--vibo-ease);
}
.vibo-cart-count.is-on { transform: scale(1); }
.vibo-cart-btn.bump { animation: vibo-bump .4s var(--vibo-ease); }
@keyframes vibo-bump { 0%,100% { transform: none; } 30% { transform: scale(1.12); } }

.vibo-mobile-menu {
  display: none; flex-direction: column; padding: 6px 0 14px;
  border-bottom: 1px solid var(--vibo-border);
}
.vibo-mobile-menu[data-open="true"] { display: flex; animation: vibo-menu-enter .18s var(--vibo-ease) both; }
.vibo-mobile-menu a { padding: 13px 4px; color: var(--vibo-ink); text-decoration: none; font-weight: 600; }

/* ---------- hero ---------- */
.vibo-hero { padding-block: clamp(36px, 6vw, 72px) clamp(32px, 5vw, 56px); }
.vibo-hero__grid { display: grid; gap: clamp(28px, 4vw, 52px); align-items: center; }
@media (min-width: 920px) { .vibo-hero__grid { grid-template-columns: 1.02fr .98fr; } }

.vibo-hero h1 {
  font-size: clamp(38px, 6.4vw, 68px); line-height: 1.04; letter-spacing: -.035em;
  font-weight: 700; margin: 16px 0 0; text-wrap: balance;
}
.vibo-hero__lead {
  font-size: clamp(16px, 1.6vw, 20px); line-height: 1.55; color: var(--vibo-muted);
  margin: 18px 0 28px; max-width: 46ch;
}
.vibo-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.vibo-hero__trust {
  margin-top: 22px; display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 13px; color: var(--vibo-muted);
}
.vibo-hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.vibo-hero__trust svg { width: 16px; height: 16px; color: var(--vibo-green-strong); }

.vibo-hero__media {
  position: relative; border-radius: var(--vibo-radius-section); overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #eef1ec 100%);
  aspect-ratio: 16 / 12;
}
.vibo-hero__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (min-width: 920px) { .vibo-hero__media { aspect-ratio: 5 / 4; } }

/* ---------- showcase band ---------- */
.vibo-band {
  border-radius: var(--vibo-radius-section); overflow: hidden; background: #eef1ec;
}
.vibo-band img { width: 100%; height: auto; display: block; }

/* ---------- category ---------- */
.vibo-cat { margin-top: clamp(52px, 8vw, 96px); }
.vibo-cat:first-of-type { margin-top: 0; }
.vibo-cat__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.vibo-cat__head h2 { margin: 0; font-size: clamp(22px, 3.2vw, 32px); letter-spacing: -.025em; }
.vibo-cat__head p { margin: 4px 0 0; color: var(--vibo-muted); font-size: 14px; }
.vibo-cat__count { flex: 0 0 auto; font-size: 13px; color: var(--vibo-muted); white-space: nowrap; }
@media (max-width: 560px) {
  .vibo-cat__head { flex-direction: column; align-items: flex-start; gap: 4px; }
}
.vibo-cat__banner {
  border-radius: var(--vibo-radius-section); overflow: hidden;
  background: linear-gradient(180deg, #fff, #eef1ec);
  margin-bottom: clamp(22px, 3vw, 34px);
}
.vibo-cat__banner img {
  width: 100%; display: block;
  height: clamp(170px, 33vw, 340px); object-fit: cover; object-position: center 42%;
}

/* ---------- product grid + card ---------- */
.vibo-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: clamp(16px, 2.4vw, 26px); }
@media (min-width: 560px) { .vibo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 900px) { .vibo-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1200px) { .vibo-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.vibo-product {
  display: flex; flex-direction: column;
  background: var(--vibo-surface); border: 1px solid var(--vibo-border);
  border-radius: var(--vibo-radius-card); overflow: hidden;
  transition: transform .22s var(--vibo-ease), box-shadow .22s var(--vibo-ease), border-color .22s var(--vibo-ease);
}
@media (hover: hover) and (pointer: fine) {
  .vibo-product:hover { transform: translateY(-4px); box-shadow: var(--vibo-shadow-hover); border-color: transparent; }
}
.vibo-product__media {
  position: relative; display: block; width: 100%; border: 0; padding: 0;
  background: #f2f4f0; cursor: pointer; aspect-ratio: 1; overflow: hidden;
}
.vibo-product__media img {
  width: 100%; height: 100%; object-fit: contain; padding: 14px; display: block;
  transition: transform .3s var(--vibo-ease);
}
@media (hover: hover) and (pointer: fine) {
  .vibo-product:hover .vibo-product__media img { transform: scale(1.035); }
}
.vibo-product__badges {
  position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px;
}
.vibo-badge {
  font-size: 11px; font-weight: 600; letter-spacing: .01em;
  background: color-mix(in srgb, var(--vibo-white) 88%, transparent);
  backdrop-filter: blur(4px); color: var(--vibo-ink);
  border: 1px solid var(--vibo-border); border-radius: 999px; padding: 3px 8px;
}
.vibo-product__body { display: flex; flex-direction: column; gap: 6px; padding: 16px; flex: 1; }
.vibo-product__brand {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--vibo-green-strong);
}
.vibo-product__name {
  font-weight: 600; font-size: 16px; line-height: 1.32; color: var(--vibo-ink);
}
.vibo-product__meta { font-size: 13px; color: var(--vibo-muted); }
.vibo-product__foot { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.vibo-product__price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.vibo-product__price b { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vibo-product__price small { font-size: 12px; color: var(--vibo-muted); }
.vibo-tag-draft {
  align-self: flex-start; font-size: 11px; font-weight: 600; color: var(--vibo-muted);
  border: 1px dashed var(--vibo-control-border); border-radius: 999px; padding: 2px 8px;
}
.vibo-product__actions { display: flex; gap: 8px; }
.vibo-product__actions .vibo-button { flex: 1; min-height: 44px; padding-inline: 12px; }
.vibo-btn-ver {
  flex: 0 0 auto; width: 44px; min-height: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.vibo-btn-ver svg { width: 20px; height: 20px; }

/* ---------- quantity stepper ---------- */
.vibo-qty { display: inline-flex; align-items: center; border: 1px solid var(--vibo-control-border); border-radius: 10px; overflow: hidden; }
.vibo-qty button {
  width: 40px; height: 44px; border: 0; background: var(--vibo-white); color: var(--vibo-ink);
  font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.vibo-qty button:disabled { color: var(--vibo-border); cursor: not-allowed; }
.vibo-qty button:hover:not(:disabled) { background: var(--vibo-green-soft); }
.vibo-qty span { min-width: 40px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- flavor chips ---------- */
.vibo-flavors { display: flex; flex-wrap: wrap; gap: 8px; }
.vibo-flavor {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  border: 1px solid var(--vibo-border); background: var(--vibo-white);
  border-radius: 999px; padding: 7px 12px 7px 8px; font-size: 13px; font-weight: 600;
  color: var(--vibo-ink); transition: border-color .15s var(--vibo-ease), background-color .15s var(--vibo-ease);
}
.vibo-flavor__dot { width: 12px; height: 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
.vibo-flavor[aria-pressed="true"] { border-color: var(--vibo-ink); background: var(--vibo-green-soft); }
.vibo-flavor:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- overlay (modal + cart shared scrim) ---------- */
.vibo-scrim {
  position: fixed; inset: 0; z-index: 100;
  background: color-mix(in srgb, var(--vibo-ink) 46%, transparent);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .24s var(--vibo-ease);
}
.vibo-scrim.is-open { opacity: 1; pointer-events: auto; }

/* ---------- product modal ---------- */
.vibo-modal {
  position: fixed; z-index: 110; inset: 0; display: grid; place-items: center;
  padding: clamp(0px, 4vw, 40px); pointer-events: none;
}
.vibo-modal__panel {
  pointer-events: auto; width: min(920px, 100%); max-height: min(92vh, 780px);
  display: grid; grid-template-columns: 1fr; overflow: hidden;
  background: color-mix(in srgb, var(--vibo-white) 82%, transparent);
  backdrop-filter: saturate(1.5) blur(22px); -webkit-backdrop-filter: saturate(1.5) blur(22px);
  border: 1px solid color-mix(in srgb, var(--vibo-white) 60%, transparent);
  border-radius: var(--vibo-radius-section);
  box-shadow: 0 30px 80px rgb(16 36 64 / .28);
  opacity: 0; transform: translateY(14px) scale(.98);
  transition: opacity .26s var(--vibo-ease), transform .3s var(--vibo-ease);
}
@media (min-width: 760px) { .vibo-modal__panel { grid-template-columns: 1.05fr 1fr; } }
.vibo-modal.is-open .vibo-modal__panel { opacity: 1; transform: none; }

.vibo-modal__media {
  position: relative; background: radial-gradient(120% 120% at 30% 20%, #ffffff 0%, #eef1ec 100%);
  min-height: 240px; overflow: hidden; display: grid; place-items: center;
}
.vibo-modal__media img {
  width: 100%; height: 100%; max-height: 420px; object-fit: contain; padding: 28px;
  will-change: transform;
}
.vibo-modal__glow {
  position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, currentColor 0%, transparent 70%);
  opacity: .18; filter: blur(10px); pointer-events: none; z-index: 0;
}
.vibo-modal__media img { position: relative; z-index: 1; }
.vibo-modal__noimg {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center;
  gap: 6px; color: var(--vibo-muted); text-align: center; padding: 24px;
}
.vibo-modal__noimg svg { width: 46px; height: 46px; color: var(--vibo-border); }
.vibo-modal__noimg span { font-weight: 600; font-size: 14px; color: var(--vibo-ink); }
.vibo-modal__noimg small { font-size: 12px; max-width: 22ch; }

.vibo-modal__info {
  padding: clamp(20px, 3vw, 32px); overflow-y: auto;
  background: color-mix(in srgb, var(--vibo-white) 92%, transparent);
}
.vibo-modal__brand {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--vibo-green-strong);
}
.vibo-modal__info h2 { margin: 6px 0 10px; font-size: clamp(21px, 2.6vw, 28px); letter-spacing: -.02em; }
.vibo-modal__desc { color: var(--vibo-muted); font-size: 15px; line-height: 1.6; margin: 0 0 16px; }
.vibo-modal__row { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--vibo-muted); margin-bottom: 16px; }
.vibo-modal__row .vibo-badge { background: var(--vibo-green-soft); border-color: transparent; color: var(--vibo-green-strong); }
.vibo-modal__price { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 18px; }
.vibo-modal__price b { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vibo-modal__price small { font-size: 13px; color: var(--vibo-muted); }
.vibo-modal__label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 8px; }
.vibo-modal__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.vibo-modal__cta .vibo-button { flex: 1 1 auto; min-height: 50px; }
.vibo-modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 40px; height: 40px; border-radius: 999px; border: 0; cursor: pointer;
  background: color-mix(in srgb, var(--vibo-white) 78%, transparent);
  backdrop-filter: blur(6px); color: var(--vibo-ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.vibo-modal__close:hover { background: var(--vibo-white); }
.vibo-modal__close svg { width: 20px; height: 20px; }

/* ---------- cart drawer ---------- */
.vibo-cart {
  position: fixed; z-index: 110; top: 0; right: 0; height: 100%;
  width: min(430px, 100%); display: flex; flex-direction: column;
  background: var(--vibo-warm);
  box-shadow: -20px 0 60px rgb(16 36 64 / .18);
  transform: translateX(100%); transition: transform .3s var(--vibo-ease);
  pointer-events: auto;
}
.vibo-cart.is-open { transform: none; }
.vibo-cart__head {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px;
  border-bottom: 1px solid var(--vibo-border);
  background: color-mix(in srgb, var(--vibo-white) 70%, transparent);
  backdrop-filter: blur(8px);
}
.vibo-cart__head h2 { margin: 0; font-size: 18px; flex: 1; }
.vibo-cart__body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.vibo-cart__empty { text-align: center; color: var(--vibo-muted); padding: 48px 16px; }
.vibo-cart__empty svg { width: 42px; height: 42px; color: var(--vibo-border); margin-bottom: 12px; }

.vibo-line { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: start; }
.vibo-line__img { width: 62px; height: 62px; border-radius: 12px; background: #f2f4f0; object-fit: contain; padding: 6px; }
.vibo-line__main { min-width: 0; }
.vibo-line__name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.vibo-line__meta { font-size: 12px; color: var(--vibo-muted); margin-top: 2px; }
.vibo-line__price { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vibo-line__ctl { grid-column: 2 / 4; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.vibo-line__remove { border: 0; background: none; color: var(--vibo-muted); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.vibo-line__remove:hover { color: var(--vibo-error); }
.vibo-cart .vibo-qty button { height: 36px; width: 34px; font-size: 15px; }

.vibo-cart__foot {
  border-top: 1px solid var(--vibo-border); padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
  background: var(--vibo-white); display: flex; flex-direction: column; gap: 12px;
}
.vibo-cart__total { display: flex; justify-content: space-between; align-items: baseline; }
.vibo-cart__total b { font-size: 20px; font-variant-numeric: tabular-nums; }
.vibo-cart__note { font-size: 12px; color: var(--vibo-muted); }
.vibo-cart__foot .vibo-button { min-height: 52px; width: 100%; }

/* ---------- toast ---------- */
.vibo-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 130;
  transform: translate(-50%, 140%); transition: transform .3s var(--vibo-ease);
  background: var(--vibo-ink); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; box-shadow: var(--vibo-shadow-hover);
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px);
}
.vibo-toast.is-on { transform: translate(-50%, 0); }
.vibo-toast svg { width: 18px; height: 18px; color: var(--vibo-green); flex: 0 0 auto; }

/* ---------- CTA final ---------- */
.vibo-cta-final {
  background: var(--vibo-ink); color: #fff; border-radius: var(--vibo-radius-section);
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px); text-align: center;
}
.vibo-cta-final h2 { color: #fff; margin: 0 0 12px; font-size: clamp(26px, 4vw, 40px); letter-spacing: -.025em; }
.vibo-cta-final p { color: color-mix(in srgb, #fff 82%, transparent); margin: 0 auto 24px; max-width: 46ch; }
.vibo-cta-final .vibo-button { min-height: 52px; }

/* ---------- footer ---------- */
.vibo-footer { background: var(--vibo-ink); color: #fff; padding-block: 52px; }
.vibo-footer a { color: #fff; }
.vibo-footer__grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .vibo-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.vibo-footer__logo img { width: 128px; height: auto; }
.vibo-footer p { font-size: 14px; color: color-mix(in srgb, #fff 72%, transparent); max-width: 36ch; margin: 12px 0 0; }
.vibo-footer h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 12px; color: color-mix(in srgb, #fff 66%, transparent); }
.vibo-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.vibo-footer__legal {
  margin-top: 32px; padding-top: 20px; font-size: 12px;
  border-top: 1px solid color-mix(in srgb, #fff 16%, transparent);
  color: color-mix(in srgb, #fff 60%, transparent);
}

/* ---------- dev note ---------- */
.vibo-devnote {
  background: #fff6e6; border-bottom: 1px solid #e7c98a; color: #6b4e17;
  font-size: 13px; padding: 9px 16px; text-align: center;
}
.vibo-devnote code { font-size: 12px; background: #f6e6c4; padding: 1px 5px; border-radius: 4px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .vibo-reveal { opacity: 1 !important; transform: none !important; }
  .vibo-product:hover, .vibo-product:hover .vibo-product__media img { transform: none !important; }
}
