/* =============================================================
   MEMO STORE — styles.css
   Celulares, accesorios y servicio técnico en Piñas, El Oro.
   Single stylesheet, sectioned. No preprocessor, no build step.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Brand — derived from the official Memo Store logo:
     dark charcoal wordmark flanked by a lime-green phone outline
     (left) and a magenta phone outline (right), on a white/transparent
     background. No purple in the real mark — magenta is the primary
     interactive accent, lime is the secondary accent. Both are used
     sparingly, exactly as in the logo, never blended together. */
  --magenta-900: #3D0E28;
  --magenta-800: #5C1039;
  --magenta-700: #85134C;
  --magenta-600: #B8165F;
  --magenta-500: #E31C7E;   /* primary brand accent, sampled from the logo */
  --magenta-400: #EA4C99;
  --magenta-300: #F187BE;
  --magenta-200: #F8B9D9;
  --magenta-100: #FCDCEC;
  --magenta-50:  #FEF0F7;

  --ink:        #17181B;
  --ink-soft:   #2C2F35;   /* ≈ wordmark charcoal */
  --gray-600:   #55555E;
  --gray-400:   #86868F;
  --gray-200:   #DCDCE3;
  --gray-100:   #ECECF1;
  --gray-50:    #F5F5F7;
  --white:      #FFFFFF;

  --lime:       #8BC63F;   /* sampled from the logo's left phone outline */
  --lime-dark:  #5C8A2A;
  --lime-ink:   #2E3B0A;   /* readable text on lime */
  --magenta:    #E31C7E;   /* sampled from the logo's right phone outline */

  --success:    #1FAA59;
  --warning:    #E0A215;
  --danger:     #E23A4E;

  /* Semantic */
  --bg:          var(--white);
  --bg-alt:      var(--gray-50);
  --text:        var(--ink);
  --text-mute:   var(--gray-600);
  --line:        var(--gray-200);
  --accent:      var(--magenta-500);
  --accent-ink:  var(--white);

  /* Dark "power block" gradient — charcoal only. Color pops (magenta/lime)
     are reserved for accents, never blended into large gradients. */
  --brand-gradient: linear-gradient(135deg, #33363D 0%, #17181B 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(23,24,27,.06) 0%, rgba(227,28,126,.06) 55%, rgba(139,198,63,.06) 100%);
  /* Vivid magenta gradient for emphasis moments (hero text-clip, etc.) —
     kept separate from --brand-gradient so highlighted text still pops
     against a white background instead of reading as near-black. */
  --accent-gradient: linear-gradient(120deg, var(--magenta-600) 0%, var(--magenta-400) 100%);

  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(17,17,17,.06), 0 1px 2px rgba(17,17,17,.04);
  --shadow-md: 0 12px 28px -8px rgba(17,18,20,.16), 0 4px 10px -4px rgba(17,17,17,.06);
  --shadow-lg: 0 30px 60px -20px rgba(17,18,20,.28), 0 12px 24px -8px rgba(17,17,17,.10);
  --shadow-magenta: 0 18px 40px -14px rgba(227,28,126,.4);

  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 76px;
  --container-w: 1240px;
}

@property --mesh-x { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --mesh-y { syntax: "<percentage>"; inherits: false; initial-value: 30%; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.06; letter-spacing: -0.02em; font-family: var(--font-display); }
::selection { background: var(--magenta-500); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--magenta-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 720px) { .container { padding-inline: 32px; } }
@media (min-width: 1280px) { .container { padding-inline: 40px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--ink); color: var(--white);
  border-radius: var(--radius-sm); font-weight: 600; transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.section { padding-block: clamp(3.2rem, 7vw, 6rem); }
.section-tight { padding-block: clamp(2rem, 4vw, 3.2rem); }
.section-head {
  display: flex; flex-direction: column; gap: .6rem;
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 640px;
}
.section-head.center { align-items: center; text-align: center; margin-inline: auto; }
.section-head--row {
  flex-direction: row; align-items: flex-end; justify-content: space-between;
  max-width: none; gap: 1.5rem; flex-wrap: wrap;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--magenta-600);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--magenta-500);
  box-shadow: 0 0 0 4px var(--magenta-100);
}
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
.section-sub { color: var(--text-mute); font-size: 1.02rem; max-width: 52ch; }

