/*
Theme Name: Beluh Premium Logistics
Theme URI: https://beluh.com
Author: Beluh International Services
Description: Tema corporativo premium para Beluh, compatible con WordPress Multisite y Elementor básico. Incluye páginas bilingües y bloques editables independientes.
Version: 1.6.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: beluh
*/

:root {
  --blh-navy: #07172e;
  --blh-navy-2: #0b2345;
  --blh-blue: #165dff;
  --blh-yellow: #f5c400;
  --blh-ink: #0b1728;
  --blh-muted: #5b6575;
  --blh-line: #dce1e8;
  --blh-max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.beluh-premium {
  margin: 0;
  color: var(--blh-ink);
  font-family: Arial, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #fff;
}
.beluh-premium a { color: inherit; text-decoration: none; }
.beluh-premium img { max-width: 100%; height: auto; }
.beluh-premium button,
.beluh-premium input,
.beluh-premium textarea,
.beluh-premium select { font: inherit; }
.blh-wrap { width: min(var(--blh-max), calc(100% - 48px)); margin-inline: auto; }
.blh-page-content { margin: 0; }
.blh-page-content > p:empty { display: none; }
.elementor-widget-html { width: 100%; }

/* Elementor Basic adds flex, gaps and padding to generated containers.
   Keep the public design exact while preserving each editable block. */
.beluh-premium .elementor .e-con.blh-block,
.beluh-premium .elementor .elementor-element.blh-block {
  --padding-top: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  --padding-right: 0;
  --padding-block-start: 0;
  --padding-block-end: 0;
  --padding-inline-start: 0;
  --padding-inline-end: 0;
  --gap: 0;
  --row-gap: 0;
  --column-gap: 0;
  display: block !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}
.beluh-premium .elementor .blh-block > .e-con-inner,
.beluh-premium .elementor .blh-block > .elementor-widget,
.beluh-premium .elementor .blh-block > .elementor-widget > .elementor-widget-container {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.blh-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(9,30,61,.1);
  backdrop-filter: blur(15px);
}
body.admin-bar .blh-header { top: 32px; }
.blh-header-inner { height: 84px; display: flex; align-items: center; gap: 38px; }
.blh-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.blh-brand img,
.blh-brand .custom-logo { width: 64px; height: 48px; max-height: 48px; object-fit: contain; }
.blh-brand > span { display: flex; flex-direction: column; line-height: 1; }
.blh-brand b { font-size: 19px; letter-spacing: .14em; color: var(--blh-navy); }
.blh-brand small { font-size: 7px; letter-spacing: .14em; color: #566273; margin-top: 5px; }
.blh-nav { display: flex; gap: 28px; align-items: center; }
.blh-nav li { display: block; list-style: none; margin: 0; padding: 0; }
.blh-nav li::marker { content: ""; }
.blh-nav a { font-size: 13px; font-weight: 700; color: #3a4658; position: relative; }
.blh-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -10px; height: 2px; background: var(--blh-blue); transition: .25s; }
.blh-nav a:hover::after,
.blh-nav .current-menu-item a::after { right: 0; }
.blh-header-actions { display: flex; align-items: center; gap: 17px; }
.blh-header-actions > a { font-size: 12px; font-weight: 800; }
.blh-header-actions .blh-lang { color: var(--blh-blue); border-right: 1px solid var(--blh-line); padding-right: 17px; }
.blh-header-actions .blh-quote { padding: 15px 19px; background: var(--blh-navy); color: #fff; }
.blh-wa-nav { color: #118c4f !important; }
.blh-menu-toggle { display: none; border: 0; background: none; width: 42px; }
.blh-menu-toggle i { display: block; height: 2px; background: var(--blh-navy); margin: 6px; }

.blh-kicker { display: flex; align-items: center; gap: 12px; color: #dfe7f4; font-size: 10px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.blh-kicker::before { content: ""; width: 28px; height: 2px; background: var(--blh-yellow); }
.blh-kicker.dark { color: #526071; }
.blh-hero { position: relative; min-height: 690px; background: var(--blh-navy); color: #fff; overflow: hidden; }
.blh-hero-media {
  position: absolute;
  inset: 0 0 0 43%;
  background: linear-gradient(90deg,var(--blh-navy) 0%,rgba(7,23,46,.28) 45%,rgba(7,23,46,.4)), url('assets/images/beluh-warehouse.webp') center 58% / cover no-repeat;
  filter: saturate(.75) contrast(1.05);
}
/* Elementor 4.x may lazy-hide every descendant background after the second
   generated container. These ID-scoped declarations intentionally outrank
   Elementor's injected !important rule and keep critical imagery visible. */
#main .blh-hero .blh-hero-media {
  background-image: linear-gradient(90deg,var(--blh-navy) 0%,rgba(7,23,46,.28) 45%,rgba(7,23,46,.4)), url('assets/images/beluh-warehouse.webp') !important;
}
.blh-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,var(--blh-navy) 0%,rgba(7,23,46,.92) 38%,rgba(7,23,46,.06) 72%),linear-gradient(0deg,rgba(7,23,46,.48),transparent 52%); pointer-events: none; }
.blh-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; opacity: .07; background-image: linear-gradient(rgba(255,255,255,.8) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.8) 1px,transparent 1px); background-size: 80px 80px; pointer-events: none; }
.blh-hero-grid { position: relative; z-index: 2; min-height: 610px; display: grid; grid-template-columns: 1.12fr .72fr; align-items: center; gap: 72px; }
.blh-hero h1,
.blh-page-hero h1 { font-size: clamp(54px,6.2vw,92px); line-height: .92; letter-spacing: -.055em; margin: 24px 0 26px; font-weight: 800; }
.blh-hero h1 em,
.blh-page-hero h1 em,
.blh-heading h2 em,
.blh-control h2 em,
.blh-cta h2 em { font-family: Georgia, serif; font-weight: 400; }
.blh-hero h1 em,
.blh-page-hero h1 em { color: var(--blh-yellow); }
.blh-hero-copy > p { font-size: 17px; line-height: 1.75; color: #c4d0e0; max-width: 610px; }
.blh-actions { display: flex; gap: 16px; margin-top: 34px; }
.blh-btn { display: inline-flex; align-items: center; justify-content: center; padding: 17px 22px; font-size: 12px; font-weight: 900; letter-spacing: .02em; border: 1px solid transparent; transition: .25s; }
.blh-btn:hover { transform: translateY(-2px); }
.blh-primary { background: var(--blh-yellow); color: var(--blh-navy) !important; }
.blh-outline { border-color: rgba(255,255,255,.3); color: #fff !important; }
.blh-track { background: #fff; color: var(--blh-ink); padding: 30px; box-shadow: 0 24px 80px rgba(0,0,0,.28); border-top: 4px solid var(--blh-yellow); animation: blh-rise .7s .14s ease both; }
.blh-track small { color: var(--blh-blue); font-weight: 900; letter-spacing: .18em; }
.blh-track h3 { font-size: 17px; margin: 10px 0 25px; }
.blh-track label { display: block; font-size: 11px; font-weight: 800; color: #667081; margin-bottom: 9px; }
.blh-track-field { display: flex; border: 1px solid #ccd3dc; }
.blh-track-field input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 16px; background: #f8f9fb; }
.blh-track-field button { width: 54px; border: 0; background: var(--blh-blue); color: #fff; font-size: 20px; cursor: pointer; }
.blh-track-status { font-size: 11px; color: #173d87; background: #eef4ff; padding: 10px; }
.blh-track-status:empty { display: none; }
.blh-track footer { display: flex; justify-content: space-between; border-top: 1px solid var(--blh-line); margin-top: 20px; padding-top: 18px; font-size: 11px; }
.blh-track footer span { font-weight: 800; }
.blh-track footer a { color: var(--blh-blue); font-weight: 800; }
.blh-mode-rail { position: relative; z-index: 3; height: 80px; padding: 0 max(24px,calc((100% - var(--blh-max))/2)); display: flex; align-items: center; justify-content: space-between; gap: 28px; border-top: 1px solid rgba(255,255,255,.15); background: rgba(4,17,36,.78); font-size: 10px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.blh-mode-rail span { display: flex; align-items: center; white-space: nowrap; }
.blh-mode-rail span:not(:last-child)::after { content: ""; display: block; width: clamp(30px,8vw,145px); height: 1px; margin-left: clamp(18px,3vw,44px); background: rgba(255,255,255,.15); }

.blh-capabilities,
.blh-process,
.blh-content,
.blh-contact { padding: 112px 0; background: #f7f8fa; }
.blh-heading { display: grid; grid-template-columns: 1.12fr .65fr; gap: 80px; align-items: end; margin-bottom: 58px; }
.blh-heading h2,
.blh-control h2,
.blh-cta h2 { font-size: clamp(40px,4vw,64px); line-height: 1.02; letter-spacing: -.045em; margin: 18px 0 0; }
.blh-heading > p { color: var(--blh-muted); line-height: 1.8; font-size: 15px; margin: 0 0 4px; }
.blh-service-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--blh-line); border-left: 1px solid var(--blh-line); }
.blh-service { background: #fff; padding: 34px; min-height: 355px; border-right: 1px solid var(--blh-line); border-bottom: 1px solid var(--blh-line); display: flex; flex-direction: column; transition: .25s; }
.blh-service:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(12,28,52,.09); z-index: 2; }
.blh-service-top { display: flex; align-items: flex-start; justify-content: space-between; }
.blh-service-top > span { font-size: 10px; color: #9aa3af; }
.blh-service-icon { width: 50px; height: 50px; display: grid; place-items: center; color: var(--blh-blue); background: #eef3ff; }
.blh-service-icon svg { width: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.blh-service small { display: block; margin-top: 30px; font-size: 9px; font-weight: 900; letter-spacing: .18em; color: var(--blh-blue); }
.blh-service h3 { font-size: 21px; letter-spacing: -.02em; margin: 12px 0; }
.blh-service p { font-size: 13px; line-height: 1.7; color: var(--blh-muted); margin: 0 0 25px; }
.blh-service a { margin-top: auto; border-top: 1px solid var(--blh-line); padding-top: 17px; font-size: 11px; font-weight: 900; }
.blh-service a span { float: right; color: var(--blh-blue); }
.blh-portfolio-capabilities { padding: 90px 0; }
.blh-capability-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.blh-capability { min-width: 0; border: 1px solid var(--blh-line); padding: 28px; background: #fff; line-height: 1.5; }
.blh-capability small { color: var(--blh-blue); font-size: .8em; line-height: 1.5; font-weight: 900; letter-spacing: .15em; }
.blh-capability h3 { font-size: 19px; line-height: 1.5; margin: 14px 0 10px; }
.blh-capability h3,
.blh-capability p {
  width: 100%;
  max-width: none !important;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}
.blh-capability p { margin: 0; color: var(--blh-muted); font-size: 13px; line-height: 1.7; }

/* Elementor 3.28 and 4.x can add width constraints to HTML-widget content.
   Keep portfolio copy on the full usable width of each card. Typography is
   explicit so Elementor's global kit cannot compact the card rhythm. */
.beluh-premium .elementor-widget-html .blh-capability > p,
.beluh-premium .elementor-widget-html .blh-capability > h3 {
  inline-size: 100% !important;
  max-inline-size: none !important;
}
.blh-control { background: var(--blh-navy); color: #fff; }
.blh-control-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 700px; }
.blh-control-image { position: relative; background: linear-gradient(0deg,rgba(6,20,40,.42),transparent 60%),url('assets/images/beluh-operations.webp') center 52% / cover no-repeat; }
#main .blh-control .blh-control-image {
  background-image: linear-gradient(0deg,rgba(6,20,40,.42),transparent 60%),url('assets/images/beluh-operations.webp') !important;
}
.blh-control-image > span { position: absolute; left: 28px; bottom: 28px; background: var(--blh-yellow); color: var(--blh-navy); padding: 18px 22px; display: flex; flex-direction: column; font-size: 10px; }
.blh-control-image b { font-size: 12px; letter-spacing: .12em; margin-bottom: 4px; }
.blh-control-copy { padding: 86px 8%; }
.blh-control-copy > p { color: #b9c6d8; line-height: 1.8; font-size: 15px; }
.blh-control-copy ul { list-style: none; padding: 0; margin: 30px 0; }
.blh-control-copy li { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.14); }
.blh-control-copy li > b { color: var(--blh-yellow); font-size: 11px; }
.blh-control-copy li span { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #aab8ca; }
.blh-control-copy li strong { color: #fff; font-size: 15px; }
.blh-text-link { display: inline-block; color: #fff !important; font-size: 11px; font-weight: 900; border-bottom: 1px solid #fff; padding-bottom: 7px; }
.blh-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.blh-steps article { padding-right: 26px; }
.blh-steps b { color: var(--blh-blue); font-size: 11px; }
.blh-step-line { height: 44px; display: flex; align-items: center; }
.blh-step-line::before { content: ""; height: 1px; flex: 1; background: var(--blh-line); }
.blh-step-line i { width: 9px; height: 9px; border-radius: 50%; background: var(--blh-yellow); box-shadow: 0 0 0 5px #fff; }
.blh-steps h3 { font-size: 17px; margin: 8px 0 12px; }
.blh-steps p { font-size: 13px; line-height: 1.7; color: var(--blh-muted); }
.blh-cta { padding: 78px 0; background: var(--blh-blue); color: #fff; }
.blh-cta-grid { display: grid; grid-template-columns: 1fr .55fr; gap: 80px; align-items: end; }
.blh-cta-grid > div:last-child p { color: #dbe6ff; line-height: 1.7; }

.blh-page-hero { padding: 112px 0 90px; background: var(--blh-navy); color: #fff; overflow: hidden; position: relative; }
.blh-page-hero::after { content: ""; position: absolute; width: 500px; height: 500px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; right: -80px; top: -250px; box-shadow: 0 0 0 80px rgba(255,255,255,.025),0 0 0 160px rgba(255,255,255,.02); }
.blh-page-hero .blh-wrap { position: relative; z-index: 1; }
.blh-page-hero h1 { font-size: clamp(50px,6vw,78px); }
.blh-page-hero p { max-width: 660px; color: #bdc9d9; line-height: 1.75; }
.blh-copy-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; }
.blh-copy-grid h2 { font-size: 42px; letter-spacing: -.04em; margin: 0; }
.blh-copy-grid p { font-size: 16px; line-height: 1.8; color: var(--blh-muted); }
.blh-values { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 55px; }
.blh-values article { background: var(--blh-navy); color: #fff; padding: 34px; min-height: 240px; }
.blh-values b { font-size: 11px; color: var(--blh-yellow); }
.blh-values h3 { font-size: 23px; margin: 32px 0 12px; }
.blh-values p { font-size: 13px !important; color: #b4c0d0 !important; }
.blh-contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.blh-contact-grid > aside { background: var(--blh-navy); color: #fff; padding: 45px; }
.blh-contact-grid > aside h2 { font-size: 36px; }
.blh-contact-grid > aside small { display: block; color: #7f93ad; letter-spacing: .18em; margin-top: 28px; }
.blh-contact-grid > aside p { color: #c0cad8; line-height: 1.7; }
.blh-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.blh-form label { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: #536071; }
.blh-form input,
.blh-form textarea,
.blh-form select { display: block; width: 100%; border: 1px solid var(--blh-line); padding: 15px; margin-top: 8px; background: #fff; }
.blh-form textarea { min-height: 120px; }
.blh-form .full { grid-column: 1 / -1; }
.blh-form button { justify-self: start; border: 0; }
.blh-form-status { padding: 12px; background: #eef4ff; color: #173d87; font-size: 12px; }
.blh-form-status:empty { display: none; }
.blh-portal-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.blh-portal-grid > a { padding: 35px; border: 1px solid var(--blh-line); background: #fff; min-height: 250px; display: flex; flex-direction: column; transition: .2s; }
.blh-portal-grid > a:hover { border-color: var(--blh-blue); transform: translateY(-4px); }
.blh-portal-grid small { color: var(--blh-blue); font-weight: 900; letter-spacing: .15em; }
.blh-portal-grid h3 { font-size: 24px; margin: 28px 0 10px; }
.blh-portal-grid p { color: var(--blh-muted); font-size: 13px; }
.blh-portal-grid b { margin-top: auto; font-size: 11px; }
.blh-generic { min-height: 55vh; padding: 90px 0; }

.blh-footer { background: #041126; color: #fff; padding-top: 74px; }
.blh-footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .85fr 1fr; gap: 65px; padding-bottom: 60px; }
.blh-footer-grid h4 { font-size: 10px; letter-spacing: .16em; color: #8294ad; }
.blh-footer-grid a { display: block; font-size: 12px; color: #cbd5e3; margin: 12px 0; }
.blh-footer-grid p { font-size: 12px; line-height: 1.8; color: #9eacc0; }
.blh-footer-brand { display: flex; align-items: center; gap: 12px; }
.blh-footer-brand > span { width: 46px; height: 46px; background: var(--blh-yellow); color: var(--blh-navy); display: grid; place-items: center; font-size: 24px; font-weight: 900; }
.blh-footer-brand div { display: flex; flex-direction: column; }
.blh-footer-brand div b { letter-spacing: .12em; }
.blh-footer-brand small { font-size: 7px; color: #94a5bb; letter-spacing: .12em; }
.blh-copyright { border-top: 1px solid rgba(255,255,255,.12); padding: 24px 0; display: flex; justify-content: space-between; font-size: 10px; color: #71839c; }
.blh-floating-wa { position: fixed; right: 22px; bottom: 22px; z-index: 10000; display: flex; align-items: center; gap: 9px; background: #18a957; color: #fff !important; padding: 13px 16px; border-radius: 999px; box-shadow: 0 12px 35px rgba(4,38,24,.3); font-size: 12px; font-weight: 900; transition: .2s; }
.blh-floating-wa:hover { transform: translateY(-3px); background: #128c46; }
.blh-floating-wa svg { width: 24px; height: 24px; fill: #fff; }
.blh-floating-wa svg path + path { fill: #18a957; }
/* Beluh already includes its own bilingual WhatsApp control. Avoid the
   overlapping duplicate emitted by Click to Chat when that plugin is active. */
.beluh-premium #ht-ctc-chat { display: none !important; }

@keyframes blh-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  body.admin-bar .blh-header { top: 46px; }
  .blh-header-inner { height: 72px; }
  .blh-brand img,
  .blh-brand .custom-logo { width: 52px; height: 42px; }
  .blh-menu-toggle { display: block; }
  .blh-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: #fff; padding: 25px; flex-direction: column; align-items: flex-start; border-bottom: 1px solid var(--blh-line); }
  .blh-nav.open { display: flex; }
  .blh-header-actions { display: none; }
  .blh-hero-grid { grid-template-columns: 1fr; padding: 75px 0 55px; }
  .blh-hero-media { left: 25%; opacity: .5; }
  .blh-hero::after { background: rgba(7,23,46,.82); }
  .blh-track { max-width: 560px; }
  .blh-mode-rail span::after { display: none !important; }
  .blh-service-grid { grid-template-columns: repeat(2,1fr); }
  .blh-control-grid { grid-template-columns: 1fr; }
  .blh-control-image { min-height: 520px; }
  .blh-steps { grid-template-columns: repeat(2,1fr); gap: 35px; }
  .blh-copy-grid,
  .blh-contact-grid { grid-template-columns: 1fr; }
  .blh-footer-grid { grid-template-columns: 1.2fr 1fr; }
}

@media (max-width: 640px) {
  .blh-wrap { width: calc(100% - 32px); }
  .blh-brand > span { display: none; }
  .blh-hero { min-height: auto; }
  .blh-hero h1,
  .blh-page-hero h1 { font-size: 50px; }
  .blh-actions { flex-direction: column; }
  .blh-mode-rail { height: auto; padding: 20px 16px; flex-wrap: wrap; gap: 15px; }
  .blh-heading,
  .blh-cta-grid { grid-template-columns: 1fr; gap: 25px; }
  .blh-capabilities,
  .blh-process,
  .blh-content,
  .blh-contact { padding: 78px 0; }
  .blh-service-grid,
  .blh-capability-list,
  .blh-values,
  .blh-portal-grid { grid-template-columns: 1fr; }
  .blh-service { min-height: 310px; }
  .blh-control-image { min-height: 430px; }
  .blh-control-copy { padding: 65px 24px; }
  .blh-steps { grid-template-columns: 1fr; }
  .blh-step-line { display: none; }
  .blh-steps article { border-top: 1px solid var(--blh-line); padding-top: 22px; }
  .blh-footer-grid { grid-template-columns: 1fr; }
  .blh-copyright { flex-direction: column; gap: 12px; }
  .blh-form { grid-template-columns: 1fr; }
  .blh-form .full { grid-column: auto; }
  .blh-floating-wa span { display: none; }
  .blh-floating-wa { width: 54px; height: 54px; padding: 0; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blh-track { animation: none; }
  .blh-btn,
  .blh-service,
  .blh-portal-grid > a { transition: none; }
}
