/* ============================================================
   GRACHI FIESTAS — estilos
   Regla del proyecto: sin sombras, sin desenfoques, sin modos de fusión.
   ============================================================ */

:root {
  --navy: #2b2a5e;
  --purple: #6a2f8c;
  --purple-2: #8a4bb0;
  --teal: #0a9fb2;
  --orange: #f59a3e;
  --pink: #e62c73;
  --wa: #1fae52;

  --bg: #ffffff;
  --surface: #f6f4fa;
  --surface-2: #eeeaf5;
  --text: #1f1e3d;
  --muted: #5d5b78;
  --line: #e4e0ee;
  --header-bg: #ffffff;
  --bar-bg: #2b2a5e;
  --bar-text: #ffffff;
  --buy: #f59a3e;
  --buy-hover: #ee8a26;
  --buy-text: #1f1e3d;
  --overlay: rgba(31, 30, 61, .55);

  --radius: 14px;
  --font-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 116px;
  color-scheme: light only;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
main, .site-footer { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.ic { width: 22px; height: 22px; flex: none; }
.ic.big { width: 44px; height: 44px; }


/* ---------- utilidades de texto animado ---------- */
.w, .ch { display: inline-block; }
.w { white-space: nowrap; }
.ch { transform-origin: 50% 80%; }

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .82rem;
  color: var(--teal);
}

.sec-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: 0;
}
.sec-title { font-size: clamp(2rem, 4.6vw, 3.6rem); color: var(--navy); }
.fx-title { position: relative; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 720px; }

/* ---------- PRELOADER ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: grid; place-items: center;
  clip-path: circle(150% at 50% 50%);
}
.pre-inner { width: min(360px, 70vw); display: grid; gap: 22px; }
.pre-inner img { width: 100%; height: auto; }
.pre-bar { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.pre-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--purple), var(--pink), var(--orange), var(--teal)); border-radius: inherit; }
.preloader.done { pointer-events: none; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.site-header.hide { transform: translateY(-58px); }
.hdr-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 10px max(16px, calc((100% - 1240px) / 2));
}
.icon-btn.menu-btn { display: none; }
.brand { display: block; width: 176px; }
.brand img { width: 100%; height: auto; }

.search {
  display: flex;
  height: 44px;
  border: 2px solid var(--navy);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  transition: border-color .3s;
}
.search:focus-within { border-color: var(--orange); }
.search select {
  border: 0; background: var(--surface-2); padding: 0 8px; max-width: 150px; font-size: .88rem; cursor: pointer;
  border-right: 1px solid var(--line);
}
.search input { flex: 1; min-width: 0; border: 0; padding: 0 14px; background: transparent; outline: none; }
.search button {
  width: 54px; border: 0; background: var(--orange); color: var(--navy);
  display: grid; place-items: center;
}
.search button:hover .ic-search, .search button.is-live .ic-search { animation: wiggle .6s; }

.hdr-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent;
  display: grid; place-items: center; color: var(--text); text-decoration: none;
  transition: background .25s, transform .25s;
}
.icon-btn:hover { background: var(--surface-2); transform: translateY(-2px); }
.hdr-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 12px; border: 0; background: transparent;
  text-decoration: none; font-weight: 700; font-size: .92rem;
  transition: background .25s, transform .3s cubic-bezier(.25, .8, .25, 1), color .25s;
}
.hdr-link:hover, .hdr-link.is-live { background: var(--surface-2); transform: translateY(-3px); color: var(--purple); }
.hdr-link:hover .spin-ic, .hdr-link.is-live .spin-ic { animation: spin .8s cubic-bezier(.5, 0, .3, 1); }
.hdr-link:hover .ic, .hdr-link.is-live .ic { animation: wiggle .6s; }

.hdr-cart {
  position: relative; display: flex; align-items: flex-end; gap: 6px;
  padding: 6px 12px 6px 8px; border: 0; border-radius: 12px; background: transparent;
  font-weight: 800;
  transition: background .25s, transform .3s;
}
.hdr-cart:hover, .hdr-cart.is-live { background: var(--surface-2); }
.hdr-cart:hover .cart-ic, .hdr-cart.is-live .cart-ic { animation: cartRoll .8s; }
.cart-ic { width: 32px; height: 32px; }
.cart-count {
  position: absolute; left: 22px; top: 0;
  min-width: 22px; height: 22px; padding: 0 5px;
  border-radius: 11px; background: var(--pink); color: #fff;
  font-size: .78rem; display: grid; place-items: center;
}
.cart-count.bump { animation: bump .5s ease; }
@keyframes bump { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes cartRoll { 0% { transform: translateX(0); } 30% { transform: translateX(6px) rotate(8deg); } 60% { transform: translateX(-4px) rotate(-6deg); } 100% { transform: none; } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-16deg) scale(1.15); } 60% { transform: rotate(12deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes jelly {
  0%, 100% { transform: scale(1, 1); }
  25% { transform: scale(1.08, .92); }
  45% { transform: scale(.95, 1.06); }
  65% { transform: scale(1.03, .97); }
}

/* barra de categorías tipo marketplace */
.cat-bar {
  display: flex; align-items: center; gap: 4px;
  background: var(--bar-bg); color: var(--bar-text);
  padding: 0 max(16px, calc((100% - 1240px) / 2));
  height: 44px;
  overflow-x: auto; scrollbar-width: none;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-bar ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.cat-bar button, .cat-bar a {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
  padding: 6px 12px; border: 0; border-radius: 8px;
  background: transparent; color: inherit; text-decoration: none;
  font-weight: 700; font-size: .92rem;
}
.cat-bar button::after, .cat-bar a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px;
  background: var(--orange); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.cat-bar button:hover::after, .cat-bar a:hover::after,
.cat-bar button.is-live::after, .cat-bar .active::after { transform: scaleX(1); }
.cat-bar .ic { width: 18px; height: 18px; }
.cat-all { background: rgba(255, 255, 255, .1) !important; }
.cat-extra { margin-left: auto; }
.cat-extra + .cat-extra { margin-left: 0; }
.hdr-line { display: block; width: 100%; height: 6px; }
.hdr-line path { fill: none; stroke: var(--orange); stroke-width: 2; }

/* hamburguesa → X */
.burger { position: relative; width: 22px; height: 16px; display: block; }
.burger i { position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .45s cubic-bezier(.25, .8, .25, 1), opacity .3s, width .3s; }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 6.75px; width: 70%; }
.burger i:nth-child(3) { top: 13.5px; }
.menu-btn:hover .burger i:nth-child(2), .menu-btn.is-live .burger i:nth-child(2) { width: 100%; }
.menu-btn[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(6.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-6.75px) rotate(-45deg); }

