/* ============================================
   GRUPO APEX — ACTICOS S.A.S. & APEX Civil Solutions
   Bold industrial aesthetic, red accent
   ============================================ */

:root{
  --red: #E10600;
  --red-deep: #B30500;
  --red-dark: #7A0300;
  --ink: #0A0A0B;
  --ink-2: #1A1A1D;
  --steel: #2A2A2E;
  --concrete: #6B6B70;
  --bone: #F4F2EE;
  --paper: #FAF8F4;
  --line: rgba(255,255,255,.08);
  --line-d: rgba(0,0,0,.10);
  --display: 'Archivo Black', 'Barlow Condensed', sans-serif;
  --condensed: 'Barlow Condensed', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --max: 1320px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family: var(--condensed);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x:hidden;
  -webkit-font-smoothing: antialiased;
}

::selection{background: var(--red); color: #fff;}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}

/* =============== TOP BAR =============== */
.topbar{
  background: var(--ink);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-family: var(--condensed);
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar__inner{
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 28px;
  gap: 16px; flex-wrap: wrap;
}
.topbar__left, .topbar__right{
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.topbar__divider{ opacity: .4 }
.topbar a{
  display: inline-flex; align-items: center; gap: 4px;
  transition: color .2s;
}
.topbar a:hover{ color: var(--red); }

/* =============== NAV =============== */
.nav{
  position: sticky; top:0; z-index:50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-d);
  color: var(--ink);
}
.nav__inner{
  max-width: var(--max); margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding: 18px 28px;
}
.nav__brand{
  display:flex; align-items:baseline; gap: 8px;
}
.nav__brand-mark{
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--concrete);
}
.nav__brand-name{
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: .04em;
  color: var(--ink);
}
.nav__brand-name::after{
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--red);
  margin-left: 6px;
  vertical-align: baseline;
}
.nav__links{
  display:flex; align-items:center; gap: 28px;
  font-family: var(--condensed);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav__links a{ position:relative; transition: color .25s }
.nav__links a:hover{ color: var(--red); }
.nav__links a:not(.nav__cta)::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px;
  height:2px; background: var(--red);
  transform: scaleX(0); transform-origin:left;
  transition: transform .35s cubic-bezier(.6,.05,.2,1);
}
.nav__links a:hover::after{ transform: scaleX(1); }
.nav__cta{
  background: var(--red); color:#fff !important;
  padding: 10px 18px;
  border:1px solid var(--red);
  transition: background .2s, transform .2s, color .2s;
}
.nav__cta:hover{ background: var(--ink); color: #fff !important; border-color: var(--ink); transform: translateX(4px); }

.nav__burger{display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:6px}
.nav__burger span{width:24px;height:2px;background:var(--ink);display:block}

/* =============== HERO =============== */
.hero{
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  min-height: 90vh;
  display:flex; flex-direction:column; justify-content:space-between;
}
.hero__slider{ position: absolute; inset: 0; z-index: 0; }
.slide{
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.slide.is-active{ opacity: 1; }
.hero__overlay{
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,10,11,.92) 0%, rgba(10,10,11,.7) 50%, rgba(225,6,0,.4) 100%);
  z-index: 1;
}
.hero__grid{
  position:absolute; inset:0; z-index: 2;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 70% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, black 30%, transparent 80%);
}
.hero__inner{
  position:relative; z-index:3;
  max-width: var(--max); margin: 0 auto;
  padding: 80px 28px 60px;
  width: 100%; flex: 1;
  display: flex; flex-direction: column; justify-content: center;
}
.hero__meta{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.3);
  padding: 8px 14px; border-radius: 100px;
  margin-bottom: 30px; align-self: flex-start;
  animation: fadeUp .8s ease both;
}
.hero__meta-divider{ opacity:.4 }
.dot{
  width:8px; height:8px; border-radius:50%; background:var(--red);
  box-shadow: 0 0 0 4px rgba(225,6,0,.25);
  animation: pulse 2s infinite;
}
@keyframes pulse{
  0%,100%{box-shadow:0 0 0 4px rgba(225,6,0,.25)}
  50%{box-shadow:0 0 0 10px rgba(225,6,0,0)}
}
.hero__title{
  font-family: var(--display);
  font-size: clamp(48px, 10vw, 156px);
  line-height: .9; letter-spacing: -.02em;
  text-transform: uppercase; margin-bottom: 32px;
  text-shadow: 0 2px 30px rgba(0,0,0,.5);
}
.hero__line{ display:block; }
.hero__line:nth-child(1){ animation: fadeUp .8s .1s ease both; }
.hero__line:nth-child(2){ animation: fadeUp .8s .25s ease both; }
.hero__line:nth-child(3){ animation: fadeUp .8s .4s ease both; padding-left: 8vw; }
.hero__line--accent{ color: var(--red); font-style: italic; }
.hero__line--accent em{
  font-style: normal;
  -webkit-text-stroke: 2px var(--red);
  color: transparent; padding: 0 .1em;
}
.hero__lead{
  font-family: var(--condensed); font-weight: 400;
  font-size: clamp(16px, 1.5vw, 19px);
  max-width: 580px; color: rgba(255,255,255,.9);
  margin-bottom: 36px;
  animation: fadeUp .8s .55s ease both;
}
.hero__lead b{ color:#fff; font-weight:700 }
.hero__cta-row{
  display:flex; gap: 14px; flex-wrap:wrap;
  margin-bottom: 40px;
  animation: fadeUp .8s .7s ease both;
}
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding: 16px 28px;
  font-family: var(--condensed); font-weight: 600;
  font-size: 14px; letter-spacing: .18em; text-transform: uppercase;
  border: 1.5px solid transparent; cursor: pointer;
  transition: all .25s cubic-bezier(.6,.05,.2,1);
  position: relative; overflow: hidden;
}
.btn--primary{ background: var(--red); color: #fff; border-color: var(--red); }
.btn--primary:hover{
  background: #fff; color: var(--red);
  transform: translate(-2px,-2px);
  box-shadow: 6px 6px 0 var(--red);
}
.btn--ghost{
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  color: #fff; border-color: rgba(255,255,255,.3);
}
.btn--ghost:hover{ background: #fff; color: var(--ink); border-color: #fff; }
.btn--block{ width:100%; justify-content:center; padding: 18px 28px; }
.hero__slider-nav{
  display: flex; gap: 10px; align-self: flex-start;
  animation: fadeUp .8s .9s ease both;
}
.slider-dot{
  width: 40px; height: 4px;
  background: rgba(255,255,255,.3);
  border: 0; padding: 0; cursor: pointer;
  transition: background .3s;
}
.slider-dot.is-active{ background: var(--red); }
.slider-dot:hover{ background: rgba(255,255,255,.5); }
.hero__marquee{
  position:relative; z-index:3;
  background: var(--red); color: #fff;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.15);
  border-bottom: 1px solid rgba(255,255,255,.15);
  overflow: hidden;
}
.marquee{ overflow: hidden; }
.marquee__track{
  display: inline-flex; gap: 36px; white-space: nowrap;
  font-family: var(--display); font-size: 13px;
  letter-spacing: .18em;
  animation: marquee 50s linear infinite;
}
.marquee__track span{ display:inline-block }
@keyframes marquee{ from{transform: translateX(0)} to{transform: translateX(-50%)} }
@keyframes fadeUp{ from{opacity:0; transform: translateY(24px)} to{opacity:1; transform: translateY(0)} }

.reveal{
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.6,.05,.2,1), transform .7s cubic-bezier(.6,.05,.2,1);
}
.reveal.is-in{ opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; } }

