/* ==========================================================================
   ORMA LOGISTICS - EXACT THEME OVERRIDES & COMPONENT STYLING
   ========================================================================== */

/* 1. Global Tokens */
.elementor-kit-6 {
  --e-global-color-primary: #00235a;
  --e-global-color-secondary: #00235a;
  --e-global-color-text: #7a7a7a;
  --e-global-color-accent: #004bc2;
  --e-global-typography-primary-font-family: "Roboto", sans-serif;
  --e-global-typography-primary-font-weight: 600;
  --e-global-typography-secondary-font-family: "Roboto Slab", serif;
  --e-global-typography-secondary-font-weight: 400;
  --e-global-typography-text-font-family: "Roboto", sans-serif;
  --e-global-typography-text-font-weight: 400;
  --e-global-typography-accent-font-family: "Roboto", sans-serif;
  --e-global-typography-accent-font-weight: 500;
}

body {
  font-family: "Roboto", sans-serif;
  color: #666;
  margin: 0;
  padding: 0;
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", sans-serif;
}

.footer-width-fixer {
  width: 100%;
}

.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.e-con {
  --container-max-width: 1140px;
}

/* 2. Header & Menu */
header.header-1 {
  background: #ffffff;
  position: relative;
  z-index: 999;
  width: 100%;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

header.header-1 .logo a {
  display: flex;
  align-items: center;
  padding: 12px 0;
}

header.header-1 .logo img {
  height: 74px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
}

header.header-1 .main-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

header.header-1 .main-menu ul > li {
  display: inline-block;
  line-height: 1;
}

header.header-1 .main-menu ul > li > a {
  display: inline-block;
  font-weight: 600;
  font-size: 16px;
  text-transform: capitalize;
  color: #000000 !important;
  line-height: 1;
  padding: 38px 18px;
  overflow: hidden;
  text-align: left;
  position: relative;
  text-decoration: none;
  transition: color 0.25s ease;
}

header.header-1 .main-menu ul > li > a:hover,
header.header-1 .main-menu ul > li > a.active {
  color: #c32637 !important;
}

header.header-1 .main-menu ul > li.menu-item-has-children {
  position: relative;
}

header.header-1 .main-menu ul > li .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #ffffff !important;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  display: none;
  z-index: 1000;
  text-align: left;
}

header.header-1 .main-menu ul > li.menu-item-has-children:hover .sub-menu {
  display: block;
}

header.header-1 .main-menu ul > li .sub-menu li {
  display: block;
  width: 100%;
  line-height: normal;
}

header.header-1 .main-menu ul > li .sub-menu li a {
  display: block;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a !important;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.4;
}

header.header-1 .main-menu ul > li .sub-menu li a:hover {
  background: #fff7ed;
  color: #ff7600 !important;
  padding-left: 22px;
}

header.header-1.sticky {
  top: 0 !important;
  width: 100%;
  position: fixed !important;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  animation: sticky .4s ease-in-out;
  z-index: 999;
}

@keyframes sticky {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(0); }
}

header.header-1.sticky .main-menu ul > li > a {
  padding: 26px 18px;
}

header.header-1.sticky .logo img {
  height: 60px;
}

.mobile-nav-wrap {
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  gap: 24px;
}

.mobile-header-lang-btn {
  padding: 2px 3px;
  margin-right: 6px;
  flex-shrink: 0;
}

#hamburger {
  color: #c32637 !important;
  font-size: 30px;
  line-height: 1;
  text-align: right;
  cursor: pointer;
  padding: 6px 0;
  display: block;
}

#hamburger i {
  color: #c32637 !important;
  font-size: 30px;
  cursor: pointer;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}

#hamburger:hover i {
  color: #00235a !important;
}

.mobile-nav {
  position: fixed;
  right: -380px;
  top: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background-color: #c32637 !important;
  z-index: 10000;
  padding: 25px 20px;
  transition: right .35s ease-in-out;
  overflow-y: auto;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.25);
}

.mobile-nav.show {
  right: 0 !important;
}

.mobile-nav .close-nav {
  position: absolute;
  top: 15px;
  left: 20px;
  background: transparent;
  border: none;
  color: #ffffff !important;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 5px;
  transition: opacity 0.2s ease;
}