/* confeti del carrito */
.confetti-bit { position: fixed; z-index: 150; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; }

/* ---------- MENÚ MÓVIL ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 98;
  background: var(--overlay);
  visibility: hidden; opacity: 0;
  transition: opacity .3s, visibility 0s .3s;
}
.mobile-menu.open { visibility: visible; opacity: 1; transition: opacity .3s; }
.mm-panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: min(340px, 86vw);
  background: var(--bg);
  padding: calc(var(--header-h) + 8px) 20px 30px;
  overflow-y: auto;
  perspective: 900px;
}
.mm-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 18px 0 6px; font-weight: 800; }
.mm-list { list-style: none; margin: 0; padding: 0; }
.mm-list li { transform-origin: 50% 0; }
.mm-list a, .mm-list button {
  display: block; width: 100%; text-align: left;
  padding: 12px 14px; margin-bottom: 6px;
  border-radius: 12px; border: 0;
  background: var(--surface); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem;
}
.mm-list a:active, .mm-list button:active { background: var(--surface-2); }
.mm-wa { display: flex; gap: 10px; align-items: center; margin-top: 22px; padding: 14px; border-radius: 14px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 800; }

/* ---------- FIGURAS Y LATIDOS ---------- */
.beat { animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.22); } 24% { transform: scale(.96); } 36% { transform: scale(1.12); } 50% { transform: scale(1); } }

