/* Evitar margen y padding por defecto */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
}

/* HERO CON IMAGEN */
.nosotros-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 300px;
  overflow: hidden;
  display: flex;

  /* 👇 Aquí pones la imagen como fondo */
  background-image: url("../img/nosotros/nosotros.png");
  background-size: cover;      /* La imagen cubre sin deformarse */
  background-position: center; /* Centrada */
  background-repeat: no-repeat;
}

.nosotros-titulo {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  padding: 15px 40px;
  display: flex;
  justify-content: center; /* Centra el título horizontalmente */
}

.nosotros-titulo h1 {
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  margin: 0;
  text-align: center;
}

.nosotros-titulo h1 {
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  margin: 0;
  text-align: center;
}

/* INFORMACIÓN GENERAL */
.nosotros-info {
  display: flex;
  flex-wrap: wrap;
  padding: 75px 40px 40px;
  gap: 40px;
  background-color: #f9f9f9;
}

.nosotros-texto {
  flex: 1;
  min-width: 300px;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

.nosotros-texto p {
  margin-bottom: 20px;
  margin-top: 50px;
}

.nosotros-imagen-lateral {
  flex: 1;
  min-width: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nosotros-imagen-lateral img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.nosotros-frase {
  background-color: #f9f9f9; /* Gris claro */
  padding: 25px 10px; /* menor espacio */
  margin: 0; /* sin separación con otros elementos */
  text-align: center;
  font-weight: bold;
  font-size: 30px;
  color: #000;
  line-height: 1.5;
}

/* ===== MISIÓN, VISIÓN Y VALORES ===== */

.mision-vision-valores {
  background-color: #111;
  color: #fff;
  padding: 80px 20px;
}

.valores-listas {
  display: flex;
  gap: 60px; /* Espacio entre columnas */
  flex-wrap: wrap; /* Opcional para responsividad */
}

.valores-listas ul {
  list-style-type: disc;
  padding-left: 20px;
}

.mvv-titulo {
  text-align: center;
  margin-bottom: 5px;
}

.mvv-titulo h2 {
  font-size: 40px;
  font-weight: bold;
  line-height: 1.2;
  margin: 0;
}

.mvv-contenido {
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 100px;
}

.mvv-box {
  border: 2px solid #fff;
  padding: 30px;
  position: relative;
  left: 20px;
}

/* otra opción del mvv-box centrado
.mvv-box {
  border: 2px solid #fff;
  padding: 30px;
  position: relative; 
  display: flex;    
  flex-direction: column;   
  align-items: center;      
  text-align: center;       
}*/


.mvv-box h3 {
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: bold;
}

.mvv-box h4 {
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: bold;
  text-align: right;
}

.mvv-box p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.mvv-box ul {
  padding-left: 20px;
  list-style-type: disc;
}

.mvv-box ul li {
  margin-bottom: 10px;
}

.left {
  text-align: left;
  margin-right: 250px; /* Ajuste para alinear a la izquierda */
  margin-left: 0;
}

.right {
  text-align: right;
  margin-left: 300px; /* Ajuste para alinear a la derecha */
  margin-right: 0;
}

/* ===== Ajuste para íconos decorativos ===== */

/* Estilo base de cada bloque */
.mvv-item {
  position: relative;
  padding: 20px;
  font-size: 18px;
  background: #111; /* fondo oscuro (ajústalo al diseño) */
  color: #fff;
  margin-bottom: 20px;
  border-radius: 8px;
}

.mvv-vision {
  position: relative; /* Importante para que los pseudo-elementos se posicionen bien */
  top: 5px;
}

/* Ícono a la izquierda (Vision) */
.mvv-mision{
  position: relative; /* base para posicionar ::before y ::after */
  bottom: 20px;
}


.mvv-valores {
  position: relative; /* base para posicionar ::before y ::after */
  top: 30px;
}

/* Fondo negro */
.mvv-mision::after,
.mvv-valores::after {
  content: "";
  position: absolute;
  top: 15px;
  right: 20px;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background-color: #111;  /* cuadrado de fondo */
  z-index: 1; /* detrás */
}

.mvv-vision::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 20px;   /* 👈 ahora a la izquierda */
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background-color: #111;
  z-index: 1;
}

/* Imagen encima */
.mvv-mision::before,
.mvv-valores::before {
  content: "";
  position: absolute;
  top: 15px;
  right: 20px;
  transform: translateY(-50%);
  width: 75px; /* Ancho */
  height: 80px; /* Alto */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2; /* encima */
}

.mvv-vision::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 20px;   /* 👈 ahora a la izquierda */
  transform: translateY(-50%);
  width: 75px;
  height: 80px;
  background: url("../img/nosotros/nosotros/vsion.svg") no-repeat center/contain;
  z-index: 2;
}

/* Imagen distinta para cada uno */
.mvv-mision::before {
  background-image: url("../img/nosotros/nosotros/Mision.svg");
}

.mvv-valores::before {
  background-image: url("../img/nosotros/nosotros/Valores.svg");
}

/* Conoce a nuestro equipo */
/* Sistema grid de 12 columnas */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
  justify-content: center;
}