.mobile-nav .close-nav i {
  color: #ffffff !important;
  font-size: 22px;
}

.mobile-nav .close-nav:hover {
  opacity: 0.8;
}

.mobile-nav .sidebar-nav {
  margin-top: 35px;
}

.mobile-nav .sidebar-nav ul.metismenu,
.mobile-nav .sidebar-nav ul#mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.mobile-nav .sidebar-nav ul.metismenu > li {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.mobile-nav .sidebar-nav ul.metismenu a {
  position: relative;
  display: block;
  padding: 12px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff !important;
  text-decoration: none;
  text-transform: capitalize;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: all .25s ease-out;
  outline-width: 0;
}

/* Override default dustrix theme orange (#ff5e14) on hover / focus / active */
.mobile-nav .sidebar-nav ul.metismenu a:hover,
.mobile-nav .sidebar-nav ul.metismenu a:focus,
.mobile-nav .sidebar-nav ul.metismenu a:active,
.mobile-nav .sidebar-nav ul.metismenu a.active,
.mobile-nav .sidebar-nav ul.metismenu li.active > a {
  background-color: rgba(0, 0, 0, 0.18) !important;
  color: #ffffff !important;
  text-decoration: none;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* 3. Page Banner for Subpages */
.page-banner-wrap {
  background-image: url(/assets/images/orig/xheader.png.pagespeed.ic.6GNZLd4kgF.jpg);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  padding-top: 115px;
  padding-bottom: 105px;
  position: relative;
  z-index: 1;
}

.page-banner-wrap::before, .page-banner-wrap::after {
  position: absolute;
  left: 0;
  content: "";
  top: 0;
  background: #000000 !important;
  width: 100%;
  height: 100%;
  opacity: .40;
  z-index: -1;
}

.page-banner-wrap .page-heading h1 {
  color: #ffffff !important;
  font-size: 55px;
  font-weight: 700;
  text-transform: capitalize;
  margin: 0;
}

/* 4. Hero Slider */
.hero-slide-wrapper.hero-1 {
  position: relative;
  overflow: hidden;
}

.hero-1 .single-slide {
  padding: 220px 0 200px;
  position: relative;
  z-index: 1;
  background-size: cover;
  background-position: center center;
}

/* Neutral dark overlay: resolves "esta muy azul la foto principal" */
.hero-1 .single-slide:before {
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  content: '';
  position: absolute;
  background: rgba(68, 68, 68, 0.5) !important;
}

.hero-1 .single-slide .hero-contents h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #ffffff !important;
  display: inline-block;
  position: relative;
  padding: 10px 20px;
  line-height: 1;
  font-weight: 500;
  border-radius: 5px;
  overflow: hidden;
  z-index: 1;
}

.hero-1 .single-slide .hero-contents h3:before {
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  content: '';
  position: absolute;
  background: rgba(243, 0, 0, 0.12) !important;
  transition: all .3s ease-in-out;
}

/* Hero H1 must ALWAYS be pure white */
.hero-1 .single-slide .hero-contents h1,
.hero-1 .single-slide .hero-contents h1.bg-heading,
.hero-contents h1.animated-text.bg-heading {
  font-size: clamp(48px, 8vw, 110px) !important;
  color: #ffffff !important;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 95%;
  letter-spacing: -2px;
  text-transform: capitalize;
}

.theme-btn {
  color: #ffffff !important;
  padding: 18px 32px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  background-color: #c32637 !important;
  border: 2px solid #c32637 !important;
  display: inline-block;
  margin-right: 20px;
  text-decoration: none;
  transition: all .3s ease-in-out;
  line-height: 1;
}

.theme-btn:hover {
  background-color: #00235a !important;
  border-color: #00235a !important;
  color: #ffffff !important;
}

.theme-btn i {
  margin-left: 15px;
}

.theme-btn.black {
  background-color: #00235a !important;
  border-color: #00235a !important;
  color: #ffffff !important;
}

.theme-btn.black:hover {
  background-color: #c32637 !important;
  border-color: #c32637 !important;
  color: #ffffff !important;
}

.hero-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all .3s ease;
}

.hero-nav-arrow:hover {
  background: #c32637;
  border-color: #c32637;
}

.hero-nav-arrow.prev { left: 30px; }
.hero-nav-arrow.next { right: 30px; }