.divider { height: 1px; background: var(--line); border: 0; }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
strong, b { font-weight: 700; }
.text-mute { color: var(--text-mute); }
.text-purple { color: var(--magenta-600); }

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background-color .3s, color .3s, border-color .3s;
}
.btn svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-primary {
  background: var(--ink); color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(17,17,17,.35);
}
.btn-primary:hover { background: var(--magenta-600); box-shadow: var(--shadow-magenta); }

.btn-whatsapp {
  background: #22C55E; color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(34,197,94,.45);
}
.btn-whatsapp:hover { background: #1DA851; box-shadow: 0 18px 36px -12px rgba(34,197,94,.55); }

.btn-purple {
  background: var(--magenta-500); color: var(--white);
  box-shadow: var(--shadow-magenta);
}
.btn-purple:hover { background: var(--magenta-600); }

.btn-ghost {
  background: var(--white); color: var(--ink);
  border: 1.5px solid var(--gray-200);
}
.btn-ghost:hover { border-color: var(--magenta-400); color: var(--magenta-600); }

.btn-outline-invert {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.55);
}
.btn-outline-invert:hover { background: rgba(255,255,255,.14); border-color: var(--white); }

.btn-sm { padding: .68rem 1.15rem; font-size: .84rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* Badges / chips */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-display); font-weight: 700; font-size: .68rem;
  letter-spacing: .05em; text-transform: uppercase;
  padding: .32rem .65rem; border-radius: var(--radius-pill);
}
.badge-offer { background: var(--magenta); color: var(--white); }
.badge-new   { background: var(--lime); color: var(--lime-ink); }
.badge-out   { background: var(--gray-200); color: var(--gray-600); }
.badge-low   { background: #FFF0D6; color: #8A5A00; }
.badge-demo  { background: var(--ink); color: var(--white); }
.badge-purple{ background: var(--magenta-100); color: var(--magenta-700); }

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1rem; border-radius: var(--radius-pill);
  border: 1.5px solid var(--gray-200); background: var(--white);
  font-weight: 600; font-size: .86rem; color: var(--text-mute);
  transition: all .25s var(--ease-out); cursor: pointer;
}
.chip:hover { border-color: var(--magenta-300); color: var(--magenta-600); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Demo notice */
.demo-notice {
  display: flex; align-items: flex-start; gap: .75rem;
  background: var(--magenta-50); border: 1px solid var(--magenta-200);
  color: var(--magenta-800);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  font-size: .92rem;
  margin-bottom: 1.8rem;
}
.demo-notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--magenta-500); }

/* Glass surface */
.glass {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.6);
}
@supports (backdrop-filter: blur(16px)) {
  .glass {
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
  }
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .5s var(--ease-soft), transform .5s var(--ease-soft), border-color .5s;
}

/* Tilt (applied via JS to .has-tilt) */
.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
}

/* Forms */
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 700; font-size: .85rem; }
.field input, .field select, .field textarea {
  padding: .8rem 1rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--magenta-400); }

/* Search bar */
.searchbar {
  position: relative;
  display: flex; align-items: center; gap: .7rem;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-pill);
  padding: .3rem .4rem .3rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .3s, box-shadow .3s;
}
.searchbar:focus-within { border-color: var(--magenta-400); box-shadow: var(--shadow-magenta); }
.searchbar svg { width: 20px; height: 20px; color: var(--gray-400); flex-shrink: 0; }
.searchbar input {
  flex: 1; border: 0; background: none; padding: .75rem 0; font-size: .98rem; min-width: 0;
}
.searchbar input:focus { outline: none; }
.searchbar .btn { padding: .72rem 1.35rem; }