.geo-field { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.geo-field svg { position: absolute; overflow: visible; }
.geo-field .geo-rot { transform-box: fill-box; transform-origin: center; animation: spin var(--d, 30s) linear infinite; }

/* ---------- ONDAS ---------- */
.wave-divider { position: absolute; left: 0; bottom: -1px; width: 100%; height: 120px; z-index: 1; display: block; }
.wave-divider path { stroke: none; }
.wave-divider .w1 { fill: var(--purple); opacity: .35; }
.wave-divider .w2 { fill: var(--teal); opacity: .35; }
.wave-divider .w3 { fill: var(--purple); }
.wave-divider.top { top: -119px; bottom: auto; }
.wave-divider.top .w3 { fill: var(--bg); }
.wave-divider.top .w1 { fill: var(--pink); opacity: .25; }
.wave-divider.top .w2 { fill: var(--teal); opacity: .3; }

.draw-divider { display: block; width: 100%; height: 80px; }
.draw-divider path { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }

/* ---------- BOTÓN PRINCIPAL (color sólido, se eleva suavemente) ---------- */
.liquid-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border: 0; border-radius: 40px;
  background: var(--purple); color: #fff; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
  transition: translate .35s ease, background-color .35s ease;
}
.liquid-btn .lb-bg { display: none; }
.liquid-btn.alt { background: var(--wa); }
.liquid-btn.small { padding: 12px 20px; font-size: .98rem; }
.liquid-btn:hover, .liquid-btn.is-live { translate: 0 -4px; background: #5a2678; }
.liquid-btn.alt:hover, .liquid-btn.alt.is-live { background: #19944a; }
.liquid-btn:active { translate: 0 -1px; }
.wa-dance { animation: dance 2.4s ease-in-out infinite; }
@keyframes blob {
  0%, 100% { border-radius: 40px 34px 42px 30px / 34px 42px 30px 40px; }
  33% { border-radius: 30px 44px 32px 42px / 42px 30px 44px 32px; }
  66% { border-radius: 44px 30px 40px 36px / 30px 44px 36px 42px; }
}
@keyframes liquidPress {
  0% { scale: 1 1; } 25% { scale: 1.12 .86; } 45% { scale: .92 1.1; } 65% { scale: 1.04 .96; } 100% { scale: 1 1; }
}
@keyframes dance { 0%, 100% { transform: rotate(0) translateY(0); } 25% { transform: rotate(-14deg) translateY(-3px); } 50% { transform: rotate(10deg) translateY(1px); } 75% { transform: rotate(-6deg) translateY(-2px); } }

.text-btn { border: 0; background: transparent; color: var(--purple); font-weight: 800; padding: 8px 4px; position: relative; }
.text-btn::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 2px; background: currentColor; transform: scaleX(.3); transform-origin: left; transition: transform .35s; }
.text-btn:hover::after, .text-btn.is-live::after { transform: scaleX(1); }

/* ---------- CINTA ---------- */
.ribbon {
  position: relative; z-index: 2;
  background: var(--navy); color: #fff;
  transform: rotate(-2deg); margin: 20px -20px 30px;
  overflow: hidden; padding: 16px 0;
}
.ribbon-track { display: flex; width: max-content; will-change: transform; }
.ribbon-item { display: flex; align-items: center; gap: 26px; padding-right: 26px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 2rem); white-space: nowrap; }
.ribbon-item .star { width: 26px; height: 26px; animation: spin 6s linear infinite; }

/* ---------- CATÁLOGO (estático, sin animaciones) ---------- */
.catalog { padding: 28px 0 60px; background: var(--bg); position: relative; z-index: 1; }
.catalog *, .catalog *::before, .catalog *::after { transition: none !important; animation: none !important; }
.catalog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.catalog-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 0; color: var(--navy); }
.catalog-meta { margin: 4px 0 0; color: var(--muted); }
.sort { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--muted); }
.sort select { padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 16px; scrollbar-width: thin; }
.chip {
  flex: none; padding: 9px 16px; border-radius: 30px;
  border: 1.5px solid var(--line); background: var(--bg);
  font-weight: 700; font-size: .92rem; white-space: nowrap;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip span { opacity: .7; font-weight: 600; margin-left: 4px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.product-grid.mini { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); padding: 12px;
}
.card-media { display: block; border: 0; padding: 0; background: var(--surface); border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; cursor: pointer; }
.card-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 12px 4px 4px; }
.card-cat { font-size: .78rem; color: var(--teal); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 2px; }
.card-name { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.card-name button { border: 0; background: none; padding: 0; text-align: left; font-weight: inherit; cursor: pointer; }
.card-name button:hover { color: var(--purple); text-decoration: underline; }
.price { margin: 0 0 12px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .cur { font-size: .85rem; font-weight: 700; align-self: flex-start; margin-top: 4px; }
.price strong { font-size: 1.7rem; line-height: 1; font-weight: 800; }
.price small { color: var(--muted); font-size: .86rem; }
.card-actions { margin-top: auto; display: grid; gap: 8px; }
.buy-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; border-radius: 30px; border: 0;
  background: var(--buy); color: var(--buy-text);
  font-weight: 800; text-decoration: none;
}
.buy-btn:hover { background: var(--buy-hover); }
.buy-btn .ic { width: 19px; height: 19px; }
.plain-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 30px;
  border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 700; text-decoration: none; cursor: pointer;
}
.plain-btn:hover { border-color: var(--navy); }
.plain-btn.ghost { background: transparent; }
.empty { text-align: center; padding: 50px 0; color: var(--muted); }

