:root {
  --blue: #008FDC;
  --blue-700: #0072B0;
  --navy: #071a3d;
  --ink: #0d1c38;
  --muted: #64748b;
  --line: #dbe6ff;
  --panel: #ffffff;
  --soft: #f5f8ff;
  --green: #28c767;
  --shadow: 0 18px 55px rgba(21, 55, 120, 0.13);
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(219, 230, 255, 0.88);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(1240px, calc(100% - 44px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 42px;
  color: var(--blue);
  font-weight: 900;
  font-size: 38px;
  letter-spacing: 0;
  line-height: 1;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  color: #17233e;
  font-size: 25px;
  line-height: 1;
  font-weight: 800;
}

.brand-copy small {
  color: var(--blue);
  font-weight: 800;
  font-size: 8px;
  line-height: 1;
}

.nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex: 1;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--header-h);
  color: #22304d;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 17px;
  height: 3px;
  border-radius: 99px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-link.active {
  color: var(--blue);
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 116px;
  height: 40px;
  padding: 0 18px;
  border: 1.5px solid var(--blue);
  border-radius: 9px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  background: #fff;
  flex: 0 0 auto;
}

.nav-call svg,
.btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.nav-toggle {
  width: 44px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 99px;
}

.section {
  scroll-margin-top: calc(var(--header-h) + 18px);
  position: relative;
}

.hero {
  min-height: calc(100vh - var(--header-h));
  padding: 58px 0 38px;
  overflow: hidden;
}

.hero-bg,
.contact-photo,
.head-image,
.side-photo,
.sector-panorama,
.about-photo {
  background-size: cover;
  background-position: center;
}

.city-day {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(105deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.68) 38%, rgba(255,255,255,0.08) 72%),
    url("assets/header.png");
  background-size: 100% 100%, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}


/*.city-day::before {
  content: "";
  position: absolute;
  right: 0;
  top: 34px;
  width: 58%;
  height: 70%;
  background:
    linear-gradient(to top, rgba(255, 255, 255, 0.1) 0 18%, transparent 18%),
    linear-gradient(to top, rgba(23, 91, 171, 0.18) 0 64%, transparent 64%),
    linear-gradient(to top, rgba(23, 91, 171, 0.23) 0 50%, transparent 50%),
    linear-gradient(to top, rgba(23, 91, 171, 0.28) 0 78%, transparent 78%),
    linear-gradient(to top, rgba(23, 91, 171, 0.2) 0 42%, transparent 42%);
  background-size: 78px 100%, 120px 100%, 96px 100%, 140px 100%, 110px 100%;
  background-position: 0 0, 120px 0, 260px 0, 390px 0, 560px 0;
  background-repeat: no-repeat;
  opacity: 0.9;
}

.city-day::after {
  content: "";
  position: absolute;
  right: -7%;
  bottom: 4%;
  width: 72%;
  height: 34%;
  background:
    radial-gradient(ellipse at center, rgba(0, 143, 220, 0.38), transparent 68%),
    repeating-linear-gradient(170deg, transparent 0 16px, rgba(0, 143, 220, 0.38) 17px 19px);
  filter: blur(0.2px);
  opacity: 0.72;
}*/

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 42px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  border-radius: 99px;
  background: #eff5ff;
  padding: 8px 13px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--blue);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  color: #071934;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

h1 span,
h2 span {
  color: var(--blue);
}

.lead {
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.42;
  color: #384761;
}

.hero-copy > p:not(.lead) {
  margin-top: 18px;
  max-width: 540px;
  color: #516178;
  font-size: 15px;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 13px 22px rgba(0, 143, 220, 0.24);
}

.btn-outline {
  background: #fff;
  color: var(--blue);
  border-color: var(--blue);
}

.hero-machine {
  min-height: 330px;
  border-radius: 18px;
  position: relative;
  isolation: isolate;
  transform: translateY(35px);
  background:
    linear-gradient(160deg, #0e2036 0%, #061225 45%, #0d172b 100%);
  box-shadow: 0 30px 65px rgba(3, 27, 67, 0.42);
}

.hero-machine::before,
.hero-machine::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}


.machine-logo {
  position: absolute;
  top: 64px;
  left: 50px;
  color: var(--blue);
  font-size: 58px;
  font-weight: 900;
  line-height: 0.8;
}

.machine-logo span {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.machine-window {
  position: absolute;
  left: 48px;
  bottom: 45px;
  width: 135px;
  height: 130px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 52% 50%, rgba(0, 143, 220, 0.72), transparent 42%),
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(51, 146, 255, 0.3) 11px 12px),
    #071227;
  border: 1px solid rgba(94, 166, 255, 0.42);
}

.hero-stats {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  margin-top: 26px;
  overflow: hidden;
}

.hero-stats article {
  display: grid;
  grid-template-columns: 104px 1fr;
  align-items: center;
  gap: 18px;
  min-height: 132px;
  padding: 28px 34px;
  border-right: 1px solid var(--line);
}

.hero-stats article:last-child {
  border-right: 0;
}

.stat-icon,
.mini-icon,
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: #eff5ff;
  flex: 0 0 auto;
}

.hero-stats .stat-icon {
  background: transparent;
  width: 96px;
  height: 96px;
  border-radius: 0;
}

.hero-stats .stat-icon img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  display: block;
}


.stat-icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  font-size: 28px;
  font-weight: 900;
}

.stat-icon svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
}

.mexico::before {
  content: "";
  width: 44px;
  height: 30px;
  border: 4px solid currentColor;
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(28deg) skewX(-18deg);
  border-radius: 12px 8px 12px 8px;
}

.hero-stats strong {
  display: block;
  color: var(--blue);
  font-size: 42px;
  line-height: 0.9;
  font-weight: 900;
}