.search-suggest {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 60;
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  overflow: hidden; opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
  max-height: 340px; overflow-y: auto;
}
.search-suggest.is-open { opacity: 1; transform: none; pointer-events: auto; }
.search-suggest a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem 1.1rem; font-size: .92rem; font-weight: 600;
  border-bottom: 1px solid var(--gray-100);
}
.search-suggest a:last-child { border-bottom: 0; }
.search-suggest a:hover, .search-suggest a:focus-visible { background: var(--magenta-50); color: var(--magenta-700); }
.search-suggest .s-cat { font-size: .74rem; font-weight: 600; color: var(--text-mute); text-transform: uppercase; letter-spacing: .04em; }
.search-suggest .s-empty { padding: 1rem 1.1rem; font-size: .88rem; color: var(--text-mute); }

/* =============================================================
   6. Navbar
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 500;
  height: var(--nav-h);
}
.nav-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-bg {
  position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,0);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out);
}
.nav.is-scrolled .nav-bg, .nav.is-open .nav-bg {
  background: rgba(255,255,255,.82);
  border-bottom-color: var(--gray-100);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.nav-brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.nav-brand .logo-mark { height: 42px; width: auto; }
.nav-brand .logo-word { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; line-height: 1; }
.nav-brand .logo-word span { display: block; font-size: .58rem; font-weight: 700; letter-spacing: .18em; color: var(--magenta-600); }

.nav-links { display: none; align-items: center; gap: 1.9rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link { position: relative; font-weight: 600; font-size: .92rem; padding: .3rem 0; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--magenta-500); border-radius: 2px;
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { color: var(--magenta-700); }

.nav-actions { display: flex; align-items: center; gap: .7rem; }
.nav-cta { display: none; }
@media (min-width: 860px) { .nav-cta { display: inline-flex; } }

.nav-burger {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-pill);
  background: var(--gray-50);
}
@media (min-width: 1024px) { .nav-burger { display: none; } }
.nav-burger span { position: relative; width: 18px; height: 2px; background: var(--ink); display: block; }
.nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
  transition: transform .35s var(--ease-out), top .35s var(--ease-out), opacity .35s var(--ease-out);
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
.nav.is-open .nav-burger span { background: transparent; }
.nav.is-open .nav-burger span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav-burger span::after { top: 0; transform: rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 480;
  background: var(--white);
  padding: 2rem 20px 2.5rem;
  flex-direction: column; gap: .3rem;
  display: none;
  overflow-y: auto;
}
/* display:none/flex is a discrete (non-transitioned) toggle, so the menu
   is guaranteed to open even if the engine can't run the @keyframes below. */
.nav.is-open .nav-mobile,
.nav-mobile.is-open {
  display: flex;
  animation: navMobileIn .4s var(--ease-soft);
}
@keyframes navMobileIn {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav.is-open .nav-mobile, .nav-mobile.is-open { animation-duration: .01s; }
}
@media (min-width: 1024px) { .nav-mobile { display: none !important; } }
.nav-mobile a {
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  padding: .85rem 0; border-bottom: 1px solid var(--gray-100);
}
.nav-mobile .btn { margin-top: 1.4rem; }

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2rem, 6vw, 3.4rem));
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  overflow: clip;
  isolation: isolate;
}
.hero-mesh {
  position: absolute; inset: -10% -10% -30% -10%; z-index: -1;
  background:
    radial-gradient(42% 38% at var(--mesh-x) var(--mesh-y), rgba(227,28,126,.18), transparent 68%),
    radial-gradient(38% 34% at 78% 68%, rgba(139,198,63,.16), transparent 65%),
    radial-gradient(46% 40% at 12% 82%, rgba(23,24,27,.05), transparent 70%);
  filter: blur(60px) saturate(130%);
  animation: meshDrift 26s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { --mesh-x: 26%; --mesh-y: 22%; }
  50%      { --mesh-x: 62%; --mesh-y: 46%; }
}
.hero-grid {
  display: grid; gap: 2.6rem; align-items: center;
}
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 2rem; } }

.hero-loc {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .88rem; color: var(--text-mute);
  margin-top: 1.1rem;
}
.hero-loc svg { width: 16px; height: 16px; color: var(--magenta-500); flex-shrink: 0; }

