/* ══════════════════════════════════════════════════════
   RAXISLAB — Sistema de diseño compartido v2
   Fondo blanco · Minimalista · Moderno
══════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --black:      #0a0a0a;
  --white:      #ffffff;
  --gray-50:    #fafafa;
  --gray-100:   #f4f4f5;
  --gray-200:   #e4e4e7;
  --gray-400:   #a1a1aa;
  --gray-600:   #52525b;
  --accent:     #0057ff;
  --accent-mid: rgba(0,87,255,0.08);
  --green:      #16a34a;
  --font:       'DM Sans', sans-serif;
  --mono:       'DM Mono', monospace;
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --radius:     14px;
  --max:        1200px;
  --nav-h:      68px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--white); }

/* ── Cursor personalizado ── */
#cursor {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s, opacity 0.3s;
  mix-blend-mode: multiply;
}
#cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(0,87,255,0.25);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease), height 0.4s var(--ease), border-color 0.3s;
}
body:has(a:hover) #cursor,
body:has(button:hover) #cursor {
  width: 48px; height: 48px;
  background: var(--accent);
  opacity: 0.15;
}
body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring {
  border-color: var(--accent);
  width: 48px; height: 48px;
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── Layout ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
section { padding: 100px 0; }
.page-content { padding-top: var(--nav-h); }

/* ══════════════════════════════════════
   NAVBAR SIMPLIFICADO
══════════════════════════════════════ */
nav.sitenav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0 40px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, box-shadow 0.4s;
}
nav.sitenav.scrolled {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--gray-200);
}
.sitenav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.sitenav-logo img {
  height: 28px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.sitenav-logo-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--black);
  font-family: var(--font);
  line-height: 1;
}
.sitenav-logo-lab {
  font-weight: 300;
  color: var(--accent);
}
@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}
.sitenav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.sitenav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-600);
  padding: 7px 14px;
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
  font-family: var(--font);
}
.sitenav-links a:hover,
.sitenav-links a.active { color: var(--black); background: var(--gray-100); }
.sitenav-links a.active { font-weight: 500; }
.sitenav-links .nav-highlight {
  color: var(--accent) !important;
  font-weight: 500;
}
.sitenav-links .nav-highlight:hover {
  background: var(--accent-mid) !important;
}
.sitenav-cta {
  background: var(--black);
  color: var(--white) !important;
  padding: 9px 20px !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  border-radius: 100px !important;
  transition: transform 0.2s var(--ease), opacity 0.2s !important;
  flex-shrink: 0;
}
.sitenav-cta:hover { opacity: 0.85 !important; transform: scale(0.97); background: var(--black) !important; }

/* Toggle móvil */
.sitenav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.sitenav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--black);
  transition: transform 0.3s;
}
/* Panel móvil */
.sitenav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 40px 28px;
  z-index: 899;
  flex-direction: column;
  gap: 4px;
}
.sitenav-mobile.open { display: flex; }
.sitenav-mobile a {
  font-size: 16px;
  color: var(--gray-600);
  padding: 13px 0;
  border-bottom: 1px solid var(--gray-100);
  font-weight: 400;
  font-family: var(--font);
}
.sitenav-mobile a:last-child { border-bottom: none; }
.sitenav-mobile .nav-highlight { color: var(--accent); font-weight: 500; }
.sitenav-mobile .sitenav-cta {
  background: var(--black) !important;
  color: var(--white) !important;
  text-align: center;
  padding: 14px !important;
  border-radius: 100px !important;
  font-weight: 500 !important;
  margin-top: 12px;
  border-bottom: none !important;
}

/* ══════════════════════════════════════
   BOTONES
══════════════════════════════════════ */
.btn-primary {
  background: var(--black);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.16); }
.btn-primary.accent {
  background: var(--accent);
  box-shadow: 0 2px 20px rgba(0,87,255,0.22);
}
.btn-primary.accent:hover { box-shadow: 0 8px 32px rgba(0,87,255,0.32); }
.btn-secondary {
  background: transparent;
  color: var(--black);
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 400;
  font-family: var(--font);
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-secondary:hover { border-color: var(--black); background: var(--gray-50); transform: translateY(-2px); }

/* ══════════════════════════════════════
   TIPOGRAFÍA DE SECCIÓN
══════════════════════════════════════ */
.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 20px;
}
h2.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.1;
  max-width: 640px;
  margin-bottom: 64px;
}
h2.section-title em { font-style: italic; color: var(--accent); }
h2.section-title strong { font-weight: 600; }

/* ── Page Hero (páginas internas) ── */
.page-hero {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 80px 0 72px;
}
.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray-400);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 28px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  padding: 5px 14px;
  border-radius: 100px;
  width: fit-content;
}
.page-hero h1 {
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero h1 strong { font-weight: 600; }
.page-hero-desc {
  font-size: 18px;
  color: var(--gray-600);
  font-weight: 300;
  max-width: 560px;
  line-height: 1.7;
}

/* ── Tags / Pills ── */
.tag {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--gray-200);
  display: inline-block;
}

/* ══════════════════════════════════════
   FOOTER COMPARTIDO
══════════════════════════════════════ */
.sitefooter {
  background: var(--black);
  color: var(--white);
  padding: 60px 0 36px;
}
.sitefooter-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sitefooter-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 260px;
}
.sitefooter-logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sitefooter-logo-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.sitefooter-col h5 {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--mono);
  margin-bottom: 18px;
}
.sitefooter-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.sitefooter-col a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.sitefooter-col a:hover { color: var(--white); }
.sitefooter-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.sitefooter-bottom p { font-size: 12px; color: rgba(255,255,255,0.2); font-family: var(--mono); }
.sitefooter-bottom-links { display: flex; gap: 20px; }
.sitefooter-bottom-links a { font-size: 12px; color: rgba(255,255,255,0.2); font-family: var(--mono); transition: color 0.2s; }
.sitefooter-bottom-links a:hover { color: rgba(255,255,255,0.55); }

/* ══════════════════════════════════════
   RESPONSIVE GLOBAL
══════════════════════════════════════ */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  section { padding: 72px 0; }
  nav.sitenav { padding: 0 20px; }
  .sitenav-links { display: none; }
  .sitenav-toggle { display: flex; }
  .sitenav-mobile { padding: 20px 20px 28px; }
  .page-hero { padding: 60px 0 52px; }
  body { cursor: auto; }
  #cursor, #cursor-ring { display: none; }
  .sitefooter-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .sitefooter-grid { grid-template-columns: 1fr; }
  .sitefooter-bottom { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════
   SCRIPTS COMPARTIDOS (inline JS helper)
══════════════════════════════════════ */
/* Se carga desde js/shared.js */
