/* ═════════════════════════════════════════════════════════════════════════
   SCC · Soluciones Contables & Consultoría
   Main stylesheet — Raleway, brand palette, responsive
   ═════════════════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── BRAND TOKENS ──────────────────────────────────────────────────────── */
:root {
  --navy: #042d62;
  --navy-deep: #021a3d;
  --navy-light: #1a4a8a;
  --gold: #fff0aa;
  --gold-deep: #b8960a;
  --blue: #bfe4f9;
  --crystal: #f3fdff;
  --white: #ffffff;
  --grey-50: #f9fafc;
  --grey-100: #f0f3f7;
  --grey-200: #e5e9f0;
  --grey-400: #a8b0c0;
  --grey-600: #64748b;
  --grey-800: #2a3445;

  --container: 1160px;
  --gap: 24px;
  --radius: 6px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 2px rgba(4, 45, 98, 0.05);
  --shadow-md: 0 4px 16px rgba(4, 45, 98, 0.08);
  --shadow-lg: 0 16px 48px rgba(4, 45, 98, 0.12);

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── BODY ──────────────────────────────────────────────────────────────── */
body {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--grey-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── TYPOGRAPHY ────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  color: var(--navy);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 0.4em;
}
h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 400;
}
h4 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
}

p {
  margin-bottom: 1em;
  color: var(--grey-600);
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 1.2rem;
  display: inline-block;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--grey-600);
  font-weight: 300;
  max-width: 640px;
}

/* ── LAYOUT ────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

.section {
  padding: 100px 0;
}
@media (max-width: 768px) {
  .section { padding: 72px 0; }
}

.section-header {
  margin-bottom: 64px;
  max-width: 720px;
}
.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ── NAVBAR ────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--grey-200);
  transition: var(--transition);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.navbar-logo img {
  height: 40px;
  width: auto;
}
.navbar-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.navbar-logo-text .name {
  font-weight: 800;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: 0.08em;
}
.navbar-logo-text .sub {
  font-size: 8px;
  letter-spacing: 0.24em;
  color: var(--grey-600);
  text-transform: uppercase;
  margin-top: 3px;
}

.navbar-nav {
  display: flex;
  gap: 36px;
  list-style: none;
}

.navbar-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.06em;
  position: relative;
  padding: 8px 0;
  transition: color var(--transition);
}

.navbar-nav a.active,
.navbar-nav a:hover {
  color: var(--gold-deep);
}

.navbar-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--gold-deep);
}

.navbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: var(--transition);
}

.navbar-cta:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(4, 45, 98, 0.25);
}

.menu-toggle {
  display: none;
  width: 28px;
  height: 28px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
}

/* Mobile nav */
@media (max-width: 900px) {
  .navbar-nav,
  .navbar-cta { display: none; }
  .menu-toggle { display: flex; }

  .navbar.menu-open .navbar-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: white;
    padding: 28px;
    gap: 20px;
    border-bottom: 1px solid var(--grey-200);
    box-shadow: var(--shadow-md);
  }
  .navbar.menu-open .navbar-cta {
    display: inline-flex;
    position: absolute;
    top: 74px;
    right: 28px;
    margin-top: 200px;
  }
  .navbar.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .navbar.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  .navbar.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ── BUTTONS ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(4, 45, 98, 0.25);
}
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-gold {
  background: var(--gold-deep);
  color: var(--white);
}
.btn-gold:hover {
  background: #8f7608;
}
.btn-arrow {
  transition: transform var(--transition);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ── FOOTER ────────────────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: var(--crystal);
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand .footer-logo {
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-brand .footer-tagline {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.7;
}

.footer-col h5 {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--gold);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  margin-bottom: 10px;
}
.footer-contact-item svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--gold);
  margin-top: 2px;
}

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
}

/* ── UTILITIES ─────────────────────────────────────────────────────────── */
.gold-line {
  height: 2px;
  background: var(--gold-deep);
  width: 60px;
  margin: 24px 0;
  opacity: 0.8;
}
.section-dark .gold-line { background: var(--gold); }

/* Scroll reveal — purely progressive enhancement.
   Content is always visible; JS adds a subtle fade-up ONLY on first view. */
@media (prefers-reduced-motion: no-preference) {
  .js-ready .scroll-reveal {
    animation: reveal-up 0.8s ease-out both;
    animation-play-state: paused;
  }
  .js-ready .scroll-reveal.revealed {
    animation-play-state: running;
  }
}
@keyframes reveal-up {
  from { opacity: 0.4; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Prevent body scroll when menu open on mobile */
body.menu-open {
  overflow: hidden;
}
