/* ==========================================================================
   OFISTORE Design System — Global Tokens & Base Styles
   Inspirado en estética Tech-Clean de alto nivel: alta jerarquía,
   paleta azul corporativo / dark navy, bordes de precisión, 
   píldoras 9999px y micro-detalles tecnológicos modernos.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  /* Brand Colors */
  --primary: #0757d9;
  --primary-hover: #0546b3;
  --primary-light: #e8f1ff;
  --primary-glow: rgba(7, 87, 217, 0.25);
  
  --electric-blue: #0080ff;
  --cyan-accent: #00d2ff;
  --emerald-accent: #10b981;
  --amber-accent: #f59e0b;

  /* Surfaces & Canvas */
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --surface-card: #ffffff;
  --surface-card-hover: #f1f5f9;
  --surface-dark: #08162b;
  --surface-dark-subtle: #0f2342;
  --surface-dark-card: #122849;

  /* Typography Colors */
  --ink: #08162b;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: #94a3b8;

  /* Borders & Separators */
  --line: #e2e8f0;
  --line-subtle: #f1f5f9;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-focus: #0757d9;

  /* Typography Families */
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --max-width: 1240px;
  --shell-pad: clamp(16px, 4vw, 32px);
  --section-space: clamp(64px, 8vw, 104px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 4px 20px -2px rgba(8, 22, 43, 0.06), 0 2px 6px -1px rgba(8, 22, 43, 0.03);
  --shadow-card-hover: 0 20px 35px -8px rgba(7, 87, 217, 0.12), 0 8px 16px -4px rgba(8, 22, 43, 0.06);
  --shadow-glow: 0 0 30px rgba(0, 145, 255, 0.35);
  --shadow-dark-card: 0 16px 32px rgba(0, 0, 0, 0.35);

  /* Transitions */
  --ease-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--canvas);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ease-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container Shell */
.shell {
  width: min(var(--max-width), calc(100% - var(--shell-pad) * 2));
  margin-inline: auto;
}

/* Background Grids & Dots */
.tech-bg-grid {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(7, 87, 217, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(7, 87, 217, 0.05) 1px, transparent 1px);
}

.tech-bg-dots-dark {
  background-size: 24px 24px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(7, 87, 217, 0.18);
  width: fit-content;
}

.badge-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #67baff;
  border: 1px solid rgba(103, 186, 255, 0.25);
}

.badge-pulse {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-accent);
}

.badge-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: var(--emerald-accent);
  opacity: 0.6;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  70% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Standard Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: all var(--ease-smooth);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
  box-shadow: 0 4px 14px rgba(7, 87, 217, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(7, 87, 217, 0.4);
  color: #ffffff;
}

.btn-dark {
  background: var(--ink);
  color: #ffffff;
  border: 1px solid var(--ink);
}

.btn-dark:hover {
  background: #11284a;
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost-dark:hover {
  background: var(--surface-subtle);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

/* Global Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--ease-fast), border-color var(--ease-fast);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-link img {
  width: 142px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--ease-fast);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-cta {
  margin-left: 10px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #ffffff !important;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all var(--ease-smooth);
}

.nav-cta:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--ease-fast);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Common Section Headers */
.section-header {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-header.text-center {
  margin-inline: auto;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 18px;
}

.section-desc {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Global Footer */
.site-footer {
  background: var(--surface-dark);
  color: #ffffff;
  padding-top: 80px;
  padding-bottom: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 40px;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--text-on-dark-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 22px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text-on-dark-muted);
  font-size: 0.92rem;
  transition: color var(--ease-fast);
}

.footer-col a:hover {
  color: #67baff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
}

.footer-bottom a:hover {
  color: #ffffff;
}

.privacy-notice {
  max-width: 920px;
  padding-top: 28px;
  color: var(--text-on-dark-muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.privacy-notice a {
  color: #aee2ff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-notice a:hover {
  color: #ffffff;
}

/* Common CTA Banner */
.page-cta-banner {
  background: linear-gradient(135deg, #0757d9 0%, #08162b 100%);
  color: #ffffff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.page-cta-banner::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.25), transparent 70%);
  pointer-events: none;
}

.page-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.page-cta-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-cta-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 600px;
}

/* Responsive Media Queries */
@media (max-width: 960px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 24px;
    gap: 12px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--ease-smooth);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    margin-left: 0;
    padding: 12px 20px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .page-cta-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 76px;
  }

  .brand-link img {
    width: 124px;
  }

  .main-nav {
    top: 76px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-brand,
  .footer-col {
    text-align: center;
  }

  .footer-brand img {
    margin-inline: auto;
  }

  .footer-brand p {
    margin-inline: auto;
  }

  .privacy-notice {
    text-align: center;
  }
}