.hero-stats b,
.cta-strip strong,
.quality-bar strong,
.metrics strong {
  color: #17233e;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 15px;
}

.hero-stats p,
.cta-strip p,
.quality-bar small,
.metrics small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 5px;
}

.solutions,
.why,
.process,
.sectors,
.about {
  padding: 92px 0;
  background:
    radial-gradient(circle at 50% 0, rgba(0, 143, 220, 0.07), transparent 22%),
    #fff;
}

.section-head {
  margin-bottom: 30px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(360px, 0.75fr);
  align-items: stretch;
  gap: 40px;
}

h2 {
  color: #071934;
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

.section-head p,
.why-grid > div > p,
.sector-hero p,
.about-hero p,
.contact-copy p {
  margin-top: 16px;
  color: #5c6a80;
  max-width: 620px;
  line-height: 1.62;
  font-size: 15px;
}

.head-image {
  min-height: 230px;
  border-radius: 0 0 0 70px;
  box-shadow: inset 60px 0 70px rgba(255, 255, 255, 0.7);
}

.tech-worker {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.78), rgba(255,255,255,0.06)),
    url("assets/ingeniero.png");
}

.methodology-worker {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.86), rgba(255,255,255,0.06)),
    url("assets/diagnostico.png");
}

.service-grid,
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card,
.sector-grid article,
.benefit-grid article,
.values-grid article {
  position: relative;
  background: #fff;
  border: 1px solid #e7eefc;
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(26, 62, 125, 0.08);
}

.service-card {
  min-height: 284px;
  padding: 18px 18px 22px;
  overflow: hidden;
}

.service-icon {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  z-index: 2;
  font-size: 19px;
  font-weight: 900;
}

.service-card small {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--blue);
  font-size: 18px;
  font-weight: 800;
  z-index: 2;
}

.thumb,
.process-photo,
.sector-photo {
  border-radius: 9px;
  background-size: cover;
  background-position: center;
}

.thumb {
  height: 105px;
  margin: 0 -2px 18px;
}

.generators { 
  background: linear-gradient(120deg, rgba(6,18,37,0.74), rgba(0, 143, 220,0.05)), 
   url("assets/generador1.png");
  }

.substations { 
  background: linear-gradient(120deg, rgba(255,255,255,0.18), rgba(194,111,33,0.16)), 
  url("assets/Subesatciones.png");
}
.panels { background: linear-gradient(120deg, rgba(255,255,255,0.45), rgba(9,27,61,0.2)), 
  url("assets/Tablero.png");
 }
.towers { background: linear-gradient(120deg, rgba(255,255,255,0.3), rgba(20,55,90,0.2)), 
  url("assets/Media.png");
}
.hvac { background: linear-gradient(120deg, rgba(255,255,255,0.3), rgba(2,15,35,0.2)), 
  url("assets/HVCA.png");
}
.ground { background: linear-gradient(120deg, rgba(40,19,5,0.08), rgba(74,37,13,0.35)), 
  url("assets/Sistema.png");
}

.service-card h3,
.sector-grid h3,
.benefit-grid h3,
.values-grid h3,
.timeline h3 {
  color: #17233e;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 900;
}

.service-card p,
.sector-grid p,
.benefit-grid p,
.values-grid p,
.timeline p {
  margin-top: 9px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.48;
}

.service-card a {
  display: inline-flex;
  margin-top: 13px;
  color: var(--blue);
  font-weight: 900;
  font-size: 13px;
}

.cta-strip {
  margin-top: 30px;
  min-height: 76px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid #dfe9ff;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 36px rgba(33, 75, 140, 0.08);
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cta-actions .btn {
  min-height: 42px;
  padding: 0 24px;
  font-size: 13px;
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.side-photo {
  min-height: 500px;
  border-radius: 0 0 74px 0;
}

.engineer-back {
  background:
    linear-gradient(90deg, rgba(3, 24, 55, 0.35), rgba(255,255,255,0.82)),
   url("assets/inge.png");
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 34px;
}

.benefit-grid article,
.values-grid article {
  padding: 26px 24px;
  min-height: 188px;
}

.mini-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 20px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.metrics article {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 14px;
  padding: 24px 28px;
  border-right: 1px solid var(--line);
}

.metrics article:last-child {
  border-right: 0;
}

.metrics .mini-icon {
  margin: 0;
}

.metrics strong {
  display: block;
  color: var(--blue);
  font-size: 26px;
  line-height: 1;
}

.light {
  background: #f7faff;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 3px;
  background: #84a9ff;
}

.timeline article {
  position: relative;
  padding-top: 34px;
}

.timeline article > span {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 99px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 7px 18px rgba(0, 143, 220,0.35);
}

.timeline h3,
.timeline p {
  padding: 0 10px;
}

.process-photo {
  height: 155px;
  margin-top: 18px;
}

.diagnostics { background: linear-gradient(120deg, rgba(3,24,55,0.7), rgba(0, 143, 220,0.15)), 
  url("assets/termo.png");
}
.blueprint { background: linear-gradient(120deg, rgba(255,255,255,0.74), rgba(183,144,95,0.22)), 
  url("assets/planos.png");
 }
.execution { background: linear-gradient(120deg, rgba(7,26,61,0.7), rgba(0, 143, 220,0.08)), 
  url("assets/mecanico.png");
}
.monitoring { background: linear-gradient(120deg, rgba(8,24,50,0.72), rgba(0, 143, 220,0.12)),
   url("assets/chris.png");
  }

.quality-bar {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 36px rgba(33, 75, 140, 0.08);
}

.quality-bar article {
  min-height: 86px;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.quality-bar article:last-child {
  border-right: 0;
}

.quality-bar span {
  color: var(--blue);
  font-size: 30px;
  font-weight: 900;
}

.quality-bar strong {
  display: block;
  font-size: 12px;
  line-height: 1.2;
}

.sector-hero,
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  align-items: center;
  gap: 32px;
  margin-bottom: 26px;
}

.sector-panorama,
.about-photo {
  min-height: 270px;
  border-radius: 0 0 0 70px;
}

.city-night{
   background:
    linear-gradient(90deg, rgba(255,255,255,0.88), rgba(255,255,255,0.03)),
    url("assets/atardecer.png");
}
.generator-night {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.88), rgba(255,255,255,0.03)),
    url("assets/mision.png");
}

