/* Vitalmax — hoja de estilos compartida para páginas de contenido (Desarrollo, Empresa, Normativa) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:   #FFFFFF;
  --laser:   #E8442E;
  --laser2:  #A3271A;
  --radius:  3px;
  --max:     1180px;
  --bg:           #0C0C10;
  --bg-raised:    #1C1B1D;
  --bg-card:      rgba(255,255,255,0.04);
  --bg-alt:       #0A0A0B;
  --line:         rgba(236,233,227,0.14);
  --line-strong:  rgba(236,233,227,0.26);
  --ink:          #ECE9E3;
  --ink-dim:      rgba(236,233,227,0.66);
  --ink-faint:    rgba(236,233,227,0.42);
  --signal:       #E8442E;
  --signal-deep:  #A3271A;
  --serif:   'Fraunces', Georgia, 'Times New Roman', serif;
  --mono2:   'IBM Plex Mono', ui-monospace, monospace;
  --sans:    'Inter', -apple-system, 'Segoe UI', sans-serif;
}
:root[data-theme="light"] {
  --bg:          #EBEDEC;
  --bg-raised:   #FFFFFF;
  --bg-card:     #FFFFFF;
  --bg-alt:      #E1E4E3;
  --line:        rgba(17,19,22,0.15);
  --line-strong: rgba(17,19,22,0.30);
  --ink:         #111316;
  --ink-dim:     rgba(17,19,22,0.64);
  --ink-faint:   rgba(17,19,22,0.42);
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); overflow-x: hidden; }

.section-inner { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  height: 64px;
  display: flex; align-items: center; gap: 1.2rem;
  background: rgba(4,4,6,0.96);
  backdrop-filter: blur(28px) saturate(200%);
  border-bottom: 1px solid rgba(255,255,255,0.055);
  transition: box-shadow 0.3s;
}
:root[data-theme="light"] nav { background: rgba(240,238,234,0.96); border-bottom-color: rgba(17,19,22,0.08); }
nav.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,0.7); }
.nav-logo { flex-shrink: 0; display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 40px; width: auto; display: block; }
:root[data-theme="light"] .nav-logo img { filter: invert(0.85) hue-rotate(180deg); }
.nav-divider { width: 1px; height: 22px; background: rgba(255,255,255,0.07); flex-shrink: 0; }
.nav-links { display: flex; list-style: none; height: 64px; flex: 1; justify-content: center; align-items: center; gap: 0.1rem; }
.nav-links li { display: flex; }
.nav-links a {
  font-family: var(--mono2); font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); text-decoration: none;
  padding: 0 0.8rem; display: flex; align-items: center;
  position: relative; transition: color 0.2s; white-space: nowrap;
}
:root[data-theme="light"] .nav-links a { color: rgba(17,19,22,0.4); }
.nav-links a:hover { color: rgba(255,255,255,0.62); }
:root[data-theme="light"] .nav-links a:hover { color: rgba(17,19,22,0.75); }
.nav-links a.vtab-active { color: rgba(255,255,255,0.9); }
:root[data-theme="light"] .nav-links a.vtab-active { color: #111316; }
.nav-links a.vtab-active::after {
  content: ''; position: absolute; bottom: 0; left: 0.8rem; right: 0.8rem; height: 1.5px;
  background: var(--signal); box-shadow: 0 0 6px var(--signal), 0 0 14px rgba(232,68,46,0.35);
}
.nav-right { display: flex; align-items: center; gap: 0.9rem; flex-shrink: 0; }
.nav-sys { display: flex; align-items: center; gap: 0.4rem; font-family: var(--mono2); font-size: 0.52rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.2); text-transform: uppercase; }
.nav-sys-dot { width: 5px; height: 5px; border-radius: 50%; background: #00C853; box-shadow: 0 0 6px #00C853; flex-shrink: 0; }
.theme-toggle {
  display: flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.65rem;
  background: transparent; border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.6);
  font-family: var(--mono2); font-size: 0.6rem; letter-spacing: 0.04em; cursor: pointer; border-radius: var(--radius);
}
:root[data-theme="light"] .theme-toggle { border-color: rgba(17,19,22,0.18); color: rgba(17,19,22,0.65); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; flex-shrink: 0; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: rgba(255,255,255,0.6); border-radius: 1px; }
:root[data-theme="light"] .hamburger span { background: rgba(17,19,22,0.7); }

/* ─── MOBILE NAV ─── */
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 99; background: var(--white); flex-direction: column; align-items: center; justify-content: center; gap: 1.8rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 700; color: #111316; text-decoration: none; }
.mobile-menu a:hover { color: var(--laser2); }
.mobile-close { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 2rem; cursor: pointer; color: #111316; background: none; border: none; }

/* ─── PAGE HERO ─── */
.page-hero { padding: 148px 0 3.5rem; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.breadcrumb { font-family: var(--mono2); font-size: 0.68rem; letter-spacing: 0.05em; color: var(--ink-faint); margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--ink-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--laser); }
.kicker {
  font-family: var(--mono2); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--laser); display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem;
}
.page-hero h1 {
  font-family: var(--serif); font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 600; letter-spacing: -0.01em;
  line-height: 1.15; color: var(--ink); max-width: 820px;
}
.page-hero h1 em { color: var(--laser); font-style: italic; }
.page-lede { font-size: 1.05rem; color: var(--ink-dim); line-height: 1.8; max-width: 680px; margin-top: 1.3rem; }

