/* ==============================================
   GENERAL
================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
}

html {
  font-size: 102%; /* +2% tamaño de letra */
}

body {
  line-height: 1.6;
  background: #fff;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==============================================
   HEADER
================================================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

header .container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.logo img {
  height: 120px;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav a {
  font-weight: 500;
  padding: 5px 10px;
  transition: 0.3s;
}

nav a:hover {
  color: #5eb6ff;
}

/* ==============================================
   HERO (Sección principal con fondo)
================================================= */
.hero {
  margin-top: 90px; /* Altura del header */
  height: 500px;
  background: url('img/fondo.png') no-repeat right center / cover, #eaf6fd;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  padding-left: 8%;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #000;
}

.hero p {
  font-size: 2rem;
  color: #1f4e74;
  font-weight: 500;
  margin-top: 10px;
}

/* ==============================================
   MISIÓN, VISIÓN Y VALORES
================================================= */
.mvv {
  padding: 100px 20px 80px 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 80px;
}

.caja {
  display: flex;
  justify-content: center;
}

.caja .contenido {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  width: 100%;
  background: #737373;
  border-radius: 15px;
  overflow: hidden;
  padding: 40px;
  gap: 40px;
}

.caja img {
  width: 150px;
  height: auto;
}

.caja .texto {
  flex: 1;
  color: #fff;
  font-size: 16px;
  line-height: 1.7;
}

/* Variaciones */
.caja-vision .contenido {
  flex-direction: row-reverse;
  background: #7b7777;
}

.caja-valores .contenido {
  background: #a59f9f;
}

/* ==============================================
   CONSULTORÍA
================================================= */
.consultoria {
  margin-bottom: 60px;
  background: #b8e5fa;
  padding: 40px 20px;
  text-align: center;
}

.consultoria h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-weight: 700;
}

.servicios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.servicio {
  width: 160px;
  text-align: center;
  transition: 0.3s;
}

.servicio img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.servicio span {
  display: block;
  margin-top: 10px;
  font-weight: 500;
  transition: 0.3s;
}

.servicio:hover span {
  color: #007bff;
  font-weight: 600;
}

/* ==============================================
   FOOTER
================================================= */
footer {
  position: relative;
  background-color: #6f6f6f;
  color: white;
  padding: 50px 0;
  text-align: left;
  overflow: hidden;
}

/* Imagen del lado izquierdo */
footer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-image: url("img/hexa.png"); /* cambia el nombre si tu archivo tiene otro */
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  width: 350px;   /* agranda la imagen */
  height: 900px;  /* más alta */
  opacity: 0.25;
  z-index: 0;
}

/* Imagen del lado derecho */
footer::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background-image: url("img/hexdos.png"); /* cambia el nombre si tu archivo tiene otro */
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  width: 350px;   /* agranda la imagen */
  height: 900px;  /* más alta */
  opacity: 0.25;
  z-index: 0;
}

/* Contenido del footer arriba de las imágenes */
footer .footer-content {
  position: relative;
  z-index: 1;
}
.footer-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 0 100px;
}

.footer-container .info {
  flex: 1;
}

.footer-container .info p {
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.footer-container img {
  height: 30px;
}

.logo-footer img {
  height: 180px;
}

/* ==============================================
   RESPONSIVE (Tablet y Móvil)
================================================= */

/* --- TABLET --- */
@media (max-width: 1024px) {
  .hero {
    height: 400px;
    background-position: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.5rem;
  }

  .logo img {
    height: 90px;
  }

  .caja .contenido {
    flex-direction: column;
    padding: 30px;
  }

  .caja img {
    width: 120px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .logo-footer img {
    margin-left: 0;
    height: 150px;
  }
}

/* --- MÓVIL --- */
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  nav {
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    display: none;
    box-shadow: 0 5px 5px rgba(0,0,0,0.1);
  }

  nav ul {
    flex-direction: column;
    padding: 10px 20px;
    gap: 10px;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    height: 350px;
    background-size: cover;
    text-align: center;
    justify-content: center;
    padding: 0 20px;
  }

  .hero .overlay {
    padding-left: 0;
    justify-content: center;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .mvv {
    padding: 60px 15px;
  }

  .caja .contenido {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 25px;
  }

  .caja img {
    width: 100px;
  }

  .consultoria h2 {
    font-size: 1.5rem;
  }

  .servicio {
    width: 130px;
  }

 footer::before,
  footer::after {
    width: 100px;   /* más pequeños */
    height: 300px;
    opacity: 0.25;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
  }

  .footer-container .info p {
    justify-content: center;
  }

  .logo-footer img {
    margin: 20px 0;
    height: 140px;
  }
}