[class*="col-"] {
  padding: 10px;
  box-sizing: border-box;
}

/* Tamaños responsivos */
.col-12 { width: 100%; }
@media (min-width: 768px) {
  .col-md-4 { width: 33.333%; }
}
@media (min-width: 992px) {
  .col-lg-3 { width: 25%; }
}

/* Estilos sección */
.equipo {
  background-color: #111;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.equipo h2 {
  font-size: 3rem;
  margin-bottom: 40px;
  letter-spacing: 2px;
}

/* Estilos de la tarjeta miembro */
.miembro {
  background-color: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  transition: transform 0.3s;
  
}

.miembro:hover {
  transform: translateY(-5px);
}

.miembro .foto img {
  width: 100%;
  height: auto;
  display: block;
}

.miembro .info {
  width: 100%;
  background: linear-gradient(to top, #1a2a4d, transparent);
  color: #fff;
  padding: 12px 8px;
  text-align: center;
}

.miembro .nombre {
  font-weight: bold;
  margin: 0;
}

.miembro .cargo {
  font-size: 0.9rem;
  margin: 0;
}


/* Responsive */
@media (max-width: 768px) {
  .mvv-titulo {
    position: static;
    text-align: center;
    margin-bottom: 5px;
  }

  .mvv-contenido {
    padding-top: 0;
  }
}

.testimonial-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.testimonial-img-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #ccc;
}

.testimonial-img-small {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #aaa;
}

.testimonial-card {
  background-color: #2c2c2c;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.testimonial-card p {
  margin-top: 10px;
  color: #fff;
  font-size: 14px;
}

/* Responsive para centrar columnas */
@media (max-width: 768px) {
  .testimonial-card {
    margin-bottom: 20px;
  }
}

.mvv-box-dark {
  position: relative;
  background-color: #111; /* color de fondo oscuro */
  border: 2px solid #fff;
  padding: 30px;
  color: #fff;
}

/* Línea blanca con efecto oscuro encima */
.mvv-box-dark::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 20px;
  right: 20px;
  height: 2px;
  background-color: #fff;
  z-index: 1;
}

/* Oscurecimiento parcial sobre la línea */
.mvv-box-dark::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 12px;
  background-color: #111;
  z-index: 2;
  pointer-events: none;
  clip-path: polygon(0 0, 20px 0, 20px 100%, calc(100% - 20px) 100%, calc(100% - 20px) 0, 100% 0, 100% 100%, 0 100%);
}

.partner-logo {
  border: 2px dashed #ccc;
  padding: 20px;
  height: 100px;
  background-color: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  border-radius: 8px;
}

.partner-logo img {
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.partner-logo:hover {
  transform: scale(1.05);
}

.partner-logo:hover img {
  filter: none;
}

/* Sistema de columnas */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}

[class*="col-"] {
  padding: 10px;
  box-sizing: border-box;
}

.col-4 {
  width: 33.33%;
}

.col-md-6 {
  width: 50%;
}

.col-sm-12 {
  width: 100%;
}

/* Media queries para que el diseño sea responsive */
@media (max-width: 992px) {
  .col-4 {
    width: 50%;
  }
}

@media (max-width: 768px) {
  .col-4,
  .col-md-6 {
    width: 100%;
  }
}

/* Estructura base */
.contenedor {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

section.empresas {
  padding: 40px 20px;
  background-color: #fff; /* opcional para aislar visualmente */
  margin-top: 0; /* asegúrate que no empuje el header */
  position: relative;
  z-index: 1;
}

section.empresas .fila {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-between;
}

section.empresas .col-4 {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
}

section.empresas .col-8 {
  flex: 0 0 66.6666%;
  max-width: 66.6666%;
}

.fila {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch; /* IMPORTANTE: que ambos lados estén parejos */
  gap: 20px;
  margin: 0;
}

.col-4,
.col-8 {
  box-sizing: border-box;
}

/* Sistema de 12 columnas */
.col-4 {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
}

.col-8 {
  flex: 0 0 66.6666%;
  max-width: 66.6666%;
}

/* Estilo del texto */
.texto-empresas {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centra verticalmente */
}

.texto-empresas h2 {
  font-size: 27px;
  font-weight: bold;
  margin-bottom: 20px;
}

.texto-empresas p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Estilo de la grilla de logos */
.grid-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: center;
}


.logon {
  width: 100%;
  aspect-ratio: 1 / 0.6; /* Más alto que antes */
  max-height: 180px;     /* Aumentamos el tamaño máximo */
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  /*border-radius: 8px;*/
  overflow: hidden;
  padding: 10px; /* Para que las imágenes no peguen a los bordes */
}

.logon img {
  height: 120px;    /* altura fija */
  width: auto;      /* mantiene proporción */
  object-fit: contain;
}


.mvv-contenido {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
  .col-4, .col-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  @media (max-width: 768px) {
  .mvv-box {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nosotros-info {
    flex-direction: column;
    padding: 40px 20px;
  }
}

  .grid-logos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-logos {
    grid-template-columns: 1fr;
  }
}





