:root {
  --upgram-primary: #551bb3;
  --upgram-primary-dark: #42138f;
  --upgram-action: #551bb3;
  --upgram-action-dark: #42138f;
  --upgram-success: #16a34a;
  --upgram-success-dark: #0f8a3a;
  --upgram-text: #172033;
  --upgram-heading: #0f172a;
  --upgram-muted: #667085;
  --upgram-border: #dce7f1;
  --upgram-soft: #f7fafc;
  --upgram-white: #fff;
  --bs-primary: #551bb3;
  --bs-success: #16a34a;
  --bs-body-color: var(--upgram-text);
  --bs-body-bg: #fff;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: var(--upgram-text);
  font-family: var(--bs-body-font-family, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeSpeed;
}

main {
  display: block;
}

a {
  color: var(--upgram-primary-dark);
  text-decoration: none;
}

a:hover {
  color: var(--upgram-primary-dark);
  text-decoration: none;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

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

button {
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}

.row > * {
  width: 100%;
  max-width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

.g-3 {
  gap: 1rem 0;
}

.g-4 {
  gap: 1.5rem 0;
}

.col-12 {
  flex: 0 0 auto;
  width: 100%;
}

@media (min-width: 576px) {
  .col-sm-3 { flex: 0 0 auto; width: 25%; }
  .col-sm-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-sm-6 { flex: 0 0 auto; width: 50%; }
  .col-sm-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-sm-10 { flex: 0 0 auto; width: 83.333333%; }
}

@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 auto; width: 25%; }
  .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
  .col-md-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-md-10 { flex: 0 0 auto; width: 83.333333%; }
}

@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
}

