/* ============================================================
   AFIKO — Design System  ·  afiko.cl
   Sinfonía de Sabores: Descubre lo Inexplorado
   ============================================================ */

:root {
  /* Colores principales */
  --color-bg:              #F8F5F2;
  --color-surface:         #FDF9F5;
  --color-white:           #FFFFFF;

  --color-primary:         #EEAC5C;
  --color-primary-hover:   #C8882A;
  --color-primary-light:   #FFF3E0;

  --color-secondary:       #B7C8D6;
  --color-secondary-dark:  #7A9DB0;
  --color-secondary-light: #E8F1F6;

  --color-neutral:         #CABAAC;
  --color-neutral-light:   #EDE5DC;

  --color-accent:          #8BAF8A;
  --color-accent-dark:     #5C8A5A;
  --color-accent-light:    #E8F2E7;

  --color-text:            #3B3B3B;
  --color-text-muted:      #7A6E67;
  --color-text-light:      #A89890;

  --color-border:          #E8DDD5;
  --color-border-strong:   #CABAAC;

  --color-success:         #8BAF8A;
  --color-warning:         #EEAC5C;
  --color-error:           #D97B6C;

  /* Marine deep — used sparingly for footer / depth panels */
  --color-deep:            #2E4452;
  --color-deep-soft:       #3C5868;

  --shadow-sm:  0 1px 3px rgba(59,59,59,0.06);
  --shadow-md:  0 6px 18px rgba(59,59,59,0.07);
  --shadow-lg:  0 14px 38px rgba(59,59,59,0.10);
  --shadow-xl:  0 28px 64px rgba(46,68,82,0.14);

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-pill: 999px;

  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px;
  --space-5:24px; --space-6:32px; --space-7:48px; --space-8:64px; --space-9:96px;

  --transition: .2s ease;
  --ease-out: cubic-bezier(.16,.84,.44,1);

  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;

  --container: 1240px;
  --header-h: 68px;
  --topbar-h: 40px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 16px; }
ul { list-style: none; padding: 0; }
h1,h2,h3,h4 { line-height: 1.12; font-weight: 400; }

