/* ============================================================
   FASTPOS — DESIGN SYSTEM COMPARTIDO
   ============================================================ */

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

:root {
  --blue:        #2563eb;
  --blue-dark:   #1d4ed8;
  --blue-light:  #eff6ff;
  --blue-border: #bfdbfe;
  --ink:         #0b0f19;
  --muted:       #4b5563;
  --light-muted: #6b7280;
  --line:        #e5e7eb;
  --bg:          #f9fafb;
  --white:       #ffffff;
  --green:       #22c55e;
  --card-shadow: 0 10px 30px -10px rgba(15,23,42,.05), 0 1px 3px rgba(15,23,42,.02);
  --hover-shadow:0 20px 40px -15px rgba(37,99,235,.12), 0 0 0 1px rgba(37,99,235,.1);
  --nav-h:       76px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; }

/* Page entrance */
@keyframes fp-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
body { animation: fp-in 0.35s ease both; }


/* ── NAVBAR ─────────────────────────────────────────────── */

.site-nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8%; height: var(--nav-h);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, background .3s;
}
.site-nav.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 0 var(--line), 0 4px 24px rgba(0,0,0,.06);
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem; font-weight: 900; letter-spacing: -.5px;
  color: var(--ink); text-decoration: none; flex-shrink: 0;
}
.nav-logo span { color: var(--blue); }

.nav-links {
  display: flex; gap: 2rem; list-style: none; align-items: center;
}
.nav-links a {
  text-decoration: none; color: var(--light-muted);
  font-size: .9rem; font-weight: 600;
  transition: color .2s;
  position: relative; padding-bottom: 2px;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--ink); font-weight: 700; }
.nav-links a.active::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--blue); border-radius: 2px;
}

.nav-right { display: flex; align-items: center; gap: 1.4rem; }

.nav-login {
  color: var(--ink); text-decoration: none;
  font-size: .9rem; font-weight: 700;
  transition: color .2s;
  white-space: nowrap;
}
.nav-login:hover { color: var(--blue); }

