/* Base World Trading 2026 — brand layer over Flex (loaded from the template style's "before </head>" code).
   Palette from BWT_logo_2026.svg. Sections are written in the articles (tools/content.py). */
:root {
  --bwt-navy: #0D2C6B;
  --bwt-navy-deep: #091f4d;
  --bwt-blue: #1F5FB8;
  --bwt-blue-light: #2E86D6;
  --bwt-cyan: #39B5E6;
  --bwt-ink: #1b2433;
  --bwt-muted: #5a6478;
  --bwt-line: #e3e8f1;
  --bwt-soft: #f3f6fb;
  --bwt-radius: 14px;
  --bwt-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html, body { overflow-x: clip; }
body { font-family: var(--bwt-font); color: var(--bwt-ink); font-size: 17px; line-height: 1.65; background: #fff; }
h1, h2, h3, h4, h5, h6, .sp-megamenu-parent > li > a { font-family: var(--bwt-font); }
h1, h2, h3 { color: var(--bwt-navy); letter-spacing: -0.015em; line-height: 1.2; }
h1 { font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.3rem); }
h2 { font-weight: 800; font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin-bottom: .6em; }
h3 { font-weight: 700; font-size: 1.2rem; }
a { color: var(--bwt-blue); }
a:hover, a:focus { color: var(--bwt-navy); }

/* ---------- top bar ---------- */
#sp-top-bar { font-size: 14px; }
#sp-top-bar a { color: #fff; }
#sp-top-bar a:hover { color: var(--bwt-cyan); }
#sp-top-bar .sp-contact-info li, #sp-top-bar .social-icons li { color: #c9d6ee; }
#sp-top-bar .sp-contact-info i, #sp-top-bar .sp-contact-info .fa { color: var(--bwt-cyan); }
.bwt-lang ul.lang-inline { margin: 0; padding: 0; display: inline-flex; gap: 2px; }
.bwt-lang ul.lang-inline li { margin: 0; list-style: none; }
.bwt-lang ul.lang-inline a { display: inline-block; padding: 1px 8px; border-radius: 4px; font-weight: 600;
  font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #c9d6ee; }
.bwt-lang ul.lang-inline li.lang-active a { background: rgba(255,255,255,.14); color: #fff; }
#sp-top2 .sp-column { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
#sp-top2 .sp-module { margin: 0; }

/* ---------- header ---------- */
#sp-header { background: #fff; box-shadow: 0 1px 0 var(--bwt-line); }
#sp-header .logo img, #sp-header .logo .sp-default-logo { height: 62px; width: auto; max-width: none; }
#sp-header.menu-fixed .logo img { height: 44px; }
.sp-megamenu-parent > li > a { color: var(--bwt-ink); font-weight: 600; font-size: 15.5px; letter-spacing: 0; text-transform: none; }
.sp-megamenu-parent > li.active > a, .sp-megamenu-parent > li > a:hover { color: var(--bwt-blue); }
.sp-megamenu-parent > li.active > a { box-shadow: inset 0 -3px 0 var(--bwt-cyan); }
.sp-megamenu-parent > li:empty { display: none; }
.sp-megamenu-parent > li > a[href$="/contacto"], .sp-megamenu-parent > li > a[href$="/en/contact"] {
  background: var(--bwt-blue); color: #fff !important; border-radius: 999px; padding: 0 22px !important;
  line-height: 42px !important; height: 42px; margin: 14px 0 0 12px; box-shadow: none !important; }
.sp-megamenu-parent > li > a[href$="/contacto"]:hover, .sp-megamenu-parent > li > a[href$="/en/contact"]:hover { background: var(--bwt-navy); }
@media (min-width: 992px) { #offcanvas-toggler { display: none !important; } }
#offcanvas-toggler > i, #offcanvas-toggler .fa { color: var(--bwt-navy); }
.offcanvas-menu { background: var(--bwt-navy); }
.offcanvas-menu .offcanvas-inner .sp-module ul > li > a { color: #fff; }

/* ---------- main body: articles draw their own sections ---------- */
#sp-main-body { padding: 0; }
#sp-page-title, .bwt-hidden { display: none; }
.item-page > .entry-header, .item-page > .article-info, .item-page > dl.article-info { display: none; }
.view-article #sp-component { padding-top: 0; }

/* full-bleed bands inside the Bootstrap container */
.bwt-hero, .bwt-pagehead, .bwt-section--alt, .bwt-cta {
  width: 100vw; position: relative; left: 50%; margin-left: -50vw; }
.bwt-hero__inner, .bwt-pagehead__inner, .bwt-section--alt > *, .bwt-cta__inner {
  max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

.bwt-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700;
  color: var(--bwt-blue-light); margin-bottom: .6rem; }
.bwt-lead { font-size: 1.2rem; line-height: 1.6; color: var(--bwt-muted); max-width: 46em; }
.bwt-intro { max-width: 46em; color: var(--bwt-muted); margin-bottom: 2rem; }

/* hero */
.bwt-hero { background: radial-gradient(120% 140% at 85% 20%, #1c4fa3 0%, var(--bwt-navy) 48%, var(--bwt-navy-deep) 100%);
  color: #dbe5f6; overflow: hidden; }
.bwt-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 26px 26px; }
.bwt-hero__inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center;
  padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(56px, 9vw, 110px); position: relative; z-index: 1; }
.bwt-hero h1 { color: #fff; margin: 0 0 1.2rem; }
.bwt-hero .bwt-eyebrow { color: var(--bwt-cyan); }
.bwt-hero .bwt-lead { color: #c9d6ee; }
.bwt-hero__art { display: flex; justify-content: center; }
.bwt-hero__art img { width: min(340px, 100%); height: auto; filter: drop-shadow(0 20px 50px rgba(0,0,0,.35));
  animation: bwt-float 9s ease-in-out infinite; }
@keyframes bwt-float { 50% { transform: translateY(-12px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .bwt-hero__art img { animation: none; } }

/* inner page header */
.bwt-pagehead { background: linear-gradient(135deg, var(--bwt-navy) 0%, var(--bwt-blue) 100%); color: #dbe5f6; }
.bwt-pagehead::after { content: ""; position: absolute; right: -60px; top: -60px; width: 340px; height: 340px; opacity: .12;
  background: url(/images/marca/icono-bwt.svg) no-repeat center / contain; pointer-events: none; }
.bwt-pagehead__inner { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(44px, 6vw, 72px); position: relative; z-index: 1; }
.bwt-pagehead h1 { color: #fff; margin: 0 0 .8rem; max-width: 22em; }
.bwt-pagehead .bwt-eyebrow { color: var(--bwt-cyan); }
.bwt-pagehead .bwt-lead { color: #c9d6ee; margin: 0; }
.bwt-pagehead--small .bwt-pagehead__inner { padding-top: 44px; padding-bottom: 40px; }

/* sections */
.bwt-section { padding: clamp(48px, 7vw, 88px) 0; }
.bwt-section--alt { background: var(--bwt-soft); }
.bwt-section > h2:first-child, .bwt-section > .bwt-eyebrow + h2 { margin-top: 0; }

/* buttons */
.bwt-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 1.6rem; }
.bwt-btn { display: inline-block; background: var(--bwt-cyan); color: var(--bwt-navy-deep); font-weight: 700;
  padding: 13px 26px; border-radius: 999px; text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.bwt-btn:hover, .bwt-btn:focus { background: #fff; color: var(--bwt-navy); text-decoration: none; transform: translateY(-1px); }
.bwt-section .bwt-btn { background: var(--bwt-blue); color: #fff; }
.bwt-section .bwt-btn:hover { background: var(--bwt-navy); color: #fff; }
.bwt-btn--ghost { background: transparent !important; color: #fff !important; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.bwt-btn--ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.bwt-btn--light { background: #fff; color: var(--bwt-navy); }
.bwt-link { font-weight: 700; color: var(--bwt-blue); text-decoration: none; }
.bwt-link::after { content: " →"; transition: margin .2s; }
a:hover .bwt-link::after, .bwt-link:hover::after { margin-left: 4px; }

/* division cards */
.bwt-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 2rem; }
.bwt-card { display: flex; flex-direction: column; padding: 30px 28px; border: 1px solid var(--bwt-line);
  border-radius: var(--bwt-radius); background: #fff; color: var(--bwt-ink); text-decoration: none;
  transition: box-shadow .25s, transform .25s, border-color .25s; position: relative; overflow: hidden; }
.bwt-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--bwt-blue), var(--bwt-cyan)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.bwt-card:hover { box-shadow: 0 18px 40px rgba(13,44,107,.12); transform: translateY(-4px); border-color: transparent;
  color: var(--bwt-ink); text-decoration: none; }
.bwt-card:hover::before { transform: scaleX(1); }
.bwt-card h3 { margin: 18px 0 10px; }
.bwt-card p { color: var(--bwt-muted); flex: 1; }
.bwt-card .bwt-link { margin-top: 8px; }

.bwt-icon { display: inline-flex; width: 52px; height: 52px; border-radius: 12px; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(31,95,184,.12), rgba(57,181,230,.18)); color: var(--bwt-blue); font-size: 22px; }

/* split text / image */
.bwt-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.bwt-split--text { align-items: start; grid-template-columns: 1fr 1fr; }
.bwt-split--reverse > :first-child { order: 2; }
.bwt-split__media { text-align: center; }
.bwt-split__media img { max-width: 100%; height: auto; max-height: 440px; object-fit: contain; }

/* feature grid */
.bwt-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 32px; }
.bwt-features h3 { font-size: 1.08rem; margin: 14px 0 6px; }
.bwt-features p { color: var(--bwt-muted); margin: 0; font-size: 16px; }

/* lists */
ul.bwt-checks { list-style: none; padding: 0; margin: 1rem 0; }
ul.bwt-checks li { position: relative; padding-left: 32px; margin-bottom: .55rem; }
ul.bwt-checks li::before { content: "\f00c"; font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "FontAwesome"; font-weight: 900;
  position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: rgba(57,181,230,.18);
  color: var(--bwt-blue); font-size: 11px; display: flex; align-items: center; justify-content: center; }
ol.bwt-steps { list-style: none; counter-reset: step; padding: 0; margin: 1rem 0; }
ol.bwt-steps li { counter-increment: step; position: relative; padding: 0 0 18px 52px; }
ol.bwt-steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--bwt-navy); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
ol.bwt-steps li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 36px; bottom: 2px; width: 2px; background: var(--bwt-line); }

/* offices */
.bwt-offices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 1.5rem; }
.bwt-offices > div { background: #fff; border: 1px solid var(--bwt-line); border-radius: var(--bwt-radius); padding: 26px 28px; }
.bwt-offices h3 { margin-top: 0; }
.bwt-offices p { margin-bottom: .4rem; color: var(--bwt-muted); }
.bwt-offices a { font-weight: 700; }

/* call to action band */
.bwt-cta { background: linear-gradient(120deg, var(--bwt-blue) 0%, var(--bwt-navy) 70%); color: #dbe5f6; }
.bwt-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  padding-top: 52px; padding-bottom: 52px; }
.bwt-cta h2 { color: #fff; margin: 0 0 .3rem; }
.bwt-cta p { margin: 0; }
.bwt-cta .bwt-actions { margin: 0; }

/* legal / prose */
.bwt-prose { max-width: 820px; }
.bwt-prose h2 { font-size: 1.35rem; margin-top: 2rem; }

/* contact page (override html/com_contact/contact/default.php) */
.bwt-contact__grid { grid-template-columns: .85fr 1.15fr; }
.bwt-contact .bwt-offices--compact { grid-template-columns: 1fr; gap: 16px; margin: 1.6rem 0 0; }
.bwt-contact .bwt-offices--compact h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.bwt-contact .bwt-offices--compact p { font-size: 15.5px; }
.bwt-contact__form { background: #fff; border: 1px solid var(--bwt-line); border-radius: var(--bwt-radius); padding: clamp(22px, 3vw, 36px);
  box-shadow: 0 18px 40px rgba(13,44,107,.07); }
.bwt-contact__form h2 { font-size: 1.5rem; margin-top: 0; }
.bwt-contact__form fieldset > legend { display: none; }
.bwt-contact__form .form-control, .bwt-contact__form input[type=text], .bwt-contact__form input[type=email], .bwt-contact__form textarea {
  border-radius: 10px; border: 1px solid #cdd6e4; padding: 10px 14px; width: 100%; }
.bwt-contact__form .form-control:focus { border-color: var(--bwt-blue-light); box-shadow: 0 0 0 3px rgba(46,134,214,.18); }
.bwt-contact__form .control-group, .bwt-contact__form .mb-3 { margin-bottom: 14px; }
.bwt-contact__form button[type=submit], .bwt-contact__form .btn-primary { background: var(--bwt-blue); border: 0; border-radius: 999px;
  padding: 12px 30px; font-weight: 700; color: #fff; }
.bwt-contact__form button[type=submit]:hover { background: var(--bwt-navy); }

/* bottom + footer */
#sp-bottom { font-size: 15.5px; }
#sp-bottom h3, #sp-bottom .sp-module-title { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 700; margin-bottom: 16px; }
#sp-bottom p { color: #c9d6ee; }
ul.bwt-footlinks { list-style: none; padding: 0; margin: 0; }
ul.bwt-footlinks li { margin-bottom: 8px; border: 0 !important; padding: 0 !important; }
#sp-bottom a { color: #fff; }
#sp-bottom a:hover { color: var(--bwt-cyan); }
#sp-footer { font-size: 14px; padding: 18px 0; }
#sp-footer a { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .bwt-hero__inner { grid-template-columns: 1fr; }
  .bwt-hero__art { display: none; }
  .bwt-cards, .bwt-features { grid-template-columns: 1fr 1fr; }
  .bwt-split, .bwt-split--text, .bwt-contact__grid { grid-template-columns: 1fr; }
  .bwt-split--reverse > :first-child { order: 0; }
  .bwt-split__media img { max-height: 320px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bwt-cards, .bwt-features, .bwt-offices { grid-template-columns: 1fr; }
  .bwt-hero__inner { padding-top: 48px; padding-bottom: 52px; }
  .bwt-lead { font-size: 1.08rem; }
  #sp-header .logo img { height: 42px; }
}