/* Text Animations */
.animated-text {
  transform: translateX(40px);
  opacity: 0;
  visibility: hidden;
  transition: all .6s ease;
}

.animated-text.is-transitioned {
  transform: none;
  opacity: 1;
  visibility: visible;
  transition: all .9s ease;
}

.small-heading.is-transitioned { transition-delay: .2s; }
.bg-heading.is-transitioned { transition-delay: .4s; }
.animated-btn.is-transitioned { transition-delay: .6s; }

/* 5. Mask Outline for 33 & 31 */
.mask-outline {
  background-repeat: no-repeat;
  background-position: center bottom;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  display: inline-block;
  line-height: 1;
}

.mask-outline h1 {
  font-weight: 900;
  margin: 0;
  line-height: 0.9;
}

/* Mobile & Tablet Centering for Mask Outline Counter (33 & 31) */
@media (max-width: 991px) {
  /* Parent widget & container centering */
  .elementor-widget-modina_mask_countup,
  .elementor-element-858bb65,
  .elementor-element-41ba560 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .elementor-widget-modina_mask_countup > .elementor-widget-container,
  .elementor-element-858bb65 > .elementor-widget-container,
  .elementor-element-41ba560 > .elementor-widget-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto 10px auto !important;
    padding: 0 !important;
  }

  /* Counter element centering */
  .mask-outline,
  .mask-outline.text-center,
  .elementor-element-858bb65 .mask-outline,
  .elementor-element-41ba560 .mask-outline {
    display: inline-block !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
    background-position: center bottom !important;
  }

  /* Responsive centered typography for 33 / 31 without horizontal overflow */
  .mask-outline h1,
  .mask-outline h2,
  .mask-outline h3,
  .elementor-2066 .elementor-element.elementor-element-858bb65 .mask-outline h1,
  .elementor-2066 .elementor-element.elementor-element-858bb65 .mask-outline h2,
  .elementor-2066 .elementor-element.elementor-element-858bb65 .mask-outline h3,
  .elementor-941 .elementor-element.elementor-element-41ba560 .mask-outline h1,
  .elementor-941 .elementor-element.elementor-element-41ba560 .mask-outline h2,
  .elementor-941 .elementor-element.elementor-element-41ba560 .mask-outline h3 {
    display: block !important;
    text-align: center !important;
    margin: 0 auto !important;
    width: 100% !important;
    font-size: clamp(110px, 30vw, 190px) !important;
    line-height: 0.95 !important;
    letter-spacing: -2px !important;
  }

  /* Subtitle centering below countup */
  .elementor-element-9556026,
  .elementor-element-235a598,
  .elementor-element-9556026 .elementor-widget-container,
  .elementor-element-235a598 .elementor-widget-container,
  .elementor-element-9556026 .elementor-heading-title,
  .elementor-element-235a598 .elementor-heading-title {
    display: block !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
  }

  /* Outer column centering */
  .elementor-column.elementor-element-d4f92ea,
  .elementor-column.elementor-element-a4c9b9f,
  .elementor-column.elementor-element-ad71579 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
  }

  .elementor-column.elementor-element-d4f92ea > .elementor-widget-wrap,
  .elementor-column.elementor-element-a4c9b9f > .elementor-widget-wrap,
  .elementor-column.elementor-element-ad71579 > .elementor-widget-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* 6. Section Titles across the site */
.section-title {
  position: relative;
  margin-top: -5px;
}

.section-title span {
  position: absolute;
  font-weight: 700;
  font-size: clamp(70px, 11vw, 150px);
  letter-spacing: -3px;
  color: rgba(0, 35, 90, 0.05);
  -webkit-text-stroke: 1px rgba(0, 35, 90, 0.08);
  text-transform: capitalize;
  left: 0;
  top: -30px;
  z-index: -1;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.section-title p {
  color: #c32637 !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

/* In Orma theme, section titles are brand red #c32637 */
.section-title h2,
.section-title-2 h2,
.section-title-3 h2 {
  color: #c32637 !important;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.25;
}

/* Dark section title override (e.g. Proyectos section on dark bg) */
.elementor-element-8005db0 .section-title h2 {
  color: #ffffff !important;
}
.elementor-element-8005db0 .section-title span {
  color: rgba(255, 255, 255, 0.08) !important;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12) !important;
}

/* 7. CTA Banners White Text */
.elementor-element-40b0968 .elementor-heading-title,
.elementor-element-0814745 .elementor-icon-box-title,
.elementor-element-0814745 .elementor-icon-box-description,
.elementor-element-6b01eed .elementor-heading-title {
  color: #ffffff !important;
}

/* 8. Floating WhatsApp & Scroll To Top */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: #25D366;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

#scrollUp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: #c32637 !important;
  color: #ffffff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 999;
  border: none;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  transition: all .3s ease;
}

