/* ================================================================
   VitalCore — shared.css
   CSS COMPARTIDO por todas las páginas: tokens, base, ticker,
   navbar, footer, WhatsApp float, sprite de iconos.
   Un cambio aquí se refleja en el 100% del sitio.

   NO poner aquí estilos de una sola página (van en home.css,
   product.css o page-simple.css). Los z-index específicos de
   página (--z-sticky, --z-modal) los define cada página.
   ================================================================ */

/* ─── TOKENS ─────────────────────────────────────── */
:root {
  --ink: #07070d;
  --ink-2: #0f0f1a;
  --ink-3: #171724;
  --ink-4: #1e1e2e;
  --gold: #3ccd94;
  --gold-lt: #21c6ae;
  --gold-dk: #1a8a60;
  --gold-dim: rgba(60, 205, 148, .15);
  --glass-bdr: rgb(70 119 84 / 22%);
  --text: #e8e2d6;
  --text-mute: rgb(255 255 255 / 83%);
  --text-dim: rgba(232, 226, 214, .42);
  --glass: rgba(255, 255, 255, .04);
  --radius: 16px;
  --font-disp: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', sans-serif;
  --z-sticky: 100;
  --z-wa: 300;
  --z-grain: 1000;
}

/* ─── BASE ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: var(--z-grain);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
  transition: top .2s;
}

.skip-link:focus {
  top: 16px;
}

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

/* ─── TICKER ─────────────────────────────────────── */
.top-ticker {
  overflow: hidden;
  background: var(--ink-3);
  border-bottom: 1px solid var(--glass-bdr);
  padding: 10px 0;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  animation: ticker-move 32s linear infinite;
  will-change: transform;
}

.top-ticker:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  padding: 0 20px;
  font-size: .68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

@keyframes ticker-move {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media(prefers-reduced-motion:reduce) {
  .marquee-track {
    animation: none;
  }
}

/* ─── NAVBAR ─────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(7, 7, 13, .9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-bdr);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: 100%;
  margin: 0 auto;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.navbar__logo img {
  display: block;
  height: 44px;
  width: auto;
}

.navbar__logo span {
  display: none;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__link {
  font-size: .7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-mute);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.navbar__link:hover {
  color: var(--gold);
}

.navbar__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-mute);
  border-radius: 2px;
  transition: background .2s;
}

.navbar__hamburger:hover span {
  background: var(--gold);
}

.navbar__mobile {
  display: none;
  flex-direction: column;
  padding: 12px 32px 16px;
  gap: 4px;
  border-top: 1px solid var(--glass-bdr);
}

.navbar__mobile.open {
  display: flex;
}

.navbar__mobile .navbar__link {
  padding: 8px 0;
  border-bottom: 1px solid var(--glass-bdr);
}

.navbar__mobile .navbar__link:last-child {
  border-bottom: none;
}

/* ─── FOOTER ─────────────────────────────────────── */
.footer {
  background: var(--ink-2);
  border-top: 1px solid var(--glass-bdr);
  padding: 52px 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 44px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer__logo img {
  height: 36px;
  width: auto;
}

.footer__logo span {
  font-family: var(--font-disp);
  font-size: 0rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 1.5px;
}

.footer__logo span span {
  color: var(--gold);
}

.footer__desc {
  font-size: .78rem;
  color: var(--text-mute);
  line-height: 1.8;
  font-weight: 300;
  max-width: 240px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  color: var(--text-mute);
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s;
  display: flex;
  align-items: center;
}

.footer__social-link:hover {
  color: var(--gold);
}

.footer__col-title {
  font-size: .62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 14px;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__link {
  font-size: .78rem;
  color: var(--text-mute);
  text-decoration: none;
  transition: color .2s;
  font-weight: 300;
}

.footer__link:hover {
  color: var(--gold);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--text-mute);
  margin-bottom: 8px;
  font-weight: 300;
}

.footer__contact-item a {
  color: inherit;
  text-decoration: none;
}

.footer__contact-item a:hover {
  color: var(--gold);
}

.footer__bottom {
  border-top: 1px solid var(--glass-bdr);
  padding-top: 22px;
}

.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom span {
  font-size: .7rem;
  color: var(--text-dim);
}

.footer__bottom a {
  color: var(--text-dim);
  text-decoration: none;
}

/* ─── WHATSAPP FLOAT ─────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-wa);
}

.whatsapp-float__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 211, 102, .38);
  text-decoration: none;
  transition: transform .25s cubic-bezier(0.23, 1, 0.32, 1);
}

.whatsapp-float__btn:hover {
  transform: scale(1.08);
}

.whatsapp-float__tooltip {
  display: none;
}

/* ─── SPRITE DE ICONOS ───────────────────────────── */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

/* ─── RESPONSIVE COMPARTIDO (breakpoint único 900px) ─ */
@media(max-width:900px) {
  .navbar__nav {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