.sector-grid article {
  min-height: 265px;
  padding: 18px;
  overflow: hidden;
}

.sector-grid .mini-icon {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 46px;
  height: 46px;
  margin: 0;
  z-index: 2;
}

.sector-photo {
  height: 128px;
  margin: 0 -2px 18px;
}

.datacenter { background: linear-gradient(120deg, rgba(4,17,39,0.72), rgba(0, 143, 220,0.1)), 
  url("assets/datacenter.png");
 }
.construction { background: linear-gradient(120deg, rgba(255,255,255,0.3), rgba(111,84,43,0.12)), 
  url("assets/obra.png");
 }
.retail { background: linear-gradient(120deg, rgba(255,255,255,0.45), rgba(3,24,55,0.12)), 
  url("assets/mall.png"); 
}
.industry { background: linear-gradient(120deg, rgba(4,17,39,0.6), rgba(255,140,0,0.16)), 
  url("assets/fabrica.png");
 }
.hospital { background: linear-gradient(120deg, rgba(255,255,255,0.5), rgba(0, 143, 220,0.1)), 
  url("assets/hospital.png");
 }
.hotel { background: linear-gradient(120deg, rgba(5,19,44,0.58), rgba(196,128,43,0.12)), 
  url("assets/Hoteleria.png");
}

.contact {
  padding: 0;
  background: #fff;
}

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.85fr);
  min-height: 540px;
}

.meeting-room {
  min-height: 540px;
  border-radius: 0 0 90px 0;
  background:
    linear-gradient(90deg, rgba(5,19,44,0.12), rgba(255,255,255,0.68)),
    url("assets/junta.png");
}

.tech-worker,
.methodology-worker,
.generators,
.substations,
.panels,
.towers,
.hvac,
.ground,
.engineer-back,
.diagnostics,
.blueprint,
.execution,
.monitoring,
.city-night,
.generator-night,
.datacenter,
.construction,
.retail,
.industry,
.hospital,
.hotel,
.meeting-room {
  background-size: 100% 100%, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-color: #f5f8ff;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px min(7vw, 92px);
  background:
    radial-gradient(circle at 90% 88%, rgba(0, 143, 220,0.09), transparent 28%),
    #fff;
}

.contact-copy h2 {
  max-width: 620px;
}

.about {
  padding-top: 86px;
}

.about .container {
  position: relative;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: -18px;
  position: relative;
  z-index: 2;
}

.values-grid article {
  min-height: 255px;
  border-radius: 12px;
  background: rgba(255,255,255,0.96);
}

.footer {
  padding: 34px 0 32px;
  border-top: 1px solid #edf2ff;
  background:
    radial-gradient(circle at 50% -40%, rgba(0, 143, 220, 0.08), transparent 30%),
    #fff;
}

.footer-inner {
  width: min(1060px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e8efff;
}

.footer-brand {
  justify-self: start;
}

.footer-contact {
  display: grid;
  gap: 11px;
  color: #46607f;
  font-size: 13px;
  font-weight: 700;
  padding-left: 34px;
  border-left: 1px solid #dfe9ff;
}

.footer-contact a:hover {
  color: var(--blue);
}

.socials {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.socials a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfe9ff;
  border-radius: 999px;
  color: var(--blue);
  font-weight: 900;
  background: #fff;
}

.copyright {
  margin-top: 22px;
  text-align: center;
  color: #708198;
  font-size: 12px;
  font-weight: 600;
}

.whatsapp-float {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 1001;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 26px rgba(40, 199, 103, 0.42), 0 0 0 8px rgba(40, 199, 103, 0.13);
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

/* Animaciones e interacciones */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 12px 26px rgba(40, 199, 103, 0.42), 0 0 0 0 rgba(40, 199, 103, 0.28);
  }
  70% {
    box-shadow: 0 12px 26px rgba(40, 199, 103, 0.42), 0 0 0 16px rgba(40, 199, 103, 0);
  }
  100% {
    box-shadow: 0 12px 26px rgba(40, 199, 103, 0.42), 0 0 0 0 rgba(40, 199, 103, 0);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 680ms ease,
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.brand,
.nav-call,
.btn,
.service-card,
.benefit-grid article,
.metrics article,
.timeline article,
.quality-bar article,
.sector-grid article,
.values-grid article,
.cta-strip,
.socials a,
.whatsapp-float {
  will-change: transform;
}

.brand,
.nav-call,
.service-card,
.benefit-grid article,
.metrics article,
.timeline article,
.quality-bar article,
.sector-grid article,
.values-grid article,
.socials a,
.stat-icon,
.mini-icon,
.service-icon,
.thumb,
.process-photo,
.sector-photo,
.head-image,
.side-photo,
.sector-panorama,
.about-photo,
.contact-photo {
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease,
    background-size 360ms ease,
    filter 260ms ease,
    opacity 260ms ease;
}

.brand:hover {
  transform: translateY(-1px) scale(1.02);
}

.nav-call:hover,
.btn:hover {
  box-shadow: 0 14px 28px rgba(0, 143, 220, 0.2);
}

.nav-link {
  transition: color 180ms ease, transform 180ms ease;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.service-card::before,
.sector-grid article::before,
.benefit-grid article::before,
.values-grid article::before,
.timeline article::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 38%);
  opacity: 0;
  transition: opacity 260ms ease;
}

.service-card:hover,
.sector-grid article:hover,
.benefit-grid article:hover,
.values-grid article:hover,
.timeline article:hover,
.metrics article:hover,
.quality-bar article:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 143, 220, 0.34);
  box-shadow: 0 22px 48px rgba(21, 55, 120, 0.16);
}

