/* Self-hosted (not a Google Fonts CDN link) so the existing CSP — style-src/font-src 'self' —
   does not need to be loosened for this. Only the Latin subset is bundled; EN/ES text (including
   Spanish accents/ñ/¿¡, all within U+00FF) is fully covered by it. Requested for the central
   banner heading specifically, to match the rounded, bold reference typography. */
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/baloo2-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/baloo2-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

/* COMEXT-WEB-006J-A: Poppins (titles/menu/buttons) + Inter (body copy), self-hosted from the
   same Google Fonts (OFL-licensed) files evaluated from the reference mockup, for the same CSP
   reasons as Fredoka/Baloo 2 above. Scoped to the home page only — see home.css. */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/poppins-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/poppins-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/poppins-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

:root {
  --c-bg: #01162A;
  --c-bg-2: #0F2342;
  --c-bg-deep: #000B1A;
  --c-surface: #16243D;
  --c-title: #FFFFFF;
  --c-text: #CBD5E1;
  --c-gold: #F59E0B;
  --c-gold-dark-text: #1A1203;
  /* COMEXT-WEB-007C-R1: sampled directly from the master's "Get a Quote" outline button border
     (~rgb(240,218,165) across several points) — notably lighter/more desaturated than --c-gold,
     a distinct "premium outline" treatment, not the solid button's color reused on an outline. */
  --c-gold-outline: #F0DAA5;
  --c-cyan: #38BDF8;
  --c-border: rgba(56, 189, 248, 0.25);
}

html, body {
  background: var(--c-bg);
}

body {
  color: var(--c-text);
}

a {
  color: var(--c-cyan);
}

.comext-shell {
  width: 100%;
  max-width: 1536px;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 768px) {
  .comext-shell { padding-inline: 1.5rem; }
}

@media (min-width: 1024px) {
  .comext-shell { padding-inline: 2.25rem; }
}

/* ---------- Buttons ---------- */
/* COMEXT-WEB-006H: gradient fill + inset top highlight + a small hover lift, matching the UI/UX
   direction's button recipe, instead of a flat background-color swap on hover. */
/* COMEXT-WEB-007A-R1 root cause (Defect 1): Bootstrap's .btn is display:inline-block, centering
   its content only via text-align — fine for plain text, but an icon/arrow span with its own
   font-size and line-height sits in the SAME inline line box as the text, so the two don't
   necessarily share a visual center (confirmed: the arrow-less Log In/Get a Quote buttons were
   already perfectly centered; every button with a trailing arrow span measured ~12px high).
   inline-flex + align-items/justify-content centers text and icon as independent items by their
   own box, immune to either one's font metrics. */
.btn-comext-gold,
.btn-comext-outline,
.btn-comext-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}