.nav-cta {
  background: var(--blue); color: #fff;
  padding: .65rem 1.5rem; border-radius: 14px;
  font-size: .875rem; font-weight: 700; text-decoration: none;
  transition: all .2s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 4px 12px rgba(37,99,235,.22);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--blue-dark); transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37,99,235,.32);
}

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; align-items: center;
  justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 0;
  background: none; border: none; border-radius: 10px;
  cursor: pointer; transition: background .2s;
}
.nav-hamburger:hover { background: var(--bg); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: all .3s cubic-bezier(.16,1,.3,1);
  transform-origin: center;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile overlay nav */
.nav-mobile {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  z-index: 199;
  display: flex; flex-direction: column;
  padding: 1.5rem 8% 3rem;
  visibility: hidden; opacity: 0; transform: translateY(-10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  pointer-events: none; overflow-y: auto;
}
.nav-mobile.open {
  visibility: visible; opacity: 1;
  transform: translateY(0); pointer-events: all;
}
.nav-mobile a {
  display: block; text-decoration: none;
  color: var(--ink); font-size: 1.2rem; font-weight: 700;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  font-family: 'Outfit', sans-serif; transition: color .2s;
}
.nav-mobile a:hover,
.nav-mobile a.active { color: var(--blue); }
.nav-mobile-cta {
  margin-top: 1.5rem !important;
  background: var(--blue) !important; color: #fff !important;
  border: none !important; border-radius: 16px !important;
  text-align: center; padding: 1rem !important;
  box-shadow: 0 4px 14px rgba(37,99,235,.25);
}
.nav-mobile-cta:hover {
  background: var(--blue-dark) !important; color: #fff !important;
}
.nav-mobile-login {
  margin-top: .5rem !important;
  background: none !important; color: var(--ink) !important;
  border: 2px solid var(--line) !important; border-radius: 16px !important;
  box-shadow: none !important;
}
.nav-mobile-login:hover {
  border-color: var(--blue) !important; color: var(--blue) !important;
  background: var(--blue-light) !important;
}


/* ── FOOTER ─────────────────────────────────────────────── */

.site-footer {
  background: var(--ink);
  padding: 4.5rem 8% 2.5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid #1f2937;
}
.footer-brand .logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem; font-weight: 900;
  color: #fff; margin-bottom: .75rem; letter-spacing: -.5px;
}
.footer-brand .logo span { color: var(--blue); }
.footer-brand p { font-size: .875rem; line-height: 1.8; color: #9ca3af; max-width: 240px; }

.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: .7rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: #fff; margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.footer-col ul a {
  color: #9ca3af; text-decoration: none;
  font-size: .875rem; font-weight: 500; transition: color .2s;
}
.footer-col ul a:hover { color: #fff; }

.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 2rem;
}
.footer-bottom p { font-size: .85rem; color: #6b7280; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a {
  color: #6b7280; text-decoration: none;
  font-size: .85rem; font-weight: 600; transition: color .2s;
}
.footer-bottom-links a:hover { color: #fff; }


/* ── PAGE HEADER (inner pages) ──────────────────────────── */

.page-header {
  text-align: center; padding: 72px 5% 64px;
  background: radial-gradient(ellipse 80% 70% at 50% 0%, #eff6ff 0%, transparent 75%);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(37,99,235,.04) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}
.page-breadcrumb {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; color: var(--light-muted);
  margin-bottom: 1.25rem; position: relative;
}
.page-breadcrumb a { color: var(--blue); text-decoration: none; }
.page-breadcrumb a:hover { text-decoration: underline; }
.page-breadcrumb .sep { color: #d1d5db; font-size: .7rem; }
.page-icon { font-size: 2.5rem; margin-bottom: 1rem; position: relative; }
.page-header h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 900; letter-spacing: -1.5px;
  color: var(--ink); line-height: 1.15; position: relative;
}
.page-header .subtitle {
  margin-top: .9rem; color: var(--muted); font-size: 1.05rem;
  line-height: 1.8; max-width: 560px; margin-left: auto;
  margin-right: auto; position: relative;
}


/* ── SECTION LABEL ──────────────────────────────────────── */

.section-label {
  font-size: .78rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .9rem;
}


/* ── SHARED BUTTONS ─────────────────────────────────────── */

.btn-primary {
  display: inline-block; background: var(--blue); color: #fff;
  padding: 1.1rem 2.6rem; border-radius: 18px;
  font-size: 1.05rem; font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 25px rgba(37,99,235,.25);
  transition: all .2s cubic-bezier(.16,1,.3,1);
}
.btn-primary:hover {
  background: var(--blue-dark); transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(37,99,235,.35);
}
.btn-outline {
  display: inline-block; border: 2px solid var(--line);
  color: var(--ink); padding: 1.05rem 2.6rem; border-radius: 18px;
  font-size: 1.05rem; font-weight: 700; text-decoration: none; transition: all .2s;
}
.btn-outline:hover { border-color: var(--blue); background: #f0f6ff; color: var(--blue); }

.btn-white {
  display: inline-block; background: #fff; color: var(--blue);
  padding: 1.1rem 2.8rem; border-radius: 18px;
  font-size: 1.05rem; font-weight: 700; text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.05); transition: all .2s;
}
.btn-white:hover { background: #f0f6ff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.1); }

.btn-ghost {
  display: inline-block; border: 2px solid rgba(255,255,255,.4);
  color: #fff; padding: 1.05rem 2.8rem; border-radius: 18px;
  font-size: 1.05rem; font-weight: 700; text-decoration: none; transition: all .2s;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }


/* ── SCROLL REVEAL ──────────────────────────────────────── */

[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1),
              transform .65s cubic-bezier(.16,1,.3,1);
}
[data-reveal].visible { opacity: 1; transform: translateY(0); }
[data-reveal][data-delay="1"] { transition-delay:  80ms; }
[data-reveal][data-delay="2"] { transition-delay: 160ms; }
[data-reveal][data-delay="3"] { transition-delay: 240ms; }
[data-reveal][data-delay="4"] { transition-delay: 320ms; }
[data-reveal][data-delay="5"] { transition-delay: 400ms; }
[data-reveal][data-delay="6"] { transition-delay: 480ms; }
[data-reveal][data-delay="7"] { transition-delay: 560ms; }
[data-reveal][data-delay="8"] { transition-delay: 640ms; }


/* ── RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 100%; }
}
@media (max-width: 768px) {
  .site-nav { padding: 0 5%; }
  .nav-links,
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .site-footer { padding: 3.5rem 5% 2rem; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}
@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }
}
