/* =========================================================
   Keam PC — hoja de estilos
   ========================================================= */
:root {
  --navy-900: #061a45;
  --navy-800: #0b2a6b;
  --navy-700: #12398c;
  --blue: #1565d8;
  --blue-600: #0f55bd;
  --cyan: #22c3ee;
  --cyan-soft: #e3f7fd;
  --wa: #1fb855;
  --wa-dark: #179a46;
  --sale: #e5383b;

  --ink: #0f1b33;
  --ink-2: #44506a;
  --muted: #6b7690;
  --line: #e3e8f2;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 51, .06), 0 1px 3px rgba(15, 27, 51, .05);
  --shadow: 0 6px 24px -8px rgba(15, 27, 51, .16);
  --shadow-lg: 0 24px 48px -16px rgba(11, 42, 107, .28);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --container: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 140px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mt { margin-top: 1rem; }
.mt-lg { margin-top: 2.5rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Íconos */
.i { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.i.sm { width: 16px; height: 16px; }
.i.xs { width: 13px; height: 13px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.25rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1.2; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, box-shadow .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .i { width: 18px; height: 18px; }
.btn--lg { padding: .95rem 1.6rem; font-size: 1rem; }
.btn--sm { padding: .45rem .9rem; font-size: .85rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(21, 101, 216, .6); }
.btn--primary:hover { background: var(--blue-600); color: #fff; }
.btn--accent { background: var(--cyan); color: var(--navy-900); box-shadow: 0 10px 24px -10px rgba(34, 195, 238, .8); }
.btn--accent:hover { background: #4fd3f3; color: var(--navy-900); }
.btn--outline-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.btn--ghost { background: var(--bg-soft); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: #e9eef8; color: var(--ink); }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 10px 22px -10px rgba(31, 184, 85, .7); }
.btn--wa:hover { background: var(--wa-dark); color: #fff; }
.btn:disabled { opacity: .6; pointer-events: none; }

.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--bg-soft); color: var(--ink); transition: background .2s; }
.icon-btn:hover { background: #e7edf8; }
.icon-btn--sm { width: 34px; height: 34px; background: transparent; color: var(--muted); }
.icon-btn--sm:hover { color: var(--sale); background: #fdecec; }

.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: .6rem; }
.eyebrow--light { color: var(--cyan); }
.eyebrow--sale { color: var(--sale); }
.link-more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .95rem; }
.link-more .i { width: 16px; height: 16px; transition: transform .2s; }
.link-more:hover .i { transform: translateX(3px); }

.badge { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-block; padding: .25rem .6rem; border-radius: 999px; background: var(--navy-800); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.badge--sale { background: var(--sale); }
.badge--glow { background: var(--cyan); color: var(--navy-900); }
.pdp__price .badge { position: static; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-900); color: #c8d4ee; font-size: .82rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar__info { display: flex; align-items: center; gap: 1.25rem; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: .4rem; color: #c8d4ee; }
.topbar a:hover { color: #fff; }
.topbar .i { width: 15px; height: 15px; color: var(--cyan); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.header.is-scrolled { box-shadow: 0 8px 24px -14px rgba(15, 27, 51, .25); }
.header__in { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.header__burger { display: none; }
.logo img { height: 40px; width: auto; }

.search { flex: 1; display: flex; align-items: stretch; max-width: 620px; height: 48px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg-soft); overflow: hidden; transition: border-color .2s, box-shadow .2s, background .2s; }
.search:focus-within { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(21, 101, 216, .12); }
.search select { border: 0; background: transparent; padding: 0 .4rem 0 1.1rem; font-size: .88rem; font-weight: 600; color: var(--ink-2); border-right: 1px solid var(--line); max-width: 150px; cursor: pointer; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 1rem; outline: none; font-size: .95rem; }
.search button { border: 0; background: var(--blue); color: #fff; padding: 0 1.25rem; margin: 4px; border-radius: 999px; display: grid; place-items: center; transition: background .2s; }
.search button:hover { background: var(--blue-600); }
.search--inline { margin: 1.5rem auto 0; background: #fff; }

.header__actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.header__help { display: flex; align-items: center; gap: .6rem; color: var(--ink); line-height: 1.2; }
.header__help small { display: block; font-size: .74rem; color: var(--muted); }
.header__help strong { font-size: .92rem; }
.header__help-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--cyan-soft); color: var(--blue); }

.cart-btn { position: relative; display: inline-flex; align-items: center; gap: .6rem; height: 48px; padding: 0 1.1rem; border-radius: 999px; border: 0; background: var(--navy-800); color: #fff; font-weight: 700; transition: background .2s, transform .15s; }
.cart-btn:hover { background: var(--navy-700); }
.cart-btn__count { position: absolute; top: -4px; left: 30px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--cyan); color: var(--navy-900); font-size: .72rem; font-weight: 800; display: grid; place-items: center; transform: scale(0); transition: transform .25s var(--ease); }
.cart-btn__count.is-on { transform: scale(1); }

/* Navegación */
.nav { border-top: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; gap: 1.5rem; height: 52px; }
.nav__cats { position: relative; height: 100%; display: flex; align-items: center; }
.nav__cats-btn { display: inline-flex; align-items: center; gap: .55rem; height: 40px; padding: 0 1rem; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 700; font-size: .92rem; }
.mega { position: absolute; top: 100%; left: 0; display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 1.25rem 2rem; padding: 1.5rem; min-width: 640px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s var(--ease); }
.nav__cats:hover .mega, .nav__cats:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega__col { display: flex; flex-direction: column; gap: .25rem; }
.mega__col a { color: var(--ink-2); font-size: .9rem; padding: .15rem 0 .15rem 2rem; }
.mega__col a:hover { color: var(--blue); }
.mega__col .mega__title { display: flex; align-items: center; gap: .55rem; padding-left: 0; color: var(--ink); font-weight: 700; font-size: .95rem; margin-bottom: .15rem; }
.mega__title .i { color: var(--blue); }
.nav__links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.nav__links a { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .85rem; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: .92rem; white-space: nowrap; transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--blue); background: var(--bg-soft); }
.nav__links a.is-active { color: var(--blue); background: var(--cyan-soft); }

/* ---------- Drawers ---------- */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(6, 26, 69, .45); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: .25s; }
.overlay.is-on { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; bottom: 0; z-index: 100; width: min(420px, 92vw); display: flex; flex-direction: column; background: #fff; box-shadow: var(--shadow-lg); transition: transform .3s var(--ease); }
.drawer--right { right: 0; transform: translateX(105%); }
.drawer--left { left: 0; transform: translateX(-105%); width: min(340px, 88vw); }
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer__head img { height: 32px; width: auto; }
.drawer__title { display: flex; align-items: center; gap: .5rem; font-size: 1.15rem; margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.drawer__foot { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.mnav { display: grid; gap: .1rem; }
.mnav a { display: flex; align-items: center; gap: .6rem; padding: .75rem .5rem; border-radius: 10px; color: var(--ink); font-weight: 600; }
.mnav a:hover, .mnav a.is-active { background: var(--bg-soft); color: var(--blue); }
.mnav--cats a { font-weight: 500; color: var(--ink-2); }
.mnav--cats .i { color: var(--blue); }
.mnav__label { margin: 1.25rem .5rem .25rem; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.drawer .btn--wa { margin-top: 1.5rem; }

/* Líneas del carrito */
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: .9rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line__img { display: block; width: 72px; height: 72px; border-radius: 12px; background: var(--bg-soft); overflow: hidden; }
.line__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
.line__name { display: block; color: var(--ink); font-weight: 600; font-size: .92rem; line-height: 1.3; }
.line__price { display: block; color: var(--muted); font-size: .85rem; margin: .15rem 0 .4rem; }
.line__end { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }

/* Cantidad */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; height: 52px; }
.qty button { width: 44px; height: 100%; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-2); border-radius: 999px; }
.qty button:hover { color: var(--blue); }
.qty input { width: 44px; border: 0; text-align: center; font-weight: 700; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 34px; }
.qty--sm button { width: 32px; }
.qty--sm .i { width: 14px; height: 14px; }
.qty--sm input { width: 30px; font-size: .9rem; }

/* ---------- Alertas y toast ---------- */
.alert { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; }
.alert--success { background: #e8f8ee; color: #0f6b34; border: 1px solid #bfe9cf; }
.alert--error { background: #fdecec; color: #a3191c; border: 1px solid #f5c3c4; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; display: flex; align-items: center; gap: .6rem; max-width: calc(100vw - 32px); padding: .8rem 1rem; border-radius: 14px; background: var(--navy-900); color: #fff; font-size: .9rem; box-shadow: var(--shadow-lg); transform: translate(-50%, 160%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .35s var(--ease); }
.toast .i { color: var(--cyan); }
.toast__btn { margin-left: .4rem; border: 0; border-radius: 999px; padding: .35rem .8rem; background: var(--cyan); color: var(--navy-900); font-weight: 700; font-size: .82rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #dbe5fa; background: radial-gradient(1200px 500px at 85% 20%, #1c4fb8 0%, transparent 60%), linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 55%, #0d3a92 100%); }
.hero__bg { position: absolute; inset: 0; opacity: .55; pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .12) 1px, transparent 0),
    radial-gradient(500px 300px at 10% 110%, rgba(34, 195, 238, .35), transparent 70%);
  background-size: 28px 28px, auto;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%); }
.hero__in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 3rem; padding: 4.5rem 20px 5rem; }
.hero__in--single { grid-template-columns: 1fr; padding: 3rem 20px 3.5rem; max-width: var(--container); }
.hero--compact .hero__text { max-width: 760px; }
.hero h1 { color: #fff; }
.grad { background: linear-gradient(90deg, #5fe0ff, var(--cyan) 40%, #8fb7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: #c3d2f0; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__stats { display: flex; gap: 2.25rem; list-style: none; padding: 0; margin: 2.5rem 0 0; }
.hero__stats li { display: flex; flex-direction: column; padding-left: 1rem; border-left: 2px solid rgba(34, 195, 238, .6); }
.hero__stats strong { color: #fff; font-size: 1.15rem; }
.hero__stats span { font-size: .85rem; color: #9fb3dc; }
.hero__card { position: relative; display: block; padding: 1.5rem; border-radius: 24px; background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); backdrop-filter: blur(6px); transition: transform .3s var(--ease); }
.hero__card:hover { transform: translateY(-4px) rotate(-.3deg); }
.hero__card img { width: 100%; aspect-ratio: 1 / .85; object-fit: contain; background: #fff; border-radius: 16px; padding: 1rem; }
.hero__card .badge { top: 2rem; left: 2rem; }
.hero__card-info { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; color: #fff; font-weight: 600; }
.hero__card-info strong { font-size: 1.5rem; color: var(--cyan); }
.hero .crumbs { margin-bottom: 1rem; }

/* ---------- Secciones ---------- */
.section { padding: 4.5rem 0; }
.section--tight { padding: 2.5rem 0; }
.section--soft { background: var(--bg-soft); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2rem; }
.section__head h2 { margin: 0; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__head--center p { margin: .6rem 0 0; }

/* Categorías */
.cat-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: -4.5rem; position: relative; z-index: 2; }
.cat-tile { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; padding: 1.25rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.cat-tile:hover { transform: translateY(-4px); border-color: #bcd2f5; box-shadow: var(--shadow-lg); color: var(--ink); }
.cat-tile__ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: .6rem; border-radius: 14px; background: linear-gradient(135deg, var(--cyan-soft), #e6eeff); color: var(--blue); }
.cat-tile__ic .i { width: 24px; height: 24px; }
.cat-tile strong { font-size: .98rem; }
.cat-tile small { color: var(--muted); }

/* Tarjetas de producto */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-products--3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cddcf5; }
.card__media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: linear-gradient(180deg, #f8fafe, #eef3fb); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 1.25rem; mix-blend-mode: multiply; transition: transform .4s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { flex: 1; display: flex; flex-direction: column; padding: 1rem 1.1rem 1.1rem; }
.card__cat { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
.card__title { font-size: .98rem; font-weight: 700; margin: .3rem 0 .9rem; line-height: 1.35; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--blue); }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.price { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; }
.price strong { font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.price del, .pdp__price del { color: var(--muted); font-size: .9rem; }
.card__add { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--cyan-soft); color: var(--blue); transition: background .2s, color .2s, transform .2s; }
.card__add:hover { background: var(--blue); color: #fff; }
.card__add.is-added, [data-add].is-added { background: var(--wa); color: #fff; transform: scale(1.06); }
.stock { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 700; }
.stock--in { color: #138a43; }
.stock--out { color: var(--sale); font-size: .8rem; }

/* Promos */
.promo-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.promo { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 260px; padding: 2.25rem; border-radius: 22px; transition: transform .25s var(--ease), box-shadow .25s; }
.promo:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.promo > div { position: relative; z-index: 1; max-width: 380px; }
.promo h3 { font-size: 1.6rem; font-weight: 800; }
.promo p { margin-bottom: 1.4rem; }
.promo--builder { background: linear-gradient(135deg, var(--navy-800), #1a4fc0); color: #c8d6f4; }
.promo--builder h3 { color: #fff; }
.promo--service { background: linear-gradient(135deg, #e3f7fd, #e8efff); color: var(--ink-2); border: 1px solid #d4e5fa; }
.promo__art { position: absolute; right: -30px; bottom: -40px; color: rgba(255, 255, 255, .1); }
.promo--service .promo__art { color: rgba(21, 101, 216, .09); }
.promo__art .i { width: 260px; height: 260px; }

/* Servicios */
.grid-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.service { display: flex; flex-direction: column; padding: 1.6rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink-2); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
a.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cddcf5; color: var(--ink-2); }
.service h3 { margin: 1rem 0 .4rem; }
.service p { font-size: .93rem; margin: 0; }
.service__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--blue), #3f8bf0); color: #fff; box-shadow: 0 10px 20px -10px rgba(21, 101, 216, .8); }
.service__ic .i { width: 26px; height: 26px; }
.service__meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: auto; padding-top: 1.2rem; font-size: .88rem; }
.service__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.service__meta strong { color: var(--blue); }
.grid-services--full .service { min-height: 100%; }
.grid-services--full .service p { margin-bottom: .25rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { position: relative; padding: 1.6rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.steps li > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy-800); color: var(--cyan); font-weight: 800; margin-bottom: 1rem; }
.steps p { color: var(--ink-2); font-size: .93rem; margin: 0; }

/* Blog */
.grid-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; color: var(--ink-2); transition: transform .25s var(--ease), box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink-2); }
.post-card__media { aspect-ratio: 16 / 8; background: linear-gradient(135deg, var(--navy-800), var(--blue)); display: grid; place-items: center; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__art { color: rgba(255, 255, 255, .35); }
.post-card__art .i { width: 64px; height: 64px; }
.post-card__body { flex: 1; display: flex; flex-direction: column; padding: 1.3rem; }
.post-card time { font-size: .8rem; color: var(--muted); }
.post-card h3 { color: var(--ink); margin: .35rem 0 .5rem; }
.post-card p { font-size: .93rem; }
.post-card .link-more { margin-top: auto; }

/* CTA */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.5rem 3rem; border-radius: 24px; background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #c3d2f0; box-shadow: var(--shadow-lg); }
.cta h2 { color: #fff; }
.cta p { margin: 0; max-width: 560px; }

/* Ventajas */
.perks { border-top: 1px solid var(--line); background: #fff; }
.perks__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-top: 2rem; padding-bottom: 2rem; }
.perk { display: flex; align-items: center; gap: .9rem; }
.perk > .i { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--cyan-soft); color: var(--blue); }
.perk strong { display: block; font-size: .95rem; }
.perk span { font-size: .85rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #9fb0d4; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3rem; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer a, .footer span { display: flex; align-items: center; gap: .5rem; color: #9fb0d4; padding: .25rem 0; }
.footer a:hover { color: #fff; }
.footer .i { width: 17px; height: 17px; color: var(--cyan); }
.footer__logo { width: 180px; border-radius: 12px; margin-bottom: 1rem; }
.footer__brand p { max-width: 320px; }
.footer__social { display: flex; gap: .5rem; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
.footer__bottom-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 14px 30px -10px rgba(31, 184, 85, .8); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float .i { width: 30px; height: 30px; }
.wa-float::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Encabezado de página ---------- */
.page-head { background: linear-gradient(135deg, var(--navy-900), var(--navy-800)); color: #b8c8ea; padding: 2.25rem 0 2.5rem; }
.page-head h1 { color: #fff; margin: .6rem 0 .3rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.page-head p { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .85rem; color: #93a8d6; }
.crumbs a { color: #c8d6f4; }
.crumbs a:hover { color: #fff; }
.crumbs--dark { color: var(--muted); margin-bottom: 1.5rem; }
.crumbs--dark a { color: var(--ink-2); }
.crumbs--dark a:hover { color: var(--blue); }

/* ---------- Tienda ---------- */
.shop { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.filters { position: sticky; top: 150px; display: grid; gap: 1rem; }
.filters form { display: grid; gap: 1rem; }
.filters__block { padding: 1.25rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.filters__block h3 { font-size: .95rem; margin-bottom: .75rem; }
.filters__cat { display: flex; justify-content: space-between; align-items: center; padding: .45rem .6rem; border-radius: 8px; color: var(--ink-2); font-size: .92rem; font-weight: 500; }
.filters__cat small { color: var(--muted); font-size: .78rem; background: var(--bg-soft); padding: 0 .45rem; border-radius: 999px; }
.filters__cat:hover { background: var(--bg-soft); color: var(--blue); }
.filters__cat.is-active { background: var(--cyan-soft); color: var(--blue); font-weight: 700; }
.filters__cat--sub { padding-left: 1.4rem; font-size: .88rem; }
.radio { display: flex; align-items: center; gap: .55rem; padding: .3rem 0; font-size: .92rem; cursor: pointer; }
.radio input { accent-color: var(--blue); width: 17px; height: 17px; }
.price-range { display: flex; align-items: center; gap: .5rem; }
.price-range input { width: 100%; min-width: 0; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; padding: .6rem .6rem .6rem 1rem; border-radius: var(--radius); background: var(--bg-soft); }
.toolbar__filters { display: none; }
.toolbar__sort { display: flex; align-items: center; gap: .5rem; margin-left: auto; font-size: .9rem; }
.toolbar select { padding: .5rem 2rem .5rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.pager { display: flex; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.pager a { display: grid; place-items: center; min-width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink-2); font-weight: 700; }
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager a.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

.empty { text-align: center; padding: 3rem 1.5rem; border-radius: var(--radius); background: var(--bg-soft); }
.empty--sm { padding: 2rem 1rem; background: transparent; }
.empty__ic { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #fff; color: var(--blue); box-shadow: var(--shadow); margin-bottom: 1rem; }
.empty__ic .i { width: 32px; height: 32px; }
.empty p { color: var(--muted); max-width: 440px; margin: 0 auto 1.25rem; }
.empty__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

/* ---------- Ficha de producto ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.pdp__media { position: sticky; top: 150px; aspect-ratio: 1 / 1; border-radius: 22px; background: linear-gradient(180deg, #f8fafe, #eaf0fa); border: 1px solid var(--line); overflow: hidden; }
.pdp__media img { width: 100%; height: 100%; object-fit: contain; padding: 2rem; mix-blend-mode: multiply; }
.pdp__media .badge { top: 1.25rem; left: 1.25rem; font-size: .85rem; }
.pdp__info h1 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: .4rem 0 .5rem; }
.pdp__price { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 .75rem; }
.pdp__price strong { font-size: 2.2rem; font-weight: 800; color: var(--blue); letter-spacing: -.02em; }
.pdp__desc { color: var(--ink-2); font-size: 1.02rem; margin: 1rem 0 1.5rem; }
.pdp__buy { display: flex; gap: .75rem; margin-bottom: .75rem; }
.pdp__buy .btn { flex: 1; }
.pdp__info > .btn { margin-bottom: .75rem; }
.pdp__perks { list-style: none; padding: 1.25rem; margin: 1.25rem 0 0; display: grid; gap: .7rem; border-radius: var(--radius); background: var(--bg-soft); font-size: .93rem; color: var(--ink-2); }
.pdp__perks li { display: flex; align-items: center; gap: .65rem; }
.pdp__perks .i { color: var(--blue); }
.pdp__details { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.specs { width: 100%; border-collapse: collapse; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.specs th, .specs td { text-align: left; padding: .8rem 1rem; font-size: .93rem; border-bottom: 1px solid var(--line); }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 40%; background: var(--bg-soft); color: var(--ink-2); font-weight: 600; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input[type=text], input[type=email], input[type=number], input[type=search], input:not([type]), select, textarea {
  width: 100%; padding: .78rem .95rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: .95rem; font-weight: 500; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.search input, .search select, .qty input { border: 0; border-radius: 0; padding-top: 0; padding-bottom: 0; box-shadow: none; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21, 101, 216, .12); }
.search input:focus, .search select:focus, .qty input:focus { box-shadow: none; }
textarea { resize: vertical; min-height: 90px; }
.card-form { padding: 1.75rem; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.card-form h2 { font-size: 1.3rem; display: flex; align-items: center; gap: .6rem; }
.form-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.checklist li { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.checklist .i { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #e8f8ee; color: #138a43; }

/* ---------- Arma tu PC ---------- */
.builder { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.builder__parts { display: grid; gap: 1rem; }
.part { margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; transition: border-color .2s; }
.part.is-chosen { border-color: #a9c6f3; }
.part__head { display: flex; align-items: center; gap: .9rem; width: 100%; padding: 1rem 1.25rem; float: left; }
.part__head small { display: block; color: var(--muted); font-size: .85rem; font-weight: 500; }
.part.is-chosen .part__head small { color: var(--blue); font-weight: 600; }
.part__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--cyan-soft); color: var(--blue); }
.part.is-chosen .part__ic { background: var(--blue); color: #fff; }
.part__opts { clear: both; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; padding: 0 1.25rem 1.25rem; }
.opt { cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__box { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: .75rem .85rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-soft); font-size: .88rem; transition: border-color .2s, background .2s, box-shadow .2s; }
.opt__box img { width: 100%; height: 70px; object-fit: contain; mix-blend-mode: multiply; margin-bottom: .2rem; }
.opt__name { display: flex; align-items: center; gap: .35rem; font-weight: 600; line-height: 1.3; }
.opt__price { font-weight: 800; color: var(--blue); }
.opt:hover .opt__box { border-color: #a9c6f3; }
.opt input:checked + .opt__box { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(21, 101, 216, .12); }
.opt input:disabled + .opt__box { opacity: .5; cursor: not-allowed; }
.opt input:focus-visible + .opt__box { outline: 3px solid var(--cyan); outline-offset: 2px; }
.builder__summary { position: sticky; top: 150px; }

.summary { padding: 1.5rem; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: .9rem; }
.summary h2 { font-size: 1.25rem; margin: 0; }
.summary__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.summary__list li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; font-size: .9rem; }
.summary__list li span { flex: 1; }
.summary__list small { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.summary__list img { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; background: var(--bg-soft); padding: 4px; mix-blend-mode: multiply; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.sum-row--total { padding-top: .9rem; border-top: 1px dashed var(--line); font-size: 1rem; font-weight: 700; }
.sum-row--total strong { font-size: 1.45rem; color: var(--blue); }

/* ---------- Carrito / checkout ---------- */
.cart-page { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.cart-page .summary { position: sticky; top: 150px; }
.checkout { display: grid; grid-template-columns: 1fr 400px; gap: 2rem; align-items: start; }
.checkout__main { display: grid; gap: 1.25rem; }
.checkout__summary { position: sticky; top: 150px; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy-800); color: var(--cyan); font-size: .9rem; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; align-items: center; height: 100%; padding: 1rem; border-radius: 14px; border: 1.5px solid var(--line); transition: .2s; }
.choice > span .i { grid-row: span 2; width: 26px; height: 26px; color: var(--blue); }
.choice strong { color: var(--ink); font-size: .95rem; }
.choice small { color: var(--muted); font-weight: 500; }
.choice input:checked + span { border-color: var(--blue); background: #f3f8ff; box-shadow: 0 0 0 3px rgba(21, 101, 216, .12); }
.choice input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.choice.is-disabled { cursor: not-allowed; opacity: .55; }
.done { text-align: center; }
.done__ic { display: inline-grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: #e8f8ee; color: var(--wa); margin-bottom: 1rem; }
.done__ic .i { width: 40px; height: 40px; }
.done .summary__list { text-align: left; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.done .sum-row { margin-top: 1rem; }
.code { font-family: ui-monospace, Consolas, monospace; background: var(--cyan-soft); color: var(--navy-800); padding: .1rem .5rem; border-radius: 6px; }

/* ---------- Contacto ---------- */
.contact-cards { display: grid; gap: .9rem; }
.contact-card { display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.25rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--ink-2); transition: transform .2s, box-shadow .2s, border-color .2s; }
a.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cddcf5; color: var(--ink-2); }
.contact-card strong { display: block; color: var(--ink); }
.contact-card__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--cyan-soft); color: var(--blue); }
.contact-card--wa .contact-card__ic { background: var(--wa); color: #fff; }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Artículos / contenido ---------- */
.prose { color: var(--ink-2); }
.prose h2 { margin-top: 1.75rem; font-size: 1.4rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose strong { color: var(--ink); }
.prose--lg { font-size: 1.05rem; }
.lead-dark { font-size: 1.15rem; color: var(--ink); font-weight: 500; }
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
.article__img { border-radius: var(--radius); margin-bottom: 1.5rem; }
.article__cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--bg-soft); }
.article__cta p { margin: 0; }
.article-side { position: sticky; top: 150px; display: grid; gap: 1.25rem; }
.side-box { padding: 1.25rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.side-box h3 { font-size: 1rem; }
.side-link { display: block; padding: .6rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .93rem; line-height: 1.35; }
.side-link:last-child { border-bottom: 0; }
.side-link small { display: block; color: var(--muted); font-weight: 500; margin-top: .2rem; }
.side-product { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; color: var(--ink); font-size: .9rem; font-weight: 600; line-height: 1.3; }
.side-product img { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: var(--bg-soft); padding: 4px; mix-blend-mode: multiply; }
.side-product strong { display: block; color: var(--blue); }
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.about__art img { border-radius: 24px; box-shadow: var(--shadow-lg); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hide-md { display: none !important; }
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .cat-tiles { grid-template-columns: repeat(3, 1fr); }
  .grid-services, .steps { grid-template-columns: repeat(2, 1fr); }
  .builder { grid-template-columns: 1fr 340px; }
  .checkout { grid-template-columns: 1fr 340px; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .header__burger { display: inline-grid; }
  .header__in { flex-wrap: wrap; gap: .75rem 1rem; padding-top: .75rem; padding-bottom: .75rem; min-height: 0; }
  .logo img { height: 34px; }
  .search { order: 3; flex-basis: 100%; max-width: none; height: 46px; }
  .search select { display: none; }
  .hero__in { grid-template-columns: 1fr; padding-top: 3rem; padding-bottom: 5.5rem; }
  .hero__card { max-width: 420px; }
  .shop, .pdp, .form-split, .builder, .cart-page, .checkout, .article-layout, .about { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.is-open { display: grid; }
  .toolbar__filters { display: inline-flex; }
  .pdp { gap: 1.5rem; }
  .pdp__media, .builder__summary, .cart-page .summary, .checkout__summary, .article-side { position: static; }
  .promo-duo { grid-template-columns: 1fr; }
  .grid-posts { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .perks__grid { grid-template-columns: 1fr 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 2rem; }
  html { scroll-padding-top: 130px; }
}

@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .container { padding: 0 16px; }
  .section { padding: 3rem 0; }
  .section--tight { padding: 1.75rem 0; }
  .grid-products, .grid-products--3 { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .card__media img { padding: .75rem; }
  .card__body { padding: .8rem; }
  .card__title { font-size: .88rem; }
  .price strong { font-size: 1.05rem; }
  .card__add { width: 38px; height: 38px; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: -4rem; }
  .cat-tile { padding: 1rem; }
  .grid-services, .steps, .grid-posts { grid-template-columns: 1fr; }
  .form__row, .choice-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .perks__grid { grid-template-columns: 1fr; gap: 1rem; }
  .hero__stats { gap: 1.25rem; }
  .hero__stats strong { font-size: 1rem; }
  .section__head { align-items: flex-start; flex-direction: column; }
  .section__head--center { align-items: center; }
  .pdp__buy { flex-direction: column; }
  .pdp__buy .qty { align-self: flex-start; }
  .promo { padding: 1.75rem; min-height: 0; }
  .card-form { padding: 1.25rem; }
  .cart-btn { padding: 0 .9rem; }
  .cart-btn__count { left: 24px; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .topbar__in { justify-content: center; }
  .topbar__info:last-child { display: none; }
  .part__opts { grid-template-columns: 1fr 1fr; padding: 0 .9rem .9rem; }
  .part__head { padding: .9rem; }
}

/* =========================================================
   Interactividad y animaciones
   ========================================================= */

/* Barra de progreso de lectura */
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 3px; background: linear-gradient(90deg, var(--cyan), var(--blue)); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.card.reveal.is-in, .cat-tile.reveal.is-in, .service.reveal.is-in, .post-card.reveal.is-in, .promo.reveal.is-in { transition: opacity .7s var(--ease) var(--d, 0ms), transform .35s var(--ease), box-shadow .25s, border-color .25s; }

/* Hero animado */
.hero--home .hero__in { padding-top: 5rem; padding-bottom: 6rem; }
.hero__orbs span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; animation: orb 14s ease-in-out infinite alternate; }
.hero__orbs span:nth-child(1) { width: 420px; height: 420px; right: -80px; top: -120px; background: #2f6ef0; }
.hero__orbs span:nth-child(2) { width: 300px; height: 300px; left: 30%; bottom: -160px; background: #13b6e0; opacity: .35; animation-duration: 18s; }
.hero__orbs span:nth-child(3) { width: 220px; height: 220px; left: -60px; top: 20%; background: #5b3df0; opacity: .3; animation-duration: 22s; }
@keyframes orb { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.1); } 100% { transform: translate(-30px, 50px) scale(.95); } }
.hero__pill { padding: .4rem .85rem; border-radius: 999px; background: rgba(34, 195, 238, .12); border: 1px solid rgba(34, 195, 238, .3); }
.hero__pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34, 195, 238, .7); } 100% { box-shadow: 0 0 0 10px rgba(34, 195, 238, 0); } }
.hero h1 { animation: rise .9s var(--ease) both; }
.hero .lead { animation: rise .9s var(--ease) .12s both; }
.hero__cta { animation: rise .9s var(--ease) .24s both; }
.hero__stats { animation: rise .9s var(--ease) .36s both; }
.hero__stats strong span { font-size: inherit; color: inherit; font-variant-numeric: tabular-nums; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.rotator { display: inline-block; transition: opacity .35s, transform .35s var(--ease), filter .35s; }
.rotator.is-out { opacity: 0; transform: translateY(-14px); filter: blur(4px); }

.hero__stage { position: relative; animation: rise 1s var(--ease) .2s both; }
.hero__card { transition: transform .25s var(--ease); will-change: transform; }
.hero__card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .22), transparent 45%); }
.hero__card img { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero__chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); font-size: .85rem; line-height: 1.2; animation: float 5s ease-in-out infinite; }
.hero__chip b { display: block; font-size: .9rem; }
.hero__chip .i { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--cyan-soft); color: var(--blue); }
.hero__chip--a { left: -34px; top: 22%; }
.hero__chip--b { right: -24px; bottom: 18%; animation-delay: -2.5s; }

/* Cinta de beneficios */
.marquee { overflow: hidden; background: var(--navy-900); border-top: 1px solid rgba(255, 255, 255, .06); color: #c8d4ee; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 2.75rem; padding: 1rem 0; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.marquee .i { color: var(--cyan); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee + .section .cat-tiles { margin-top: 0; }

/* Botón con brillo */
.btn--shine { position: relative; overflow: hidden; }
.btn--shine::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent); transform: skewX(-20deg); animation: shine 3.5s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn .i { transition: transform .2s var(--ease); }
.btn:hover .i:last-child { transform: translateX(3px); }

/* Brillo que sigue al cursor */
.card, .cat-tile, .service { position: relative; isolation: isolate; }
.card::before, .cat-tile::before, .service::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .3s; background: radial-gradient(280px circle at var(--gx, 50%) var(--gy, 50%), rgba(34, 195, 238, .14), transparent 60%); pointer-events: none; }
.card:hover::before, .cat-tile:hover::before, .service:hover::before { opacity: 1; }

/* Tarjetas de producto */
.card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6, 26, 69, .08)); opacity: 0; transition: opacity .3s; }
.card:hover .card__media::after { opacity: 1; }
.card__peek { position: absolute; left: 50%; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--ink); font-size: .8rem; font-weight: 700; white-space: nowrap; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 10px); transition: .3s var(--ease); }
.card:hover .card__peek { opacity: 1; transform: translate(-50%, 0); }
.badge--low { left: auto; right: 12px; background: #fff4dc; color: #9a5b00; }
.card__add { width: auto; min-width: 44px; padding: 0 .75rem; gap: .4rem; font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; }
.card__add span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s var(--ease); }
.card:hover .card__add span, .card__add:focus-visible span { max-width: 80px; }
.cart-btn.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.15); } 60% { transform: scale(.95); } 100% { transform: scale(1); } }
.fly { position: fixed; z-index: 300; object-fit: contain; border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg); pointer-events: none; }

/* Categorías y servicios */
.cat-tile__ic { transition: transform .35s var(--ease), background .3s, color .3s; }
.cat-tile:hover .cat-tile__ic { transform: rotate(-8deg) scale(1.1); background: var(--blue); color: #fff; }
.service__ic { transition: transform .35s var(--ease); }
.service:hover .service__ic { transform: translateY(-4px) rotate(-6deg); }

/* Títulos de sección con línea animada */
.section__head h2::after { content: ''; display: block; width: 0; height: 4px; margin-top: .55rem; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .8s var(--ease) .2s; }
.section__head.is-in h2::after, .section__head:not(.reveal) h2::after { width: 56px; }
.section__head--center h2::after { margin-left: auto; margin-right: auto; }

/* Zoom en la ficha */
.pdp__media { cursor: zoom-in; }
.pdp__media img { transition: transform .25s var(--ease); }
.pdp__media.is-zoom img { transform: scale(1.9); }

/* Promos */
.promo__art { transition: transform .6s var(--ease); }
.promo:hover .promo__art { transform: rotate(-12deg) scale(1.08); }

/* Volver arriba */
.to-top { position: fixed; right: 30px; bottom: 96px; z-index: 79; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--navy-800); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .3s var(--ease); }
.to-top .i { transform: rotate(-90deg); }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue); color: #fff; }

@media (max-width: 900px) {
  .hero__chip--a { left: -8px; }
  .hero__chip--b { right: -8px; }
}
@media (max-width: 640px) {
  .hero--home .hero__in { padding-top: 3rem; padding-bottom: 3.5rem; }
  .hero__chip { font-size: .78rem; padding: .55rem .75rem; }
  .hero__chip .i { width: 28px; height: 28px; padding: 6px; }
  .card__add span, .card__peek { display: none; }
  .card__add { padding: 0; width: 38px; }
  .to-top { right: 22px; bottom: 82px; }
  .marquee__track { gap: 2rem; padding: .8rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