/* ─── SECTION TITLES ─── */
main { padding-top: 3.5rem; }
main > section { padding: 3.5rem 0; }
.section-eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--laser2); margin-bottom: 0.9rem; }
:root[data-theme="light"] .section-eyebrow { color: var(--laser); }
.section-title { font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink); margin-bottom: 1.6rem; }
.laser-divider { position: relative; height: 1px; max-width: var(--max); margin: 0 auto; background: linear-gradient(90deg, transparent, var(--line-strong) 50%, transparent); }
.laser-divider::before {
  content: ''; position: absolute; top: -1px; left: 50%; width: 90px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--laser), var(--laser2), transparent);
  transform: translateX(-50%); border-radius: 2px; box-shadow: 0 0 14px rgba(255,59,59,0.55);
}

/* ─── CARD GRID (servicios / módulos) ─── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; position: relative;
}
.card-idx { font-family: var(--mono2); font-size: 0.65rem; color: var(--laser); letter-spacing: 0.06em; margin-bottom: 0.9rem; }
.card h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--ink); margin-bottom: 0.7rem; }
.card p { font-size: 0.88rem; color: var(--ink-dim); line-height: 1.7; margin-bottom: 1rem; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.card-tags span {
  font-family: var(--mono2); font-size: 0.62rem; color: var(--ink-dim);
  border: 1px solid var(--line-strong); padding: 0.2rem 0.55rem; border-radius: 2px;
}

/* ─── NUMBERED STEPS ─── */
.steps { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 1.4rem; }
.step { text-align: left; }
.step-dot {
  font-family: var(--mono2); font-size: 0.75rem; font-weight: 600; color: var(--laser);
  width: 34px; height: 34px; border: 1px solid rgba(232,68,46,0.4); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 0.9rem;
}
.step-title { font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.step-text { font-size: 0.85rem; color: var(--ink-dim); line-height: 1.65; }

/* ─── PRICING TIERS ─── */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; position: relative; background: var(--bg-card); }
.tier--featured { border-color: rgba(232,68,46,0.5); background: rgba(232,68,46,0.05); }
.tier-badge {
  position: absolute; top: -11px; left: 1.6rem; background: var(--laser); color: #fff;
  font-family: var(--mono2); font-size: 0.6rem; letter-spacing: 0.05em; padding: 0.25rem 0.6rem; border-radius: 2px;
}
.tier-tag { font-family: var(--mono2); font-size: 0.65rem; color: var(--laser); letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.tier-label { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); margin-bottom: 0.2rem; }
.tier-range { font-size: 0.78rem; color: var(--ink-faint); margin-bottom: 1.2rem; }
.tier-features { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.2rem; }
.tier-features li { font-size: 0.83rem; color: var(--ink-dim); padding-left: 1.1rem; position: relative; }
.tier-features li::before { content: '—'; position: absolute; left: 0; color: var(--laser); }
.tier-note { font-size: 0.78rem; color: var(--ink-faint); font-style: italic; line-height: 1.5; }

