:root {
  --azul: #0a4c9a;
  --azul-medio: #0d5db8;
  --azul-oscuro: #082d63;
  --azul-profundo: #061f47;

  --dorado: #f2b413;
  --rojo: #c81d25;
  --verde: #098a4f;

  --gris-texto: #53647d;
  --gris-suave: #f5f8fc;
  --gris-borde: #dce4ee;
  --gris-claro: #eef2f6;

  --blanco: #ffffff;

  --sombra-suave: 0 12px 28px rgba(8, 45, 99, 0.08);
  --sombra-boton: 0 10px 24px rgba(8, 45, 99, 0.20);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: var(--azul-oscuro);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

.contenedor {
  width: min(1460px, 92%);
  margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.encabezado {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #edf1f6;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.encabezado-contenido {
  min-height: 92px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 38px;
}

.marca {
  display: flex;
  align-items: center;
  width: 470px;
  height: 82px;
  overflow: hidden;
}

.marca img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.navegacion {
  display: flex;
  align-items: center;
  gap: 36px;
  font-weight: 700;
  color: var(--azul-profundo);
}

.navegacion a {
  position: relative;
  padding: 34px 0 30px;
}

.navegacion a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 3px;
  border-radius: 4px;
  background: var(--azul-medio);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.navegacion a:hover::after,
.navegacion a.activo::after {
  transform: scaleX(1);
}

.boton-acceso {
  background: linear-gradient(135deg, var(--azul-medio), var(--azul-oscuro));
  color: white;
  padding: 16px 28px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: var(--sombra-boton);
  transition: transform .2s ease, box-shadow .2s ease;
}

.boton-acceso:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(8, 45, 99, 0.24);
}


/* =========================================================
   HERO
========================================================= */

.hero {
  background:
    radial-gradient(circle at 10% 30%, rgba(242, 180, 19, 0.08), transparent 25%),
    radial-gradient(circle at 34% 55%, rgba(200, 29, 37, 0.06), transparent 22%),
    linear-gradient(90deg, #ffffff 0%, #fbfdff 48%, #edf4fb 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  min-height: 500px;
  align-items: stretch;
}

.hero-texto {
  padding: 48px 48px 46px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.preTitulo {
  margin: 0 0 16px;
  color: #536a88;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 6px;
}

.hero h1 {
  margin: 0;
  color: var(--azul-profundo);
  font-size: clamp(58px, 5vw, 86px);
  line-height: 0.94;
  letter-spacing: -3px;
  font-weight: 800;
}

.hero h1 span {
  display: block;
}

.slogan {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.slogan span {
  width: 72px;
  min-width: 72px;
  height: 5px;
  border-radius: 10px;
  background: var(--dorado);
}

.slogan p {
  margin: 0;
  color: var(--azul-oscuro);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-descripcion {
  max-width: 600px;
  margin: 24px 0 26px;
  color: var(--gris-texto);
  font-size: 19px;
  line-height: 1.5;
}

.boton-principal {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 17px 30px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--azul-medio), var(--azul-oscuro));
  box-shadow: var(--sombra-boton);
  font-size: 18px;
  font-weight: 700;
  transition: transform .2s ease;
}

.boton-principal:hover {
  transform: translateY(-2px);
}

.icono-cuadricula {
  font-size: 25px;
}

.hero-imagen {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-bottom-left-radius: 68px;
}

.hero-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-imagen::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 43%;
  height: 100%;
  background:
    linear-gradient(
      142deg,
      transparent 23%,
      rgba(9, 138, 79, 0.92) 23% 27%,
      rgba(242, 180, 19, 0.96) 27% 31%,
      rgba(200, 29, 37, 0.92) 31% 36%,
      rgba(8, 45, 99, 0.95) 36% 100%
    );
  pointer-events: none;
}

.mensaje-energia {
  position: absolute;
  right: 45px;
  bottom: 38px;
  z-index: 3;
  color: white;
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1.55;
  font-size: 16px;
}

.mensaje-energia p {
  margin: 0;
}

.mensaje-energia span {
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 4px;
  margin-top: 12px;
  background: var(--dorado);
}


/* =========================================================
   SISTEMAS
========================================================= */

.sistemas {
  padding: 28px 0 24px;
}

.titulo-seccion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 22px;
}

.titulo-seccion > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.linea-dorada {
  width: 32px;
  height: 4px;
  border-radius: 8px;
  background: var(--dorado);
}

.titulo-seccion h2 {
  margin: 0;
  color: var(--azul-profundo);
  font-size: 15px;
  letter-spacing: 5px;
}

.titulo-seccion p {
  margin: 0;
  color: #77859a;
  font-size: 15px;
}

.grid-sistemas {
  display: grid;
  gap: 20px;
}

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

.grid-sistemas.proximos {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 18px;
}

.tarjeta-sistema {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 166px;
  padding: 20px;
  border: 1px solid var(--gris-borde);
  border-radius: 14px;
  background: var(--blanco);
  box-shadow: var(--sombra-suave);
}

.tarjeta-sistema.activo::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: var(--color-sistema, var(--azul));
}