.service-card:hover::before,
.sector-grid article:hover::before,
.benefit-grid article:hover::before,
.values-grid article:hover::before,
.timeline article:hover::before {
  opacity: 1;
}

.service-card:hover .service-icon,
.sector-grid article:hover .mini-icon,
.benefit-grid article:hover .mini-icon,
.values-grid article:hover .mini-icon,
.metrics article:hover .mini-icon {
  transform: scale(1.1) rotate(-4deg);
  box-shadow: 0 10px 24px rgba(0, 143, 220, 0.2);
}

.service-card:hover .thumb,
.sector-grid article:hover .sector-photo,
.timeline article:hover .process-photo {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04);
}

.service-card a,
.service-card small {
  transition: transform 220ms ease, color 220ms ease;
}

.service-card:hover a {
  transform: translateX(4px);
}

.service-card:hover small {
  transform: translateY(-2px);
}

.head-image:hover,
.side-photo:hover,
.sector-panorama:hover,
.about-photo:hover,
.contact-photo:hover {
  transform: translateY(-5px) scale(1.01);
  filter: saturate(1.05) contrast(1.03);
  box-shadow: 0 24px 55px rgba(21, 55, 120, 0.16);
}

.cta-strip:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(33, 75, 140, 0.14);
}

.hero-copy {
  animation: fadeUp 800ms ease both;
}

.hero-stats {
  animation: fadeUp 900ms ease 160ms both;
}