/* ---------- Type scale ---------- */
.t-hero   { font-family: var(--serif); font-size: clamp(40px, 6vw, 72px); line-height: 1.04; letter-spacing: -.01em; }
.t-h1     { font-family: var(--serif); font-size: clamp(32px, 4vw, 50px); line-height: 1.08; }
.t-h2     { font-family: var(--sans); font-weight: 700; font-size: clamp(24px, 3vw, 36px); line-height: 1.15; letter-spacing: -.01em; }
.t-h3     { font-family: var(--sans); font-weight: 700; font-size: 20px; }
.t-lead   { font-size: clamp(17px, 1.5vw, 20px); color: var(--color-text-muted); line-height: 1.6; }
.t-body   { font-size: 16px; }
.t-sm     { font-size: 14px; }
/* line balancing — evita líneas viudas/desbalanceadas en títulos y párrafos */
.t-hero, .t-h1, .t-h2, .t-h3, h1, h2, h3 { text-wrap: balance; }
p, .t-lead, .t-body { text-wrap: pretty; }
.eyebrow  {
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--color-primary-hover);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content:""; width: 22px; height: 1.5px; background: var(--color-primary); display:inline-block; }
.eyebrow.is-plain::before { display: none; }
.serif-accent { font-family: var(--serif); font-style: italic; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.container-wide { max-width: 1480px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.surface { background: var(--color-surface); }
.surface-ocean { background: var(--color-secondary-light); }
.surface-algae { background: var(--color-accent-light); }
.section-head { max-width: 640px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .t-lead { margin-top: 14px; }
.row-head { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 500; font-size: 15px; line-height: 1;
  padding: 13px 26px; border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap; cursor: pointer; border: 1.5px solid transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--color-primary-hover); color: #fff; box-shadow: 0 4px 14px rgba(200,136,42,.32); }
.btn--primary:hover { background: #A87020; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(168,112,32,.36); }
.btn--secondary { background: var(--color-white); color: var(--color-text); border-color: var(--color-border-strong); }
.btn--secondary:hover { border-color: var(--color-text); background: var(--color-surface); }
.btn--outline { background: transparent; color: var(--color-primary-hover); border-color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary-light); }
.btn--ghost { background: transparent; color: var(--color-text); padding-inline: 14px; }
.btn--ghost:hover { color: var(--color-primary-hover); }
.btn--ondark { background: #fff; color: var(--color-text); }
.btn--ondark:hover { background: var(--color-primary); color:#fff; transform: translateY(-1px); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { width: 100%; }
.link-arrow { display:inline-flex; align-items:center; gap:8px; font-weight:600; font-size:15px; color:var(--color-primary-hover); }
.link-arrow svg { width:17px;height:17px; transition: transform var(--transition); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 11px; border-radius: var(--radius-pill); line-height: 1;
}
.badge svg { width: 12px; height: 12px; }
.badge--oferta     { background: var(--color-primary); color: #fff; }
.badge--nuevo      { background: var(--color-secondary); color: var(--color-text); }
.badge--sostenible { background: var(--color-accent); color: #fff; }
.badge--destacado  { background: var(--color-text); color: #fff; }
.badge--sinsal     { background: var(--color-accent-light); color: var(--color-accent-dark); }

/* ---------- Product card ---------- */
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  box-shadow: var(--shadow-sm);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--color-border-strong); }
.product-card__media { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.product-card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; align-items: flex-start; }
.product-card__body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; gap: 4px; }
.product-card__cat { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--color-primary-hover); text-transform: uppercase; }
.product-card__name { font-family: var(--sans); font-size: 17px; font-weight: 700; color: var(--color-text); line-height: 1.25; margin-top: 4px; }
.product-card__desc { font-size: 13.5px; color: var(--color-text-muted); line-height: 1.55; margin-top: 6px; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: var(--space-4); }
.product-card__prices { display: flex; flex-direction: column; }
.product-card__price { font-size: 21px; font-weight: 700; color: var(--color-text); letter-spacing: -.01em; }
.product-card__price-old { font-size: 13px; text-decoration: line-through; color: var(--color-text-light); }
.product-card__add {
  width: 42px; height: 42px; border-radius: 50%; background: var(--color-primary); color: #fff;
  display: grid; place-items: center; transition: var(--transition); flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(238,172,92,.4);
}
.product-card__add:hover { background: var(--color-primary-hover); transform: scale(1.06); }
.product-card__add svg { width: 19px; height: 19px; }

/* compact card variant (mobile comparison) */
.product-card--row { flex-direction: row; }
.product-card--row .product-card__media { width: 116px; flex-shrink: 0; aspect-ratio: auto; }
.product-card--row .product-card__body { padding: var(--space-4); }

/* ---------- Product shot placeholder (CSS art until real photos) ---------- */
.pshot {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.7), transparent 60%),
    var(--shot-bg, var(--color-surface));
  overflow: hidden;
}
.pshot::after { /* soft caustic light */
  content:""; position:absolute; inset:0;
  background: radial-gradient(60% 50% at 30% 18%, rgba(255,255,255,.55), transparent 55%);
  mix-blend-mode: soft-light;
}
.pshot__pkg {
  position: relative; width: 46%; aspect-ratio: 3/4; border-radius: 10px 10px 14px 14px;
  background: linear-gradient(160deg, var(--pkg-1,#fff), var(--pkg-2,#f0e8df));
  box-shadow: 0 18px 30px rgba(59,59,59,.16), inset 0 1px 0 rgba(255,255,255,.6);
  display:flex; flex-direction:column; align-items:center; justify-content:flex-end; padding-bottom:14%;
}
.pshot__pkg::before { /* seal / cap */
  content:""; position:absolute; top:-7%; width:42%; height:14%; border-radius:6px;
  background: var(--pkg-cap, var(--color-neutral)); box-shadow: var(--shadow-sm);
}
.pshot__pkg.is-jar { border-radius: 14px; aspect-ratio: 4/5; }
.pshot__pkg.is-jar::before { width: 56%; height: 11%; border-radius: 5px; top:-6%; }
.pshot__pkg.is-grinder { border-radius: 50px 50px 12px 12px; aspect-ratio: 2/5; width: 30%; }
.pshot__dot { width: 30%; aspect-ratio:1; border-radius:50%; background: var(--pkg-cap,var(--color-primary)); opacity:.9; }
.pshot__label { font-family: var(--serif); font-size: clamp(13px,2vw,17px); color: var(--shot-ink,var(--color-text)); opacity:.85; }
.pshot__tag { position:absolute; bottom:11px; left:50%; transform:translateX(-50%); font-size:10px; letter-spacing:.18em; text-transform:uppercase; color: var(--color-text-light); }

/* ---------- Benefit strip ---------- */
.benefits { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--color-border); border-block: 1px solid var(--color-border); }
.benefit { background: var(--color-bg); padding: 26px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.benefit__ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--color-accent-light); color: var(--color-accent-dark); }
.benefit__ic svg { width: 22px; height: 22px; }
.benefit__t { font-weight: 600; font-size: 14.5px; }

/* ---------- Benefit strip · editorial (hairline dividers, no boxes) ---------- */
.benefits-edit { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--color-surface); border-block: 1px solid var(--color-border); }
.benefits-edit__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 30px 20px; position: relative; }
.benefits-edit__item + .benefits-edit__item::before { content:""; position:absolute; left:0; top:22%; bottom:22%; width:1px; background:var(--color-border); }
.benefits-edit__ic { color: var(--color-primary-hover); }
.benefits-edit__ic svg { width: 26px; height: 26px; }
.benefits-edit__t { font-size: 15px; font-weight: 600; line-height: 1.25; }
.benefits-edit__t small { display: block; font-weight: 400; font-size: 12.5px; color: var(--color-text-light); margin-top: 4px; }
@media (max-width: 760px) {
  .benefits-edit { grid-template-columns: repeat(2, 1fr); }
  .benefits-edit__item:nth-child(odd)::before { display: none; }
}
@media (max-width: 440px) {
  .benefits-edit { grid-template-columns: 1fr; }
  .benefits-edit__item::before { display: none !important; }
  .benefits-edit__item { flex-direction: row; justify-content: flex-start; text-align: left; gap: 16px; padding: 16px 22px; border-top: 1px solid var(--color-border); }
  .benefits-edit__item:first-child { border-top: none; }
}