@media (min-width: 1200px) {
  .col-xl-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-xl-6 { flex: 0 0 auto; width: 50%; }
}

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-block { display: inline-block !important; }
.inline-flex { display: inline-flex !important; }
.flex-column { flex-direction: column !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-wrap { flex-wrap: wrap !important; }
.order-last { order: 6 !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-stretch { align-items: stretch !important; }
.align-items-xl-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }
.text-center { text-align: center !important; }
.text-white { color: #fff !important; }
.text-dark { color: #111827 !important; }
.text-muted { color: var(--upgram-muted) !important; }
.text-primary { color: var(--upgram-primary-dark) !important; }
.text-success { color: #027a48 !important; }
.text-warning { color: #f59e0b !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 800 !important; }
.h-100 { height: 100% !important; }
.w-100 { width: 100% !important; }
.m-0 { margin: 0 !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-xl-auto { margin-left: auto !important; }
.ms-auto { margin-left: auto !important; }
.mx-auto { margin-right: auto !important; margin-left: auto !important; }
.mt-auto { margin-top: auto !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-5 { padding: 3rem !important; }
.px-3 { padding-right: 1rem !important; padding-left: 1rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pb-5 { padding-bottom: 3rem !important; }
.rounded { border-radius: 8px !important; }
.rounded-1 { border-radius: 6px !important; }
.rounded-3 { border-radius: 8px !important; }
.rounded-4 { border-radius: 12px !important; }
.rounded-top-4 { border-top-left-radius: 12px !important; border-top-right-radius: 12px !important; }
.rounded-pill { border-radius: 999px !important; }
.border { border: 1px solid var(--upgram-border) !important; }
.border-0 { border: 0 !important; }
.overflow-hidden { overflow: hidden !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.top-0 { top: 0 !important; }
.end-0 { right: 0 !important; }
.translate-middle { transform: translate(-50%, -50%) !important; }
.z-3 { z-index: 3 !important; }
.shadow { box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1) !important; }
.shadow-sm { box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08) !important; }
.bg-white { background: #fff !important; }
.bg-primary { background: var(--upgram-primary) !important; }
.bg-light { background: #f8fafc !important; }
.bg-body-tertiary { background: #f8fafc !important; }
.bg-success-subtle { background: #ecfdf3 !important; }
.object-fit-cover { object-fit: cover !important; }
.list-unstyled { list-style: none !important; padding-left: 0 !important; }
.fs-3 { font-size: 1.75rem !important; }
.ratio { position: relative; width: 100%; }
.ratio::before { display: block; padding-top: var(--upgram-ratio, 75%); content: ""; }
.ratio > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.ratio-4x3 { --upgram-ratio: 75%; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.35rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: var(--upgram-text);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-sm {
  min-height: 2rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.875rem;
}

.btn-lg {
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--upgram-action);
  border-color: var(--upgram-action);
  color: #fff;
}

.btn-primary:hover {
  background: var(--upgram-action-dark);
  border-color: var(--upgram-action-dark);
  color: #fff;
}

.btn-outline-primary {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(253, 119, 2, 0.45);
  color: var(--upgram-primary-dark);
}

.btn-outline-primary:hover {
  background: var(--upgram-primary);
  border-color: var(--upgram-primary);
  color: #fff;
}

.header-menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  margin-top: 1rem;
  z-index: 30;
}

.header-menu .navbar,
.navbar {
  min-height: 64px;
}

.navbar {
  display: flex;
  align-items: center;
}

.navbar > .container {
  display: flex;
  align-items: center;
  min-height: 64px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: min(44vw, 144px);
  padding: 0;
}

.header-menu .site-logo {
  display: block;
  width: min(44vw, 144px);
  height: auto;
  aspect-ratio: 144 / 35;
  object-fit: contain;
}

.header-menu .mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid rgba(253, 119, 2, 0.25);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.35rem;
  height: 1.35rem;
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2822, 32, 51, 0.92%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") center / 100% 100% no-repeat;
}

.header-menu #language-dropdown,
.header-menu #bd-theme {
  width: 2.35rem;
  min-width: 2.35rem;
  height: 2.35rem;
  justify-content: center;
}

.header-language-icon {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  color: currentColor;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  z-index: 1000;
  display: none;
  min-width: var(--bs-dropdown-min-width, 10rem);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.12);
}

.dropdown-menu-end {
  right: 0;
  left: auto;
}

.dropdown-menu.show,
.dropdown:hover > .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 0;
  background: transparent;
  color: var(--upgram-text);
  text-align: left;
  text-decoration: none;
}

.dropdown-item:hover,
.dropdown-item.active {
  background: #fff7ed;
  color: var(--upgram-primary-dark);
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.offcanvas-body {
  flex-grow: 1;
  padding: 1rem 2rem 2rem;
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  color: #172033;
  font-weight: 700;
  text-decoration: none;
}

.nav-link:hover {
  background: rgba(253, 119, 2, 0.08);
  color: var(--upgram-primary-dark);
}

.bg-light-hover:hover {
  background: rgba(253, 119, 2, 0.08) !important;
}

.bg-primary-hover:hover {
  background: var(--upgram-primary) !important;
}

.text-white-hover:hover {
  color: #fff !important;
}

.offcanvas {
  position: fixed;
  z-index: 1045;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  background: #fff;
  visibility: hidden;
  transition: transform 0.22s ease, visibility 0.22s ease;
}

.offcanvas-end {
  top: 0;
  right: 0;
  width: min(86vw, 380px);
  height: 100%;
  transform: translateX(100%);
}

.offcanvas.show,
.offcanvas.showing {
  transform: none;
  visibility: visible;
}

.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.offcanvas-title {
  margin: 0;
}

.btn-close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111827;
}

.btn-close::before {
  content: "x";
  font-size: 1.4rem;
  line-height: 1;
}

.bi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  min-width: 1em;
  height: 1em;
  line-height: 1;
  vertical-align: -0.125em;
}

.bi::before {
  display: inline-block;
  font-style: normal;
  line-height: 1;
}

.bi-star-fill::before { content: "★"; }
.bi-star::before { content: "☆"; }
.bi-check::before,
.bi-check2-circle::before,
.bi-check-circle-fill::before,
.bi-shield-check::before { content: "✓"; }
.bi-pencil-fill::before { content: "✎"; }
.bi-chat-left-quote::before { content: "“"; }
.bi-lightning-charge::before { content: "⚡"; }
.bi-stars::before { content: "★"; }
.bi-box-seam::before { content: "□"; }
.bi-arrow-down-left-circle::before { content: "↓"; }
.bi-arrow-up-right-circle::before { content: "↑"; }
.bi-chevron-compact-right::before { content: "›"; }

.bi-arrow-left::before { content: "\2190"; }
.bi-arrow-right::before { content: "\2192"; }
.bi-arrow-down-circle::before { content: "\2193"; }
.bi-calendar3::before { content: "\25A1"; }
.bi-clock-history::before { content: "\25F7"; }
.bi-facebook::before { content: "f"; font-weight: 800; }
.bi-grid::before { content: "\25A6"; }
.bi-journal-richtext::before { content: "\2630"; }
.bi-linkedin::before { content: "in"; font-size: 0.72em; font-weight: 800; }
.bi-person-circle::before { content: "\25CB"; }
.bi-twitter-x::before { content: "X"; font-weight: 800; }
.bi-whatsapp::before { content: "W"; font-weight: 800; }

.section-icon-img {
  display: inline-block;
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1055;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.48);
}

.modal.show {
  display: block;
}

.modal-dialog {
  width: auto;
  max-width: min(92vw, 720px);
  margin: 1.75rem auto;
}

.modal-content {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.modal-header,
.modal-body {
  padding: 1.1rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf1f6;
}

.modal-title {
  color: #111827;
  font-weight: 800;
}

.form-label {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: #344054;
  font-weight: 700;
}

.form-control,
.form-select {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #d8dfeb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
}

textarea.form-control {
  min-height: 7rem;
  resize: vertical;
}

.invalid-feedback {
  display: none;
  margin-top: 0.35rem;
  color: #b42318;
  font-size: 0.875rem;
}

.footer-clean-grid {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: #334155;
}

.footer-clean-grid .footer-clean-shell {
  padding: 4rem 0 1.5rem;
}

.footer-clean-grid .footer-clean-brand {
  margin-bottom: 2rem;
}

.footer-clean-grid .footer-clean-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-clean-grid .footer-clean-logo img {
  display: block;
  max-height: 40px;
  width: auto;
}

.footer-clean-grid .footer-clean-copy {
  max-width: 56ch;
  margin: 1rem 0 0;
  color: #64748b;
  font-size: 0.96rem;
  line-height: 1.8;
}

.footer-clean-grid .footer-clean-grid-row {
  row-gap: 2rem;
}

.footer-clean-grid .footer-clean-title {
  display: inline-block;
  margin-bottom: 1rem;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-clean-grid .footer-clean-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-clean-grid .footer-clean-list a {
  color: #64748b;
  line-height: 1.6;
  text-decoration: none;
}

.footer-clean-grid .footer-clean-list a:hover {
  color: var(--upgram-primary-dark);
}

.footer-clean-grid .footer-clean-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: #64748b;
  font-size: 0.92rem;
}

.btn-back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 8px;
}

@media (min-width: 1200px) {
  .d-xl-none {
    display: none !important;
  }

  .d-xl-block {
    display: block !important;
  }

  .d-xl-flex {
    display: flex !important;
  }

  .navbar-expand-xl .offcanvas {
    position: static;
    z-index: auto;
    display: flex;
    flex: 1 1 auto;
    width: auto;
    height: auto;
    visibility: visible;
    transform: none;
    background: transparent;
  }

  .navbar-expand-xl .offcanvas-header {
    display: none;
  }

  .navbar-expand-xl .offcanvas-body {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
  }

  .navbar-expand-xl .navbar-nav {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    width: 100%;
  }

  .navbar-expand-xl .navbar-nav .ms-xl-auto {
    margin-left: auto !important;
  }

  .navbar-expand-xl .navbar-nav .nav-link {
    justify-content: flex-start;
    text-align: left;
    white-space: nowrap;
  }

  .navbar-expand-xl .navbar-nav .nav-link.bg-primary {
    margin-left: 0.85rem;
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

@media (max-width: 1199.98px) {
  .navbar-collapse,
  .navbar-nav.d-xl-flex {
    display: none !important;
  }

  .offcanvas-body {
    text-align: center;
  }

  .offcanvas-body .navbar-nav {
    align-items: stretch;
    width: 100%;
  }

  .offcanvas-body .nav-item {
    width: 100%;
  }

  .offcanvas-body .nav-link,
  .offcanvas-body .dropdown > .btn {
    justify-content: center !important;
    width: 100%;
    text-align: center;
  }

  .offcanvas-body .dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 0.35rem;
    text-align: center;
  }

  .offcanvas-body .dropdown-item {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .footer-clean-grid .footer-clean-shell {
    padding-top: 3rem;
  }
}
