/* ============================================================
   SHAPETOTAL — FACHA SKIN v2 (override aditivo, tras app.css)
   Identidad "Pharma Ice": celeste clínico luminoso. Fondos hielo,
   glass claro, acentos celeste/cyan, tinta oscura suave.
   Animaciones suaves y largas. Azul marino solo en sombras.
   ============================================================ */

:root {
  /* ── Paleta PHARMA ICE ── */
  --st-void: #eef7fb;
  --st-void-soft: #f6fbfe;
  --st-void-panel: #ffffff;
  --st-surface: #f6fbfe;
  --st-surface-raised: #ffffff;

  --st-primary: #19b8e6;
  --st-primary-bright: #0a86b3;
  --st-primary-soft: #0e9ecf;
  --st-primary-pale: #bfe9f7;
  --st-primary-glow: rgba(25, 184, 230, 0.16);
  --st-primary-glow-strong: rgba(25, 184, 230, 0.32);

  --st-cyan: #35c5f0;
  --st-cyan-bright: #0a86b3;
  --st-cyan-soft: #19b8e6;
  --st-cyan-pale: #d6f2fc;
  --st-cyan-glow: rgba(53, 197, 240, 0.16);
  --st-cyan-glow-strong: rgba(53, 197, 240, 0.32);

  --st-lime: #12b294;
  --st-orange: #ff7a4d;
  --st-yellow: #f0b429;

  --st-ink: #122530;
  --st-text: #122530;
  --st-text-muted: rgba(18, 37, 48, 0.62);
  --st-ink-soft: #2c4352;
  --st-ink-muted: rgba(18, 37, 48, 0.62);
  --st-ink-faint: rgba(18, 37, 48, 0.42);

  --st-green: #12b294;
  --st-green-soft: #0e9c80;
  --st-red: #e5533d;
  --st-red-soft: #d64530;
  --st-amber: #e8a113;
  --st-violet: #0a86b3;

  /* ── Glass claro ── */
  --st-glass-bg: rgba(255, 255, 255, 0.72);
  --st-glass-bg-light: rgba(255, 255, 255, 0.55);
  --st-glass-border: rgba(25, 184, 230, 0.18);
  --st-glass-border-hover: rgba(25, 184, 230, 0.45);
  --st-glass-blur: blur(36px) saturate(1.5);
  --st-glass-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.9),
    0 24px 60px -12px rgba(18, 49, 79, 0.18);

  /* ── Tarjeta glass clara ── */
  --st-card-bg: rgba(255, 255, 255, 0.8);
  --st-card-border: rgba(25, 184, 230, 0.14);
  --st-card-shadow: 0 18px 45px -14px rgba(18, 49, 79, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  --st-card-shadow-hover: 0 32px 70px -18px rgba(18, 49, 79, 0.28),
    0 0 44px rgba(53, 197, 240, 0.22);

  /* ── Gradientes pharma ── */
  --facha-grad-volt: linear-gradient(120deg, #0e9ecf, #35c5f0 38%, #8fdcf7 62%, #0e9ecf);
  --facha-grad-plasma: linear-gradient(135deg, #19b8e6, #35c5f0 55%, #7fdcff);
  --facha-ease-silk: cubic-bezier(0.22, 0.61, 0.21, 1);
}

/* Selector de moneda: control compacto, claro y accesible. */
.st-currency-switcher { position: relative; display: inline-flex; z-index: 80; }
.st-currency-switcher__trigger {
  display: inline-flex; align-items: center; gap: .38rem; min-width: 82px; min-height: 40px;
  padding: .45rem .65rem; border: 1px solid rgba(25,184,230,.22); border-radius: 12px;
  color: var(--st-ink); background: #fff; box-shadow: 0 6px 18px rgba(18,49,79,.09);
  font: 700 .72rem/1 var(--st-font-mono); letter-spacing: .04em; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.st-currency-switcher__trigger:hover, .st-currency-switcher--open .st-currency-switcher__trigger { border-color: var(--st-primary); box-shadow: 0 8px 22px rgba(18,49,79,.14); transform: translateY(-1px); }
.st-currency-switcher__symbol { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 7px; color: #fff; background: var(--st-primary); font: 700 .78rem/1 var(--st-font-display); }
.st-currency-switcher__code { flex: 1; text-align: left; }
.st-currency-switcher__chevron { color: var(--st-primary-soft); font-size: 1rem; line-height: .7; transform: translateY(-1px); }
.st-currency-switcher__menu { position: absolute; top: calc(100% + .55rem); right: 0; width: 218px; padding: .35rem; border: 1px solid rgba(25,184,230,.18); border-radius: 16px; background: #fff; box-shadow: 0 18px 45px rgba(18,49,79,.18); }
.st-currency-switcher__option { display: grid; grid-template-columns: 30px 1fr 18px; gap: .6rem; align-items: center; width: 100%; min-height: 52px; padding: .45rem .55rem; border: 0; border-radius: 11px; color: var(--st-ink); background: transparent; text-align: left; }
.st-currency-switcher__option:hover, .st-currency-switcher__option--active { background: rgba(25,184,230,.09); }
.st-currency-switcher__option-symbol { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: var(--st-primary-bright); background: rgba(25,184,230,.11); font: 700 .85rem/1 var(--st-font-display); }
.st-currency-switcher__option-copy { display: grid; gap: .15rem; }
.st-currency-switcher__option-copy strong { font: 700 .75rem/1 var(--st-font-mono); letter-spacing: .04em; }
.st-currency-switcher__option-copy span { color: var(--st-ink-muted); font: 500 .66rem/1.1 var(--st-font-display); }
.st-currency-switcher__option-check { color: var(--st-primary); opacity: 0; font-weight: 800; }
.st-currency-switcher__option--active .st-currency-switcher__option-check { opacity: 1; }
@media (max-width: 767.98px) {
  .st-currency-switcher__trigger { min-width: 70px; padding-inline: .45rem; }
  .st-currency-switcher__menu { right: -.35rem; width: 205px; }
}

/* Superficie nítida y liviana: profundidad con color, borde y sombra. */
.st-noise, .st-spotlight, .st-vignette, .st-bgfx__blob,
.st-bgfx__scanline, .st-smoke { display: none !important; }
.st-bgfx {
  opacity: .42;
  background-image: linear-gradient(rgba(95,212,240,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95,212,240,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}
.st-glass, .st-glass-light, .st-glass-gradient, .st-profile-menu,
.st-fx-panel, .st-tabs__bar, .st-top-search__input,
.st-top-search__panel, .st-checkout {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.st-glass, .st-glass-light, .st-glass-gradient { background: rgba(12,24,38,.94) !important; }
/* El pilar hereda .st-glass: sin esta regla queda navy oscuro con tinta oscura (ilegible). */
.st-pilar { background: var(--st-card-bg) !important; border: 1px solid var(--st-card-border); box-shadow: var(--st-card-shadow); }
.st-profile-menu, .st-fx-panel, .st-top-search__panel { background: #102238 !important; }
body::before { filter: none !important; }

/* Ángulo animable para halos cónicos */
@property --facha-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes facha-spin {
  to { --facha-angle: 360deg; }
}

@keyframes facha-grad-pan {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes facha-pulse-glow {
  0%, 100% { box-shadow: 0 10px 30px -8px rgba(25, 184, 230, 0.45), 0 0 0 rgba(53, 197, 240, 0); }
  50% { box-shadow: 0 14px 44px -8px rgba(25, 184, 230, 0.6), 0 0 28px rgba(53, 197, 240, 0.35); }
}

/* Loop infinito hacia la DERECHA: contenido duplicado 2x exacto,
   el track arranca desplazado -50% y avanza hasta 0. */
@keyframes facha-scroll-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@keyframes facha-img-enter {
  from { opacity: 0; transform: scale(1.045); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   FONDO GLOBAL — hielo luminoso con veladuras celestes
   ============================================================ */

html {
  background: #eef7fb;
}

body, body.dark {
  background-color: var(--st-void);
  background-image:
    radial-gradient(1100px 640px at 85% -8%, rgba(53, 197, 240, 0.16), transparent 62%),
    radial-gradient(880px 560px at -8% 26%, rgba(143, 220, 247, 0.20), transparent 58%),
    radial-gradient(1000px 760px at 50% 112%, rgba(25, 184, 230, 0.10), transparent 62%);
  background-attachment: fixed;
  color: var(--st-ink);
}

::selection { background: rgba(53, 197, 240, 0.32); color: #0a2a3a; }

/* Scrollbar sutil celeste */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--st-void); }
::-webkit-scrollbar-thumb { background: rgba(25, 184, 230, 0.35); border-radius: 9999px; border: 2px solid var(--st-void); }
::-webkit-scrollbar-thumb:hover { background: rgba(25, 184, 230, 0.55); }

/* ============================================================
   HERO — veladura luminosa, halo cónico suave, título celeste
   ============================================================ */

.st-hero__overlay {
  background:
    radial-gradient(68% 52% at 50% 36%, rgba(255, 255, 255, 0.5), transparent 66%),
    radial-gradient(46% 40% at 80% 18%, rgba(53, 197, 240, 0.20), transparent 70%),
    linear-gradient(90deg, rgba(238, 247, 251, 0.9), transparent 50%, rgba(238, 247, 251, 0.9)),
    linear-gradient(180deg, rgba(238, 247, 251, 0.55), rgba(238, 247, 251, 0.25) 45%, var(--st-void));
}

/* halo cónico rotando, lento y suave */
.st-hero__content { position: relative; }
.st-hero__content::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 36%;
  width: min(68vw, 50rem);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  background: conic-gradient(from var(--facha-angle, 0deg),
    transparent 0deg, rgba(53, 197, 240, 0.16) 70deg, transparent 140deg,
    transparent 200deg, rgba(25, 184, 230, 0.12) 270deg, transparent 330deg);
  border-radius: 50%;
  filter: blur(36px);
  z-index: -1;
  pointer-events: none;
  animation: facha-spin 42s linear infinite;
}

.st-hero__eyebrow {
  color: var(--st-primary-soft);
  letter-spacing: 0.22em;
  position: relative;
  padding-bottom: 0.6rem;
}
.st-hero__eyebrow::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 3.75rem;
  height: 2px;
  border-radius: 9999px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--st-primary), transparent);
}

.st-hero__title {
  color: var(--st-ink);
  letter-spacing: -0.035em;
}

.st-hero__title-accent {
  background: var(--facha-grad-volt);
  background-size: 240% 240%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: facha-grad-pan 9s var(--facha-ease-silk) infinite;
}

.st-hero__subtitle { color: var(--st-ink-muted); }

/* CTAs */
.st-hero__btn { transition: all 0.55s var(--facha-ease-silk); }

.st-hero__btn--primary {
  background: var(--facha-grad-plasma);
  background-size: 200% 200%;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(10, 70, 95, 0.25);
  animation: facha-grad-pan 8s var(--facha-ease-silk) infinite, facha-pulse-glow 4.5s ease-in-out infinite;
}
.st-hero__btn--primary:hover {
  transform: translateY(-3px);
}

/* shine sweep suave en CTA primario */
.st-hero__btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.5) 50%, transparent 68%);
  transform: translateX(-130%) skewX(-16deg);
  transition: transform 1s var(--facha-ease-silk);
  pointer-events: none;
}
.st-hero__btn--primary:hover::after { transform: translateX(130%) skewX(-16deg); }

.st-hero__btn--secondary {
  background: rgba(255, 255, 255, 0.6);
  color: var(--st-ink-soft);
  border: 1px solid rgba(25, 184, 230, 0.28);
}
.st-hero__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(25, 184, 230, 0.55);
  box-shadow: 0 10px 30px -10px rgba(25, 184, 230, 0.4);
  transform: translateY(-3px);
}

.st-hero__badge {
  padding: 0.7rem 1.15rem;
  border-radius: var(--st-radius-lg);
  background: var(--st-glass-bg-light);
  border: 1px solid var(--st-glass-border);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 8px 24px -10px rgba(18, 49, 79, 0.12);
  transition: border-color 0.6s var(--facha-ease-silk), box-shadow 0.6s var(--facha-ease-silk), transform 0.6s var(--facha-ease-silk);
}
.st-hero__badge:hover {
  border-color: var(--st-glass-border-hover);
  box-shadow: 0 14px 36px -12px rgba(25, 184, 230, 0.4);
  transform: translateY(-3px);
}
.st-hero__badge-title { color: var(--st-ink); }
.st-hero__badge-note { color: var(--st-ink-faint); }

.st-hero__dot { border-color: rgba(25, 184, 230, 0.4); }
.st-hero__dot--active {
  background: var(--st-primary);
  border-color: var(--st-primary);
  box-shadow: 0 0 12px rgba(25, 184, 230, 0.55);
}

.st-hero__arrow {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(25, 184, 230, 0.25);
  color: var(--st-ink-soft);
}
.st-hero__arrow:hover {
  border-color: rgba(25, 184, 230, 0.6);
  box-shadow: 0 8px 26px -8px rgba(25, 184, 230, 0.45);
}

/* ============================================================
   NAVBAR — glass blanco + hairline celeste
   ============================================================ */

.st-navbar.st-navbar--scrolled {
  background-color: rgba(255, 255, 255, var(--st-nav-alpha, 0));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 12px 40px -14px rgba(18, 49, 79, var(--st-nav-edge-alpha, 0));
}
.st-navbar.st-navbar--scrolled::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(25, 184, 230, calc(var(--st-nav-edge-alpha, 0) * 2.5)) 30%, rgba(53, 197, 240, calc(var(--st-nav-edge-alpha, 0) * 3.2)) 60%, transparent);
}

.st-navbar__logo-text { color: var(--st-ink); }
.st-navbar__logo-accent { color: var(--st-primary); }

.st-navbar__link { color: var(--st-ink-muted); transition: color 0.4s var(--facha-ease-silk); }
.st-navbar__link:hover { color: var(--st-primary-soft); }
.st-navbar__link--active { color: var(--st-primary-soft); }

.st-navbar__cart, .st-navbar__hamburger { color: var(--st-ink-soft); }
.st-navbar__cart:hover, .st-navbar__hamburger:hover { background-color: rgba(25, 184, 230, 0.08); }

.st-navbar__cart-badge {
  background: var(--st-orange);
  box-shadow: 0 0 10px rgba(255, 122, 77, 0.5);
}

.st-navbar__mobile { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.st-navbar__mobile-link { color: var(--st-ink-soft); }
.st-navbar__mobile-link:hover { color: var(--st-primary-soft); background: rgba(25, 184, 230, 0.08); }

/* ============================================================
   SECCIONES — títulos tinta con subrayado celeste
   ============================================================ */

.st-section__title {
  position: relative;
  color: var(--st-ink);
  letter-spacing: -0.025em;
}
.st-section__title::after {
  content: '';
  display: block;
  width: 4.5rem;
  height: 3px;
  margin-top: 0.9rem;
  border-radius: 9999px;
  background: var(--facha-grad-volt);
  background-size: 200% 100%;
  animation: facha-grad-pan 8s linear infinite;
  box-shadow: 0 2px 10px rgba(25, 184, 230, 0.35);
}

/* ============================================================
   CARDS — glass blanco, anillo celeste, hover lift suave
   ============================================================ */

.st-card {
  border-color: rgba(25, 184, 230, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 251, 254, 0.85));
  transition:
    transform 0.7s var(--facha-ease-silk),
    border-color 0.7s var(--facha-ease-silk),
    box-shadow 0.7s var(--facha-ease-silk);
}

/* anillo cónico rotando lento */
.st-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--facha-angle, 0deg),
    rgba(25, 184, 230, 0.75), transparent 32%, rgba(143, 220, 247, 0.8) 52%, transparent 74%, rgba(25, 184, 230, 0.75));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.8s var(--facha-ease-silk);
  pointer-events: none;
  z-index: 1;
}
.st-card:hover::before {
  opacity: 1;
  animation: facha-spin 7s linear infinite;
}