/* =============== STATS =============== */
.stats{
  background: var(--ink); color: #fff;
  padding: 50px 28px;
  border-bottom: 4px solid var(--red);
}
.stats__inner{
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.stat-card{
  text-align: center; position: relative;
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-card:last-child{ border-right: 0; }
.stat-card__num{
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1; color: var(--red); display: inline-block;
}
.stat-card__plus, .stat-card__suffix{
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 44px);
  color: var(--red); display: inline-block;
  vertical-align: top; margin-left: 4px; margin-top: 4px;
}
.stat-card__suffix{ font-size: clamp(20px, 2.4vw, 32px); margin-top: 12px; }
.stat-card__label{
  display: block; font-family: var(--mono);
  font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.7);
  margin-top: 12px;
}

/* =============== SECTION HEADERS =============== */
.section-head{
  display:flex; align-items:center; gap:14px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--concrete); margin-bottom: 24px;
}
.section-head__num{
  background: var(--red); color:#fff;
  padding: 4px 10px; font-weight: 700;
}
.section-head--light{ color: rgba(255,255,255,.7); }
.hl{
  position:relative; display:inline-block;
  font-style: italic; color: var(--red);
}
.hl::after{
  content:""; position:absolute; left:0; right:0; bottom:.05em;
  height: .12em; background: var(--red); opacity:.25;
}
.hl-red{ color: var(--red); font-style: italic; }

