:root {
  --navy: #052b4c;
  --deep: #021b2f;
  --blue: #0b5f99;
  --accent: #c64a32;
  --ink: #172433;
  --muted: #637282;
  --soft: #f4f7f9;
  --line: #dce4ea;
  --white: #ffffff;
  --whatsapp: #25d366;
  --shadow-sm: 0 8px 24px rgba(2, 27, 47, 0.08);
  --shadow-lg: 0 22px 60px rgba(2, 27, 47, 0.14);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: 16px/1.65 Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1140px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 96px 0; }
.soft { background: var(--soft); }
.dark { color: #d5e0e9; background: var(--deep); }
.section-head { max-width: 720px; margin-bottom: 46px; }

h1, h2, h3 { margin-top: 0; color: var(--deep); line-height: 1.12; }
h1 { font-size: clamp(2.75rem, 6vw, 5rem); letter-spacing: -0.048em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.035em; }
h3 { font-size: 1.22rem; }
p { margin-top: 0; }
.lead { color: var(--muted); font-size: clamp(1.06rem, 2vw, 1.25rem); }
.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(5, 43, 76, 0.1);
  box-shadow: 0 4px 20px rgba(2, 27, 47, 0.04);
  backdrop-filter: blur(14px);
}
.header-in { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { max-width: 228px; height: 66px; display: flex; align-items: center; overflow: hidden; }
.brand img {
  width: auto;
  max-width: 228px;
  height: 52px;
  object-fit: contain;
  object-position: left center;
}
.brand-text strong, .brand-text span { display: block; line-height: 1; }
.brand-text strong { color: var(--navy); font-size: 1.2rem; }
.brand-text span { margin-top: 5px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 27px; }
.nav a:not(.btn) { position: relative; color: #314454; font-size: 0.94rem; font-weight: 800; }
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 180ms ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--navy); }
.toggle {
  width: 46px;
  height: 46px;
  display: none;
  color: var(--navy);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 1.45rem;
  cursor: pointer;
}

.btn {
  min-height: 51px;
  padding: 13px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 10px;
  font-weight: 900;
  line-height: 1.1;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(0.92); box-shadow: 0 10px 25px rgba(198, 74, 50, 0.28); }
.btn-outline { color: var(--white); background: transparent; border-color: rgba(255, 255, 255, 0.72); }
.btn-outline:hover { color: var(--navy); background: var(--white); border-color: var(--white); filter: none; }
.btn-light { color: var(--navy); background: var(--white); border-color: var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 13px; }

.hero {
  position: relative;
  min-height: 700px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background-color: var(--deep);
  background-image:
    linear-gradient(90deg, rgba(2, 27, 47, 0.88) 0%, rgba(2, 27, 47, 0.72) 42%, rgba(2, 27, 47, 0.35) 100%),
    url("assets/hero-mantenimiento.jpg"),
    radial-gradient(circle at 85% 30%, #376f98, var(--navy) 60%, var(--deep));
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -280px;
  width: 680px;
  height: 680px;
  border: 90px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
  pointer-events: none;
}
.hero-in { position: relative; z-index: 1; max-width: 850px; padding: 118px 0; }
.hero h1, .page-hero h1 { color: var(--white); }
.hero h1 { max-width: 800px; margin-bottom: 22px; }
.hero .lead, .page-hero .lead { max-width: 740px; color: rgba(255, 255, 255, 0.84); }
.service-line { margin: 25px 0 32px; color: rgba(255, 255, 255, 0.72); font-weight: 700; }
.page-hero {
  padding: 120px 0 96px;
  color: var(--white);
  background: linear-gradient(118deg, rgba(2, 27, 47, 0.99), rgba(5, 43, 76, 0.91)), radial-gradient(circle at 90% 10%, #5584a4, var(--navy) 58%);
}
.page-hero h1 { max-width: 850px; margin-bottom: 18px; }

.strip { position: relative; z-index: 2; margin-top: -46px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.stat { padding: 29px 31px; border-right: 1px solid var(--line); }
.stat:last-child { border: 0; }
.stat strong { display: block; margin-bottom: 3px; color: var(--navy); }
.stat span, .card p, .service p { color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 52px; align-items: center; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 23px; }
.card {
  position: relative;
  padding: 32px 30px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--navy), var(--blue)); }
.card:hover { transform: translateY(-6px); border-color: rgba(11, 95, 153, 0.35); box-shadow: var(--shadow-lg); }
.num, .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 21px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: #e7f0f6;
  border: 1px solid #cbdde9;
  border-radius: 13px;
  font-weight: 900;
}
.link { color: var(--blue); font-weight: 900; }
.link:hover { color: var(--accent); }