.st-card:hover {
  transform: translateY(-8px);
  border-color: rgba(25, 184, 230, 0.4);
  box-shadow: var(--st-card-shadow-hover);
}

/* media: shine sweep suave + ken-burns lento */
.st-card__media { background: #eef7fb; }
.st-card__img { transition: transform 6s var(--facha-ease-silk); }
.st-card:hover .st-card__img { transform: scale(1.09); }
.st-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, 0.45) 50%, transparent 64%);
  transform: translateX(-135%) skewX(-16deg);
  transition: transform 1.2s var(--facha-ease-silk);
  pointer-events: none;
  z-index: 1;
}
.st-card:hover .st-card__media::after { transform: translateX(135%) skewX(-16deg); }

.st-card__badge { color: #ffffff; }
.st-card__badge--top { background: var(--st-primary); box-shadow: 0 4px 14px rgba(25, 184, 230, 0.45); }
.st-card__badge--new { background: var(--st-green); box-shadow: 0 4px 14px rgba(18, 178, 148, 0.4); }
.st-card__badge--sale { background: var(--st-orange); box-shadow: 0 4px 14px rgba(255, 122, 77, 0.45); }

.st-card__category { color: var(--st-ink-faint); }
.st-card__name { color: var(--st-ink); transition: color 0.5s var(--facha-ease-silk); }
.st-card:hover .st-card__name { color: var(--st-primary-soft); }
.st-card__stock { color: var(--st-green); }
.st-card__size, .st-card__reviews { color: var(--st-ink-muted); }

.st-card__price {
  background: linear-gradient(120deg, #0a86b3, #19b8e6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.st-card__price--old { color: var(--st-ink-faint); }

.st-card__add {
  background: var(--facha-grad-plasma);
  background-size: 200% 200%;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(10, 70, 95, 0.25);
  transition: all 0.55s var(--facha-ease-silk);
}
.st-card__add:hover {
  filter: brightness(1.05);
  transform: scale(1.015);
  box-shadow: 0 10px 26px -8px rgba(25, 184, 230, 0.55);
}

/* ============================================================
   BOTONES GENÉRICOS
   ============================================================ */

.st-btn, .st-hero__btn, .st-card__add, .st-cat__explore {
  transition: all 0.55s var(--facha-ease-silk);
}
.st-btn:focus-visible, .st-hero__btn:focus-visible, .st-card__add:focus-visible {
  outline: 2px solid var(--st-primary);
  outline-offset: 2px;
}
.st-btn--primary { color: #ffffff; }

/* ============================================================
   TICKER — loop infinito hacia la derecha, fade en bordes
   (contenido ya duplicado 2x por home-sections.js; los items
   usan margin-inline, sin gap: las dos mitades miden igual)
   ============================================================ */

.st-home-ticker {
  border-block: 1px solid rgba(25, 184, 230, 0.14);
  background: linear-gradient(90deg, rgba(53, 197, 240, 0.05), rgba(25, 184, 230, 0.08), rgba(53, 197, 240, 0.05));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.st-home-ticker__track {
  animation: facha-scroll-right 36s linear infinite;
}
.st-home-ticker:hover .st-home-ticker__track { animation-play-state: paused; }
.st-home-ticker__item { color: var(--st-ink-muted); }
.st-home-ticker__diamond { color: var(--st-primary); }

/* ============================================================
   MARCAS — logos SVG en marquee infinito hacia la derecha
   ============================================================ */

.st-home-brands__label { color: var(--st-ink-muted); letter-spacing: 0.28em; }

.st-home-brands__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.st-home-brands__track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: facha-scroll-right 30s linear infinite;
}
.st-home-brands__viewport:hover .st-home-brands__track { animation-play-state: paused; }

.st-home-brands__group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.st-home-brands__logo {
  display: block;
  height: clamp(26px, 3vw, 34px);
  width: auto;
  margin-inline: clamp(1.75rem, 4vw, 2.75rem);
  opacity: 0.75;
  filter: saturate(0.9);
  transition: opacity 0.6s var(--facha-ease-silk), transform 0.6s var(--facha-ease-silk), filter 0.6s var(--facha-ease-silk);
}
.st-home-brands__logo:hover {
  opacity: 1;
  filter: saturate(1.1) drop-shadow(0 4px 12px rgba(25, 184, 230, 0.35));
  transform: translateY(-2px);
}

/* ============================================================
   FOOTER — hielo con hairline celeste
   ============================================================ */

.st-footer {
  background:
    radial-gradient(55% 40% at 50% 0%, rgba(53, 197, 240, 0.10), transparent 70%),
    var(--st-void-soft);
  border-top: 1px solid rgba(25, 184, 230, 0.18);
  position: relative;
}
.st-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(25, 184, 230, 0.6), rgba(53, 197, 240, 0.75), transparent);
}

.st-footer__brand-name {
  background: linear-gradient(120deg, #0a86b3, #19b8e6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.st-footer__brand-tag, .st-footer__strapline { color: var(--st-ink-muted); }
.st-footer__col-title { color: var(--st-primary-soft); }
.st-footer__link { color: var(--st-ink-muted); }
.st-footer__link:hover { color: var(--st-primary-soft); }

.st-footer__trust-item { background: rgba(255, 255, 255, 0.6); border-color: rgba(25, 184, 230, 0.14); }
.st-footer__trust-item strong { color: var(--st-primary-soft); }
.st-footer__trust-item span { color: var(--st-ink-muted); }

.st-footer__newsletter-input {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(25, 184, 230, 0.22);
  color: var(--st-ink);
}
.st-footer__newsletter-input:focus {
  border-color: rgba(25, 184, 230, 0.55);
  box-shadow: 0 0 0 4px rgba(53, 197, 240, 0.15);
}
.st-footer__newsletter-btn {
  background: var(--facha-grad-plasma);
  background-size: 200% 200%;
  color: #ffffff;
}
.st-footer__newsletter-btn:hover { box-shadow: 0 8px 24px -8px rgba(25, 184, 230, 0.55); }

/* ============================================================
   CART DRAWER — glass blanco
   ============================================================ */

.st-cart {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(32px) saturate(1.5);
  -webkit-backdrop-filter: blur(32px) saturate(1.5);
  border-left: 1px solid rgba(25, 184, 230, 0.22);
  box-shadow: -24px 0 70px rgba(18, 49, 79, 0.18);
}

.st-cart__header { border-bottom: 1px solid rgba(25, 184, 230, 0.16); }
.st-cart__header h3 { color: var(--st-ink); }
.st-cart__close { color: var(--st-ink-muted); }
.st-cart__close:hover { color: var(--st-ink); }

.st-cart__item {
  border-color: rgba(25, 184, 230, 0.12);
  transition: border-color 0.5s var(--facha-ease-silk), box-shadow 0.5s var(--facha-ease-silk);
}
.st-cart__item:hover {
  border-color: rgba(25, 184, 230, 0.35);
  box-shadow: 0 8px 22px -10px rgba(25, 184, 230, 0.3);
}
.st-cart__item-name { color: var(--st-ink); }
.st-cart__item-price { color: var(--st-primary-soft); }
.st-cart__qty-btn { color: var(--st-ink-soft); border-color: rgba(25, 184, 230, 0.2); }
.st-cart__qty-btn:hover { background: rgba(25, 184, 230, 0.1); }

.st-cart__total-value { color: var(--st-primary-soft); }

.st-cart__checkout {
  background: var(--facha-grad-plasma);
  background-size: 200% 200%;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(10, 70, 95, 0.25);
  animation: facha-grad-pan 9s var(--facha-ease-silk) infinite;
}
.st-cart__checkout:hover { box-shadow: 0 12px 30px -8px rgba(25, 184, 230, 0.55); }

/* ============================================================
   MODALES / AUTH / BLOG / MISC GLASS
   ============================================================ */

.st-modal, .st-auth {
  background: var(--st-glass-bg);
  border: 1px solid rgba(25, 184, 230, 0.22);
  box-shadow: var(--st-glass-shadow);
}

.st-glass { background: var(--st-glass-bg); border-color: var(--st-glass-border); }

.st-blog:hover {
  border-color: rgba(25, 184, 230, 0.35);
  box-shadow: 0 24px 55px -18px rgba(18, 49, 79, 0.25), 0 0 34px rgba(53, 197, 240, 0.18);
}
.st-blog__eyebrow { color: var(--st-primary-soft); }
.st-blog__title { color: var(--st-ink); }
.st-blog__excerpt { color: var(--st-ink-muted); }

.st-home-promo--cyan { background: linear-gradient(135deg, rgba(25, 184, 230, 0.12), rgba(53, 197, 240, 0.06)); border-color: rgba(25, 184, 230, 0.22); }
.st-home-promo--energy { background: linear-gradient(135deg, rgba(255, 122, 77, 0.10), rgba(25, 184, 230, 0.06)); border-color: rgba(255, 122, 77, 0.22); }

/* ============================================================
   FACHA-FX: reveal escalonado, press, entrada de imágenes
   ============================================================ */

.st-facha {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s var(--facha-ease-silk),
    transform 0.9s var(--facha-ease-silk);
}
.st-facha-in {
  opacity: 1;
  transform: translateY(0);
}
.st-facha-d1 { transition-delay: 0.08s; }
.st-facha-d2 { transition-delay: 0.16s; }
.st-facha-d3 { transition-delay: 0.24s; }
.st-facha-d4 { transition-delay: 0.32s; }
.st-facha-d5 { transition-delay: 0.40s; }
.st-facha-d6 { transition-delay: 0.48s; }
.st-facha-d7 { transition-delay: 0.56s; }
.st-facha-d8 { transition-delay: 0.64s; }

.st-facha-press { transform: translateY(-3px) scale(0.99); }

/* Entrada de imagen: una sola vez, fade + leve descale.
   Estado inicial lo fija la clase st-facha-img; el JS agrega
   st-facha-img-in cuando la imagen está cargada y visible. */
.st-facha-img {
  opacity: 0;
  transform: scale(1.045);
}
.st-facha-img-in {
  animation: facha-img-enter 1.2s var(--facha-ease-silk) forwards;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .st-hero__content::before,
  .st-hero__title-accent,
  .st-hero__btn--primary,
  .st-card::before,
  .st-section__title::after,
  .st-cart__checkout {
    animation: none;
  }
  .st-home-ticker__track,
  .st-home-brands__track {
    animation: none;
    transform: none;
  }
  .st-hero__btn--primary::after,
  .st-card__media::after { display: none; }
  .st-card__img { transition: none; }
  .st-facha { opacity: 1; transform: none; transition: none; }
  .st-facha-press { transform: none; }
  .st-facha-img { opacity: 1; transform: none; }
  .st-facha-img-in { animation: none; opacity: 1; transform: none; }
}

/* Bloques de conversión: azul marino continuo con acentos celestes. */
.st-profile-menu,
.st-profile-menu.st-profile-menu--open,
.st-home-block.st-home-block--narrow,
.st-home-block.st-home-block--cta {
  color: #e9f8ff;
  background: linear-gradient(145deg, #102b45 0%, #0b2036 100%) !important;
  border: 1px solid rgba(117, 222, 255, .24);
  box-shadow: 0 18px 42px rgba(4, 18, 34, .26), inset 0 1px 0 rgba(193, 242, 255, .08);
}
.st-home-block.st-home-block--narrow,
.st-home-block.st-home-block--cta { padding: clamp(1rem, 2.5vw, 1.5rem); border-radius: var(--st-radius-2xl); }
.st-profile-menu__identity strong,
.st-profile-menu__guest strong,
.st-profile-menu__item,
.st-profile-menu__languages { color: #e9f8ff; }
.st-profile-menu__identity > span,
.st-profile-menu__desc,
.st-profile-menu__guest span,
.st-profile-menu__languages,
.st-profile-menu__arrow { color: rgba(206, 239, 250, .68); }
.st-profile-menu__item:hover { background: rgba(95, 212, 240, .12); }
.st-home-newsletter,
.st-home-cta { background: rgba(16, 43, 69, .72) !important; border-color: rgba(117, 222, 255, .18) !important; }
.st-home-newsletter__title,
.st-home-cta__title { color: #f2fbff !important; }
.st-home-newsletter__text,
.st-home-cta__text { color: rgba(216, 241, 250, .76) !important; }
.st-home-newsletter__input { color: #e9f8ff !important; background: rgba(117, 222, 255, .08) !important; border-color: rgba(117, 222, 255, .24) !important; }

/* Legibilidad y continuidad visual: nunca ocultar una imagen mientras llega
   su variante adaptativa. La superficie de color evita el destello blanco en
   aperturas, pestañas nuevas y cambios de carrusel. */
:root {
  --st-text-body: clamp(.96rem, 1.15vw, 1.08rem);
  --st-text-small: clamp(.82rem, .95vw, .92rem);
  --st-text-tiny: clamp(.72rem, .78vw, .78rem);
}
body, body.dark { line-height: 1.65; }
.st-hero__bg,
img.st-adaptive-blur,
.st-card__media,
.st-blog__media {
  background: linear-gradient(145deg, #102b45 0%, #0b2036 100%);
}
img.st-adaptive-blur {
  filter: none !important;
  transform: none;
  opacity: 1;
  transition: opacity .38s var(--facha-ease-silk), transform .55s var(--facha-ease-silk);
}
img[data-adaptive-final="1"] { opacity: 1; }
.st-hero__bg--changing { opacity: .78; }

/* La entrada se activa después del load; no se aplica opacity:0 durante la
   espera, que era la causa de tarjetas y hero completamente blancos. */
.st-facha-img { opacity: .98; transform: none; }
.st-facha-img-in { opacity: 1; transform: none; animation: none; transition: opacity .42s var(--facha-ease-silk); }
.st-card__name, .st-card__price, .st-card__meta,
.st-blog__title, .st-blog__excerpt, .st-home-cta__text,
.st-home-newsletter__text { font-size: var(--st-text-small); }
.st-profile-menu__label { font-size: .92rem; }
.st-profile-menu__desc, .st-profile-menu__identity > span,
.st-profile-menu__guest span { font-size: .78rem; }

@media (prefers-reduced-motion: reduce) {
  .st-hero__bg--changing { opacity: 1; }
  .st-facha-img, .st-facha-img-in { transition: none; }
}