/* ---------- PASOS ---------- */
.steps { position: relative; background: var(--surface); overflow-x: clip; height: var(--steps-h, 250vh); }
.steps-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; padding: 70px 0 20px; display: flex; flex-direction: column; justify-content: center; }
.steps-track {
  position: relative;
  display: flex; gap: 40px;
  padding: 50px max(16px, calc((100vw - 1240px) / 2)) 20px;
  width: max-content;
}
.steps-path { position: absolute; left: 0; top: 30px; width: 100%; height: 200px; pointer-events: none; }
.steps-path path { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.step {
  position: relative; z-index: 1;
  width: min(360px, 78vw); flex: none;
  background: var(--bg); border: 2px solid var(--line); border-radius: 26px;
  padding: 30px;
  transition: translate .5s cubic-bezier(.25, .8, .25, 1), rotate .5s cubic-bezier(.25, .8, .25, 1), border-color .3s;
}
.step:hover, .step.is-live { translate: 0 -10px; rotate: -1.5deg; border-color: var(--purple); }
.step h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 10px 0 8px; }
.step p { color: var(--muted); margin: 0; }
.step-n { position: absolute; top: 18px; right: 22px; font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 1; color: var(--surface-2); }
.morph-ic { position: relative; width: 64px; height: 64px; border-radius: 20px; background: var(--purple); color: #fff; display: grid; place-items: center; animation: blob 5s ease-in-out infinite; }
.step:nth-child(3) .morph-ic { background: var(--teal); }
.step:nth-child(4) .morph-ic { background: var(--pink); }
.step:nth-child(5) .morph-ic { background: var(--orange); }
.morph-ic svg { position: absolute; width: 30px; height: 30px; transition: transform .6s cubic-bezier(.25, .8, .25, 1), opacity .4s; }
.morph-ic svg:last-child { transform: scale(0) rotate(-180deg); opacity: 0; }
.step:hover .morph-ic svg:first-child, .step.is-live .morph-ic svg:first-child { transform: scale(0) rotate(180deg); opacity: 0; }
.step:hover .morph-ic svg:last-child, .step.is-live .morph-ic svg:last-child { transform: none; opacity: 1; }

/* ---------- NOSOTROS ---------- */
.why { position: relative; padding: 100px 0; overflow: hidden; background: var(--bg); }
.why .container { position: relative; z-index: 1; }
.flip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 40px 0; perspective: 1000px; }
.flip { height: 220px; outline: none; }
.flip-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.25, .8, .25, 1); }
.flip:hover .flip-in, .flip.is-live .flip-in, .flip:focus-visible .flip-in { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 24px; padding: 24px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
}
.flip-face.front { background: var(--surface); border: 2px solid var(--line); color: var(--navy); }
.flip-face.front .ic { color: var(--purple); }
.flip:nth-child(2) .front .ic { color: var(--teal); }
.flip:nth-child(3) .front .ic { color: var(--pink); }
.flip:nth-child(4) .front .ic { color: var(--wa); }
.flip-face h3 { font-family: var(--font-display); font-size: 1.3rem; margin: 14px 0 0; }
.flip-face.back { transform: rotateY(180deg); background: var(--purple); color: #fff; font-weight: 700; }
.flip:nth-child(2) .back { background: var(--teal); }
.flip:nth-child(3) .back { background: var(--pink); }
.flip:nth-child(4) .back { background: var(--navy); }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.counter { border-top: 3px solid var(--orange); padding-top: 14px; transition: translate .45s cubic-bezier(.25, .8, .25, 1); }
.counter:hover, .counter.is-live { translate: 0 -6px; }
.counter strong { display: inline-block; font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.8rem); color: var(--purple); line-height: 1; }
.counter span { display: block; color: var(--muted); font-weight: 700; margin-top: 6px; }