#scrollUp:hover {
  background-color: #000000 !important;
}

/* 9. Footer link colors */
footer#colophon a {
  text-decoration: none;
  transition: color 0.25s ease;
}

footer#colophon a:hover {
  color: #c32637 !important;
}

/* 10. Language Switcher (ES / EN) */
.header-lang-switcher {
  display: inline-flex;
  align-items: center;
}

.lang-pill-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 3px 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.lang-pill-btn:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.lang-option {
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  line-height: 1;
}

.lang-option:hover {
  color: #1e293b;
}

.lang-option.active {
  background: #ffffff;
  color: #c32637;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.lang-option .minimal-flag-svg {
  opacity: 0.82;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.lang-option:hover .minimal-flag-svg,
.lang-option.active .minimal-flag-svg {
  opacity: 1;
  transform: scale(1.05);
}

.lang-option .lang-code {
  letter-spacing: 0.5px;
  line-height: 1;
}

.lang-pill-btn .lang-sep {
  color: #cbd5e1;
  font-size: 10px;
  user-select: none;
}

/* Mobile Header Language Switcher */
.mobile-header-lang-btn {
  padding: 2px 3px;
  margin-right: 6px;
  flex-shrink: 0;
}

.mobile-header-lang-btn .lang-option {
  padding: 3px 6px;
  font-size: 11px;
  gap: 4px;
}

/* Mobile Drawer Language Switcher */
.mobile-lang-wrap {
  padding-bottom: 15px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-lang-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
}

.mobile-lang-opt {
  flex: 1;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  padding: 8px 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.mobile-lang-opt:hover {
  color: #ffffff;
}

.mobile-lang-opt.active {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.mobile-lang-opt .minimal-flag-svg {
  opacity: 0.85;
}

.mobile-lang-opt.active .minimal-flag-svg {
  opacity: 1;
}

.mobile-lang-btn .lang-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
}

/* 11. Modern Minimalist Loading System (Top Bar, Preloader & Image Pill) */
.modern-top-loader {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #c32637 0%, #ff334b 60%, #ff758c 100%);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px rgba(195, 38, 55, 0.8), 0 0 5px rgba(255, 51, 75, 0.6);
  z-index: 999999;
  pointer-events: none;
  transition: width 0.35s cubic-bezier(0.1, 0.9, 0.2, 1), opacity 0.3s ease;
}

.modern-top-loader .loader-glow-head {
  position: absolute;
  right: 0;
  top: 0;
  width: 70px;
  height: 100%;
  box-shadow: 0 0 14px #ff334b, 0 0 6px #ffffff;
  border-radius: 0 3px 3px 0;
}

/* Minimalist Initial Splash Preloader */
.modern-preloader-overlay {
  position: fixed;
  inset: 0;
  background-color: #ffffff;
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease-out, visibility 0.45s ease-out;
}

.modern-preloader-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preloader-logo {
  max-width: 170px;
  height: auto;
  animation: preloaderPulse 1.8s ease-in-out infinite;
}

.minimal-spinner-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.minimal-spinner {
  width: 34px;
  height: 34px;
  border: 2.5px solid rgba(195, 38, 55, 0.12);
  border-top-color: #c32637;
  border-radius: 50%;
  animation: minimalSpin 0.75s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

.minimal-loader-text {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #777777;
  letter-spacing: 0.4px;
  margin-top: 14px;
}

/* Minimalist Floating Image Download Pill */
.minimal-image-loading-pill {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9998;
  background: rgba(17, 24, 39, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 7px 15px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  animation: pillSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
}

.minimal-image-loading-pill.done {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(17, 24, 39, 0.95);
}

.pill-mini-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ff4d61;
  border-radius: 50%;
  animation: minimalSpin 0.7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

.pill-check-icon {
  color: #22c55e;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
}

.pill-text {
  letter-spacing: 0.2px;
}

/* Image skeleton / smooth placeholder */
.portfolio-thumb, .service-bg, .card-thumb, .client-img {
  background-color: #f3f4f6;
}

@keyframes minimalSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.88; }
}

@keyframes pillSlideUp {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 12. Modern Contact Form */
.modern-contact-section {
  padding: 80px 0 100px;
  background: #ffffff;
}

.modern-contact-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid #edf2f7;
  padding: 45px 50px;
  max-width: 950px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .modern-contact-card {
    padding: 28px 20px;
    border-radius: 12px;
  }
}

.modern-form-group {
  margin-bottom: 22px;
}

.modern-form-label {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
  display: block;
}

.modern-form-input,
.modern-form-textarea {
  width: 100%;
  background-color: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 13px 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #1e293b;
  transition: all 0.25s ease;
  outline: none;
}

.modern-form-input:focus,
.modern-form-textarea:focus {
  background-color: #ffffff;
  border-color: #c32637;
  box-shadow: 0 0 0 3px rgba(195, 38, 55, 0.12);
}

.modern-form-textarea {
  min-height: 160px;
  resize: vertical;
}

.modern-btn-submit {
  background-color: #c32637;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  padding: 15px 42px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(195, 38, 55, 0.28);
  transition: all 0.25s ease;
}

.modern-btn-submit:hover:not(:disabled) {
  background-color: #00235a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 35, 90, 0.3);
}

.modern-btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.modern-contact-success {
  text-align: center;
  padding: 40px 20px;
}

.modern-contact-success h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #00235a;
  margin-top: 18px;
  margin-bottom: 12px;
}

.modern-contact-success p {
  color: #64748b;
  font-size: 15px;
  max-width: 540px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.modern-btn-reset {
  background: transparent;
  border: 1.5px solid #cbd5e1;
  border-radius: 30px;
  padding: 10px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.modern-btn-reset:hover {
  background: #f1f5f9;
  color: #00235a;
  border-color: #94a3b8;
}

/* ========================================================
   Interactive Branches & Map Section (Sucursales)
   ======================================================== */
.branches-map-section {
  width: 100%;
  margin-top: 10px;
  margin-bottom: 30px;
}

.branch-filter-pills {
  margin-bottom: 24px;
}

.branch-pill {
  background: #f1f5f9;
  color: #334155;
  border: 1.5px solid #e2e8f0;
  border-radius: 25px;
  padding: 8px 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.branch-pill .hq-dot {
  color: #c32637;
  font-size: 13px;
}

.branch-pill:hover {
  background: #e2e8f0;
  color: #00235a;
  border-color: #cbd5e1;
}

.branch-pill.active {
  background: #c32637;
  color: #ffffff;
  border-color: #c32637;
  box-shadow: 0 4px 14px rgba(195, 38, 55, 0.28);
}

.branch-pill.active .hq-dot {
  color: #ffffff;
}

.branch-map-wrapper {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 35, 90, 0.1);
  border: 1px solid #e2e8f0;
  background: #e2e8f0;
}

.branch-map-canvas {
  width: 100%;
  height: 420px;
  z-index: 1;
}

@media (max-width: 767px) {
  .branch-map-canvas {
    height: 350px;
  }
}

.branch-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  cursor: pointer;
}

.branch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 35, 90, 0.12);
  border-color: #c32637;
}