.stat-icon,
.mini-icon {
  transition: transform 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.stat-icon:hover,
.mini-icon:hover {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 12px 26px rgba(0, 143, 220, 0.18);
}

.socials a {
  transition:
    transform 220ms ease,
    background 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.socials a:hover {
  transform: translateY(-4px) scale(1.16);
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 14px 28px rgba(0, 143, 220, 0.26);
}

.whatsapp-float {
  animation: pulseRing 2.6s ease-out infinite;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.12) rotate(4deg);
  background: #21b85b;
  animation-play-state: paused;
}

.city-day {
  animation: fadeUp 900ms ease both;
}

.tech-worker,
.methodology-worker,
.city-night,
.generator-night {
  animation: floatSoft 6.5s ease-in-out infinite;
}

.timeline article:nth-child(2n),
.service-card:nth-child(2n),
.sector-grid article:nth-child(2n),
.values-grid article:nth-child(2n) {
  transition-delay: 25ms;
}

.timeline article:nth-child(3n),
.service-card:nth-child(3n),
.sector-grid article:nth-child(3n),
.values-grid article:nth-child(3n) {
  transition-delay: 50ms;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1120px) {
  .nav-shell {
    gap: 18px;
  }

  .nav-menu {
    gap: 18px;
  }

  .hero-grid,
  .split,
  .why-grid,
  .sector-hero,
  .about-hero,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .hero-machine {
    min-height: 280px;
    transform: none;
  }

  .head-image,
  .sector-panorama,
  .about-photo {
    min-height: 250px;
  }

  .contact-wrap {
    min-height: 0;
  }

  .meeting-room {
    min-height: 360px;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 68px;
  }

  .nav-shell {
    width: min(100% - 28px, 980px);
  }

  .brand-mark {
    min-width: 44px;
    height: 34px;
    font-size: 31px;
  }

  .brand-copy strong {
    font-size: 21px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-call {
    display: none;
  }

  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: grid;
    gap: 0;
    align-items: stretch;
    justify-content: stretch;
    padding: 14px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 38px rgba(11, 32, 74, 0.12);
    transform: translateY(-125%);
    transition: transform 220ms ease;
  }

  body.nav-open .nav-menu {
    transform: translateY(0);
  }

  .nav-link {
    height: 48px;
    padding: 0 14px;
    border-radius: 8px;
  }

  .nav-link::after {
    left: 14px;
    right: auto;
    bottom: 7px;
    width: 42px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-stats,
  .service-grid,
  .benefit-grid,
  .metrics,
  .timeline,
  .quality-bar,
  .sector-grid,
  .values-grid,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats article:nth-child(2),
  .metrics article:nth-child(2),
  .quality-bar article:nth-child(2) {
    border-right: 0;
  }

  .hero-stats article:last-child,
  .metrics article:last-child,
  .quality-bar article:last-child {
    border-right: 1px solid var(--line);
  }

  .timeline::before {
    display: none;
  }

  .timeline article {
    padding-top: 0;
  }

  .timeline article > span {
    top: 14px;
    left: 18px;
    transform: none;
  }

  .timeline h3,
  .timeline p {
    padding-left: 0;
  }

  .timeline article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 62px 18px 18px;
    box-shadow: 0 12px 34px rgba(26, 62, 125, 0.08);
  }

  .cta-strip {
    grid-template-columns: 58px 1fr;
  }

  .cta-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .footer-contact {
    border-left: 0;
    padding-left: 0;
  }

  .socials {
    justify-content: flex-start;
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .container,
  .footer-inner {
    width: min(100% - 28px, 640px);
  }

  .hero {
    padding-bottom: 28px;
  }

  h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  h2 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .lead {
    font-size: 17px;
  }

  .actions,
  .cta-actions {
    display: grid;
    width: 100%;
  }

  .btn {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-machine {
    min-height: 240px;
  }

  .machine-logo {
    top: 48px;
    left: 36px;
  }

  .machine-window {
    width: 112px;
    height: 106px;
    left: 36px;
    bottom: 34px;
  }

  .hero-stats,
  .service-grid,
  .benefit-grid,
  .metrics,
  .timeline,
  .quality-bar,
  .sector-grid,
  .values-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-stats article,
  .metrics article,
  .quality-bar article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-stats article:last-child,
  .metrics article:last-child,
  .quality-bar article:last-child {
    border: 0;
  }

  .hero-stats article {
    grid-template-columns: 68px 1fr;
    min-height: 110px;
    padding: 22px;
  }

  .solutions,
  .why,
  .process,
  .sectors,
  .about {
    padding: 62px 0;
  }

  .head-image,
  .side-photo,
  .sector-panorama,
  .about-photo,
  .meeting-room {
    min-height: 260px;
    border-radius: 0 0 42px 0;
  }

  .contact-copy {
    padding: 54px 18px;
  }

  .cta-strip {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .cta-strip .stat-icon {
    width: 54px;
    height: 54px;
  }

  .values-grid {
    margin-top: 0;
  }

  .footer {
    padding-bottom: 90px;
  }

  .whatsapp-float {
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
  }
}


.tech-worker,
.methodology-worker,
.generators,
.substations,
.panels,
.towers,
.hvac,
.ground,
.engineer-back,
.diagnostics,
.blueprint,
.execution,
.monitoring,
.city-night,
.generator-night,
.datacenter,
.construction,
.retail,
.industry,
.hospital,
.hotel,
.meeting-room {
  background-size: 100% 100%, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-color: #f5f8ff;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 12px 26px rgba(40, 199, 103, 0.42), 0 0 0 0 rgba(40, 199, 103, 0.28);
  }

  70% {
    box-shadow: 0 12px 26px rgba(40, 199, 103, 0.42), 0 0 0 16px rgba(40, 199, 103, 0);
  }

  100% {
    box-shadow: 0 12px 26px rgba(40, 199, 103, 0.42), 0 0 0 0 rgba(40, 199, 103, 0);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 680ms ease,
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.brand,
.nav-call,
.btn,
.service-card,
.benefit-grid article,
.metrics article,
.timeline article,
.quality-bar article,
.sector-grid article,
.values-grid article,
.cta-strip,
.socials a,
.whatsapp-float {
  will-change: transform;
}

.brand,
.nav-call,
.service-card,
.benefit-grid article,
.metrics article,
.timeline article,
.quality-bar article,
.sector-grid article,
.values-grid article,
.socials a,
.stat-icon,
.mini-icon,
.service-icon,
.thumb,
.process-photo,
.sector-photo,
.head-image,
.side-photo,
.sector-panorama,
.about-photo,
.contact-photo {
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease,
    background-size 360ms ease,
    filter 260ms ease,
    opacity 260ms ease;
}

.brand:hover {
  transform: translateY(-1px) scale(1.02);
}

.nav-call:hover,
.btn:hover {
  box-shadow: 0 14px 28px rgba(0, 143, 220, 0.2);
}

.nav-link {
  transition: color 180ms ease, transform 180ms ease;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.service-card::before,
.sector-grid article::before,
.benefit-grid article::before,
.values-grid article::before,
.timeline article::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 38%);
  opacity: 0;
  transition: opacity 260ms ease;
}

.service-card:hover,
.sector-grid article:hover,
.benefit-grid article:hover,
.values-grid article:hover,
.timeline article:hover,
.metrics article:hover,
.quality-bar article:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 143, 220, 0.34);
  box-shadow: 0 22px 48px rgba(21, 55, 120, 0.16);
}

.service-card:hover::before,
.sector-grid article:hover::before,
.benefit-grid article:hover::before,
.values-grid article:hover::before,
.timeline article:hover::before {
  opacity: 1;
}

.service-card:hover .service-icon,
.sector-grid article:hover .mini-icon,
.benefit-grid article:hover .mini-icon,
.values-grid article:hover .mini-icon,
.metrics article:hover .mini-icon {
  transform: scale(1.1) rotate(-4deg);
  box-shadow: 0 10px 24px rgba(0, 143, 220, 0.2);
}

.service-card:hover .thumb,
.sector-grid article:hover .sector-photo,
.timeline article:hover .process-photo {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04);
}

.service-card a,
.service-card small {
  transition: transform 220ms ease, color 220ms ease;
}

.service-card:hover a {
  transform: translateX(4px);
}

.service-card:hover small {
  transform: translateY(-2px);
}

.head-image:hover,
.side-photo:hover,
.sector-panorama:hover,
.about-photo:hover,
.contact-photo:hover {
  transform: translateY(-5px) scale(1.01);
  filter: saturate(1.05) contrast(1.03);
  box-shadow: 0 24px 55px rgba(21, 55, 120, 0.16);
}

.cta-strip:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(33, 75, 140, 0.14);
}

.hero-copy {
  animation: fadeUp 800ms ease both;
}

.hero-stats {
  animation: fadeUp 900ms ease 160ms both;
}

.stat-icon,
.mini-icon {
  transition: transform 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.stat-icon:hover,
.mini-icon:hover {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 12px 26px rgba(0, 143, 220, 0.18);
}

.socials a {
  transition:
    transform 220ms ease,
    background 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.socials a:hover {
  transform: translateY(-4px) scale(1.16);
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 14px 28px rgba(0, 143, 220, 0.26);
}

.whatsapp-float {
  animation: pulseRing 2.6s ease-out infinite;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.12) rotate(4deg);
  background: #21b85b;
  animation-play-state: paused;
}

.city-day {
  animation: fadeUp 900ms ease both;
}

.tech-worker,
.methodology-worker,
.city-night,
.generator-night {
  animation: floatSoft 6.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}

.logo-img {
  width: 160px;
  max-width: 160px;
  height: auto;
  display: block;
  object-fit: contain;
}
.footer .logo-img {
  width: 200px;
  max-width: 200px;
}
.mini-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.stat-icon img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.service-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}