/* ---------- SPLIT ---------- */
.split { position: relative; background: var(--bg); height: 170vh; }
.split-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; perspective: 1400px; }
.split-center { text-align: center; display: grid; justify-items: center; }
.split-center .sec-title { max-width: 16ch; }
.split-half {
  position: absolute; top: 0; bottom: 0; width: 50.2%;
  display: flex; align-items: center;
  font-family: var(--font-display); font-weight: 700; color: #fff;
  font-size: clamp(2.2rem, 6.5vw, 6rem); line-height: 1;
  z-index: 3;
}
.split-half.left { left: 0; background: var(--purple); justify-content: flex-end; padding-right: 3vw; transform-origin: left center; }
.split-half.right { right: 0; background: var(--navy); justify-content: flex-start; padding-left: 3vw; transform-origin: right center; }
.split-half span { display: block; }

/* ---------- CONTACTO ---------- */
.contact { position: relative; padding: 100px 0 180px; overflow: hidden; background: var(--bg); }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: center; font-weight: 800; font-size: 1.1rem; }
.contact-list .ic { color: var(--purple); }
.contact-list a { text-decoration: none; }
.energy-form { display: grid; gap: 22px; border: 2px solid var(--line); border-radius: 26px; padding: 30px; background: var(--bg); }
.field { position: relative; padding-top: 16px; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 2px solid var(--line); background: transparent;
  padding: 10px 2px; outline: none; font-size: 1.05rem; resize: vertical; border-radius: 0;
}
.field label {
  position: absolute; left: 2px; top: 26px; color: var(--muted); pointer-events: none;
  transition: transform .35s cubic-bezier(.25, .8, .25, 1), color .3s;
  transform-origin: left;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .field label.fixed {
  transform: translateY(-24px) scale(.82); color: var(--purple);
}
.energy { position: absolute; left: 0; bottom: 0; width: 100%; height: 8px; overflow: visible; pointer-events: none; }
.energy path { fill: none; stroke: var(--purple); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s cubic-bezier(.2, .8, .2, 1); }
.field:focus-within .energy path, .field.filled .energy path { stroke-dashoffset: 0; }
.field.typing .energy path { stroke: var(--orange); stroke-dasharray: .08 .04; animation: flow .5s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -.12; } }
.bubble { position: absolute; bottom: 6px; width: var(--s, 10px); height: var(--s, 10px); border-radius: 50%; border: 2px solid var(--c, var(--teal)); pointer-events: none; }
.form-note { margin: 0; color: var(--teal); font-weight: 700; min-height: 1.4em; }
.form-error { color: var(--pink); font-weight: 700; margin: 8px 0 0; min-height: 1.2em; }

