/*
Theme Name:  Vitalica — Farmacia Dermatológica
Theme URI:   https://staging.magnusgroup.mx
Author:      Magnus Group MX
Author URI:  https://magnusgroup.mx
Description: Tema personalizado para Vitalica — Drones y Sistemas Aéreos Especializados. Compatible con WooCommerce. Sin page builders.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License:     Proprietary
Text Domain: vitalica
*/

/* ═══════════════════════════════════════════════════════════
   VITALICA — Design Tokens
   Inter only. Mobile-first. Minimalist tech aesthetic.
   ═══════════════════════════════════════════════════════════ */

:root {
  --f:          'Inter', system-ui, -apple-system, sans-serif;
  --black:      #0A0A0A;
  --white:      #FFFFFF;
  --gray-1:     #F4F4F4;
  --gray-2:     #E8E8E8;
  --gray-3:     #C8C8C8;
  --gray-4:     #888888;
  --gray-6:     #444444;
  --gray-8:     #1A1A1A;
  --gray-9:     #111111;
  --orange:     #E8601A;
  --orange-h:   #F07030;
  --nav-h:      84px;
  --r-sm:       6px;
  --r-md:       12px;
  --r-lg:       20px;
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; text-size-adjust: 100%; }
body {
  font-family: var(--f);
  font-size: 16px;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* ── LAYOUT ── */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--dark  { background: var(--gray-9); color: var(--white); }
.section--light { background: var(--gray-1); }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 {
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-4);
  margin-bottom: 1.25rem;
}
.label--light { color: rgba(255,255,255,0.4); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: var(--black);
}
.section--dark .section-head h2 { color: var(--white); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  background: var(--orange);
  color: var(--white);
  border: 1.5px solid var(--orange);
  border-radius: var(--r-sm);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background 200ms, transform 200ms var(--ease), box-shadow 200ms;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--orange-h);
  border-color: var(--orange-h);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(232,96,26,.35);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: .7rem 1.4rem;
  border: 1.5px solid var(--gray-2);
  border-radius: var(--r-sm);
  font-size: .8rem;
  font-weight: 600;
  color: var(--black);
  transition: border-color 180ms, background 180ms, transform 180ms var(--ease);
}
.btn-outline:hover {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  transition: color 180ms;
}
.btn-text:hover { color: var(--white); }
.btn-full { width: 100%; justify-content: center; }

/* ── NAVBAR ── */
.nav { background: rgba(76,110,163,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 1000; width: 100%; }
.nav.scrolled { background: rgba(10,10,10,.98); }
.nav__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  gap: 2rem;
}
.nav__logo img { height: 52px; width: auto; }
.nav__links { display: none; gap: 2.25rem; align-items: center; }
.nav__links a {
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(255,255,255,.6);
  transition: color 150ms;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--orange);
  transition: width 200ms var(--ease);
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }
.nav__links a.active { color: var(--white); }
.nav__cta {
  display: none;
  padding: .65rem 1.35rem;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: var(--r-sm);
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  transition: border-color 180ms, background 180ms, color 180ms;
  white-space: nowrap;
}
.nav__cta:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}
.nav__burger { display: flex; align-items: center; padding: .25rem; color: var(--white); }
.nav__burger svg { width: 26px; height: 26px; }
@media (min-width: 860px) {
  .nav__links { display: flex; }
  .nav__cta   { display: inline-flex; }
  .nav__burger { display: none; }
}
.nav__mobile {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  background: var(--gray-9);
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  border-top: 1px solid rgba(255,255,255,.06);
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms var(--ease);
}
.nav__mobile.open { max-height: 360px; }
.nm-link {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  padding: .9rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color 150ms;
}
.nm-link:hover { color: var(--white); }
.nm-cta { display: block; text-align: center; margin-block: 1rem .5rem; }
@media (min-width: 860px) { .nav__mobile { display: none; } }

/* ── WA FLOAT ── */
.wa-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 300;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(37,211,102,.4);
  transition: transform 200ms var(--ease), box-shadow 200ms;
}
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 12px 36px rgba(37,211,102,.5); }
.wa-fab svg { width: 26px; height: 26px; }

/* ── WOOCOMMERCE OVERRIDES (tienda minimalista) ── */
.woocommerce-page .site-main { padding-top: var(--nav-h); }
.woocommerce ul.products li.product { border: 1.5px solid var(--gray-2); border-radius: var(--r-lg); overflow: hidden; transition: border-color 200ms, box-shadow 200ms, transform 200ms var(--ease); }
.woocommerce ul.products li.product:hover { border-color: var(--gray-3); box-shadow: 0 6px 24px rgba(0,0,0,.09); transform: translateY(-2px); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .95rem; font-weight: 600; letter-spacing: -0.02em; color: var(--black); }
.woocommerce ul.products li.product .price { color: var(--orange); font-weight: 700; font-size: .9rem; }
.woocommerce .button, .woocommerce button.button { background: var(--orange); color: var(--white); border-radius: var(--r-sm); font-weight: 600; font-size: .85rem; border: none; transition: background 200ms, transform 200ms; }
.woocommerce .button:hover, .woocommerce button.button:hover { background: var(--orange-h); transform: translateY(-1px); }
.woocommerce-page h1.page-title, .woocommerce-page h1.entry-title { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -0.035em; }