.socials a img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  transition: transform 220ms ease, filter 220ms ease;
}

.socials a:hover img {
  transform: scale(1.12);
}





.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(255,255,255,0.96) 40%,
    rgba(255,255,255,0.70) 48%,
    rgba(255,255,255,0.08) 100%
  );
}

.hero-grid,
.hero .container {
  position: relative;
  z-index: 2;
}

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.quote-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.quote-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 37, 0.68);
  backdrop-filter: blur(5px);
}

.quote-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  border-radius: 16px;
  background: #fff;
  padding: 38px 36px 32px;
  box-shadow: 0 35px 100px rgba(3, 15, 34, 0.38);
  transform: translateY(22px) scale(0.98);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.quote-modal.is-open .quote-dialog {
  transform: translateY(0) scale(1);
}

.quote-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease;
}

.quote-close:hover {
  color: var(--blue);
  transform: rotate(90deg) scale(1.05);
}

.quote-dialog h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1;
  font-weight: 900;
}

.quote-dialog > p {
  margin: 10px 0 26px;
  color: #33486a;
  font-size: 16px;
  line-height: 1.45;
}

.quote-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.quote-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid #cdd9ef;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.quote-form input,
.quote-form select {
  height: 44px;
  padding: 0 14px;
}

.quote-form textarea {
  min-height: 82px;
  resize: vertical;
  padding: 12px 14px;
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: #6b7da0;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 143, 220, 0.12);
}

.quote-submit {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 16px 32px rgba(0, 143, 220, 0.26);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.quote-submit:hover {
  transform: translateY(-2px);
  background: var(--blue-700);
  box-shadow: 0 20px 42px rgba(0, 143, 220, 0.32);
}

body.quote-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .quote-modal {
    padding: 14px;
  }

  .quote-dialog {
    padding: 32px 20px 24px;
    border-radius: 14px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Ajuste final: tarjetas de Soluciones mas compactas con imagenes mas grandes */
.service-grid {
  gap: 18px 22px;
}

.service-card {
  min-height: 252px;
  padding: 16px 16px 16px;
}

.service-card .thumb {
  height: 132px;
  margin: 0 0 14px;
  border-radius: 8px;
}

.service-card h3 {
  font-size: 17px;
  line-height: 1.16;
}

.service-card p {
  margin-top: 8px;
  line-height: 1.42;
}

.service-card a {
  margin-top: 10px;
}

.service-card .service-icon {
  top: 16px;
  left: 16px;
}

.service-card small {
  top: 16px;
  right: 16px;
}

@media (max-width: 640px) {
  .service-card {
    min-height: auto;
  }

  .service-card .thumb {
    height: 150px;
  }
}

/* Degradados blancos en la seccion Sectores */
.sectors .sector-panorama,
.sectors .sector-photo {
  position: relative;
  overflow: hidden;
}

.sectors .sector-panorama::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.62) 26%, rgba(255,255,255,0.06) 58%),
    linear-gradient(180deg, rgba(255,255,255,0) 54%, rgba(255,255,255,0.92) 100%);
}

.sectors .sector-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 42%, rgba(255,255,255,0.88) 100%),
    linear-gradient(90deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 46%);
}

.sectors .sector-grid article {
  background: linear-gradient(180deg, #fff 0%, #fff 68%, #f8fbff 100%);
}

.sectors .sector-grid article h3,
.sectors .sector-grid article p {
  position: relative;
  z-index: 1;
}

/* Sectores: tarjetas con imagen de fondo y degradado como referencia */
.sectors .sector-grid article {
  min-height: 230px;
  padding: 118px 18px 18px;
  overflow: hidden;
  background: #fff;
}

.sectors .sector-photo {
  position: absolute;
  inset: 0;
  height: 100%;
  margin: 0;
  border-radius: inherit;
  z-index: 0;
}

.sectors .sector-photo::after {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.28) 56%, rgba(255,255,255,0.97) 82%),
    linear-gradient(90deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.18) 48%, rgba(255,255,255,0.02) 100%);
}

.sectors .sector-grid .mini-icon {
  top: 18px;
  left: 18px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 24px rgba(21, 55, 120, 0.12);
}

.sectors .sector-grid article h3 {
  max-width: 72%;
  margin-top: 0;
  min-height: 44px;
  display: flex;
  align-items: flex-end;
}

.sectors .sector-grid article p {
  max-width: 86%;
}

@media (max-width: 640px) {
  .sectors .sector-grid article {
    min-height: 250px;
    padding-top: 132px;
  }
}

/* Paginas internas de servicios */
body.service-detail-mode main > .section {
  display: none;
}

.service-detail-page[hidden] {
  display: none;
}

.service-detail-page {
  background: #fff;
  min-height: calc(100vh - var(--header-h));
}

.service-detail-hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(360px, 0.75fr) minmax(520px, 1.25fr);
  align-items: stretch;
  border-bottom: 1px solid #e9f0ff;
}

.service-detail-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 0 70px max(48px, calc((100vw - 1180px) / 2));
  background: #fff;
}

.service-detail-copy::after {
  content: "";
  position: absolute;
  top: 0;
  right: -220px;
  width: 260px;
  height: 100%;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.9) 42%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.service-detail-copy h1 {
  max-width: 560px;
  font-size: clamp(48px, 5.2vw, 76px);
  line-height: 1.02;
}