.hero-title { margin-top: 1.1rem; }
.hero-title em {
  font-style: normal;
  background: var(--accent-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 1.2rem; font-size: 1.12rem; color: var(--text-mute); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; }

.hero-tags { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.6rem; }
.hero-tag {
  font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .04em;
  text-transform: uppercase; padding: .4rem .8rem; border-radius: var(--radius-pill);
  background: var(--white); border: 1px solid var(--gray-200); color: var(--text-mute);
}

.hero-visual { position: relative; min-height: 360px; }
.hero-devices { position: relative; width: 100%; height: 100%; }
.hero-device {
  position: absolute; filter: drop-shadow(0 40px 60px rgba(17,18,20,.28));
  animation: floatY 6s ease-in-out infinite;
}
.hero-device.d2 { animation-delay: -2s; }
.hero-device.d3 { animation-delay: -4s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

.hero-float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1rem; border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  animation: floatY 7s ease-in-out infinite;
}
.hero-float-card svg { width: 18px; height: 18px; }
.hero-float-card.fc1 { top: 6%; left: -2%; }
.hero-float-card.fc2 { bottom: 10%; right: -2%; animation-delay: -3s; }

@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation-duration: 46s; }
  .hero-device, .hero-float-card { animation: none; }
}

/* =============================================================
   8. Category cards
   ============================================================= */
.category-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }

