:root {
  --bg: #07182c;
  --bg-soft: #0b223c;
  --card: rgba(255, 255, 255, 0.06);
  --text: #f5f9fc;
  --muted: #b4c2ce;
  --line: rgba(255, 255, 255, 0.11);
  --blue: #4697cf;
  --blue-dark: #2479b6;
  --lime: #c9f36b;
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 105px; }
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(70,151,207,.2), transparent 26%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }

.topbar { background: #03101e; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.topbar-inner { min-height: 40px; display: flex; justify-content: center; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.topbar a:hover { color: var(--white); }
.header { position: sticky; top: 0; z-index: 50; background: rgba(7,24,44,.88); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.nav-wrap { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: relative; }
.brand-logo { width: 185px; height: 58px; object-fit: contain; object-position: left center; }
.nav { display: flex; align-items: center; gap: 1.15rem; }
.nav a { color: var(--muted); font-weight: 600; transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--white); }
.menu-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 2px; margin: 5px auto; background: var(--white); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.4rem; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: var(--white);
  font-weight: 800; box-shadow: var(--shadow); transition: transform .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-sm { padding: .72rem 1.05rem; }
.btn-ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; }
.btn-light { background: var(--white); color: var(--bg); }

.hero { padding: 5.5rem 0 5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 3rem; align-items: center; }
.eyebrow { margin: 0 0 1rem; color: var(--blue); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.light { color: rgba(255,255,255,.75); }
h1, h2, h3 { margin-top: 0; }
h1 { margin-bottom: 1.2rem; font-size: clamp(2.5rem, 5.2vw, 4.8rem); line-height: .98; letter-spacing: -.045em; }
h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -.035em; }
.lead, .section-head > p, .service-card p, .technology-card p, .about-grid p, .contact-grid p {
  color: var(--muted); font-size: 1.04rem; line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.metric-card, .service-card, .technology-card, .about-box, .contact-form {
  border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: var(--shadow);
}
.metric-card { padding: 1.15rem; }
.metric-card strong { display: block; color: var(--white); font-size: 1.55rem; }
.metric-card span { color: var(--muted); font-size: .85rem; }

.fleet-panel { padding: 1rem; border: 1px solid var(--line); border-radius: 30px; background: rgba(255,255,255,.05); box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: .5rem .4rem 1.1rem; color: var(--muted); font-size: .85rem; }
.panel-head strong { color: var(--white); }
.panel-head i { display: inline-block; width: 8px; height: 8px; margin-right: .4rem; border-radius: 50%; background: var(--lime); }
.map {
  min-height: 340px; position: relative; overflow: hidden; border-radius: 22px;
  background-color: #dfe9ed;
  background-image: linear-gradient(30deg, rgba(255,255,255,.75) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.75) 87.5%), linear-gradient(150deg, rgba(255,255,255,.75) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.75) 87.5%);
  background-size: 92px 54px;
}
.route { position: absolute; display: block; width: 120%; height: 9px; left: -10%; border: 2px dashed rgba(36,121,182,.45); border-width: 2px 0; border-radius: 50%; }
.route-one { top: 42%; transform: rotate(-14deg); }
.route-two { top: 62%; transform: rotate(19deg); }
.pin { position: absolute; width: 38px; height: 38px; display: grid; place-items: center; border: 3px solid white; border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); background: var(--blue-dark); box-shadow: 0 8px 20px rgba(0,0,0,.2); font-size: .75rem; font-weight: 800; }
.pin-one { top: 22%; left: 19%; }.pin-two { top: 49%; right: 15%; background: #74a949; }.pin-three { bottom: 13%; left: 43%; }
.vehicle-card { position: absolute; top: 29%; left: 34%; min-width: 170px; padding: 1rem; border-radius: 15px; color: var(--bg); background: white; box-shadow: 0 16px 30px rgba(11,34,60,.2); }
.vehicle-card small, .vehicle-card strong, .vehicle-card span { display: block; }
.vehicle-card small { color: #778794; font-size: .62rem; font-weight: 800; letter-spacing: .08em; }
.vehicle-card strong { margin: .35rem 0; }.vehicle-card span { color: #4e9b62; font-size: .75rem; font-weight: 700; }
.panel-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: .8rem; }
.panel-stats div { padding: .85rem; border-radius: 14px; background: rgba(255,255,255,.05); }
.panel-stats span, .panel-stats strong { display: block; }.panel-stats span { color: var(--muted); font-size: .72rem; }.panel-stats strong { margin-top: .2rem; font-size: 1.2rem; }

.section { padding: 5rem 0; }
.section-alt { background: rgba(255,255,255,.025); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 820px; margin: 0 auto 2.6rem; text-align: center; }
.section-head.left { max-width: 720px; margin-left: 0; text-align: left; }
.services-grid, .technology-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.service-card { padding: 1.7rem; }
.service-card.featured { background: linear-gradient(145deg, rgba(70,151,207,.25), rgba(255,255,255,.06)); }
.service-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 1rem; border-radius: 14px; background: rgba(70,151,207,.18); color: #85c6ef; font-weight: 800; }
.service-card h3, .technology-card h3, .about-box h3 { margin-bottom: .7rem; font-size: 1.28rem; }
.service-card ul, .about-box ul { margin: 0; padding-left: 1.1rem; color: var(--muted); line-height: 1.9; }
.service-card li::marker, .about-box li::marker { color: var(--lime); }
.technology-card { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; padding: 1.6rem; align-items: start; }
.technology-card > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-dark); font-weight: 800; }
.technology-card p { margin-bottom: 0; }
.about-grid, .contact-grid { display: grid; grid-template-columns: 1fr .95fr; gap: 3rem; align-items: start; }
.about-box, .contact-form { padding: 1.8rem; }
.cta-strip { padding: 3rem 0; background: linear-gradient(135deg, var(--blue-dark), #174e78); }
.cta-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-strip h2 { margin-bottom: 0; }
.contact-list { display: grid; gap: .9rem; margin-top: 1.5rem; }
.contact-list a { color: #bfe6ff; font-weight: 600; }
.form-row { display: grid; gap: .5rem; margin-bottom: 1rem; }
.form-row label, .contact-form small { color: var(--muted); }
input, textarea {
  width: 100%; padding: .95rem 1rem; border: 1px solid var(--line); border-radius: 14px;
  color: var(--white); background: rgba(255,255,255,.04); outline: none;
}
input:focus, textarea:focus { border-color: var(--blue); background: rgba(255,255,255,.07); }
.contact-form small { display: block; margin-top: 1rem; line-height: 1.5; }
.footer { padding: 1.7rem 0 2rem; border-top: 1px solid var(--line); background: #03101e; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.footer-logo { width: 210px; height: 78px; object-fit: contain; }
.footer p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Variante clara de alto contraste */
:root {
  --bg: #f7fafc;
  --bg-soft: #edf4f7;
  --card: #ffffff;
  --text: #0a2940;
  --muted: #50697a;
  --line: #d5e2e9;
  --blue: #1688c9;
  --blue-dark: #08679e;
  --navy: #082a42;
  --lime: #9bd447;
  --shadow: 0 20px 55px rgba(8, 42, 66, .12);
}
body { background: var(--bg); }
.topbar { color: #c4d5df; background: var(--navy); border-bottom-color: rgba(255,255,255,.12); }
.header { background: rgba(255,255,255,.92); }
.nav a:hover, .nav a.active { color: var(--blue-dark); }
.nav .btn,
.nav .btn:hover,
.nav .btn.active { color: #fff; }
.menu-toggle span { background: var(--navy); }
.btn-ghost { color: var(--blue-dark); background: var(--white); border-color: var(--blue-dark); }
.btn-light,
.btn-light:hover { color: var(--navy); background: #fff; }
.hero { background: radial-gradient(circle at 12% 8%, rgba(22,136,201,.12), transparent 30%), linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.metric-card strong { color: var(--navy); }
.section-alt { background: var(--bg-soft); }
.service-card.featured { background: linear-gradient(145deg, #e8f5fb, #fff); border-color: #a9d7ee; }
.service-icon { color: var(--blue-dark); background: #dff1fa; }
.contact-list a { color: var(--blue-dark); font-weight: 700; }
input, textarea { color: var(--text); background: var(--white); }
.footer { color: var(--white); background: var(--navy); border-top-color: rgba(255,255,255,.12); }
.cta-strip { color: #fff; background: linear-gradient(135deg, #08679e, #0b527e); }
.cta-strip h2 { color: #fff; }
.cta-strip .eyebrow.light { color: #d9f1ff; }

.fleet-carousel { min-width: 0; }
.carousel-viewport { overflow: hidden; border-radius: 30px; box-shadow: var(--shadow); }
.carousel-track { display: flex; transition: transform .65s cubic-bezier(.22,.7,.24,1); }
.fleet-panel { flex: 0 0 100%; min-width: 0; color: var(--white); background: var(--navy); box-shadow: none; }
.fleet-panel .panel-stats span { color: #b8cbd7; }
.slide-caption { display: flex; gap: .85rem; align-items: center; margin-top: .9rem; padding: .2rem .2rem 0; }
.slide-caption > span { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 12px; color: #fff; background: var(--blue); font-weight: 800; }
.slide-caption strong, .slide-caption small { display: block; }
.slide-caption small { margin-top: .2rem; color: #b8cbd7; line-height: 1.35; }
.carousel-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }
.carousel-dots { display: flex; gap: .5rem; }
.carousel-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: #a9bdc9; cursor: pointer; transition: width .25s, background .25s; }
.carousel-dot.is-active { width: 30px; background: var(--blue-dark); }
.carousel-arrows { display: flex; gap: .55rem; }
.carousel-arrow { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--navy); background: var(--white); font-size: 1.2rem; cursor: pointer; transition: transform .2s, border-color .2s; }
.carousel-arrow:hover { transform: translateY(-2px); border-color: var(--blue); }
.route-visual, .report-visual, .telemetry-visual { min-height: 340px; position: relative; overflow: hidden; border-radius: 22px; color: var(--navy); background: #eaf3f7; }
.route-visual { background-image: radial-gradient(circle at 25% 30%, #d8ebf4 0 10%, transparent 10.5%), linear-gradient(145deg, transparent 46%, rgba(22,136,201,.16) 47% 49%, transparent 50%); }
.zone { position: absolute; display: grid; place-items: center; width: 104px; height: 104px; border: 2px dashed var(--blue); border-radius: 50%; color: var(--blue-dark); background: rgba(255,255,255,.72); font-size: .75rem; font-weight: 800; }
.zone-a { top: 38px; left: 35px; }
.zone-b { right: 34px; bottom: 35px; }
.route-path { position: absolute; width: 70%; height: 120px; top: 95px; left: 15%; border-bottom: 5px dotted var(--blue); border-radius: 50%; transform: rotate(14deg); }
.moving-unit { position: absolute; top: 48%; left: 49%; width: 42px; height: 42px; display: grid; place-items: center; border: 3px solid white; border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); color: white; background: var(--blue-dark); font-weight: 800; box-shadow: 0 9px 20px rgba(8,42,66,.22); }
.route-summary { position: absolute; top: 42px; right: 38px; padding: 1rem; border-radius: 16px; background: white; box-shadow: var(--shadow); }
.route-summary small, .route-summary strong, .route-summary span { display: block; }
.route-summary small { color: var(--muted); font-size: .6rem; font-weight: 800; }
.route-summary strong { margin: .35rem 0; font-size: 1.35rem; }
.route-summary span { color: #398f54; font-size: .72rem; font-weight: 700; }
.report-visual { padding: 2rem; background: linear-gradient(155deg, #f7fbfd, #dcebf2); }
.report-title small, .report-title strong, .report-title span { display: block; }
.report-title small { color: var(--muted); font-weight: 800; letter-spacing: .08em; }
.report-title strong { margin: .35rem 0; font-size: 2.3rem; }
.report-title span { color: #398f54; font-size: .75rem; font-weight: 700; }
.bars { height: 125px; display: flex; align-items: end; gap: 10px; margin: 1.4rem 0; border-bottom: 1px solid #bed1db; }
.bars i { flex: 1; height: var(--h); border-radius: 7px 7px 0 0; background: linear-gradient(180deg, var(--blue), var(--blue-dark)); }
.alert-row { display: flex; align-items: center; gap: .7rem; padding: .85rem; border-radius: 14px; background: white; box-shadow: 0 10px 24px rgba(8,42,66,.09); }
.alert-row > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #215f33; background: #dff2cb; font-weight: 900; }
.alert-row strong, .alert-row small { display: block; }
.alert-row small { margin-top: .15rem; color: var(--muted); }
.telemetry-visual { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.4rem; align-items: center; padding: 2rem; background: linear-gradient(145deg, #eaf3f7, #d6e8f0); }
.gauge { width: 170px; height: 170px; display: grid; place-content: center; border: 18px solid #b8d3df; border-top-color: var(--blue); border-right-color: var(--blue-dark); border-radius: 50%; text-align: center; background: white; box-shadow: var(--shadow); }
.gauge span { font-size: 2.5rem; font-weight: 800; }
.gauge small { color: var(--muted); }
.sensor-list { display: grid; gap: .75rem; }
.sensor-list div { position: relative; overflow: hidden; padding: .9rem; border-radius: 13px; background: white; }
.sensor-list span, .sensor-list strong { position: relative; z-index: 1; display: block; }
.sensor-list span { color: var(--muted); font-size: .7rem; }
.sensor-list strong { margin-top: .2rem; }
.sensor-list i { position: absolute; inset: auto 0 0; height: 4px; background: var(--lime); }

.hero-legacy { display: none; }
.hero-showcase { padding: 1.25rem 0 4.5rem; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero-wide { width: min(1500px, calc(100% - 2rem)); }
.idfleet-hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-radius: 32px;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 24px 70px rgba(8,42,66,.22);
}
.idfleet-hero-carousel .hero-slides,
.idfleet-hero-carousel .carousel-slide { position: absolute; inset: 0; }
.idfleet-hero-carousel .carousel-slide {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  opacity: 0;
  visibility: hidden;
  background-image: linear-gradient(90deg, rgba(5,27,43,.96) 0%, rgba(5,27,43,.79) 43%, rgba(5,27,43,.18) 76%), var(--slide-image);
  background-position: center;
  background-size: cover;
  transition: opacity .65s ease, visibility .65s ease;
}
.idfleet-hero-carousel .carousel-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide-copy {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(59%, 800px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 6rem);
}
.hero-slide-copy .eyebrow { margin-bottom: 1.2rem; color: #62c5f4; }
.hero-slide-copy h1,
.hero-slide-copy h2 { margin: 0 0 1.2rem; color: #fff; font-size: clamp(2.7rem, 5vw, 5rem); line-height: .98; }
.hero-slide-copy > p:not(.eyebrow) { max-width: 670px; margin: 0; color: rgba(255,255,255,.86); font-size: clamp(1rem, 1.45vw, 1.18rem); line-height: 1.7; }
.hero-slide-copy .hero-actions { margin-top: 2rem; align-items: center; }
.hero-text-link { display: inline-flex; gap: .45rem; padding: .7rem .2rem; border-bottom: 1px solid rgba(255,255,255,.5); color: #fff; font-weight: 800; }
.idfleet-hero-carousel .carousel-controls { position: absolute; z-index: 3; left: 2.1rem; right: 2.1rem; bottom: 1.5rem; justify-content: flex-start; gap: .8rem; margin: 0; }
.idfleet-hero-carousel .carousel-arrow { color: #fff; border-color: rgba(255,255,255,.38); background: rgba(5,27,43,.48); }
.idfleet-hero-carousel .carousel-arrow:hover { color: #fff; border-color: var(--blue); background: var(--blue); }
.idfleet-hero-carousel .carousel-dot { background: rgba(255,255,255,.48); }
.idfleet-hero-carousel .carousel-dot.is-active { background: #fff; }

@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .nav {
    position: absolute; top: calc(100% + .6rem); left: 0; right: 0; display: none;
    flex-direction: column; align-items: flex-start; padding: 1rem; border: 1px solid var(--line);
    border-radius: 22px; background: rgba(255,255,255,.98); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: .6rem .35rem; }
  .menu-toggle { display: block; }
  .cta-strip-inner { flex-direction: column; align-items: flex-start; }
  .idfleet-hero-carousel { min-height: 610px; }
  .hero-slide-copy { width: 76%; }
}

@media (max-width: 640px) {
  .topbar-inner { padding: .7rem 0; gap: .45rem 1rem; font-size: .78rem; }
  .nav-wrap { min-height: 72px; }
  .brand-logo { width: 145px; height: 48px; }
  .hero { padding: 3.5rem 0; }
  .hero-metrics, .services-grid, .technology-grid { grid-template-columns: 1fr; }
  .map { min-height: 300px; }
  .vehicle-card { left: 22%; }
  .route-visual, .report-visual, .telemetry-visual { min-height: 300px; }
  .telemetry-visual { grid-template-columns: 1fr; padding: 1rem; }
  .gauge { width: 130px; height: 130px; margin: 0 auto; border-width: 14px; }
  .gauge span { font-size: 2rem; }
  .route-summary { top: 22px; right: 18px; }
  .section { padding: 4rem 0; }
  .panel-stats { gap: .35rem; }
  .panel-stats div { padding: .65rem; }
  .hero-showcase { padding-top: .75rem; }
  .idfleet-hero-carousel { min-height: 640px; border-radius: 24px; }
  .idfleet-hero-carousel .carousel-slide { background-position: 68% center; background-image: linear-gradient(90deg, rgba(5,27,43,.96), rgba(5,27,43,.62)), var(--slide-image); }
  .hero-slide-copy { width: 100%; padding: 2.2rem 1.4rem 6rem; }
  .hero-slide-copy h1, .hero-slide-copy h2 { font-size: clamp(2.25rem, 12vw, 3.5rem); }
  .idfleet-hero-carousel .carousel-controls { left: 1.4rem; right: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