.branch-card.is-selected {
  border-color: #c32637;
  box-shadow: 0 0 0 2px rgba(195, 38, 55, 0.2), 0 12px 28px rgba(0, 35, 90, 0.12);
  background: #fffafa;
}

.branch-badge {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.branch-badge.badge-hq {
  background: rgba(195, 38, 55, 0.12);
  color: #c32637;
  border: 1px solid rgba(195, 38, 55, 0.25);
}

.branch-badge.badge-reg {
  background: rgba(0, 35, 90, 0.08);
  color: #00235a;
  border: 1px solid rgba(0, 35, 90, 0.18);
}

.branch-focus-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 4px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.branch-card:hover .branch-focus-btn,
.branch-card.is-selected .branch-focus-btn {
  color: #c32637;
}

.branch-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #00235a;
  margin-bottom: 12px;
  line-height: 1.35;
}

.branch-card-info {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
  flex-grow: 1;
}

.branch-card-info .info-icon {
  color: #c32637;
  margin-top: 2px;
}

.branch-card-info a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.branch-card-info a:hover {
  color: #c32637;
}

.branch-card-actions {
  border-top: 1px solid #f1f5f9;
}

.branch-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #f8fafc;
  color: #00235a;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 7px 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  flex: 1;
  transition: all 0.2s ease;
}