.category-card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-xl);
  padding: 1.8rem 1.6rem 2rem;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem;
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.category-card::before {
  content: ""; position: absolute; inset: 0; z-index: -2; background: var(--cat-bg, var(--brand-gradient));
}
.category-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.38) 100%);
}
.category-card .cat-icon {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  background: rgba(255,255,255,.18); display: grid; place-items: center;
  margin-bottom: .4rem;
}
.category-card .cat-icon svg { width: 24px; height: 24px; }
.category-card h3 { font-size: 1.28rem; }
.category-card p { font-size: .88rem; opacity: .9; }
.category-card .cat-arrow {
  position: absolute; top: 1.4rem; right: 1.4rem; width: 38px; height: 38px;
  border-radius: 50%; background: rgba(255,255,255,.2);
  display: grid; place-items: center; transition: transform .4s var(--ease-out), background .3s;
}
.category-card .cat-arrow svg { width: 18px; height: 18px; }
.category-card:hover .cat-arrow { transform: rotate(45deg); background: rgba(255,255,255,.32); }
.category-card.c-cel  { --cat-bg: var(--brand-gradient); }
.category-card.c-acc  { --cat-bg: linear-gradient(135deg, #1B1B22 0%, #34343E 100%); }
.category-card.c-serv { --cat-bg: linear-gradient(135deg, #E31C7E 0%, #85134C 100%); }
.category-card.c-promo{ --cat-bg: linear-gradient(135deg, #8BC63F 0%, #5C8A2A 100%); }

/* =============================================================
   9. Product grid & cards
   ============================================================= */
.product-grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

.product-card {
  display: flex; flex-direction: column;
  overflow: hidden; position: relative;
  padding: 0;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: transparent; }
.product-media {
  position: relative; aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, var(--gray-50), var(--magenta-50));
  display: grid; place-items: center; overflow: hidden;
  padding: 14%;
}
.product-media svg { width: 100%; height: 100%; transition: transform .7s var(--ease-soft); }
.product-card:hover .product-media svg { transform: scale(1.08) translateY(-3px); }
.product-badges { position: absolute; top: .7rem; left: .7rem; display: flex; flex-direction: column; gap: .35rem; z-index: 2; }
.product-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.product-brand { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--magenta-600); }
.product-name { font-family: var(--font-display); font-weight: 700; font-size: .98rem; line-height: 1.25; }
.product-spec { font-size: .8rem; color: var(--text-mute); }
.product-price-row { display: flex; align-items: baseline; gap: .5rem; margin-top: .3rem; flex-wrap: wrap; }
.product-price { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.product-price-old { font-size: .82rem; color: var(--gray-400); text-decoration: line-through; }
.product-cta { margin-top: .8rem; }
.product-cta .btn { width: 100%; }
.product-card[data-stock="agotado"] { opacity: .68; }
.product-card[data-stock="agotado"] .product-cta .btn { pointer-events: none; background: var(--gray-200); color: var(--gray-600); box-shadow: none; }

/* Horizontal carousel (featured / promos) */
.hscroll {
  display: flex; gap: 1.2rem; overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x proximity; padding: .4rem .2rem 1.4rem;
  scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: 0 0 auto; width: min(78vw, 280px); }
@media (min-width: 720px) { .hscroll > * { width: 260px; } }

.hscroll-nav { display: none; align-items: center; gap: .6rem; }
@media (min-width: 720px) { .hscroll-nav { display: flex; } }
.hscroll-arrow {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--gray-200);
  display: grid; place-items: center; transition: all .25s var(--ease-out);
}
.hscroll-arrow:hover { border-color: var(--magenta-400); color: var(--magenta-600); background: var(--magenta-50); }
.hscroll-arrow svg { width: 18px; height: 18px; }

/* =============================================================
   10. Filters / catalog toolbar
   ============================================================= */
.catalog-toolbar {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.2rem; border-radius: var(--radius-lg);
  background: var(--gray-50); border: 1px solid var(--gray-100);
  margin-bottom: 1.8rem;
}
.filters-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.filters-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters-label { font-family: var(--font-display); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-mute); margin-right: .3rem; }
.toolbar-end { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; width: 100%; }
@media (min-width: 720px) { .toolbar-end { width: auto; margin-left: auto; } }
.sort-select {
  padding: .6rem 1rem; border-radius: var(--radius-pill); border: 1.5px solid var(--gray-200);
  background: var(--white); font-weight: 600; font-size: .86rem;
}
.results-count { font-size: .86rem; color: var(--text-mute); font-weight: 600; }
.filters-clear { font-size: .84rem; font-weight: 700; color: var(--magenta-600); text-decoration: underline; }
.no-results { display: none; text-align: center; padding: 3.5rem 1rem; color: var(--text-mute); }
.no-results.is-visible { display: block; }

/* =============================================================
   10.5 Brand grid + tier cards (informational — no prices)
   ============================================================= */
.brand-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .brand-grid { grid-template-columns: repeat(4, 1fr); } }
.brand-card {
  padding: 1.6rem 1rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.brand-card .b-dot {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-gradient); display: grid; place-items: center;
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
}
.brand-card span { font-family: var(--font-display); font-weight: 700; font-size: .96rem; }

.tier-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .tier-grid { grid-template-columns: repeat(3, 1fr); } }
.tier-grid--2col { grid-template-columns: 1fr; }
@media (min-width: 560px) { .tier-grid--2col { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .tier-grid--2col { grid-template-columns: repeat(2, 1fr); } }
.tier-card { padding: 1.8rem 1.6rem; display: flex; flex-direction: column; gap: .7rem; }
.tier-card ul { margin-top: .3rem; display: flex; flex-direction: column; gap: .4rem; }
.tier-card li { font-size: .86rem; color: var(--text-mute); display: flex; gap: .5rem; align-items: flex-start; }
.tier-card li svg { width: 15px; height: 15px; color: var(--magenta-500); flex-shrink: 0; margin-top: 3px; }

/* =============================================================
   11. Service section
   ============================================================= */
.service-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }
.service-item {
  padding: 1.5rem 1.3rem; display: flex; flex-direction: column; gap: .7rem;
}
.service-item .s-icon {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  background: var(--magenta-100); color: var(--magenta-600);
  display: grid; place-items: center;
}
.service-item .s-icon svg { width: 24px; height: 24px; }
.service-item h3 { font-size: 1.02rem; }
.service-item p { font-size: .86rem; color: var(--text-mute); }

.service-cta {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-xl); padding: clamp(2rem, 5vw, 3.4rem);
  color: var(--white); text-align: center;
  background: var(--brand-gradient);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.service-cta::before {
  content: ""; position: absolute; inset: -20%; z-index: -1;
  background: radial-gradient(50% 50% at 20% 20%, rgba(255,255,255,.18), transparent 60%);
}
.service-cta h2 { max-width: 22ch; }
.service-cta p { max-width: 46ch; opacity: .92; }

.process-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 720px) { .process-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .process-grid { grid-template-columns: repeat(5, 1fr); } }
.process-step { display: flex; flex-direction: column; gap: .5rem; }
.process-num {
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem;
  color: var(--magenta-300);
}
.process-step h3 { font-size: 1rem; }
.process-step p { font-size: .86rem; color: var(--text-mute); }