/* ---------- Recipe card ---------- */
.recipe-card { display: flex; flex-direction: column; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); box-shadow: var(--shadow-sm); }
.recipe-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.recipe-card__media { position: relative; aspect-ratio: 4/3; }
.recipe-card__type { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); backdrop-filter: blur(4px); font-size: 11px; font-weight: 600; letter-spacing:.06em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--radius-pill); color: var(--color-text); }
.recipe-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: 8px; }
.recipe-card__meta { display:flex; align-items:center; gap:14px; font-size:12.5px; color: var(--color-text-muted); }
.recipe-card__meta svg { width:15px; height:15px; flex-shrink:0; }
.recipe-card__name { font-family: var(--serif); font-size: 22px; line-height: 1.12; }
.recipe-card__use { font-size: 13px; color: var(--color-text-muted); display:flex; align-items:center; gap:7px; }
.recipe-card__use svg { width:15px; height:15px; flex-shrink:0; }
.recipe-card__use b { color: var(--color-primary-hover); font-weight:600; }

/* ---------- Topbar ---------- */
.topbar { background: var(--color-primary); color: #fff; font-size: 13px; font-weight: 500; min-height: var(--topbar-h); display: flex; align-items: center; }
.topbar .container { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.topbar svg { width: 15px; height: 15px; flex-shrink: 0; }
.topbar b { font-weight: 700; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(248,245,242,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-border); }
.header__bar { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.header__logo img { height: 40px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 26px; margin-inline: auto; }
.header__nav a { font-size: 15px; font-weight: 500; color: var(--color-text); position: relative; padding: 4px 0; transition: color var(--transition); }
.header__nav a::after { content:""; position:absolute; left:0; right:100%; bottom:-2px; height:2px; background: var(--color-primary); transition: right var(--transition); border-radius:2px; }
.header__nav a:hover { color: var(--color-primary-hover); }
.header__nav a:hover::after, .header__nav a[aria-current="page"]::after { right:0; }
.header__nav a[aria-current="page"] { color: var(--color-primary-hover); }
.header__actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--color-text); transition: var(--transition); position: relative; }
.icon-btn:hover { background: var(--color-neutral-light); color: var(--color-primary-hover); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn__count { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--color-primary-hover); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.header__cta { margin-left: 6px; }
.header__burger { display: none; }

/* ---------- Mobile menu / drawers ---------- */
.scrim { position: fixed; inset: 0; background: rgba(46,68,82,.42); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; z-index: 200; }
.scrim.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; bottom: 0; width: min(420px, 88vw); background: var(--color-bg); z-index: 210; display: flex; flex-direction: column; transition: transform .32s var(--ease-out); box-shadow: var(--shadow-xl); }
.drawer--right { right: 0; transform: translateX(100%); }
.drawer--left  { left: 0; transform: translateX(-100%); }
.drawer.open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--color-border); }
.drawer__head h3 { font-family: var(--serif); font-size: 22px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 0; }
.drawer__foot { border-top: 1px solid var(--color-border); padding: 18px 22px; background: var(--color-surface); }
.mobile-nav a { display: flex; align-items: center; justify-content: space-between; padding: 15px 24px; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--color-border); transition: var(--transition); }
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { background: var(--color-primary-light); color: var(--color-primary-hover); }
.mobile-nav a svg { width: 18px; height: 18px; color: var(--color-text-light); }