.service-title-line {
  width: 72px;
  height: 4px;
  margin: 20px 0 18px;
  border-radius: 99px;
  background: var(--blue);
}

.service-detail-copy p {
  max-width: 520px;
  color: #17233e;
  font-size: 21px;
  line-height: 1.55;
}

.service-detail-image {
  min-height: 560px;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.54) 18%, rgba(255,255,255,0) 44%),
    var(--service-image);
  background-size: 100% 100%, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}

.service-includes {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 52px;
}

.service-includes h2 {
  text-align: center;
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 26px;
}

.include-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}

.include-item {
  min-height: 220px;
  padding: 16px 28px 0;
  text-align: center;
  border-right: 1px solid #dfe7f6;
}

.include-item:last-child {
  border-right: 0;
}

.detail-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.detail-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.include-item h3 {
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 14px;
}

.include-item p {
  color: #1d2a42;
  font-size: 14px;
  line-height: 1.65;
}

.service-bottom-strip {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 38px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 12px;
  background: rgba(248, 250, 255, 0.96);
  box-shadow: 0 16px 42px rgba(21, 55, 120, 0.09);
  border: 1px solid #edf3ff;
  overflow: hidden;
}

.strip-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 126px;
  padding: 26px 30px;
  border-right: 1px solid #dfe7f6;
}

.strip-item:last-child {
  border-right: 0;
}

.strip-item h3 {
  font-size: 17px;
  margin-bottom: 7px;
}

.strip-item p {
  color: #1d2a42;
  font-size: 14px;
  line-height: 1.52;
}

.service-nav-link[hidden] {
  display: none;
}

/* Ajustes finales de marca, páginas internas y navegación */
.brand-logo-copy {
  gap: 2px;
}

.brand-logo-copy strong {
  font-size: 20px;
  letter-spacing: 0;
}

.brand-logo-copy small {
  color: var(--blue);
  font-size: 8px;
  letter-spacing: 0;
}

body:not(.about-page-mode) #nosotros {
  display: none;
}

body.about-page-mode main > .section {
  display: none;
}

body.about-page-mode #nosotros {
  display: block;
  min-height: calc(100vh - var(--header-h));
}

.service-detail-copy {
  padding-right: 28px;
  overflow: visible;
}

.service-detail-copy > * {
  position: relative;
  z-index: 2;
}

.service-detail-copy::after {
  right: -320px;
  width: 380px;
  z-index: 1;
}

.service-detail-copy .actions {
  max-width: 560px;
  gap: 18px;
}

.service-detail-copy .btn {
  min-width: 220px;
  white-space: nowrap;
}

.service-detail-page .service-detail-copy,
.service-detail-page .service-detail-image,
.service-detail-page .include-item,
.service-detail-page .strip-item,
body.about-page-mode #nosotros .about-hero,
body.about-page-mode #nosotros .values-grid article {
  animation: fadeUp 720ms ease both;
}

.service-detail-page .include-item:nth-child(2),
.service-detail-page .strip-item:nth-child(2),
body.about-page-mode #nosotros .values-grid article:nth-child(2) {
  animation-delay: 70ms;
}

.service-detail-page .include-item:nth-child(3),
.service-detail-page .strip-item:nth-child(3),
body.about-page-mode #nosotros .values-grid article:nth-child(3) {
  animation-delay: 120ms;
}

.service-detail-page .include-item:nth-child(4),
.service-detail-page .strip-item:nth-child(4),
body.about-page-mode #nosotros .values-grid article:nth-child(4) {
  animation-delay: 170ms;
}

.meeting-room {
  position: relative;
  overflow: hidden;
}

.meeting-room::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 48%, rgba(255,255,255,0.9) 86%, #fff 100%);
  pointer-events: none;
}

.why .side-photo {
  position: relative;
  overflow: hidden;
}

.why .side-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 44%, rgba(255,255,255,0.96) 100%),
    linear-gradient(180deg, rgba(255,255,255,0) 48%, rgba(255,255,255,0.88) 100%);
}

@media (max-width: 1120px) {
  .service-detail-hero {
    grid-template-columns: 1fr;
  }

  .service-detail-copy {
    padding: 54px 24px;
  }

  .service-detail-copy::after {
    display: none;
  }

  .service-detail-image {
    min-height: 340px;
    order: -1;
  }

  .include-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .include-item:nth-child(3n) {
    border-right: 0;
  }

  .service-bottom-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .service-detail-copy h1 {
    font-size: 42px;
  }

  .service-detail-copy p {
    font-size: 17px;
  }

  .include-grid,
  .service-bottom-strip {
    grid-template-columns: 1fr;
  }

  .include-item,
  .strip-item {
    border-right: 0;
    border-bottom: 1px solid #dfe7f6;
  }
}

/* Página específica: Generadores eléctricos */
.generator-page main {
  background: #fff;
}

.generator-detail {
  padding-bottom: 30px;
  overflow: hidden;
}

.generator-breadcrumb {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #66758d;
  font-size: 13px;
  font-weight: 700;
}

.generator-breadcrumb strong {
  color: var(--blue);
}

.generator-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-top: 1px solid #edf3ff;
  border-bottom: 1px solid #e7eefc;
}

.generator-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.98) 27%, rgba(255,255,255,0.82) 43%, rgba(255,255,255,0.15) 63%, rgba(255,255,255,0) 100%),
    linear-gradient(180deg, rgba(255,255,255,0) 66%, rgba(255,255,255,0.72) 100%);
  pointer-events: none;
}