/* =============================================================
   12. Promotions
   ============================================================= */
.promo-card { overflow: hidden; }
.promo-media {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  display: grid; place-items: center;
  background: var(--brand-gradient);
  padding: 12%;
}
.promo-media svg { width: 100%; height: 100%; }
.promo-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; }
.promo-valid { font-size: .78rem; color: var(--text-mute); }

/* =============================================================
   13. Purple commercial banner
   ============================================================= */
.banner-purple {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--brand-gradient);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(2.4rem, 6vw, 4.4rem);
  text-align: center;
}
.banner-purple::before, .banner-purple::after {
  content: ""; position: absolute; border-radius: 50%; z-index: -1;
}
.banner-purple::before { width: 320px; height: 320px; background: rgba(139,198,63,.14); top: -140px; left: -100px; }
.banner-purple::after { width: 280px; height: 280px; background: rgba(227,28,126,.16); bottom: -140px; right: -80px; }
.banner-purple h2 { max-width: 20ch; margin-inline: auto; }
.banner-purple p { max-width: 48ch; margin-inline: auto; margin-top: .9rem; opacity: .92; font-size: 1.05rem; }
.banner-purple .btn { margin-top: 1.7rem; }

/* =============================================================
   14. About
   ============================================================= */
.about-grid { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 3.2rem; } }
.about-photos { display: grid; grid-template-columns: 1.2fr .8fr; gap: .8rem; }
.photo-placeholder {
  border-radius: var(--radius-lg);
  border: 1.6px dashed var(--gray-200);
  background: var(--gray-50);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  color: var(--gray-400); text-align: center; padding: 1.4rem;
  aspect-ratio: 3/4;
}
.photo-placeholder.tall { aspect-ratio: unset; height: 100%; }
.photo-placeholder svg { width: 30px; height: 30px; }
.photo-placeholder span { font-size: .78rem; font-weight: 600; max-width: 16ch; }
.about-text p { color: var(--text-mute); margin-top: 1rem; }
.about-stats { display: flex; gap: 1.6rem; margin-top: 1.8rem; flex-wrap: wrap; }
.about-stats .stat b { font-family: var(--font-display); font-size: 1.5rem; color: var(--magenta-600); display: block; }
.about-stats .stat span { font-size: .82rem; color: var(--text-mute); }

/* =============================================================
   15. Location / map / schedule
   ============================================================= */
.location-grid { display: grid; gap: 1.8rem; }
@media (min-width: 960px) { .location-grid { grid-template-columns: 1fr 1.15fr; } }
.location-card { padding: 1.8rem; display: flex; flex-direction: column; gap: 1.2rem; }
.location-row { display: flex; gap: .9rem; align-items: flex-start; }
.location-row .l-icon {
  width: 42px; height: 42px; border-radius: var(--radius-md); flex-shrink: 0;
  background: var(--magenta-100); color: var(--magenta-600); display: grid; place-items: center;
}
.location-row .l-icon svg { width: 21px; height: 21px; }
.location-row h4 { font-size: .95rem; }
.location-row p { font-size: .9rem; color: var(--text-mute); }
.location-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }
.map-frame {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-100);
  min-height: 340px; box-shadow: var(--shadow-sm);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