/* ---------- FOOTER ---------- */
.site-footer { position: relative; background: var(--bg); color: var(--muted); padding: 40px 0 26px; border-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.foot-logo { width: 220px; height: auto; margin-bottom: 14px; }
.site-footer h3 { color: var(--navy); font-family: var(--font-display); margin: 0 0 12px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--purple); text-decoration: underline; }
.copy { text-align: center; margin: 36px 0 0; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- WHATSAPP FLOTANTE ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center;
  animation: floatY 3s ease-in-out infinite;
}
.wa-float .ic { width: 32px; height: 32px; position: relative; z-index: 1; animation: dance 2.4s ease-in-out infinite; }
.wa-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--wa); animation: ring 2.2s ease-out infinite; }
.wa-ring.r2 { animation-delay: 1.1s; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- CARRITO ---------- */
.drawer-bg { position: fixed; inset: 0; background: var(--overlay); z-index: 300; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 301;
  width: min(440px, 100%);
  background: var(--bg);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform .55s cubic-bezier(.2, .9, .2, 1);
  border-left: 1px solid var(--line);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-family: var(--font-display); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cart-item img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; }
.cart-item h4 { margin: 0 0 2px; font-size: .98rem; }
.cart-item .ci-price { color: var(--muted); font-size: .88rem; margin: 0 0 8px; }
.cart-item .ci-total { font-weight: 800; }
.cart-item .rm { border: 0; background: transparent; color: var(--muted); padding: 4px; border-radius: 8px; }
.cart-item .rm:hover { color: var(--pink); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 30px; overflow: hidden; }
.qty button { width: 34px; height: 34px; border: 0; background: var(--surface); display: grid; place-items: center; }
.qty button .ic { width: 16px; height: 16px; }
.qty output { min-width: 34px; text-align: center; font-weight: 800; }
.cart-empty { text-align: center; padding: 40px 0; color: var(--muted); display: grid; justify-items: center; gap: 8px; }
.cart-empty .ic { color: var(--purple); }
.checkout { display: grid; gap: 10px; margin-top: 20px; }
.checkout h3 { margin: 0; font-family: var(--font-display); }
.checkout label, .pf label, .login-card label { display: grid; gap: 4px; font-weight: 700; font-size: .9rem; }
.checkout input, .checkout textarea, .pf input, .pf select, .pf textarea, .login-card input, .admin-toolbar input, .admin-toolbar select, .cat-form input {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); outline: none; font-weight: 400;
}
.checkout input:focus, .checkout textarea:focus, .pf input:focus, .pf select:focus, .pf textarea:focus, .login-card input:focus { border-color: var(--purple); }
.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; }
.subtotal strong { font-size: 1.5rem; }
.fine { color: var(--muted); font-size: .85rem; margin: 0; }
.drawer-foot .buy-btn { background: var(--wa); color: #fff; padding: 14px; }
.drawer-foot .buy-btn:hover { background: #19944a; }
.drawer-foot .buy-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- MODALES ---------- */
.modal { position: fixed; inset: 0; z-index: 400; background: var(--overlay); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: min(1000px, 100%); background: var(--bg); border-radius: 22px; padding: 28px; max-height: calc(100vh - 32px); overflow-y: auto; }
.modal-close { position: absolute; top: 12px; right: 12px; background: var(--surface); z-index: 2; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pd-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; background: var(--surface); }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pd-thumbs button { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.pd-thumbs button[aria-current="true"] { border-color: var(--purple); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-cat { color: var(--teal); font-weight: 800; margin: 0; text-transform: uppercase; font-size: .82rem; letter-spacing: .05em; }
.pd-info h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 4px 0 8px; line-height: 1.1; }
.pd-price { margin: 0 0 14px; }
.pd-price span { font-size: 2rem; font-weight: 800; }
.pd-price small { color: var(--muted); font-size: 1rem; }
.pd-desc { color: var(--muted); white-space: pre-line; }
.pd-buy { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 18px 0 12px; }
.pd-buy .buy-btn { flex: 1; min-width: 180px; padding: 13px; }
.wa-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 30px; background: var(--wa); color: #fff; font-weight: 800; text-decoration: none; }
.wa-btn:hover { background: #19944a; }
.pd-perks { color: var(--muted); padding-left: 18px; font-size: .92rem; }
.pd-related { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; }
.pd-related h3 { font-family: var(--font-display); margin: 0 0 12px; }
.pd-related .card-actions { display: none; }

/* ---------- ADMIN ---------- */
.admin { position: fixed; inset: 0; z-index: 350; background: var(--bg); overflow-y: auto; }
.admin[hidden] { display: none; }
.admin-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px max(16px, calc((100% - 1240px) / 2)); background: var(--bg); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.admin-bar img { width: 140px; height: auto; }
.admin-tag { font-family: var(--font-display); font-weight: 600; background: var(--purple); color: #fff; padding: 4px 12px; border-radius: 20px; }
.admin-mode { font-size: .82rem; color: var(--muted); margin-right: auto; }
.admin-login { display: grid; place-items: start center; padding: 24px 16px 40px; }
.login-card { width: min(400px, 100%); display: grid; gap: 12px; border: 2px solid var(--line); border-radius: 22px; padding: 28px; }
.login-card > .ic { color: var(--purple); }
.login-card h2 { margin: 0; font-family: var(--font-display); }
.login-card #loginFirebase { display: grid; gap: 12px; }
.admin-main { width: min(1240px, 100% - 32px); margin: 20px auto 60px; }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tab { padding: 10px 18px; border-radius: 30px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 800; }
.tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.seed-btn { margin-left: auto; }
.admin-toolbar, .cat-form { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-toolbar input { flex: 1; min-width: 180px; }
.admin-toolbar select { width: auto; }
.cat-form input { flex: 1; min-width: 180px; }
.cat-form #catOrder { flex: 0 0 110px; min-width: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.adm-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.adm-table th, .adm-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table th { background: var(--surface); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.adm-table .acts { display: flex; gap: 6px; justify-content: flex-end; }
.adm-table .acts button { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); display: grid; place-items: center; }
.adm-table .acts button:hover { border-color: var(--purple); color: var(--purple); }
.adm-table .acts .del:hover { border-color: var(--pink); color: var(--pink); }
.adm-table .acts .ic { width: 18px; height: 18px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: .78rem; font-weight: 800; background: var(--surface-2); margin: 2px 4px 2px 0; }
.badge.on { background: #d9f4e3; color: #11703a; }
.badge.star { background: #fdebd6; color: #9a560f; }
.badge.off { background: #fbe0ea; color: #a01b4d; }

.pf { width: min(900px, 100%); }
.pf h2 { margin: 0 0 16px; font-family: var(--font-display); }
.pf-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.pf-img { display: grid; gap: 10px; align-content: start; }
.pf-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pf-thumb { position: relative; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); aspect-ratio: 1; background: var(--surface); }
.pf-thumb.main { border-color: var(--orange); }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pf-thumb .tag { position: absolute; left: 4px; bottom: 4px; background: var(--orange); color: var(--navy); font-size: .68rem; font-weight: 800; padding: 1px 6px; border-radius: 8px; }
.pf-thumb .tb { position: absolute; top: 4px; width: 26px; height: 26px; border-radius: 8px; border: 0; background: #fff; color: var(--navy); display: grid; place-items: center; padding: 0; }
.pf-thumb .tb .ic { width: 14px; height: 14px; }
.pf-thumb .tb-del { right: 4px; }
.pf-thumb .tb-main { left: 4px; }
.pf-empty { grid-column: 1 / -1; border: 1.5px dashed var(--line); border-radius: 12px; padding: 22px 10px; text-align: center; color: var(--muted); font-size: .9rem; }
.pf-hint { margin: 0; color: var(--muted); font-size: .8rem; }
.pf-other { margin-top: 6px; }
.pf-fields { display: grid; gap: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks { display: flex; gap: 16px; align-items: flex-end; padding-bottom: 8px; }
.check { display: flex !important; align-items: center; gap: 8px; grid-auto-flow: column; }
.check input { width: 18px; height: 18px; }
.pf-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 500;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 30px; font-weight: 700;
  transform: translate(-50%, 150%); transition: transform .5s cubic-bezier(.25, .8, .25, 1);
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .hdr-link span { display: none; }
  .flip-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --header-h: 160px; }
  .hdr-top { grid-template-columns: auto 1fr auto; row-gap: 10px; gap: 8px; }
  .icon-btn.menu-btn { display: grid; }
  .brand { width: 140px; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .search select { max-width: 96px; }
  .cart-label { display: none !important; }
  .site-header.hide { transform: translateY(-64px); }
  .contact-grid, .pd-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-track { flex-direction: column; width: auto; padding-inline: 16px; align-items: center; }
  .step { width: min(460px, 100%); }
  .steps-path { display: none; }
  .steps { height: auto; }
  .steps-pin { position: static; height: auto; overflow: visible; padding: 70px 0; }
  .counters { grid-template-columns: 1fr; }
  .cat-extra { margin-left: 0; }
}
@media (max-width: 560px) {
  .brand { width: 124px; }
  .hdr-actions { gap: 0; }
  .hdr-link { padding: 8px; }
  .flip-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .flip { height: 190px; }
  .flip-face { padding: 14px; font-size: .9rem; }
  .flip-face h3 { font-size: 1.05rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 8px; }
  .price strong { font-size: 1.35rem; }
  .buy-btn { padding: 10px 10px; font-size: .9rem; }
  .row2 { grid-template-columns: 1fr; }
  .modal-box { padding: 20px 16px; }
  .energy-form { padding: 22px 18px; }
  .wa-float { width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