/* =============== COMPANIES =============== */
.companies{ padding: 100px 28px; background: var(--paper); }
.companies__inner{ max-width: var(--max); margin: 0 auto; }
.companies__headline{
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1; text-transform: uppercase;
  margin-bottom: 18px;
}
.companies__lead{
  color: var(--steel); max-width: 64ch;
  margin-bottom: 50px; font-size: 17px;
}
.companies__grid{
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.company-card{
  background: #fff;
  border: 1px solid var(--line-d);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .35s cubic-bezier(.6,.05,.2,1), box-shadow .35s;
}
.company-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(10,10,11,.12);
}
.company-card::before{
  content:""; position:absolute; top:0; left:0;
  width: 70px; height: 5px; background: var(--red);
}
.company-card--accent::before{ background: var(--ink); }
.company-card__head{
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
  margin-bottom: 24px;
}
.company-card__logo{
  height: 90px;
  display: flex; align-items: center;
}
.company-card__logo img{
  height: 100%; width: auto; object-fit: contain;
  max-width: 240px;
}
.company-card__badge{
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .18em;
  background: rgba(225,6,0,.1);
  color: var(--red);
  padding: 6px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.company-card--accent .company-card__badge{
  background: var(--ink); color: #fff;
}
.company-card h3{
  font-family: var(--display);
  font-size: 30px; text-transform: uppercase;
  margin-bottom: 6px; letter-spacing: -.01em;
}
.company-card__role{
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .12em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.company-card__desc{
  color: var(--steel);
  font-size: 15px; line-height: 1.6;
  margin-bottom: 20px;
}
.company-card__list{
  list-style: none; margin-bottom: 24px; flex: 1;
}
.company-card__list li{
  position: relative;
  padding: 8px 0 8px 20px;
  font-size: 14px;
  border-bottom: 1px dashed var(--line-d);
}
.company-card__list li:last-child{ border-bottom: 0; }
.company-card__list li::before{
  content: "▸"; position: absolute; left: 0;
  color: var(--red); font-weight: bold;
}
.company-card__legal{
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--concrete);
}
.company-card__legal span:first-child{
  color: var(--ink); font-weight: 700;
}
.companies__note{
  display: flex; align-items: flex-start; gap: 16px;
  margin-top: 30px;
  padding: 24px 28px;
  background: var(--bone);
  border-left: 4px solid var(--red);
}
.companies__note span{
  font-size: 24px; color: var(--red);
}
.companies__note p{
  font-size: 15px; color: var(--steel);
  line-height: 1.6;
}

/* =============== PARTNERS BAR =============== */
.partners-bar{
  background: var(--bone);
  padding: 36px 28px;
  border-top: 1px solid var(--line-d);
  border-bottom: 1px solid var(--line-d);
}
.partners-bar__inner{
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: 40px;
  flex-wrap: wrap;
}
.partners-bar__label{
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .26em; color: var(--concrete);
  flex-shrink: 0;
}
.partners-bar__logos{
  display: flex; flex: 1; gap: 0;
  flex-wrap: wrap; justify-content: space-around;
}
.plogo-item{
  font-family: var(--display);
  font-size: 22px; letter-spacing: .12em;
  color: var(--concrete);
  transition: color .3s, transform .3s; cursor: default;
}
.plogo-item:hover{ color: var(--red); transform: scale(1.05); }

/* =============== SERVICES =============== */
.services{
  background: var(--ink); color: #fff;
  padding: 110px 28px; position: relative;
}
.services::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 100% 80px;
}
.services__inner{ max-width: var(--max); margin:0 auto; position:relative; }
.services__headline{
  font-family: var(--display);
  font-size: clamp(36px, 5.5vw, 76px);
  line-height: 1; text-transform: uppercase;
  margin-bottom: 18px;
}
.services__lead{
  color: rgba(255,255,255,.7);
  max-width: 64ch; margin-bottom: 60px; font-size: 17px;
}
.services__grid{
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.svc-card{
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.6,.05,.2,1), border-color .35s;
}
.svc-card:hover{ transform: translateY(-6px); border-color: var(--red); }
.svc-card:hover .svc-card__media img{ transform: scale(1.06); }
.svc-card:hover .svc-card__num{ background: var(--red); }
.svc-card__media{ position: relative; height: 220px; overflow: hidden; }
.svc-card__media img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.6,.05,.2,1);
}
.svc-card__media::after{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,11,.6) 100%);
}
.svc-card__num{
  position: absolute; top: 16px; left: 16px;
  background: rgba(0,0,0,.7); color: #fff;
  font-family: var(--display); font-size: 14px;
  padding: 6px 12px; letter-spacing: .1em;
  z-index: 2; transition: background .3s;
}
.svc-card__by{
  position: absolute; top: 16px; right: 16px;
  background: var(--red); color: #fff;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; padding: 5px 10px;
  z-index: 2; font-weight: 700;
}
.svc-card__by--apex{ background: #fff; color: var(--ink); }
.svc-card__body{
  padding: 28px 24px;
  display: flex; flex-direction: column; flex: 1;
}
.svc-card__body h3{
  font-family: var(--display);
  font-size: 20px; line-height: 1.15;
  text-transform: uppercase; margin-bottom: 12px;
  letter-spacing: -.005em;
}
.svc-card__body > p{
  color: rgba(255,255,255,.7);
  font-size: 15px; line-height: 1.55; margin-bottom: 16px;
}
.svc-card__list{ list-style: none; margin-bottom: 20px; flex: 1; }
.svc-card__list li{
  position: relative; padding: 6px 0 6px 18px;
  font-size: 14px; color: rgba(255,255,255,.85);
  border-bottom: 1px dashed rgba(255,255,255,.08);
}
.svc-card__list li:last-child{ border-bottom: 0 }
.svc-card__list li::before{
  content: "▸"; position: absolute; left: 0;
  color: var(--red); font-weight: bold;
}
.svc-card__link{
  font-family: var(--mono); font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--red);
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 16px; display: inline-flex;
  transition: padding-left .2s;
}
.svc-card__link:hover{ padding-left: 6px; }