.schedule-card { padding: 1.6rem 1.8rem; display: flex; flex-direction: column; gap: .7rem; }
.schedule-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--gray-100); font-size: .92rem; }
.schedule-row:last-child { border-bottom: 0; }
.schedule-row span:first-child { font-weight: 700; }
.schedule-row span:last-child { color: var(--text-mute); }

/* =============================================================
   16. Final CTA
   ============================================================= */
.final-cta {
  background: var(--ink); color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(2.6rem, 7vw, 5rem) clamp(1.6rem, 6vw, 3rem);
  text-align: center;
  position: relative; overflow: hidden; isolation: isolate;
}
.final-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 60% at 50% 0%, rgba(227,28,126,.4), transparent 70%);
}
.final-cta h2 { max-width: 22ch; margin-inline: auto; }
.final-cta p { color: rgba(255,255,255,.72); margin-top: .8rem; }
.final-cta .btn { margin-top: 1.8rem; font-size: 1.05rem; padding: 1.15rem 2.2rem; }

/* =============================================================
   17. Footer
   ============================================================= */
.footer { background: var(--magenta-900); color: rgba(255,255,255,.86); }
.footer-top { padding-block: clamp(2.8rem, 6vw, 4rem); }
.footer-grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; } }
.footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.footer-brand .logo-word { font-family: var(--font-display); font-weight: 800; color: var(--white); font-size: 1.1rem; }
/* The real logo's wordmark is dark charcoal, so on the dark footer it
   needs a light plate behind it to stay legible. */
.footer-logo-badge {
  display: inline-flex; align-items: center;
  background: var(--white);
  padding: .55rem 1rem;
  border-radius: var(--radius-md);
}
.footer-logo-badge img { height: 34px; width: auto; display: block; }
.footer-about { font-size: .9rem; color: rgba(255,255,255,.6); max-width: 30ch; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: grid; place-items: center; transition: background .3s;
}
.footer-social a:hover { background: var(--magenta-500); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h4 { color: var(--white); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .65rem; }
.footer-col a { font-size: .9rem; color: rgba(255,255,255,.68); transition: color .25s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 1.4rem;
  display: flex; flex-direction: column; gap: .6rem; align-items: center; text-align: center;
  font-size: .82rem; color: rgba(255,255,255,.55);
}
@media (min-width: 720px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-bottom a { text-decoration: underline; }

/* =============================================================
   18. WhatsApp floating button
   ============================================================= */
.wa-float {
  position: fixed; right: clamp(14px, 4vw, 26px); bottom: clamp(14px, 4vw, 26px); z-index: 600;
  display: flex; align-items: center; gap: .65rem;
  padding: .95rem 1.3rem .95rem 1rem;
  background: #22C55E; color: var(--white);
  border-radius: var(--radius-pill);
  box-shadow: 0 16px 34px -10px rgba(34,197,94,.55);
  font-family: var(--font-display); font-weight: 700; font-size: .88rem;
  transition: transform .4s var(--ease-bounce), box-shadow .4s;
}
.wa-float:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 22px 44px -10px rgba(34,197,94,.6); }
.wa-float svg { width: 24px; height: 24px; flex-shrink: 0; }
.wa-float .wa-text { display: none; }
@media (min-width: 640px) { .wa-float .wa-text { display: inline; } }
.wa-float .wa-pulse {
  position: absolute; inset: 0; border-radius: var(--radius-pill);
  border: 2px solid #22C55E; animation: waPulse 2.6s ease-out infinite;
}
@keyframes waPulse { 0% { opacity: .6; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .wa-float .wa-pulse { animation-duration: 4s; } }

/* =============================================================
   19. Breadcrumbs
   ============================================================= */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .84rem; color: var(--text-mute); padding-top: calc(var(--nav-h) + 1.4rem); }
.breadcrumbs a { font-weight: 600; }
.breadcrumbs a:hover { color: var(--magenta-600); }
.breadcrumbs span[aria-hidden] { color: var(--gray-400); }
.breadcrumbs .current { color: var(--text); font-weight: 600; }

/* =============================================================
   20. Product detail page
   ============================================================= */
.pdp-grid { display: grid; gap: 2.6rem; }
@media (min-width: 960px) { .pdp-grid { grid-template-columns: 1fr 1fr; gap: 3.4rem; } }
.pdp-gallery-main {
  aspect-ratio: 1/1; border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--gray-50), var(--magenta-50));
  display: grid; place-items: center; padding: 12%;
  position: relative;
}
.pdp-gallery-main svg { width: 100%; height: 100%; }
.pdp-thumbs { display: flex; gap: .7rem; margin-top: 1rem; }
.pdp-thumbs button {
  width: 64px; height: 64px; border-radius: var(--radius-md);
  border: 1.6px solid var(--gray-200); background: var(--gray-50);
  display: grid; place-items: center; padding: 8px;
  transition: border-color .25s;
}
.pdp-thumbs button.is-active, .pdp-thumbs button:hover { border-color: var(--magenta-500); }
.pdp-thumbs svg { width: 100%; height: 100%; }