/* ---------- Cart drawer ---------- */
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--color-border); align-items: center; }
.cart-item__media { width: 64px; height: 64px; border-radius: var(--radius-md); position: relative; overflow: hidden; border: 1px solid var(--color-border); }
.cart-item__name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.cart-item__cat { font-size: 11px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .1em; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); margin-top: 8px; }
.qty button { width: 26px; height: 26px; display: grid; place-items: center; color: var(--color-text-muted); }
.qty button:hover { color: var(--color-primary-hover); }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: 13px; }
.cart-item__price { font-weight: 700; }
.cart-item__rm { font-size: 11px; color: var(--color-text-light); margin-top: 4px; }
.cart-item__rm:hover { color: var(--color-error); }
.cart-empty { padding: 60px 24px; text-align: center; color: var(--color-text-muted); }
.cart-empty svg { width: 54px; height: 54px; color: var(--color-neutral); margin: 0 auto 14px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cart-total b { font-size: 24px; font-weight: 700; }
.cart-ship-note { font-size: 12.5px; color: var(--color-text-muted); margin-bottom: 14px; display:flex; gap:8px; align-items:flex-start; }
.cart-ship-note svg { width:16px;height:16px;color:var(--color-accent-dark); flex-shrink:0; margin-top:1px; }

/* ---------- WhatsApp FAB ---------- */
.wa-fab { position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,.42); transition: transform var(--transition); }
.wa-fab:hover { transform: scale(1.07); }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab__pulse { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: wapulse 2.4s infinite; }
@keyframes wapulse { 70% { box-shadow: 0 0 0 14px rgba(37,211,102,0);} 100%{ box-shadow:0 0 0 0 rgba(37,211,102,0);} }

/* ---------- Footer ---------- */
.footer { background: var(--color-deep); color: #DCE6EC; padding-top: clamp(56px,7vw,88px); margin-top: auto; }
.footer a { color: #DCE6EC; transition: color var(--transition); }
.footer a:hover { color: var(--color-primary); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer__logo { height: 30px; margin-bottom: 18px; }
.footer__about { font-size: 14px; color: #9FB3BE; line-height: 1.7; max-width: 320px; }
.footer h4 { font-family: var(--sans); font-weight: 700; font-size: 14px; letter-spacing: .04em; margin-bottom: 16px; color: #fff; }
.footer__links li { margin-bottom: 11px; font-size: 14.5px; }
.footer__contact li { display: flex; gap: 11px; font-size: 14px; margin-bottom: 13px; color: #BCCBD4; align-items:flex-start; }
.footer__contact svg { width: 17px; height: 17px; color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #8AA0AC; }
.footer__legal .rut { display:flex; gap:18px; flex-wrap:wrap; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { background: var(--color-deep); color: #fff; padding: 13px 20px; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 11px; font-size: 14.5px; font-weight: 500; transform: translateY(16px); opacity: 0; transition: all .3s var(--ease-out); }
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 19px; height: 19px; color: var(--color-accent); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--color-text); }
.field label .opt { color: var(--color-text-light); font-weight: 400; }
.input, .textarea, .select {
  width: 100%; background: var(--color-white); border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md); padding: 13px 15px; color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(238,172,92,.18); }
.input::placeholder, .textarea::placeholder { color: var(--color-text-light); }
.textarea { resize: vertical; min-height: 110px; line-height: 1.5; }

/* ---------- Pills / chips (filters) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: var(--radius-pill);
  background: var(--color-white); border: 1.5px solid var(--color-border); font-size: 14px; font-weight: 500;
  color: var(--color-text); transition: var(--transition); white-space: nowrap;
}
.chip:hover { border-color: var(--color-border-strong); }
.chip[aria-pressed="true"] { background: var(--color-text); color: #fff; border-color: var(--color-text); }
.chip .n { opacity: .55; font-size: 12px; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--color-border); border: 0; }
.tag-inline { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:600; color: var(--color-accent-dark); background: var(--color-accent-light); padding:4px 10px; border-radius: var(--radius-pill); }
.tag-inline svg { width:13px; height:13px; }
[hidden] { display: none !important; }

/* fade-up on scroll — solo se oculta si JS está activo (html.js lo añade afiko.js/motion.js).
   Sin JS el contenido queda visible: nunca se sirve una página en blanco. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity:1; transform:none; transition:none; } .wa-fab__pulse{animation:none;} }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .header__nav { display: none; }
  .header__burger { display: grid; }
  .header__cta { display: none; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .header__bar { gap: 8px; }
  .header__logo img { height: 32px; }
  .topbar { font-size: 11.5px; }
  .topbar .container { padding-inline: 14px; }
  .section { padding-block: clamp(44px, 9vw, 64px); }
  .benefits { grid-template-columns: 1fr; }
  .benefit { flex-direction: row; justify-content: flex-start; text-align: left; padding: 16px 22px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; }
  .btn { padding: 12px 22px; }
}