/* =============== APPLICATIONS =============== */
.applications{ padding: 110px 28px; background: var(--bone); }
.applications__inner{ max-width: var(--max); margin: 0 auto; }
.applications__headline{
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1; text-transform: uppercase; margin-bottom: 18px;
}
.applications__lead{
  color: var(--steel); max-width: 60ch; margin-bottom: 50px;
}
.apps__grid{
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.app-card{
  position: relative; height: 240px;
  overflow: hidden; cursor: default;
}
.app-card__img{
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .6s cubic-bezier(.6,.05,.2,1);
  filter: grayscale(.3);
}
.app-card:hover .app-card__img{ transform: scale(1.08); filter: grayscale(0); }
.app-card__overlay{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,10,11,.85) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; color: #fff; z-index: 2;
}
.app-card:hover .app-card__overlay{
  background: linear-gradient(180deg, rgba(225,6,0,.2) 0%, rgba(10,10,11,.92) 100%);
}
.app-card__overlay h4{
  font-family: var(--display); font-size: 18px;
  text-transform: uppercase; margin-bottom: 4px;
  letter-spacing: -.005em;
}
.app-card__overlay p{
  font-size: 13px; color: rgba(255,255,255,.85);
  line-height: 1.4; opacity: 0; max-height: 0;
  transition: opacity .3s, max-height .3s; overflow: hidden;
}
.app-card:hover .app-card__overlay p{ opacity: 1; max-height: 60px; }

/* =============== PROJECTS =============== */
.projects{ padding: 110px 28px; background: var(--paper); }
.projects__inner{ max-width: var(--max); margin: 0 auto; }
.projects__headline{
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1; text-transform: uppercase; margin-bottom: 50px;
}
.projects__grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.project-card{
  background: #fff; border: 1px solid var(--line-d);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.6,.05,.2,1), box-shadow .35s;
}
.project-card:hover{ transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10,10,11,.12); }
.project-card__img{ position: relative; height: 200px; overflow: hidden; }
.project-card__img img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.6,.05,.2,1);
}
.project-card:hover .project-card__img img{ transform: scale(1.06); }
.project-card__tag{
  position: absolute; top: 12px; left: 12px;
  background: var(--red); color: #fff;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; padding: 4px 10px; z-index: 2;
}
.project-card__body{ padding: 22px 22px 24px; }
.project-card__body h4{
  font-family: var(--display); font-size: 17px;
  text-transform: uppercase; line-height: 1.2; margin-bottom: 10px;
}
.project-card__body p{
  color: var(--concrete); font-size: 14px;
  line-height: 1.55; margin-bottom: 14px;
}
.project-card__meta{
  display: block; font-family: var(--mono);
  font-size: 11px; letter-spacing: .14em;
  color: var(--red); text-transform: uppercase;
}

