/* ============================================
   Shark Money Labs — Global Styles
   Edit this file to update styles across all pages
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500&display=swap');

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

:root {
  --navy:        #0B1426;
  --navy-mid:    #111D35;
  --navy-light:  #1A2942;
  --teal:        #00A7B5;
  --teal-bright: #00C4D4;
  --teal-glow:   rgba(0,167,181,0.15);
  --teal-border: rgba(0,167,181,0.25);
  --white:       #FFFFFF;
  --off-white:   #F0F4F8;
  --gray:        #7C7C7D;
  --text-dark:   #0B1426;
  --text-mid:    #475569;
  --text-light:  #CBD5E1;
  --text-muted:  rgba(255,255,255,0.45);
  --border-dark: rgba(255,255,255,0.08);
  --border-light:#E2E8F0;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── ACCESSIBILITY ──────────────────────────── */

/* Skip link - visible only on keyboard focus */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--teal);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 8px 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--white);
  outline-offset: 2px;
}

/* Visible focus ring for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Remove outline only for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* Screen reader only utility class */
.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;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── TYPOGRAPHY ─────────────────────────────── */
h1,h2,h3,h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p  { color: var(--text-mid); font-size: 1rem; line-height: 1.7; }
a  { color: inherit; text-decoration: none; }

/* ── UTILITY ────────────────────────────────── */
.container  { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
}
.eyebrow-light { color: var(--teal-bright); }
.eyebrow-light::before { background: var(--teal-bright); }

.divider {
  width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  border-radius: 2px;
  margin: 14px 0 28px;
}

/* ── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 13px 26px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-bright) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0,167,181,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,167,181,0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-glow);
}
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-light); }

/* ── NAV ────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,20,38,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  overflow: visible;
}
.nav-logo img {
  height: 160px;
  width: auto;
  filter: brightness(0) invert(1);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta { margin-left: 4px; }

/* ── HAMBURGER ──────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--navy);
  border-bottom: 1px solid var(--border-dark);
  padding: 24px 28px 32px;
  z-index: 99;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-dark);
  transition: color 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--teal); }
.mobile-menu .btn-primary {
  margin-top: 8px;
  text-align: center;
  justify-content: center;
  border-bottom: none !important;
}

/* ── FOOTER ─────────────────────────────────── */
footer {
  background: #060E1D;
  padding: 44px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}
.footer-nav {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--teal); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.2);
}
.footer-disclaimer {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.15);
  max-width: 480px;
  text-align: right;
  line-height: 1.5;
}

/* ── TOOL CARDS (shared: homepage + herramientas page) ──── */
.tool-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.tool-card:hover {
  border-color: var(--teal-border);
  box-shadow: 0 8px 32px rgba(0,167,181,0.1);
  transform: translateY(-3px);
}
.tool-card:hover::before { transform: scaleX(1); }
.tool-card.disabled { opacity: 0.55; pointer-events: none; }
.tool-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.tool-card-footer { padding: 0 28px 24px; }
.tool-icon {
  width: 48px; height: 48px;
  background: rgba(0,167,181,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid var(--teal-border);
  flex-shrink: 0;
}
.tool-badge {
  display: inline-flex;
  align-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  width: fit-content;
}
.tool-card h3 { font-size: 1rem; color: var(--text-dark); margin-bottom: 8px; line-height: 1.3; }
.tool-card p { font-size: 0.875rem; color: var(--text-mid); line-height: 1.65; margin-bottom: 20px; flex: 1; }
.coming-soon-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mid);
}
.coming-soon-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border-light); }

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-disclaimer { text-align: left; }
}
