.metrica {
  background: url('../img/FondoMetrica.jpg') no-repeat center center / cover;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  color: white;
}

.metrica-overlay {
  width: 100%;
  height: 100%;
  background-color: rgba(9, 40, 58, 0.3);
  position: relative;
  padding: 260px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Etiquetas */
.top-label {
  position: absolute;
  color: #fff;
  font-weight: bold;
  font-size: 1.6em;
  text-transform: uppercase;
}

.direccion {
  top: 180px;
  left: 32%;
}

.consultoria {
  top: 220px;
  left: 45%;
}

.auditoria {
  top: 360px;
  right: 7%;
}

/* Logo Métrica más grande */
.logo-metrica {
  margin-top: 300px;
  margin-left: 30px;
}

.logo-metrica img {
  width: 680px;
  height: auto;
	padding-bottom: 300px;
}



/* Footer pegado abajo */
.metrica-leyenda {
  margin-top: auto;
  width: 100%;
  padding: 20px 20px;
  background-color: rgba(0, 0, 0, 0.4);
  text-align: center;
}

.metrica-leyenda p {
  color: #fff;
  font-size: 1.2em;
  font-weight: 300;
  margin: 0;
}











.metrica-direccion {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  min-height: 100vh;
}

/* Lado izquierdo */
.direccion-left {
  flex: 1 1 60%;
  background: url('../img/FondoMetrica2.jpg') no-repeat center center / cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.direccion-overlay {
  background-color: rgba(9, 40, 58, 0.7);
  padding: 60px 40px;
  width: 100%;
}

.direccion-overlay h2 {
  color: white;
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 30px;
}

.bloque {
  margin-bottom: 20px;
  padding: 20px 25px;
  color: white;
  font-size: 1.1em;
  font-weight: bold;
}

.bloque-m1 {
  background-color: rgba(150, 170, 50, 0.85); /* verde-oliva */
}

.bloque-m2 {
  background-color: rgba(180, 30, 30, 0.85); /* rojo */
}

.bloque-m3 {
  background-color: rgba(40, 130, 70, 0.85); /* verde */
}

/* Lado derecho */
.direccion-right {
  flex: 1 1 40%;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  border-left: 8px solid #b70000;
}

.logo-direccion {
  width: 240px;
  margin-bottom: 20px;
}

.subtitulo-direccion {
  color: #b70000;
  font-size: 1.4em;
  font-weight: bold;
}








@media (max-width: 768px) {
  .metrica-overlay {
    padding: 160px 20px;
  }

  .top-label {
    font-size: 1.1em;
    position: static;
    margin: 10px 0;
  }

  .logo-metrica {
    margin: 40px auto;
    padding-bottom: 0;
    text-align: center;
  }

  .logo-metrica img {
    width: 90%;
    max-width: 300px;
  }

  .metrica-leyenda {
    font-size: 1em;
  }

  .metrica-direccion {
    flex-direction: column;
  }

  .direccion-left,
  .direccion-right {
    flex: 1 1 100%;
    padding: 30px 20px;
  }

  .direccion-overlay h2 {
    font-size: 1.1em;
  }

  .bloque {
    font-size: 1em;
    padding: 15px;
  }

  .logo-direccion {
    width: 200px;
  }

  .subtitulo-direccion {
    font-size: 1.2em;
  }
}
