:root {
  --navy: #17202e;
  --navy-soft: #1d2a3d;
  --blue-800: #16294a;
  --blue-700: #1e3a6b;
  --blue-600: #2a4c8a;
  --blue-500: #3d62a8;
  --blue-100: #e9eff7;
  --blue-50: #f6f8fb;
  --gold: #d69133;
  --gold-dark: #b9761f;
  --gold-soft: #f6ecdd;
  --ink: #1a1d22;
  --gray-700: #4d5259;
  --gray-600: #6a6f77;
  --gray-400: #9ca0a6;
  --gray-200: #e6e8eb;
  --line: #dfe2e6;
  --bg: #fcfcfd;
  --bg-alt: #f2f4f6;
  --white: #ffffff;
  --whatsapp: #25a05a;
  --whatsapp-dark: #1e844a;
  --danger: #c0392b;
  --success: #1e8449;
  --warning: #b9761f;
  --info: #2a4c8a;

  --font-base: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.0625rem;
  --fs-h3: clamp(1rem, 1.4vw, 1.125rem);
  --fs-h2: clamp(1.625rem, 3vw, 2.375rem);
  --fs-h1: clamp(2.125rem, 4.4vw, 3.375rem);

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  --radius-sm: 3px;
  --radius: 6px;
  --radius-lg: 10px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(23, 32, 46, 0.06);
  --shadow: 0 6px 18px rgba(23, 32, 46, 0.08);
  --shadow-lg: 0 12px 28px rgba(23, 32, 46, 0.12);

  --container: 1440px;
  --container-narrow: 1160px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(56px, 8vw, 96px);

  --t-fast: 0.15s ease;
  --t-base: 0.25s ease;
  --header-h: 72px;

  --z-header: 60;
  --z-float: 70;
  --z-modal: 90;
  --z-toast: 120;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-wrap: pretty;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }

p { margin: 0; text-wrap: pretty; }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 3px;
}

.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;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section-alt {
  background: var(--bg-alt);
}

.section-dark {
  background: var(--navy);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-head {
  max-width: 680px;
  margin: 0 auto var(--sp-12);
  text-align: center;
}

.eyebrow {
  display: block;
  margin-bottom: var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  margin-bottom: var(--sp-5);
}

main h1 + p,
main h2 + p,
main h3 + p,
main h1 + .section-text,
main h2 + .section-text,
main h1 + .page-head-text {
  margin-top: var(--sp-5);
}

main h3 + p { margin-top: var(--sp-3); }

.hero-content h1 + p,
.section-head h2 + p,
.stats-card h3 + p { margin-top: 0; }

.section-head h2 + .section-text { margin-top: var(--sp-5); }

.section-text {
  font-size: var(--fs-md);
  color: var(--gray-600);
  line-height: 1.55;
}

.section-dark .section-text {
  color: #c4cad4;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base), transform var(--t-fast);
  margin-top: 20px;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--blue-700);
  color: var(--white);
}

.btn-primary:hover { background: var(--blue-800); }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover { background: #e5a248; }

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--navy);
}

.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn-outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}

.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-sm { padding: 10px 18px; font-size: var(--fs-sm); }