/* ─── CATEGORY LIST (normativa) ─── */
.cat-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.cat { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; background: var(--bg-card); }
.cat-idx { font-family: var(--mono2); font-size: 0.65rem; color: var(--laser); letter-spacing: 0.05em; margin-bottom: 0.8rem; }
.cat h3 { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: 0.8rem; }
.cat ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.cat li { font-size: 0.83rem; color: var(--ink-dim); padding-left: 1rem; position: relative; line-height: 1.5; }
.cat li::before { content: '·'; position: absolute; left: 0; color: var(--laser); font-weight: 700; }
.disclaimer { font-size: 0.8rem; color: var(--ink-faint); line-height: 1.7; margin-top: 2rem; max-width: 760px; }

/* ─── STATS ROW ─── */
.stats-row { display: flex; flex-wrap: wrap; gap: 2.4rem; margin: 1.8rem 0 0; }
.stat b { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--ink); }
.stat span { font-size: 0.78rem; color: var(--ink-faint); }

/* ─── PILLARS (empresa) ─── */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2rem; }
.pillar { display: flex; gap: 1rem; }
.pillar .idx { font-family: var(--mono2); font-size: 0.8rem; color: var(--laser); flex-shrink: 0; }
.pillar b { display: block; font-size: 0.95rem; color: var(--ink); margin-bottom: 0.3rem; }
.pillar p { font-size: 0.85rem; color: var(--ink-dim); line-height: 1.6; }

/* ─── 2-COLUMN COMPARISON ─── */
.compare-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }

/* ─── BUTTONS ─── */
.btn-fill {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.9rem 1.6rem; font-size: 0.88rem; font-weight: 600;
  text-decoration: none; border-radius: var(--radius); cursor: pointer; font-family: var(--sans);
  border: 1px solid var(--signal); background: var(--signal); color: #fff; transition: all 0.15s;
}
.btn-fill:hover { background: var(--signal-deep); border-color: var(--signal-deep); transform: translateY(-1px); }
.cta-band { text-align: center; padding: 3rem 0; }

/* ─── FOOTER ─── */
footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 3.5rem 0 1.6rem; margin-top: 2rem; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.footer-brand-desc { font-size: 0.85rem; color: var(--ink-faint); line-height: 1.7; }
.footer-col-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1.2rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a { font-size: 0.85rem; color: var(--ink-dim); text-decoration: none; }
.footer-links a:hover { color: var(--laser); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--ink-faint); flex-wrap: wrap; gap: 1rem; padding-top: 1.6rem; }

/* ─── WHATSAPP FLOAT ─── */
.wa-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 500; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ─── REVEAL ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .nav-links, .nav-right .nav-sys { display: none; }
  .hamburger { display: flex; }
  .card-grid, .tiers, .cat-list, .compare-2col { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 620px) {
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stats-row { gap: 1.4rem; }
}

/* ─── LASER TEXT ENGRAVING (ported from index.html) ─── */
.lc { display: inline; color: transparent;
      transition: color 0.25s ease, text-shadow 0.25s ease; }
.lc.lc-hit {
  color: rgba(255,230,120,1);
  text-shadow: 0 0 10px rgba(255,255,255,1), 0 0 22px rgba(255,150,0,0.9), 0 0 44px rgba(255,59,59,0.75);
}
.lc.lc-done { color: rgba(255,255,255,0.93); text-shadow: 0 0 3px rgba(255,59,59,0.14); }
.page-hero h1 em .lc.lc-done { color: var(--laser); text-shadow: 0 0 8px rgba(255,59,59,0.35); }
:root[data-theme="light"] .lc.lc-done { color: rgba(17,19,22,0.93); text-shadow: none; }
:root[data-theme="light"] .page-hero h1 em .lc.lc-done { color: var(--laser); text-shadow: 0 0 6px rgba(200,50,26,0.3); }
.laser-cur {
  position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: #fff; pointer-events: none; z-index: 6;
  box-shadow:
    0 0 4px 2px rgba(255,255,255,0.95),
    0 0 12px 5px rgba(255,170,40,0.9),
    0 0 26px 11px rgba(255,59,59,0.7),
    0 0 52px 22px rgba(255,59,59,0.28);
  transition: left 0.036s linear, top 0.036s linear;
}
.laser-trail {
  position: absolute; height: 2px; pointer-events: none; z-index: 5;
  background: linear-gradient(90deg, transparent, rgba(255,100,20,0.5) 60%, rgba(255,220,100,0.8) 100%);
  border-radius: 1px; transform-origin: right center;
}
