* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #202020;
  background: #f4f4f4;
  overflow-x: hidden;
}

.header {
  min-height: 82px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid #dddddd;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo img {
  height: 64px;
  display: block;
}

.header-botones {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-login,
.btn-whatsapp,
.btn-rojo,
.btn-verde {
  text-decoration: none;
  border-radius: 5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-login:hover,
.btn-whatsapp:hover,
.btn-rojo:hover,
.btn-verde:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.btn-login {
  color: #111111;
  border: 1px solid #d71920;
  padding: 13px 18px;
  background: #ffffff;
}

.btn-whatsapp,
.btn-verde {
  color: #ffffff;
  background: #119c2f;
  padding: 14px 22px;
}

.btn-rojo {
  color: #ffffff;
  background: #d92727;
  padding: 15px 22px;
}

.whatsapp-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.whatsapp-icon svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.hero {
  min-height: 405px;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.90), rgba(0,0,0,.60), rgba(0,0,0,.15)),
    url("img/portada-camiones.jpg?v=4");
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
  padding: 44px 70px 64px;
}

.hero-contenido {
  max-width: 720px;
  color: #ffffff;
}

.hero h1 {
  font-size: 43px;
  line-height: 1.16;
  letter-spacing: 1.2px;
  margin-bottom: 22px;
  font-weight: 900;
}

.hero h1 span {
  color: #e22525;
}

.hero p {
  font-size: 18px;
  line-height: 1.45;
  margin-bottom: 28px;
  max-width: 690px;
}

.hero-botones {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.fortalezas {
  width: 92%;
  margin: -38px auto 0;
  background: #ffffff;
  border-radius: 8px;
  min-height: 92px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  box-shadow: 0 3px 12px rgba(0,0,0,.18);
  position: relative;
  z-index: 5;
  overflow: hidden;
}

.fortaleza {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  border-right: 1px solid #d4d4d4;
  padding: 18px;
}

.fortaleza:last-child {
  border-right: none;
}

.icono {
  color: #dd2b2b;
  font-size: 34px;
  font-weight: bold;
  line-height: 1;
}

.icono-certificado {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.fortaleza p {
  font-size: 16px;
  line-height: 1.25;
}

.contenido-principal {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 35px;
  padding: 32px 70px 25px;
  background: #f7f7f7;
  border-bottom: 1px solid #d6d6d6;
}

h2 {
  font-size: 26px;
  margin-bottom: 12px;
  color: #2a2a2a;
  font-weight: 800;
}

.quienes {
  border-right: 1px solid #d0d0d0;
  padding-right: 28px;
}

.quienes h3 {
  color: #d71920;
  font-size: 17px;
  margin-bottom: 14px;
}

.quienes p {
  font-size: 16px;
  line-height: 1.45;
  margin-bottom: 8px;
}

.estadisticas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid #cccccc;
  padding-top: 18px;
}

.estadisticas div {
  border-right: 1px solid #cccccc;
  padding: 0 18px;
}

.estadisticas div:last-child {
  border-right: none;
}

.estadisticas strong {
  color: #d71920;
  font-size: 23px;
  display: block;
  margin-bottom: 3px;
}

.estadisticas span {
  font-size: 14px;
}

.programas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 28px;
}