.tarjeta-cabecera {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tarjeta-icono {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: var(--fondo-icono, #eef2f6);
}

.tarjeta-sistema h3 {
  margin: 0 0 5px;
  color: var(--azul-profundo);
  font-size: 19px;
  line-height: 1.1;
}

.tarjeta-sistema p {
  margin: 0;
  color: var(--gris-texto);
  font-size: 15px;
  line-height: 1.35;
}

.tarjeta-boton {
  margin-top: auto;
  padding-top: 18px;
}

.tarjeta-boton a {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--azul-medio), var(--azul-oscuro));
  color: white;
  font-weight: 700;
  transition: transform .2s ease;
}

.tarjeta-boton a:hover {
  transform: translateY(-2px);
}

.tarjeta-sistema.proximo {
  min-height: 140px;
  background: #fbfcfe;
  box-shadow: none;
}

.tarjeta-sistema.proximo .tarjeta-icono {
  filter: grayscale(1);
  opacity: .72;
}

.estado-proximo {
  margin-top: auto;
  padding-top: 14px;
}

.estado-proximo span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 18px;
  border-radius: 999px;
  background: #e8edf3;
  color: #6f7c8c;
  font-size: 13px;
}


/* =========================================================
   BENEFICIOS
========================================================= */

.beneficios {
  border-top: 1px solid #e5ebf2;
  background: #f3f6fa;
  padding: 14px 0;
}

.grid-beneficios {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.grid-beneficios article {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 22px;
  border-right: 1px solid #d7e0ea;
}

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

.beneficio-icono {
  min-width: 34px;
  color: var(--azul);
  font-size: 27px;
  font-weight: 900;
}

.grid-beneficios h3 {
  margin: 0 0 4px;
  color: var(--azul-profundo);
  font-size: 16px;
}

.grid-beneficios p {
  margin: 0;
  color: var(--gris-texto);
  font-size: 12.5px;
  line-height: 1.25;
}


/* =========================================================
   FOOTER
========================================================= */

.pie {
  position: relative;
  background: var(--azul-profundo);
  color: white;
  overflow: hidden;
}

.pie-contenido {
  min-height: 104px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px 0;
}

.pie-marca {
  width: 260px;
  height: 70px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.pie-marca img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  opacity: .96;
}

.pie-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  font-size: 13px;
}

.pie-nav a {
  opacity: .82;
}

.pie-nav a:hover {
  opacity: 1;
}

.pie-derechos {
  display: flex;
  flex-direction: column;
  justify-self: end;
  text-align: right;
  font-size: 12px;
  line-height: 1.4;
}

.pie-derechos strong {
  font-size: 13px;
}

.pie-derechos small {
  opacity: .7;
}

.franja-colores {
  height: 7px;
  background:
    linear-gradient(
      90deg,
      var(--azul) 0 68%,
      var(--verde) 68% 78%,
      var(--dorado) 78% 88%,
      var(--rojo) 88% 100%
    );
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1450px) {
  .grid-sistemas.proximos {
    grid-template-columns: repeat(4, 1fr);
  }

  .marca {
    width: 410px;
  }
}

@media (max-width: 1150px) {
  .encabezado-contenido {
    grid-template-columns: 1fr auto;
  }

  .navegacion {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-texto {
    padding: 44px 0;
  }

  .hero-imagen {
    min-height: 360px;
    border-bottom-left-radius: 0;
  }

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

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

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

  .grid-beneficios article:nth-child(2) {
    border-right: 0;
  }

  .pie-contenido {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pie-marca {
    margin: auto;
  }

  .pie-derechos {
    justify-self: center;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .contenedor {
    width: min(94%, 100%);
  }

  .encabezado-contenido {
    min-height: 74px;
  }

  .marca {
    width: 240px;
    height: 62px;
  }

  .boton-acceso {
    display: none;
  }

  .hero-texto {
    padding: 36px 0;
  }

  .preTitulo {
    font-size: 12px;
    letter-spacing: 3px;
  }

  .hero h1 {
    font-size: 50px;
    letter-spacing: -2px;
  }

  .slogan {
    align-items: flex-start;
  }

  .slogan span {
    width: 50px;
    min-width: 50px;
  }

  .slogan p {
    font-size: 17px;
  }

  .hero-descripcion {
    font-size: 16px;
  }

  .boton-principal {
    font-size: 16px;
    padding: 15px 22px;
  }

  .hero-imagen {
    min-height: 300px;
  }

  .hero-imagen::after {
    width: 52%;
  }

  .mensaje-energia {
    right: 18px;
    bottom: 20px;
    font-size: 12px;
    letter-spacing: 3px;
  }

  .titulo-seccion {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid-sistemas.activos,
  .grid-sistemas.proximos,
  .grid-beneficios {
    grid-template-columns: 1fr;
  }

  .grid-beneficios article {
    border-right: 0;
    border-bottom: 1px solid #d7e0ea;
  }

  .grid-beneficios article:last-child {
    border-bottom: 0;
  }

  .pie-nav {
    gap: 18px;
  }

  .pie-marca {
    width: 220px;
  }
}