.branch-action-link:hover {
  background: #00235a;
  color: #ffffff;
  border-color: #00235a;
}

.branch-action-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 211, 102, 0.12);
  color: #15803d;
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 8px;
  padding: 7px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.branch-action-wa:hover {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
}

/* Card 1 Email hover fix in post-944.css */
.elementor-944 .elementor-element.elementor-element-406ab6b:hover .elementor-icon-box-title a {
  color: #ffffff !important;
}

/* ==========================================================================
   GLOBAL FIX: Elementor entrance animation classes (.elementor-invisible)
   In WordPress, Waypoints JS strips this class on scroll. In React SPA,
   we must ensure elements are visible and not hidden with visibility: hidden.
   ========================================================================== */
.elementor-invisible {
  visibility: visible !important;
  opacity: 1 !important;
}

/* ==========================================================================
   TOP CONTACT INFO CARDS (Email, Dirección, Teléfono)
   ========================================================================== */
.top-contact-cards-section {
  padding: 80px 0 30px 0;
  background: #ffffff;
}

.contact-info-card {
  background-color: #f8f8f8;
  padding: 38px 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 22px;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.contact-info-card:hover {
  background-color: #c32637;
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(195, 38, 55, 0.25);
}

.contact-info-icon-wrapper {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 50%;
  border: 1px solid #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  transition: all 0.3s ease;
  background: #ffffff;
}

.contact-info-card:hover .contact-info-icon-wrapper {
  border-color: #ffffff;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
}

.contact-info-content {
  flex: 1;
}

.contact-info-title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #111111;
  margin: 0 0 6px 0;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.contact-info-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #555555;
  margin: 0;
  transition: color 0.3s ease;
  word-break: break-word;
}

.contact-info-card:hover .contact-info-title,
.contact-info-card:hover .contact-info-desc {
  color: #ffffff !important;
}

@media (max-width: 767px) {
  .top-contact-cards-section {
    padding: 50px 0 20px 0;
  }
  .contact-info-card {
    padding: 30px 20px;
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Client Logo Carousel (Swiper)
   ========================================================================== */
.client-carousel-outer {
  position: relative;
  width: 100%;
  padding: 0 50px;
  box-sizing: border-box;
}

.client-swiper-container {
  width: 100%;
  overflow: hidden;
}

.client-logo-slide {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 100px;
  text-align: center;
  box-sizing: border-box;
}

.client-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.client-logo-link:hover {
  transform: scale(1.08);
}

.client-logo-link .swiper-slide-inner {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-carousel-img {
  max-height: 65px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.88;
  filter: grayscale(15%);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.client-logo-link:hover .client-carousel-img {
  opacity: 1;
  filter: grayscale(0%);
}

.client-carousel-outer .elementor-swiper-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d3748;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
  outline: none;
}

.client-carousel-outer .elementor-swiper-button:hover {
  background: #c32637;
  border-color: #c32637;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(195, 38, 55, 0.35);
  transform: translateY(-50%) scale(1.1);
}

.client-carousel-outer .elementor-swiper-button-prev {
  left: 0;
}

.client-carousel-outer .elementor-swiper-button-next {
  right: 0;
}

@media (max-width: 767px) {
  .client-carousel-outer {
    padding: 0 40px;
  }
  .client-carousel-outer .elementor-swiper-button {
    width: 34px;
    height: 34px;
  }
  .client-carousel-outer .elementor-swiper-button svg {
    width: 18px;
    height: 18px;
  }
  .client-logo-slide {
    height: 80px;
  }
  .client-carousel-img {
    max-height: 50px;
    max-width: 140px;
  }
}
