/* === TOKENS === */
:root {
  --color-primary: #2B5F8A;
  --color-primary-light: #3A7CB8;
  --color-accent: #E74D3C;
  --color-accent-hover: #C0392B;
  --color-bg: #F8FAFB;
  --color-surface: #FFFFFF;
  --color-ink: #1A202C;
  --color-muted: #718096;
  --color-border: #E2E8F0;
  --color-hero-bg: #1A3A54;
  --radius-card: 12px;
  --radius-btn: 8px;
  --shadow-card: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
  --shadow-card-hover: 0 4px 16px rgba(0,0,0,.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1140px;
  --section-py: 100px;
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 18px; line-height: 1.6; color: var(--color-ink); background: var(--color-bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* === UTILITIES === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 1px 8px rgba(0,0,0,.08); }
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { font-weight: 700; font-size: 20px; color: var(--color-primary); display: flex; align-items: center; gap: 8px; }
.nav-logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--color-muted); transition: color .2s; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--color-primary); }
.nav-phone { font-size: 15px; font-weight: 600; color: var(--color-primary); display: flex; align-items: center; gap: 6px; }
.nav-phone svg { width: 18px; height: 18px; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }

/* === LANGUAGE SWITCHER === */
.lang-switch {
  display: flex; align-items: center; gap: 6px;
}
.lang-btn {
  background: none; border: 2px solid transparent; border-radius: 4px;
  cursor: pointer; padding: 2px; transition: border-color .2s, transform .2s;
  display: flex; align-items: center; justify-content: center;
}
.lang-btn:hover { transform: scale(1.15); }
.lang-btn.active { border-color: var(--color-primary); border-radius: 4px; }
.lang-btn svg { width: 24px; height: 16px; display: block; border-radius: 2px; }

.nav-burger svg { width: 24px; height: 24px; stroke: var(--color-ink); }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(26,32,44,.5); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 280px;
  background: var(--color-surface); padding: 80px 32px 32px;
  transform: translateX(100%); transition: transform .3s;
}
.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu a {
  display: block; padding: 14px 0; font-size: 17px; font-weight: 500;
  color: var(--color-ink); border-bottom: 1px solid var(--color-border);
}
.mobile-lang-switch {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 0; border-bottom: 1px solid var(--color-border);
}
.mobile-lang-switch .lang-btn svg { width: 32px; height: 21px; }

/* === HERO === */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background:
    linear-gradient(to bottom, rgba(26,58,84,.7) 0%, rgba(26,58,84,.85) 50%, rgba(255, 255, 255, 0.765) 100%),
    url('../images/hero-background-02.webp');
  background-size: cover;
  background-position: center;
  background-color: #fff;
  color: #fff; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(to bottom,
    rgba(248,250,251,0) 0%,
    rgba(248,250,251,.2) 30%,
    rgba(248,250,251,.55) 60%,
    rgba(248,250,251,.85) 85%,
    rgba(248,250,251,1) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.hero-grid {
  position: absolute; inset: 0; opacity: .06;
  background-image:
    linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner { position: relative; z-index: 1; max-width: var(--max-width); margin: 0 auto; padding: 120px 24px 80px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px; padding: 8px 18px; font-size: 14px; font-weight: 500;
  margin-bottom: 28px; backdrop-filter: blur(4px);
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.hero h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 700; line-height: 1.1; margin-bottom: 20px; letter-spacing: -.02em; }
.hero h1 span { color: var(--color-accent); }
.hero-sub { font-size: clamp(18px, 2.5vw, 22px); line-height: 1.5; color: rgba(255,255,255,.75); max-width: 560px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font); font-size: 16px; font-weight: 600; border: none; border-radius: var(--radius-btn); padding: 16px 32px; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--color-primary-light); outline-offset: 2px; }
.btn-primary { background: #25D366; color: #fff; box-shadow: 0 4px 14px rgba(37,211,102,.35); }
.btn-primary:hover { background: #1EBE5A; box-shadow: 0 6px 20px rgba(37,211,102,.4); }
.btn-primary svg { width: 20px; height: 20px; fill: currentColor; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.3); }
.btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.btn-outline svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

/* === SECTIONS COMMON === */
.section { padding: var(--section-py) 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-label { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--color-accent); margin-bottom: 12px; }
.section-title { font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; line-height: 1.2; color: var(--color-ink); }
.section-desc { font-size: 18px; color: var(--color-muted); max-width: 540px; margin: 16px auto 0; line-height: 1.6; }

/* === SERVICES === */
.services { background: var(--color-surface); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.service-card {
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); padding: 36px 28px;
  transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(43,95,138,.08); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; stroke: var(--color-primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; color: var(--color-ink); }
.service-card p { font-size: 15px; color: var(--color-muted); line-height: 1.6; }

/* === ADVANTAGES === */
.advantages { background: var(--color-bg); }
.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.adv-card { text-align: center; padding: 40px 28px; }
.adv-number {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.adv-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; color: var(--color-ink); }
.adv-card p { font-size: 15px; color: var(--color-muted); line-height: 1.6; max-width: 280px; margin: 0 auto; }

/* === CONTACT === */
.contact { background: var(--color-surface); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h3 { font-size: 24px; font-weight: 700; margin-bottom: 24px; color: var(--color-ink); }
.contact-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contact-item-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: rgba(43,95,138,.08); display: flex; align-items: center; justify-content: center;
}
.contact-item-icon svg { width: 22px; height: 22px; stroke: var(--color-primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-item-label { font-size: 14px; color: var(--color-muted); margin-bottom: 4px; }
.contact-item-value { font-size: 17px; font-weight: 600; color: var(--color-ink); }
.contact-item-value a { transition: color .2s; }
.contact-item-value a:hover { color: var(--color-primary); }
.whatsapp-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
  background: #25D366; color: #fff; border-radius: var(--radius-btn);
  padding: 14px 28px; font-size: 16px; font-weight: 600; font-family: var(--font);
  border: none; cursor: pointer; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(37,211,102,.3);
}
.whatsapp-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,.4); }
.whatsapp-btn svg { width: 22px; height: 22px; fill: currentColor; }

/* Form */
.contact-form { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 36px; }
.contact-form h3 { font-size: 20px; font-weight: 600; margin-bottom: 24px; color: var(--color-ink); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: var(--color-muted); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 16px; font-family: var(--font); font-size: 16px;
  border: 1px solid var(--color-border); border-radius: var(--radius-btn);
  background: var(--color-surface); color: var(--color-ink); transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(43,95,138,.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%; padding: 16px; font-family: var(--font); font-size: 16px; font-weight: 600;
  background: var(--color-primary); color: #fff; border: none; border-radius: var(--radius-btn);
  cursor: pointer; transition: background .2s, transform .2s;
}
.form-submit:hover { background: var(--color-primary-light); transform: translateY(-1px); }

/* === FOOTER === */
.footer {
  background: var(--color-hero-bg); color: rgba(255,255,255,.7);
  padding: 32px 0;
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; flex-wrap: wrap; gap: 12px;
}
.footer a { color: rgba(255,255,255,.9); transition: color .2s; }
.footer a:hover { color: #fff; }
.footer .lang-btn svg { width: 24px; height: 16px; }
.footer .lang-btn.active { border-color: rgba(255,255,255,.8); }

/* === SCROLL ANIMATIONS === */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-badge-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-py: 64px; }
  .nav-links, .nav-phone { display: none; }
  .nav-lang { display: none; }
  .nav-burger { display: block; }
  .mobile-menu { display: block; }
  .hero-inner { padding: 100px 24px 60px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