/* =============== CLIENTS =============== */
.clients{
  padding: 110px 28px; background: var(--ink);
  color: #fff; position: relative; overflow: hidden;
}
.clients::before{
  content:""; position:absolute; right:-200px; top:-200px;
  width: 600px; height:600px;
  background: radial-gradient(circle, rgba(225,6,0,.18), transparent 60%);
  filter: blur(60px);
}
.clients__inner{ max-width: var(--max); margin: 0 auto; position: relative; }
.clients__headline{
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1; text-transform: uppercase; margin-bottom: 18px;
}
.clients__lead{
  color: rgba(255,255,255,.7); max-width: 60ch; margin-bottom: 50px;
}
.clients__grid{
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06); margin-bottom: 50px;
}
.client-logo{
  background: var(--ink-2);
  padding: 30px 16px; text-align: center;
  font-family: var(--display); font-size: 14px;
  letter-spacing: .08em; color: rgba(255,255,255,.85);
  transition: background .3s, color .3s;
  display: flex; align-items: center; justify-content: center;
  min-height: 110px; line-height: 1.2;
}
.client-logo:hover{ background: var(--red); color: #fff; }
.clients__sectors{ display: flex; flex-wrap: wrap; gap: 10px; }
.sector-tag{
  font-family: var(--condensed);
  font-size: 14px; letter-spacing: .04em;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  padding: 10px 16px;
}

/* =============== COVERAGE =============== */
.coverage{
  padding: 110px 28px; background: var(--ink);
  color: #fff; position: relative;
  border-top: 1px solid rgba(255,255,255,.06);
}
.coverage__inner{
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.coverage__copy h2{
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1; text-transform: uppercase; margin-bottom: 24px;
}
.coverage__copy p{
  color: rgba(255,255,255,.75);
  margin-bottom: 30px; max-width: 50ch; font-size: 16px;
}
.coverage__cities{
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.city{
  font-family: var(--display);
  font-size: 16px; text-transform: uppercase;
  padding: 10px 14px; background: var(--ink-2);
  border-left: 3px solid var(--red); letter-spacing: .04em;
}
.coverage__map{ position: relative; }
.coverage__map svg{ width: 100%; height: auto; max-height: 500px; }

/* =============== BLOG =============== */
.blog{ padding: 110px 28px; background: var(--bone); }
.blog__inner{ max-width: var(--max); margin: 0 auto; }
.blog__headline{
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1; text-transform: uppercase; margin-bottom: 18px;
}
.blog__lead{ color: var(--steel); margin-bottom: 50px; max-width: 60ch; }
.blog__grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.blog-card{
  background: #fff; border: 1px solid var(--line-d);
  overflow: hidden; transition: transform .35s, box-shadow .35s;
}
.blog-card:hover{ transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10,10,11,.12); }
.blog-card__img{ height: 200px; background-size: cover; background-position: center; }
.blog-card__body{ padding: 24px; }
.blog-card__cat{
  display: inline-block; font-family: var(--mono);
  font-size: 10px; letter-spacing: .18em;
  background: rgba(225,6,0,.1); color: var(--red);
  padding: 4px 10px; margin-bottom: 12px;
}
.blog-card__body h4{
  font-family: var(--display); font-size: 18px;
  line-height: 1.2; text-transform: uppercase; margin-bottom: 10px;
}
.blog-card__body p{
  color: var(--concrete); font-size: 14px;
  line-height: 1.55; margin-bottom: 14px;
}
.blog-card__date{
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; color: var(--concrete); text-transform: uppercase;
}

/* =============== CONTACT =============== */
.contact{
  padding: 110px 28px; background: var(--red);
  color: #fff; position: relative; overflow: hidden;
}
.contact::before{
  content: "GRUPO"; position: absolute;
  bottom: -60px; right: -40px;
  font-family: var(--display); font-size: 25vw;
  line-height: .8; color: rgba(255,255,255,.04);
  pointer-events: none; letter-spacing: -.04em;
}
.contact__inner{
  max-width: var(--max); margin: 0 auto;
  position: relative; display: grid;
  grid-template-columns: 1fr 1fr; gap: 70px;
}
.contact__tag{
  font-family: var(--mono); font-size: 12px;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(255,255,255,.8);
  display: block; margin-bottom: 18px;
}
.contact__headline{
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 80px);
  line-height: .92; text-transform: uppercase; margin-bottom: 24px;
}
.contact__headline .hl-red{ color: var(--ink); -webkit-text-stroke: 0; font-style: normal; }
.contact__lead{
  font-size: 16px; color: rgba(255,255,255,.9);
  max-width: 44ch; margin-bottom: 32px;
}
.contact__channels{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.channel{
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 18px; background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.18);
  transition: background .25s, transform .25s;
}
.channel:hover{ background: var(--ink); transform: translateY(-2px); }
.channel__label{
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .26em; color: rgba(255,255,255,.6);
}
.channel__value{
  font-family: var(--condensed); font-weight: 600;
  font-size: 15px; letter-spacing: .02em;
}
.contact__form{
  background: #fff; color: var(--ink);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; border: 1px solid rgba(0,0,0,.1);
}
.contact__form::before{
  content: ""; position: absolute;
  top: -1px; left: -1px;
  width: 60px; height: 4px; background: var(--ink);
}
.form__row{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact__form label{
  display: flex; flex-direction: column; gap: 5px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--concrete);
}
.contact__form input,
.contact__form select,
.contact__form textarea{
  font-family: var(--condensed);
  font-size: 15px; letter-spacing: .01em; color: var(--ink);
  border: 0; border-bottom: 1.5px solid var(--ink);
  background: transparent; padding: 8px 0;
  outline: none; transition: border-color .25s; border-radius: 0;
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus{ border-color: var(--red); }
.contact__form textarea{ resize: vertical; min-height: 70px; }
.form__note{
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; color: var(--red);
  min-height: 14px; margin-top: 4px;
}

/* =============== FOOTER =============== */
.footer{ background: var(--ink); color: #fff; padding: 70px 28px 28px; }
.footer__inner{
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 50px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__brand{ display: flex; flex-direction: column; gap: 16px; }
.footer__logos{ display: flex; gap: 12px; flex-wrap: wrap; }
.footer__logos img{
  height: 64px; width: auto; object-fit: contain;
  background: #fff; padding: 10px 14px; border-radius: 4px;
}
.footer__brand p{
  color: rgba(255,255,255,.7);
  font-size: 14px; max-width: 44ch; line-height: 1.55;
}
.footer__social{ display: flex; gap: 8px; margin-top: 4px; }
.footer__social a{
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  font-family: var(--mono); font-size: 11px;
  font-weight: 700; letter-spacing: .04em;
  transition: background .25s, color .25s;
}
.footer__social a:hover{ background: var(--red); color: #fff; }
.footer__cols{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer__cols h5{
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: 14px;
}
.footer__cols a{
  display: block; font-family: var(--condensed);
  font-size: 14px; padding: 5px 0;
  color: rgba(255,255,255,.85);
  transition: color .2s, padding .2s;
}
.footer__cols a:hover{ color: var(--red); padding-left: 6px; }
.footer__legal{
  max-width: var(--max); margin: 0 auto;
  padding: 28px 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.legal-entity{
  display: flex; flex-direction: column; gap: 4px;
  padding-left: 16px;
  border-left: 3px solid var(--red);
}
.legal-entity strong{
  font-family: var(--display);
  font-size: 16px; letter-spacing: .04em;
}
.legal-entity span{
  font-family: var(--mono); font-size: 12px;
  letter-spacing: .08em; color: rgba(255,255,255,.65);
}
.footer__bottom{
  max-width: var(--max); margin: 0 auto;
  padding-top: 24px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; color: rgba(255,255,255,.5);
}

/* =============== WHATSAPP FLOAT =============== */
.wa-float{
  position: fixed; bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: #25D366; color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  z-index: 100; transition: transform .25s;
  animation: floatPulse 3s ease-in-out infinite;
}
.wa-float:hover{ transform: scale(1.1); }
@keyframes floatPulse{
  0%,100%{ box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.5); }
  50%{ box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 0 0 16px rgba(37,211,102,0); }
}

/* =============== RESPONSIVE =============== */
@media (max-width: 1100px){
  .services__grid{ grid-template-columns: repeat(2, 1fr); }
  .projects__grid, .blog__grid{ grid-template-columns: repeat(2, 1fr); }
  .clients__grid{ grid-template-columns: repeat(4, 1fr); }
  .apps__grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px){
  .topbar__inner{ flex-direction: column; gap: 6px; }
  .nav__links{ display: none }
  .nav__burger{ display: flex }
  .hero__line:nth-child(3){ padding-left: 0 }
  .stats__inner{ grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .stat-card{ border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 20px; }
  .stat-card:nth-last-child(-n+2){ border-bottom: 0; padding-bottom: 0; }
  .companies__grid{ grid-template-columns: 1fr; }
  .partners-bar__inner{ flex-direction: column; align-items: flex-start; }
  .partners-bar__logos{ justify-content: flex-start; gap: 24px; width: 100%; }
  .services__grid, .projects__grid, .blog__grid{ grid-template-columns: 1fr; }
  .apps__grid{ grid-template-columns: repeat(2, 1fr); }
  .clients__grid{ grid-template-columns: repeat(3, 1fr); }
  .coverage__inner{ grid-template-columns: 1fr; }
  .contact__inner{ grid-template-columns: 1fr; gap: 40px; }
  .contact__channels{ grid-template-columns: 1fr; }
  .footer__inner{ grid-template-columns: 1fr; }
  .footer__cols{ grid-template-columns: 1fr 1fr; }
  .footer__legal{ grid-template-columns: 1fr; }
}
@media (max-width: 600px){
  .hero__inner{ padding: 50px 20px 40px; }
  .hero__title{ font-size: 52px; }
  .stats__inner{ grid-template-columns: 1fr; }
  .stat-card{ padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat-card:last-child{ border-bottom: 0; padding-bottom: 0; }
  .form__row{ grid-template-columns: 1fr; }
  .clients__grid{ grid-template-columns: repeat(2, 1fr); }
  .apps__grid{ grid-template-columns: 1fr; }
  .footer__cols{ grid-template-columns: 1fr; }
  .company-card__head{ flex-direction: column; }
  .about, .services, .applications, .projects, .clients, .coverage, .blog, .contact, .companies{ padding: 70px 20px; }
  .topbar{ font-size: 11px; }
  .wa-float{ width: 52px; height: 52px; bottom: 16px; right: 16px; }
}

/* ===== FILTROS DE PROYECTOS ===== */
.projects__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2.5rem;
}
.pfilter {
  background: transparent;
  border: 1.5px solid #444;
  color: #aaa;
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
}
.pfilter:hover { border-color: #E10600; color: #fff; }
.pfilter.is-active { background: #E10600; border-color: #E10600; color: #fff; }

.project-card { transition: opacity .3s, transform .3s; }
.project-card.hidden { display: none; }

/* ===== BOTÓN VER GALERÍA EN CARD ===== */
.project-card__gallery-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(225,6,0,0.9);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .05em;
}
.project-card__img:hover .project-card__gallery-btn { opacity: 1; }
.project-card__img { position: relative; overflow: hidden; }

/* ===== LIGHTBOX / MODAL GALERÍA ===== */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.gallery-modal.is-open { display: flex; }
.gallery-modal__inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gallery-modal__inner img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}
.gallery-modal__close {
  position: fixed;
  top: 20px; right: 28px;
  background: none; border: none;
  color: #fff; font-size: 42px;
  cursor: pointer; line-height: 1;
}
.gallery-modal__prev,
.gallery-modal__next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none; color: #fff;
  font-size: 48px; padding: 10px 18px;
  cursor: pointer; border-radius: 4px;
  transition: background .2s;
}
.gallery-modal__prev { left: 16px; }
.gallery-modal__next { right: 16px; }
.gallery-modal__prev:hover,
.gallery-modal__next:hover { background: rgba(225,6,0,.7); }
.gallery-modal__caption {
  color: #ccc; font-size: 13px;
  margin-top: 12px; text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .05em;
}
.gallery-modal__counter {
  color: #777; font-size: 12px; margin-top: 4px;
}