.programa-card {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 10px 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.programa-card img {
  width: 80px;
  height: 54px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.programa-card h4 {
  font-size: 20px;
  margin-bottom: 4px;
}

.programa-card p {
  font-size: 15px;
}

/* SECCIÓN SEO LOCAL */

.seo-local {
  background: #f7f7f7;
  padding: 36px 70px 34px;
  border-bottom: 1px solid #d6d6d6;
}

.seo-local-contenido {
  max-width: 1420px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 34px 38px;
  box-shadow: 0 3px 14px rgba(0,0,0,.08);
  border: 1px solid #e1e1e1;
}

.seo-local h2 {
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #242424;
  max-width: 1050px;
}

.seo-local h2::after {
  content: "";
  display: block;
  width: 88px;
  height: 4px;
  background: #d71920;
  margin-top: 14px;
  border-radius: 3px;
}

.seo-local-contenido > p {
  font-size: 16px;
  line-height: 1.55;
  color: #303030;
  max-width: 1180px;
  margin-bottom: 12px;
}

.seo-local-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.seo-local-card {
  background: #fafafa;
  border: 1px solid #dddddd;
  border-radius: 10px;
  padding: 22px 20px;
  min-height: 170px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  position: relative;
  overflow: hidden;
}

.seo-local-card::before {
  content: "";
  width: 5px;
  height: 100%;
  background: #d71920;
  position: absolute;
  left: 0;
  top: 0;
}

.seo-local-card h3 {
  color: #d71920;
  font-size: 19px;
  margin-bottom: 10px;
  line-height: 1.25;
}

.seo-local-card p {
  font-size: 15px;
  line-height: 1.45;
  color: #333333;
}

.bloques-inferiores {
  display: grid;
  grid-template-columns: 1.1fr 1fr .9fr;
  background: #f7f7f7;
  padding: 20px 70px 24px;
  gap: 28px;
}

.bloque {
  border-right: 1px solid #cccccc;
  padding-right: 28px;
}

.bloque:last-child {
  border-right: none;
}

/* CARRUSEL OBRAS EJECUTADAS */

.carrusel-obras {
  width: 100%;
  height: 255px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #dddddd;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
}

.obra-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.obra-slide.activo {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.obra-slide img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}

.carrusel-puntos {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.punto {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.25);
}

.punto.activo {
  background: #d71920;
  border-color: #ffffff;
}

.iconos-capacidad {
  display: flex;
  justify-content: space-between;
  color: #d71920;
  font-size: 33px;
  margin: 18px 0;
}

.capacidad p {
  text-align: center;
  font-size: 15px;
  line-height: 1.45;
}

.imagen-cobertura {
  width: 100%;
  max-width: 540px;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

footer {
  background: #20272b;
  color: #ffffff;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 22px 70px 14px;
  align-items: center;
  text-align: center;
}

footer div {
  font-size: 16px;
  border-right: 1px solid rgba(255,255,255,.35);
  padding-right: 12px;
}

footer div:nth-child(4) {
  border-right: none;
}

footer p {
  grid-column: 1 / -1;
  font-size: 14px;
  margin-top: 12px;
  color: #e5e5e5;
}

@media (max-width: 1200px) {
  .header {
    flex-wrap: wrap;
    height: auto;
    padding: 16px 24px;
    gap: 15px;
  }

  .header-botones {
    margin-left: auto;
  }

  .contenido-principal,
  .bloques-inferiores {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .quienes {
    border-right: none;
    padding-right: 0;
  }

  .fortalezas {
    grid-template-columns: 1fr 1fr;
  }

  .seo-local {
    padding: 28px;
  }

  .seo-local-contenido {
    padding: 28px;
  }

  .seo-local-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bloque {
    border-right: none;
    border-bottom: 1px solid #cccccc;
    padding-right: 0;
    padding-bottom: 20px;
  }

  .bloque:last-child {
    border-bottom: none;
  }

  .carrusel-obras {
    height: 330px;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .header {
    justify-content: center;
    flex-direction: column;
    padding: 16px 20px;
    gap: 14px;
  }

  .logo img {
    height: 56px;
  }

  .header-botones {
    width: 100%;
    margin-left: 0;
    flex-direction: column;
  }

  .hero {
    padding: 40px 24px 70px;
    min-height: 430px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-botones {
    flex-direction: column;
    width: 100%;
  }

  .btn-login,
  .btn-whatsapp,
  .btn-rojo,
  .btn-verde {
    text-align: center;
    width: 100%;
  }

  .fortalezas,
  .programas-grid,
  .estadisticas,
  footer {
    grid-template-columns: 1fr;
  }

  .fortaleza {
    border-right: none;
    border-bottom: 1px solid #d4d4d4;
  }

  .fortaleza:last-child {
    border-bottom: none;
  }

  .seo-local {
    padding: 24px 18px;
  }

  .seo-local-contenido {
    padding: 24px 20px;
    border-radius: 10px;
  }

  .seo-local h2 {
    font-size: 24px;
  }

  .seo-local-contenido > p {
    font-size: 15px;
  }

  .seo-local-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .seo-local-card {
    min-height: auto;
    padding: 20px 18px;
  }

  .carrusel-obras {
    height: 240px;
  }

  .imagen-cobertura {
    max-width: 100%;
  }
}