.generator-hero-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(12,28,55,0.18), rgba(255,255,255,0.03)),
    repeating-linear-gradient(90deg, rgba(8,20,42,0.04) 0 4px, transparent 5px 48px),
    url("assets/generador1.png");
  background-size: 100% 100%, 100% 100%, auto 88%;
  background-position: center, center, right 46% center;
  background-repeat: no-repeat;
  opacity: 0.98;
}

.generator-copy {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 68px;
}

.generator-copy h1 {
  max-width: 420px;
  font-size: clamp(48px, 5.6vw, 72px);
  line-height: 0.98;
  font-weight: 900;
  color: #071934;
}

.generator-copy p {
  max-width: 390px;
  color: #1d2a42;
  font-size: 17px;
  line-height: 1.55;
}

.generator-points {
  display: grid;
  gap: 15px;
  max-width: 410px;
  margin-top: 26px;
}

.generator-points article {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: start;
  gap: 14px;
}

.generator-points .detail-icon,
.generator-service-strip .detail-icon,
.generator-metrics .detail-icon {
  width: 58px;
  height: 58px;
  margin: 0;
  border-radius: 999px;
  background: #f0f6ff;
}

.generator-points .detail-icon img,
.generator-service-strip .detail-icon img,
.generator-metrics .detail-icon img {
  width: 42px;
  height: 42px;
}

.generator-points h3,
.generator-service-strip h3,
.generator-panel h2,
.generator-cta h2 {
  color: #071934;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
}

.generator-points p,
.generator-service-strip p,
.generator-panel li,
.generator-panel span,
.generator-cta p,
.generator-metrics p {
  color: #314461;
  font-size: 13px;
  line-height: 1.48;
}

.rental-badge {
  position: absolute;
  z-index: 3;
  left: max(420px, calc((100vw - 1180px) / 2 + 410px));
  bottom: 34px;
  width: min(280px, calc(100% - 48px));
  min-height: 84px;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #061934, #082f67);
  box-shadow: 0 18px 42px rgba(4, 20, 45, 0.28);
}

.rental-badge .detail-icon {
  width: 42px;
  height: 42px;
  margin: 0;
  color: #fff;
}

.rental-badge .detail-icon img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

.rental-badge strong {
  display: block;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
}

.rental-badge p {
  margin-top: 6px;
  color: rgba(255,255,255,0.88);
  font-size: 12px;
  line-height: 1.45;
}

.generator-service-strip,
.generator-info-grid,
.generator-metrics {
  width: min(1180px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.generator-service-strip {
  position: relative;
  z-index: 4;
  margin-top: -18px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid #e4edff;
  border-radius: 13px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 18px 46px rgba(21, 55, 120, 0.12);
  overflow: hidden;
}

.generator-service-strip article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 24px 24px;
  border-right: 1px solid #e2eaff;
}

.generator-service-strip article:last-child {
  border-right: 0;
}

.generator-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.05fr) minmax(310px, 0.9fr);
  gap: 14px;
  margin-top: 14px;
}

.generator-panel,
.generator-cta {
  min-height: 168px;
  border-radius: 12px;
  border: 1px solid #edf3ff;
  box-shadow: 0 14px 38px rgba(21, 55, 120, 0.08);
}

.generator-panel {
  padding: 24px 26px;
  background:
    radial-gradient(circle at 78% 55%, rgba(0,143,220,0.06), transparent 30%),
    #fbfdff;
}

.benefits-panel ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.benefits-panel li {
  position: relative;
  padding-left: 22px;
}

.benefits-panel li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 10px;
  font-weight: 900;
}

.apps-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 34px;
  margin-top: 18px;
}

.apps-list span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.apps-list img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.generator-cta {
  padding: 24px 28px;
  background: linear-gradient(135deg, #061934, #052b5e);
  color: #fff;
}

.generator-cta h2 {
  max-width: 280px;
  color: #fff;
  font-size: 22px;
}

.generator-cta p {
  margin: 14px 0 20px;
  color: rgba(255,255,255,0.86);
}

.generator-cta .btn {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
}

.generator-cta .btn-outline {
  background: #fff;
}

.generator-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 14px;
  border-radius: 12px;
  border: 1px solid #edf3ff;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 14px 38px rgba(21, 55, 120, 0.08);
  overflow: hidden;
}

.generator-metrics article {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 24px 26px;
  border-right: 1px solid #e2eaff;
}

.generator-metrics article:last-child {
  border-right: 0;
}

.generator-metrics strong {
  display: block;
  color: var(--blue);
  font-size: 30px;
  line-height: 0.95;
  font-weight: 900;
}

.generator-metrics b {
  display: block;
  color: #071934;
  text-transform: uppercase;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
}

@media (max-width: 1120px) {
  .generator-hero-image {
    opacity: 0.48;
    background-size: auto 66%;
  }

  .rental-badge {
    position: relative;
    left: auto;
    bottom: auto;
    margin: -34px 24px 28px auto;
  }

  .generator-service-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .generator-service-strip article:nth-child(2n) {
    border-right: 0;
  }

  .generator-info-grid {
    grid-template-columns: 1fr;
  }

  .generator-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .generator-breadcrumb,
  .generator-copy,
  .generator-service-strip,
  .generator-info-grid,
  .generator-metrics {
    width: min(100% - 28px, 640px);
  }

  .generator-hero {
    min-height: auto;
  }

  .generator-copy {
    padding: 34px 0 90px;
  }

  .generator-copy h1 {
    font-size: 42px;
  }

  .generator-copy p {
    font-size: 16px;
  }

  .rental-badge {
    width: min(100% - 28px, 640px);
    margin: -54px auto 24px;
  }

  .generator-service-strip,
  .generator-metrics,
  .apps-list {
    grid-template-columns: 1fr;
  }

  .generator-service-strip article,
  .generator-metrics article {
    border-right: 0;
    border-bottom: 1px solid #e2eaff;
  }
}

