/* ==========================================================================
   NexFiscal — Estilos compartidos
   Roller Monkey, S. de R.L. de C.V.
   ========================================================================== */

:root {
  /* Brand */
  --navy: #1E40AF;
  --navy-dark: #1E3A8A;
  --teal: #0F766E;
  --cyan: #06B6D4;
  --amber: #D97706;

  /* Accent product colors (logos) */
  --sky: #0EA5E9;
  --emerald: #059669;
  --violet: #7C3AED;
  --rose: #E11D48;

  /* Neutrals */
  --dark: #0F172A;
  --grey-900: #1E293B;
  --grey: #475569;
  --grey-light: #94A3B8;
  --border: #CBD5E1;
  --border-light: #E2E8F0;
  --bg: #F8FAFC;
  --surface: #FFFFFF;

  /* Light tints */
  --navy-light: #EFF6FF;
  --teal-light: #F0FDFA;
  --cyan-light: #ECFEFF;
  --amber-light: #FFFBEB;

  /* Layout */
  --max-width: 1200px;
  --max-width-prose: 760px;
  --radius: 10px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.05);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--navy);
  color: white;
  padding: 12px 16px;
  border-radius: var(--radius);
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: 8px; }

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 32px; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
}
.site-brand svg { width: 32px; height: 32px; flex-shrink: 0; }
.wordmark {
  font-size: 19px;
  font-weight: 400;
  color: var(--dark);
  letter-spacing: -0.01em;
  line-height: 1;
}
.wordmark strong { font-weight: 700; }
.wordmark-light { color: var(--grey); font-weight: 400; }

.site-nav {
  display: none;
  align-items: center;
  gap: 4px;
}
@media (min-width: 768px) {
  .site-nav { display: inline-flex; }
}
.site-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--grey);
  border-radius: var(--radius);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.site-nav__link:hover { color: var(--dark); background: var(--bg); }
.site-nav__link.is-active { color: var(--navy); }

.site-nav__cta {
  margin-left: 8px;
}

/* Mobile menu */
.site-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  color: var(--dark);
  transition: background 0.15s ease;
}
.site-burger:hover { background: var(--bg); }
@media (min-width: 768px) { .site-burger { display: none; } }

.mobile-drawer {
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--surface);
  z-index: 49;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  border-top: 1px solid var(--border-light);
}
.mobile-drawer.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-drawer a {
  display: block;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 500;
  color: var(--dark);
  border-radius: var(--radius);
}
.mobile-drawer a:hover { background: var(--bg); }
.mobile-drawer .btn { margin-top: 12px; justify-content: center; }
@media (min-width: 768px) { .mobile-drawer { display: none; } }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius);
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.btn--primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: white;
}

.btn--secondary {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--border);
}
.btn--secondary:hover {
  border-color: var(--navy);
  background: var(--navy-light);
}

.btn--whatsapp {
  background: #25D366;
  color: white;
  border-color: #25D366;
}
.btn--whatsapp:hover {
  background: #1DA851;
  border-color: #1DA851;
  color: white;
}

.btn--ghost-light {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.btn--solid-light {
  background: white;
  color: var(--navy);
  border-color: white;
}
.btn--solid-light:hover {
  background: var(--bg);
  color: var(--navy-dark);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn--cyan {
  background: var(--cyan);
  color: white;
  border-color: var(--cyan);
}
.btn--cyan:hover {
  background: #0891B2;
  border-color: #0891B2;
  color: white;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.h1, h1.page-title {
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.h2, h2.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--dark);
}
.h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--dark);
  letter-spacing: -0.01em;
}
.lead {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.55;
  color: var(--grey);
  max-width: 640px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--navy);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section {
  padding: 64px 0;
}
@media (min-width: 768px) {
  .section { padding: 96px 0; }
}
.section--bg { background: var(--bg); }
.section--dark { background: var(--dark); color: white; }
.section--tight { padding: 48px 0; }

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head .lead { margin-top: 16px; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   BADGES
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge--available { background: var(--teal-light); color: var(--teal); }
.badge--soon { background: var(--amber-light); color: var(--amber); }
.badge--cyan { background: var(--cyan-light); color: var(--cyan); }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--dark);
  color: var(--grey-light);
  padding: 64px 0 32px;
  font-size: 14px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 32px;
  }
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  margin-bottom: 12px;
}
.site-footer__brand svg { width: 36px; height: 36px; }
.site-footer__brand .wordmark { font-size: 20px; color: white; }
.site-footer__brand .wordmark-light { color: var(--grey-light); }
.site-footer__tagline {
  color: var(--grey-light);
  max-width: 280px;
  line-height: 1.5;
}
.site-footer h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer a {
  color: var(--grey-light);
  transition: color 0.15s ease;
}
.site-footer a:hover { color: white; }
.site-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  font-size: 13px;
  color: var(--grey-light);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
@media (min-width: 768px) {
  .site-footer__bar {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 4px;
}
