:root {
  --brand-blue: #1d4ed8;
  --navy-950: #000f23;
  --navy-900: #001a33;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --surface-0: #fcfbf7;
  --surface-50: #f8fafc;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 10px 25px rgba(0, 16, 38, 0.08);
  --shadow-card-hover: 0 16px 35px rgba(0, 16, 38, 0.14);
  --space-section-x: 1.5rem;
  --space-section-y: 6.25rem;
  --space-section-x-md: 2rem;
  --space-section-y-md: 7.5rem;
  --container-max: 80rem;
  --container-wide-max: 87.5rem;
  --nav-height: 92px;
  --hero-safe-bottom: 1.1rem;
}
html {
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
  background-color: var(--surface-0);
  background-image:
    radial-gradient(circle at 10% 18%, rgba(0, 26, 51, 0.04) 0%, transparent 35%),
    radial-gradient(circle at 80% 76%, rgba(255, 0, 0, 0.03) 0%, transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(252, 251, 247, 1) 100%);
}
#main-content section[id] {
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -48px;
  z-index: 60;
  border-radius: 0.5rem;
  background: #001a33;
  color: #fff;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: top 180ms ease;
}
.skip-link:focus {
  top: 10px;
}
.section-shell {
  padding-left: var(--space-section-x);
  padding-right: var(--space-section-x);
  padding-top: var(--space-section-y);
  padding-bottom: var(--space-section-y);
}
.section-inner {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--container-max);
}
.section-inner-wide {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--container-wide-max);
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-shell {
  height: 100svh;
  min-height: 100svh;
  padding-top: calc(var(--nav-height) + clamp(0.4rem, 1.4vh, 0.9rem));
  padding-bottom: var(--hero-safe-bottom);
}
.hero-content-shell {
  height: 100%;
  display: flex;
  align-items: center;
  padding-bottom: clamp(0.35rem, 1.2vh, 0.95rem);
}
.hero-intro {
  width: min(100%, 72rem);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-eyebrow {
  order: 1;
  margin-bottom: clamp(0.65rem, 2vh, 1.25rem);
  line-height: 1.1;
}
.hero-media {
  transform: scale(1.08);
  filter: brightness(0.8) saturate(1.05);
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 26, 51, 0.66) 0%, rgba(0, 26, 51, 0.4) 45%, rgba(0, 26, 51, 0.88) 100%);
}
.hero-title {
  order: 2;
  margin-bottom: clamp(0.9rem, 2.8vh, 2rem);
  font-size: clamp(2.45rem, 11.8vw, 4.3rem);
  line-height: 0.92;
}
.hero-subcontent {
  order: 3;
  gap: clamp(1rem, 2.4vh, 1.75rem);
  padding-top: clamp(1rem, 2.4vh, 1.55rem);
}
.hero-copy-block {
  width: min(100%, 44rem);
  margin-left: auto;
  margin-right: auto;
}
.hero-copy {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1rem, 2.7vw, 1.22rem);
  line-height: 1.5;
}
.hero-certifications {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(1rem, 2vh, 1.25rem);
  gap: 0.5rem;
}
.hero-certifications-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  width: fit-content;
}
.hero-certification-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  width: min(100%, 36rem);
}
.hero-certification-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.52rem;
  padding: 0.48rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.875rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(244, 247, 250, 0.96) 100%);
  box-shadow: 0 8px 24px rgba(0, 10, 25, 0.16);
}
.hero-certification-image {
  display: block;
  width: 100%;
  height: auto;
}
#hero-slider-controls {
  justify-content: center;
  margin-top: clamp(0.7rem, 1.9vh, 1rem);
}
#hero-contact-line {
  margin-top: clamp(0.55rem, 1.3vh, 0.9rem);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.hero-title-wrap {
  position: relative;
  display: inline-block;
}
.hero-title-wrap::before {
  content: "";
  position: absolute;
  inset: -1.2rem -1rem;
  border-radius: 1.25rem;
  background: radial-gradient(circle at 45% 45%, rgba(0, 26, 51, 0.38), rgba(0, 26, 51, 0));
  z-index: -1;
  pointer-events: none;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
}
.hero-slide.is-active {
  opacity: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-dot {
  height: 0.72rem;
  width: 0.72rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.45);
  transition: all 200ms ease;
}
.hero-dot.is-active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  transform: scale(1.08);
}
.navbar-blur {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 26, 51, 0.1);
}
.navbar-blur #nav-links,
.navbar-blur #nav-links a,
.navbar-blur #logo-text,
.navbar-blur #logo-text div,
.navbar-blur #mobile-menu-btn {
  color: #001a33 !important;
}
.navbar-blur #logo-text div:last-child {
  color: #001a33 !important;
}
.navbar-blur .flag-mini {
  border-color: rgba(0, 26, 51, 0.16);
}
.navbar-blur #mobile-menu-btn {
  border-color: rgba(0, 26, 51, 0.2) !important;
}
.navbar-blur #cta-nav {
  border-color: #1d4ed8 !important;
  color: #1d4ed8 !important;
}
.navbar-blur #cta-nav:hover {
  background: #1d4ed8 !important;
  color: #ffffff !important;
}
[data-lucide] {
  stroke-width: 2.1;
}
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(0);
  }
}
.float-icon {
  animation: float 1.8s ease-in-out infinite;
}
@keyframes float-centered {
  0% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 10px);
  }
  100% {
    transform: translate(-50%, 0);
  }
}
.hero-float-arrow {
  position: absolute;
  left: 50%;
  bottom: 0.95rem;
  z-index: 12;
  transform: translateX(-50%);
  animation: float-centered 1.8s ease-in-out infinite;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.brand-logo {
  border-radius: 8px;
}
.brand-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  flex-shrink: 0;
}
.brand-flags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
}
.flag-mini {
  position: relative;
  display: inline-block;
  width: 1.12rem;
  height: 0.76rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(0, 10, 25, 0.22);
}
.flag-mini-co {
  background: linear-gradient(to bottom, #fcd116 0 50%, #003893 50% 75%, #ce1126 75% 100%);
}
.flag-mini-pa {
  background:
    linear-gradient(to right, #ffffff 0 50%, #d21034 50% 100%) top / 100% 50% no-repeat,
    linear-gradient(to right, #0050a4 0 50%, #ffffff 50% 100%) bottom / 100% 50% no-repeat;
}
.flag-mini-pa::before,
.flag-mini-pa::after {
  position: absolute;
  font-size: 0.28rem;
  line-height: 1;
}
.flag-mini-pa::before {
  content: "★";
  top: 0.08rem;
  left: 0.19rem;
  color: #0050a4;
}
.flag-mini-pa::after {
  content: "★";
  right: 0.18rem;
  bottom: 0.08rem;
  color: #d21034;
}
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 2px;
  background: var(--brand-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}
.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}
.btn-press {
  transition: transform 200ms ease, box-shadow 220ms ease, filter 220ms ease;
}
.btn-press:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 20, 45, 0.18);
}
.btn-press:active {
  transform: translateY(0);
}
.section-title {
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 0.8rem;
  border-radius: 999px;
  background: var(--brand-blue);
}
.section-title-center::after {
  margin-left: auto;
  margin-right: auto;
}
.ui-card {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: box-shadow 240ms ease, transform 220ms ease, border-color 220ms ease;
}
.ui-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.brand-logo-nav {
  height: 3.1rem;
  width: auto;
}
.specialty-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(0, 26, 51, 0.1);
}
.specialty-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: none;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.45;
  filter: grayscale(30%) brightness(1.2) contrast(0.92);
  transition: transform 500ms ease, opacity 500ms ease;
  z-index: 0;
}
.specialty-card[data-specialty="electricidad"]::before {
  background-image: url("../hero/project-partner-cartagena-electricidad-industrial.webp?v=20260401-1");
}
.specialty-card[data-specialty="electronica"]::before {
  background-image: url("../hero/project-partner-cartagena-electronica-automatizacion.webp?v=20260401-1");
}
.specialty-card[data-specialty="refrigeracion"]::before {
  background-image: url("../hero/project-partner-cartagena-refrigeracion-industrial.webp?v=20260401-1");
}
.specialty-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(248, 250, 252, 0.08) 0%, rgba(248, 250, 252, 0.34) 100%);
  z-index: 1;
}
.specialty-card > * {
  position: relative;
  z-index: 2;
}
.specialty-card:hover {
  box-shadow: inset 4px 0 0 var(--brand-blue), var(--shadow-card-hover);
}
.specialty-card:hover::before {
  transform: scale(1.05);
  opacity: 0.34;
}
.specialty-card h3 {
  color: #001327;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.specialty-card p {
  color: #1f3348;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}
.mobile-link {
  border: 1px solid rgba(0, 26, 51, 0.12);
  border-radius: 0.5rem;
  padding: 0.65rem 0.8rem;
}
.mobile-link:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}
#hq-map {
  min-height: 280px;
  z-index: 0;
}
.location-thumb {
  border-radius: 12px;
  height: 112px;
  width: 100%;
  object-fit: cover;
}
.mobile-sticky-cta {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(0.65rem + env(safe-area-inset-bottom));
  z-index: 48;
  display: none;
  gap: 0.55rem;
}
.mobile-sticky-cta a {
  flex: 1;
  min-height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.mobile-sticky-cta .mobile-sticky-primary {
  background: var(--brand-blue);
  color: #fff;
}
.mobile-sticky-cta .mobile-sticky-secondary {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(0, 18, 43, 0.88);
  color: #fff;
}
body.cta-scroll-gated .floating-whatsapp,
body.cta-scroll-gated .mobile-sticky-cta {
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
}
body.cta-scroll-gated .floating-whatsapp.is-visible,
body.cta-scroll-gated .mobile-sticky-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.floating-whatsapp,
.mobile-sticky-cta {
  transition: opacity 260ms ease, transform 260ms ease, filter 220ms ease;
}
#main-content .section-shell p.text-stone-600 {
  color: var(--ink-700);
}
.map-popup-title {
  margin: 0 0 4px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #001a33;
}
.map-popup-type {
  margin: 0 0 4px 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
}
.map-popup-detail {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #334155;
}
.floating-whatsapp {
  position: fixed;
  right: 0.75rem;
  right: calc(0.75rem + env(safe-area-inset-right));
  bottom: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  z-index: 45;
  max-width: calc(100vw - 1rem);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .float-icon {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
@media (min-width: 768px) {
  .hero-shell {
    padding-top: calc(var(--nav-height) + clamp(0.5rem, 1.8vh, 1.3rem));
    padding-bottom: clamp(0.9rem, 2vh, 1.45rem);
  }
  .hero-intro {
    margin-left: 0;
    margin-right: auto;
    align-items: flex-start;
    text-align: left;
  }
  .hero-copy-block {
    margin-left: 0;
    margin-right: 0;
  }
  .hero-copy {
    margin-left: 0;
    margin-right: 0;
    max-width: 34rem;
  }
  .hero-certifications {
    align-items: flex-start;
  }
  .hero-title {
    font-size: clamp(4.1rem, 8.2vw, 6.45rem);
  }
  .hero-eyebrow {
    margin-bottom: clamp(0.8rem, 1.7vh, 1.3rem);
    text-align: left;
  }
  #hero-slider-controls {
    justify-content: flex-start;
  }
  #hero-contact-line {
    margin-left: 0;
    margin-right: 0;
  }
  .section-shell {
    padding-left: var(--space-section-x-md);
    padding-right: var(--space-section-x-md);
    padding-top: var(--space-section-y-md);
    padding-bottom: var(--space-section-y-md);
  }
  #hq-map {
    min-height: 360px;
  }
}
@media (max-width: 380px) {
  #main-nav {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
@media (max-width: 640px) {
  .brand-logo-nav {
    height: 2.45rem;
  }
  #clients-grid,
  #allies-grid {
    display: flex;
    overflow-x: auto;
    gap: 0.9rem;
    padding-bottom: 0.35rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  #clients-grid > article,
  #allies-grid > article {
    min-width: 74vw;
    scroll-snap-align: start;
  }
  .floating-whatsapp {
    display: none;
  }
  .mobile-sticky-cta {
    display: flex;
  }
  .floating-whatsapp {
    padding: 0.72rem;
    border-radius: 9999px;
  }
  .floating-whatsapp .floating-whatsapp-label {
    display: none;
  }
}
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .floating-whatsapp {
    display: none !important;
  }
  .mobile-sticky-cta {
    display: flex;
  }
}
@media (max-height: 900px) {
  .hero-shell {
    padding-top: calc(var(--nav-height) + 0.35rem);
  }
  .hero-intro {
    margin-left: auto !important;
    margin-right: auto !important;
    align-items: center !important;
    text-align: center !important;
  }
  .hero-subcontent {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .hero-copy-block {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .hero-certifications {
    align-items: center !important;
  }
  .hero-copy {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 42rem;
  }
  #hero-slider-controls {
    justify-content: center !important;
  }
  #hero-contact-line {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  #hero .hero-float-arrow {
    display: none !important;
  }
  .hero-title {
    display: block !important;
    font-size: clamp(2.25rem, 8.8vw, 5.2rem);
    width: 100%;
    text-align: center !important;
  }
  .hero-copy {
    font-size: clamp(0.94rem, 2.3vw, 1.06rem);
  }
  .hero-actions {
    margin-top: 0.95rem;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .hero-eyebrow {
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
  }
}
@media (max-height: 760px) {
  #hero {
    padding-bottom: 0.45rem;
  }
  #hero .hero-title {
    margin-bottom: 0.8rem;
  }
  .hero-eyebrow {
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
  }
  #hero .hero-copy {
    font-size: 0.9rem;
    line-height: 1.45;
  }
  .hero-certifications {
    margin-top: 0.75rem;
    gap: 0.4rem;
  }
  .hero-certifications-label {
    padding: 0.3rem 0.6rem;
    font-size: 0.62rem;
  }
  .hero-certification-grid {
    gap: 0.4rem;
  }
  .hero-certification-card {
    min-height: 4rem;
    padding: 0.3rem 0.4rem;
  }
  #hero-slider-controls {
    margin-top: 0.6rem;
  }
  #hero-slider-controls button {
    height: 2.2rem;
    width: 2.2rem;
  }
  #hero-contact-line {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    line-height: 1.35;
  }
}