.btn-block { width: 100%; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-gold { background: var(--gold-soft); color: var(--gold-dark); }
.badge-blue { background: var(--blue-100); color: var(--blue-700); }

.form-grid {
  display: grid;
  gap: var(--sp-4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.label {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--navy);
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  font-size: var(--fs-base);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.textarea { resize: vertical; min-height: 110px; }

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(42, 76, 138, 0.12);
}

.input.is-invalid,
.textarea.is-invalid,
.select.is-invalid {
  border-color: var(--danger);
}

.field-error {
  font-size: var(--fs-xs);
  color: var(--danger);
}

.form-note {
  font-size: var(--fs-xs);
  color: var(--gray-600);
}

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: none;
}

.brand-logo {
  width: auto;
  height: clamp(26px, 3.4vw, 34px);
  object-fit: contain;
}

.brand-sub {
  align-self: flex-end;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1;
  color: var(--blue-600);
}

.nav,
.header-actions {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--navy);
  font-size: 18px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  flex-direction: column;
  padding: var(--sp-2) var(--gutter) var(--sp-5);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.mobile-panel.is-open { display: flex; }

.mobile-panel a {
  padding: 12px 0;
  font-size: var(--fs-md);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.mobile-panel a:last-of-type { border-bottom: none; }

.mobile-panel .btn { margin-top: var(--sp-4); }

.mobile-phone {
  margin-top: var(--sp-3);
  font-weight: 700;
  color: var(--blue-600);
}

.breadcrumb {
  padding-block: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--gray-600);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb li::after {
  content: '/';
  margin-left: 8px;
  color: var(--gray-400);
}

.breadcrumb li:last-child::after { content: none; }

.breadcrumb a:hover { color: var(--blue-600); }

.breadcrumb [aria-current] { color: var(--navy); font-weight: 700; }

.footer {
  background: var(--navy);
  color: #c4cad4;
  padding: clamp(48px, 6vw, 72px) 0 28px;
}

.footer-grid {
  display: grid;
  gap: var(--sp-8);
}

.footer-brand-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 18px;
}

.footer-brand-mark .brand-logo { height: 32px; }

.footer-brand-mark .brand-sub { align-self: flex-end; color: var(--blue-100); }

.footer-desc {
  max-width: 320px;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: #aeb6c2;
}

.footer-title {
  margin-bottom: var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-100);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--container);
  margin: var(--sp-8) auto 0;
  padding: 22px var(--gutter) 0;
  border-top: 1px solid #2c3a50;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: #8b95a4;
}

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: var(--z-float);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  background: var(--whatsapp);
  color: var(--white);
  font-size: 26px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--t-base), background var(--t-base);
}

.wa-float:hover { background: var(--whatsapp-dark); transform: scale(1.06); }

.toast-container {
  position: fixed;
  top: 18px;
  right: 18px;
  left: 18px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border-left: 4px solid var(--info);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--t-base), transform var(--t-base);
}

.toast.is-visible { opacity: 1; transform: translateY(0); }

.toast.is-leaving { opacity: 0; transform: translateY(-10px); }

.toast-icon { flex: none; font-size: 17px; line-height: 1.3; color: var(--info); }

.toast-body { flex: 1; min-width: 0; }

.toast-title { font-size: var(--fs-base); font-weight: 700; color: var(--navy); }

.toast-message { font-size: var(--fs-sm); color: var(--gray-600); }

.toast-close {
  flex: none;
  padding: 0;
  border: none;
  background: none;
  color: var(--gray-400);
  font-size: 15px;
  cursor: pointer;
}

.toast-close:hover { color: var(--ink); }

.toast-success { border-left-color: var(--success); }
.toast-success .toast-icon { color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-error .toast-icon { color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
.toast-warning .toast-icon { color: var(--warning); }

.is-hidden { display: none !important; }

.skeleton {
  background: linear-gradient(90deg, var(--bg-alt) 25%, #e8ebee 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.2s infinite;
  border-radius: var(--radius);
}

@keyframes skeleton {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.empty-state {
  padding: var(--sp-12) var(--sp-5);
  text-align: center;
  color: var(--gray-600);
}

.empty-state i {
  display: block;
  margin-bottom: var(--sp-3);
  font-size: 34px;
  color: var(--gray-400);
}

@media (min-width: 600px) {
  .toast-container { left: auto; width: 380px; }
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .brand-sub { font-size: 10.5px; }
}

@media (min-width: 901px) {
  .menu-toggle,
  .mobile-panel { display: none !important; }

  .nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.2vw, 34px);
  }

  .nav-link {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
    transition: color var(--t-fast);
  }

  .nav-link:hover,
  .nav-link.is-active { color: var(--blue-600); }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
  }

  .header-phone {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-size: 12.5px;
    color: var(--gray-600);
  }

  .header-phone strong { font-size: 13.5px; color: var(--ink); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.25fr 0.8fr 1fr 1fr 0.8fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}