.feature {
  position: relative;
  padding: clamp(38px, 6vw, 68px);
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(135deg, var(--deep), var(--navy));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
}
.feature::after { content: "B2B"; position: absolute; right: 28px; top: 20px; color: rgba(255, 255, 255, 0.06); font-size: clamp(4rem, 10vw, 8rem); font-weight: 900; line-height: 1; pointer-events: none; }
.feature > * { position: relative; z-index: 1; }
.feature h2, .dark h2, .dark h3 { color: var(--white); }
.feature .btn { margin-top: 10px; }
.checks { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 22px; list-style: none; }
.checks li { position: relative; padding-left: 29px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: #7bdba0; font-weight: 900; }

.benefits, .values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 19px; }
.benefit, .value { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow-sm); }
.benefit { border-top: 4px solid var(--blue); }
.benefit strong, .value strong { display: block; margin-bottom: 6px; color: var(--navy); }

.service {
  position: relative;
  margin-bottom: 18px;
  padding: 32px;
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 26px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease;
}
.service:hover { transform: translateY(-3px); border-color: rgba(11, 95, 153, 0.4); }
.service .icon { width: 60px; height: 60px; margin: 0; font-size: 1.05rem; }
.service h2 { margin-bottom: 8px; font-size: clamp(1.45rem, 3vw, 2rem); }
.service p { max-width: 670px; margin-bottom: 0; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: steps; }
.step { padding: 25px 22px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; }
.step::before { counter-increment: steps; content: "0" counter(steps); display: block; margin-bottom: 16px; color: #80c4ed; font-size: 1.3rem; font-weight: 900; }
.quote { padding: 38px; color: var(--navy); background: #e8f1f7; border-left: 5px solid var(--blue); border-radius: 0 16px 16px 0; font-size: 1.32rem; font-weight: 900; }

.contact { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px; }
.contact-card, .coverage { padding: clamp(30px, 5vw, 48px); border-radius: 20px; }
.contact-card { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.coverage { color: var(--white); background: var(--navy); }
.coverage h3 { color: var(--white); }
.contact-list { margin: 24px 0; padding: 0; list-style: none; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list span { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-list a, .contact-list strong { color: var(--navy); font-size: 1.08rem; }

.cta { padding: 76px 0; background: linear-gradient(135deg, var(--navy), var(--deep)); }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 38px; }
.cta h2 { margin-bottom: 8px; color: var(--white); }
.cta p { margin-bottom: 0; color: rgba(255, 255, 255, 0.84); }
.cta .btn { flex-shrink: 0; color: var(--white); background: var(--accent); border-color: var(--accent); }

.footer { padding: 58px 0 24px; color: rgba(255, 255, 255, 0.68); background: #011522; }
.footer h3 { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.7fr 0.9fr; gap: 40px; padding-bottom: 40px; }
.footer-links { display: grid; gap: 8px; }
.footer a:hover { color: var(--white); }
.copy { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.84rem; }

.wa {
  position: fixed;
  z-index: 60;
  right: 22px;
  bottom: 22px;
  min-height: 56px;
  padding: 0 19px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #062d18;
  background: var(--whatsapp);
  border: 3px solid var(--white);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  font-weight: 900;
  transition: transform 180ms ease, filter 180ms ease;
}
.wa svg { width: 27px; height: 27px; flex: 0 0 27px; fill: currentColor; }
.wa:hover { transform: translateY(-3px); filter: brightness(0.96); }

a:focus-visible, button:focus-visible { outline: 3px solid #f5b642; outline-offset: 3px; }

@media (max-width: 900px) {
  .toggle { display: grid; place-items: center; }
  .nav-wrap { position: absolute; top: 84px; left: 0; width: 100%; padding: 20px; display: none; background: var(--white); box-shadow: 0 18px 35px rgba(2, 27, 47, 0.14); }
  .nav-wrap.open { display: block; }
  .nav { align-items: stretch; flex-direction: column; gap: 0; }
  .nav a { padding: 13px 8px; }
  .nav a:not(.btn)::after { bottom: 5px; }
  .nav .btn { margin-top: 8px; }
  .cards, .benefits, .values { grid-template-columns: repeat(2, 1fr); }
  .grid2, .contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 68px 1fr; }
  .service .btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 28px); }
  .section { padding: 72px 0; }
  .header-in { min-height: 76px; }
  .brand { max-width: 178px; height: 54px; }
  .brand img { width: auto; max-width: 178px; height: 42px; }
  .nav-wrap { top: 76px; }
  .hero { min-height: 650px; }
  .hero { background-position: 58% center; }
  .hero-in { padding: 90px 0 105px; }
  .hero h1 { font-size: clamp(2.55rem, 13vw, 3.5rem); }
  .stats, .cards, .benefits, .values, .steps { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .checks { grid-template-columns: 1fr; }
  .feature::after { font-size: 4rem; }
  .service { padding: 25px 22px; grid-template-columns: 52px 1fr; gap: 18px; }
  .service .icon { width: 50px; height: 50px; }
  .service .btn { width: 100%; }
  .cta-in { align-items: flex-start; flex-direction: column; }
  .cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa { width: 54px; min-height: 54px; padding: 0; justify-content: center; }
  .wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wa svg { width: 28px; height: 28px; flex-basis: 28px; }
}

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