.pdp-info .product-brand { font-size: .8rem; }
.pdp-info h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-top: .3rem; }
.pdp-price-row { display: flex; align-items: baseline; gap: .8rem; margin-top: 1rem; flex-wrap: wrap; }
.pdp-price { font-family: var(--font-display); font-weight: 800; font-size: 2rem; }
.pdp-price-old { font-size: 1.1rem; color: var(--gray-400); text-decoration: line-through; }
.pdp-stock { margin-top: .6rem; }
.pdp-colors { display: flex; gap: .5rem; margin-top: .3rem; }
.pdp-colors span { padding: .4rem .85rem; border-radius: var(--radius-pill); border: 1.5px solid var(--gray-200); font-size: .82rem; font-weight: 600; }
.pdp-cta { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .7rem; }
.pdp-cta .btn { width: 100%; font-size: 1rem; padding: 1.1rem 1.6rem; }
.pdp-note { font-size: .84rem; color: var(--text-mute); display: flex; gap: .5rem; align-items: flex-start; }
.pdp-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--magenta-500); }

.specs-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.specs-table tr { border-bottom: 1px solid var(--gray-100); }
.specs-table td { padding: .8rem .2rem; font-size: .92rem; }
.specs-table td:first-child { font-weight: 700; color: var(--text-mute); width: 40%; }

.pdp-related { margin-top: 3.5rem; }

/* =============================================================
   21. Effects — reveal on scroll (universal, non-intrusive)
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal-group] > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-soft), transform .7s var(--ease-soft); }
[data-reveal-group].is-revealed > * { opacity: 1; transform: none; }
[data-reveal-group].is-revealed > *:nth-child(1) { transition-delay: .02s; }
[data-reveal-group].is-revealed > *:nth-child(2) { transition-delay: .08s; }
[data-reveal-group].is-revealed > *:nth-child(3) { transition-delay: .14s; }
[data-reveal-group].is-revealed > *:nth-child(4) { transition-delay: .2s; }
[data-reveal-group].is-revealed > *:nth-child(5) { transition-delay: .26s; }
[data-reveal-group].is-revealed > *:nth-child(6) { transition-delay: .32s; }
[data-reveal-group].is-revealed > *:nth-child(7) { transition-delay: .38s; }
[data-reveal-group].is-revealed > *:nth-child(8) { transition-delay: .44s; }

/* =============================================================
   22. Responsive helpers
   ============================================================= */
.hide-mobile { display: none; }
@media (min-width: 720px) { .hide-mobile { display: initial; } }
.hide-desktop { display: initial; }
@media (min-width: 720px) { .hide-desktop { display: none; } }

/* =============================================================
   23. Reduced motion — only genuinely intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .wa-float .wa-pulse { animation-duration: 5s; }
}

/* =============================================================
   24. Page hero variants (interior pages)
   ============================================================= */
.page-hero {
  padding-top: calc(var(--nav-h) + 2.4rem);
  padding-bottom: 2.4rem;
}
.page-hero h1 { max-width: 20ch; }
.page-hero p { color: var(--text-mute); max-width: 56ch; margin-top: .8rem; font-size: 1.05rem; }