.btn-comext-gold {
  background-image: linear-gradient(180deg, #fbbf24, var(--c-gold));
  color: var(--c-gold-dark-text);
  border: 1px solid var(--c-gold);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn-comext-gold:hover,
.btn-comext-gold:focus {
  background-image: linear-gradient(180deg, #ffd166, #fbbf24);
  color: var(--c-gold-dark-text);
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-comext-gold:focus-visible,
.btn-comext-outline-gold:focus-visible,
.btn-comext-outline:focus-visible {
  outline: 3px solid var(--c-cyan);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .btn-comext-gold { transition: none; }
  .btn-comext-gold:hover { transform: none; }
}

.btn-comext-outline {
  background: transparent;
  color: var(--c-title);
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.btn-comext-outline:hover,
.btn-comext-outline:focus {
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-title);
  border-color: var(--c-title);
}

/* COMEXT-WEB-007C-R1 (Foto 8): was color/border both --c-gold ("gold-on-gold"), not the
   master's actual premium-outline treatment — white text on a lighter, desaturated gold
   border, confirmed by sampling the reference image directly (see --c-gold-outline above). */
.btn-comext-outline-gold {
  background: transparent;
  color: var(--c-title);
  border: 1px solid var(--c-gold-outline);
  font-weight: 700;
}

.btn-comext-outline-gold:hover,
.btn-comext-outline-gold:focus {
  background: rgba(240, 218, 165, 0.12);
  color: var(--c-title);
  border-color: var(--c-gold);
}

/* ---------- Header ---------- */
/* COMEXT-WEB-007A-R1 root cause: the home page sets `font-family: Inter` on body.comext-home
   (comext-home.css) for its own copy; since the shared header/nav live inside <body> with no
   font-family of their own, they silently inherited Inter there while every other page kept
   Bootstrap's system-ui stack — same declared font-size, but a different typeface at that size
   reads as a different size. Pinning the header to Bootstrap's own font variable makes it
   immune to whatever any individual page's body class sets. */
.comext-header {
  font-family: var(--bs-body-font-family);
  /* COMEXT-WEB-007C-R4: subtle glass effect so the hero's world/globe artwork (painted on
     .comext-visual-stage, Home only) shows softly through the top of the page. Same --c-bg
     color as html/body (theme.css L106-108), so on interior pages — no image behind it — the
     translucency blends into an identical flat color and reads as solid, same as before. */
  background: linear-gradient(180deg, rgba(1, 22, 42, 0.88) 0%, rgba(1, 22, 42, 0.46) 100%);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.comext-header .navbar {
  padding-block: 0.4rem;
  background: transparent !important;
}

/* COMEXT-WEB-007C-R1 (Foto 6): the shared .comext-shell's own mobile padding (1rem, but only
   14px since html's base font-size drops to 14px below 768px — see site.css) read as the brand
   sitting flush against the screen edge. Scoped to the header only, not the shared .comext-shell
   itself, so other sections' mobile spacing is untouched. */
@media (max-width: 767.98px) {
  .comext-header .comext-shell {
    padding-inline: 1.25rem;
  }
}

.comext-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* The master's logo sits ~30px further right than the shell's shared base inset — its own
   indent, additive via margin (not padding, which would silently overwrite — not add to —
   Bootstrap's own column/container padding on the same property; see home.css for the same
   fix applied to the hero text column). */
@media (min-width: 1024px) {
  .navbar-brand { margin-left: 1.875rem; }
}

@media (max-width: 575.98px) {
  .comext-logo-img { height: 38px; }
}

.comext-nav-divider {
  width: 1px;
  align-self: stretch;
  min-height: 28px;
  background: rgba(203, 213, 225, 0.35);
  margin-inline: 0.75rem;
}

.comext-nav-links {
  gap: 0.4rem;
}

.comext-nav-links .nav-link {
  color: var(--c-text);
  font-weight: 500;
  padding-inline: 0.9rem;
}

.comext-nav-links .nav-link.active {
  color: var(--c-cyan);
  border-bottom: 2px solid var(--c-cyan);
}

.comext-nav-links .nav-link:hover {
  color: var(--c-cyan);
}

.comext-lang-switch a {
  color: var(--c-text);
  text-decoration: none;
  font-weight: 600;
}

.comext-lang-switch a.active {
  color: var(--c-title);
}

.comext-lang-switch .sep {
  color: rgba(203, 213, 225, 0.4);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* ---------- Footer ---------- */
/* COMEXT-WEB-007B: institutional footer, shared by every page via
   Views/Shared/_InstitutionalFooter.cshtml. Reference: comext_footer_preview (approved) —
   colors/spacing taken verbatim from its .institutional-footer/.footer-* rules, renamed under
   the comext- prefix used throughout this stylesheet. Same font-family pin as .comext-header
   above, for the same reason (shared chrome must never depend on a page's own body class). */
.comext-institutional-footer {
  font-family: var(--bs-body-font-family);
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #031729 0%, #021124 100%);
  color: #eaf6ff;
  border-top: 1px solid rgba(42, 190, 239, 0.28);
}

.comext-institutional-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 8%;
  right: 8%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(59, 211, 252, 0.58), transparent);
}

/* COMEXT-WEB-007K-R2: unified to the same 1464px effective content width as .comext-tech-grid
   and .comext-finale-inner (1536px .comext-shell max-width minus its own 2×36px padding-inline
   at desktop) — was 1370px, a fourth distinct reference that left the footer's columns 47-83px
   narrower per side than the grids directly above it, even though all of them were already
   correctly centered on the same axis. */
.comext-footer-shell {
  width: min(1464px, calc(100% - 72px));
  margin-inline: auto;
}

.comext-footer-grid {
  padding: 42px 0 34px;
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: clamp(36px, 6vw, 125px);
}

.comext-footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.comext-footer-brand-row > img {
  width: 47px;
  height: 47px;
  object-fit: contain;
  flex: none;
}

.comext-footer-brand-row strong {
  display: block;
  font: 700 21px/1.1 Poppins, "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.35px;
  color: #fff;
}

.comext-footer-brand-row strong span {
  font-weight: 550;
}

/* Sampled from the master's header logo: "XT" renders cyan at full weight, not the lighter
   treatment given to the "LLC" suffix span above — needs this extra specificity to win over it. */
.comext-footer-brand-row strong .comext-footer-brand-accent {
  color: #68e2fc;
  font-weight: 700;
}

.comext-footer-brand-row small {
  display: block;
  font-size: 11.5px;
  color: #9bc5dc;
  margin-top: 4px;
  line-height: 1.3;
}

.comext-footer-brand > p {
  max-width: 370px;
  font-size: 14px;
  line-height: 1.6;
  color: #b8cede;
  margin: 0;
}

.comext-footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.comext-footer-column h2 {
  font: 650 16px/1.3 Poppins, "Segoe UI", Arial, sans-serif;
  color: #f5fafc;
  margin: 0 0 8px;
}

.comext-footer-column a,
.comext-footer-future {
  font: 400 13.5px/1.4 Inter, "Segoe UI", Arial, sans-serif;
  color: #aec4d6;
  text-decoration: none;
}

.comext-footer-column a:hover,
.comext-footer-column a:focus-visible {
  color: #34d9ff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.comext-footer-future {
  cursor: default;
}

.comext-footer-bottom {
  min-height: 62px;
  border-top: 1px solid rgba(94, 154, 187, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.comext-footer-bottom p {
  margin: 0;
  color: #91a9bf;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .comext-footer-shell { width: calc(100% - 42px); }
  .comext-footer-grid { grid-template-columns: 1.1fr 1fr; gap: 30px 24px; padding: 32px 0 30px; }
  .comext-footer-brand { grid-column: 1 / -1; }
  .comext-footer-brand > p { max-width: 540px; }
  .comext-footer-bottom { flex-direction: column; align-items: flex-start; justify-content: center; padding: 15px 0; gap: 4px; }
}

@media (max-width: 430px) {
  .comext-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .comext-footer-column h2 { font-size: 15px; }
  .comext-footer-column a, .comext-footer-future { font-size: 12.5px; }
  .comext-footer-brand > p { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .comext-institutional-footer a { transition: none; }
}

/* ---------- Generic content page (Solutions/Platform/Pricing/Resources/About/Contact) ---------- */
.comext-page-hero {
  background: linear-gradient(180deg, var(--c-bg-2) 0%, var(--c-bg) 100%);
  padding-block: 3rem 2.5rem;
}

.comext-page-hero h1 {
  color: var(--c-title);
  font-weight: 800;
}

.comext-page-hero p {
  color: var(--c-text);
  max-width: 44rem;
}

.comext-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 0.9rem;
  padding: 1.5rem;
  height: 100%;
}

.comext-card h2, .comext-card h3 {
  color: var(--c-title);
}

.comext-card p, .comext-card li {
  color: var(--c-text);
}

.comext-badge-planned {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--c-bg);
  background: var(--c-cyan);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.5rem;
}

.comext-cta-section {
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-2) 100%);
  padding-block: 2.5rem;
  text-align: center;
}

.comext-cta-section h2 {
  color: var(--c-title);
  font-weight: 800;
}

/* Contact form honeypot: off-screen, not a display:none (some bots skip hidden fields). */
.comext-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
