@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&display=swap');

/*Codigo para la caja de quienes somos*/
.custom-box {
    background-color: rgba(0, 0, 0, 0.7); /* fondo semitransparente */
    border-radius: 8px;
    padding: 10px;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    left: 10px;
    text-align: justify;
    max-width: 80%; /* tamaño reducido */
    margin: 0 auto; /* centrar dentro de col */
}

.font-roboto {
  font-family: 'Roboto', sans-serif;
}

.custom-box {
    background-color: rgba(0, 0, 0, 0.7); /* fondo semitransparente */
    border-radius: 8px;
    font-family: 'arial', sans-serif;
    line-height: 1.5;
    max-width: 70%; /* tamaño reducido */
    margin: 0 auto; /* centrar dentro de col */
}

.hero-section {
  position: relative;
  width: 100%;
  color: #fff;
  height: 100vh;
  overflow: hidden;
}

.background-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}


  .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    opacity: 10%;
    z-index: 1;
  }

  .content {
    position: relative;
    z-index: 2;
    font-family: 'arial', sans-serif;
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px;
  }
.content h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
  font-weight: 700; /* Opcional: asegura negrita */
}

  .middle-row {
    margin-top: 60px;
    display: flex;
    justify-content: center;
  }

.top-row {
  display: flex;
  justify-content: space-between;
  gap: 20px; /* ❌ sin opacity */
}

.box {
  background-color: rgba(0, 0, 0, 0.5); /* ✅ solo el fondo tiene opacidad */
  padding: 20px 25px;
  border-radius: 8px;
  max-width: 48%;
  text-align: justify;
  font-size: 1rem;
  line-height: 1.4;
  color: white; /* Asegura que el texto se vea bien */
}

  .middle-row .box.center {
    max-width: 60%;
  }

  /* Para negritas dentro del párrafo */
  .box strong {
    font-weight: 700;
    
  }

  /* Responsive */
  @media(max-width: 768px) {
    .top-row {
      flex-direction: column;
    }
    .box {
      max-width: 100%;
      margin-bottom: 20px;
    }
    .middle-row .box.center {
      max-width: 100%;
    }
  }

  /*Estilos de mision y vision*/
  .image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
  }

  .image-container img {
    width: 100%;
    height: auto;
    display: block;
  }

  .overlay-text {
    position: absolute;
    top: 50%; 
    left: 50%;
    font-family: 'arial', sans-serif;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5); /* fondo semi-transparente para mejor lectura */
    width: 100%;
    height: 100%;
    text-align: justify;
  }

  .overlay-text h2 {
    margin-bottom: 0.8rem;
    font-size: 50px;
    font-family: 'Poppins', sans-serif;
    text-align: center;
  }

    .image-container1 {
    position: relative;
    width: 100%;
    overflow: hidden;
  }

  .image-container1 img {
    width: 100%;
    height: auto;
    display: block;
  }

  .overlay-text1 {
    position: absolute;
    top: 50%; 
    left: 50%;
    font-family: 'arial', sans-serif;
    transform: translate(-50%, -50%);
    color: rgb(248, 247, 247);
    text-align: justify;
    padding: 1rem;
    width: 100%;
    height: 100%;
  }

    .overlay-text1 h2 {
    margin-bottom: 0.8rem;
    font-size: 50px;
    font-family: 'Poppins', sans-serif;
    text-align: right;
    margin: auto;
    text-align: center;
  }

  /*Estilos para los valores*/
   .valores-container {
  padding: 90px 80px;
  background-color: #fff;
  text-align: center;
}

.valores-titulo {
  font-size: 50px;
  color: #000000;
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  margin-bottom: 40px;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 90px;
  max-width: 1100px;
  margin: 0 auto;
}

.valor-item {
  border: 1.5px solid #080808;
  padding: 20px;
  border-radius: 20px;
  position: relative;
  background: #ffffff;
  transition: box-shadow 0.3s;
}

.valor-item:hover {
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

.valor-icono {
  width: 120px;
  height: 120px;
  margin: 0 auto 15px auto;
  margin-bottom: 15px;
}

.valor-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.valor-titulo {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 17px;
  text-transform: uppercase;
  color: #d60303;
}

.toggle-icon {
  font-size: 20px;
  font-weight: bold;
  transition: transform 0.3s;
  color: #da0707;
}

.valor-desc {
  margin-top: 15px;
  font-size: 14px;
  color: #080808;
  text-align: justify;
  display: none;
  transition: max-height 0.3s ease;
}

.valor-item.active .valor-desc {
  display: block;
  
  
}

.valor-item.active .toggle-icon {
  transform: rotate(45deg); /* de + a × */
  color: #e60505;
}


 .mision-vision-section {
    padding: 4rem 1rem;
    background-color: #f8f9fa;
  }

  .mision-vision-section .image-box {
    position: relative;
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
    height: 100%;
  }

  .mision-vision-section img {
    max-width: 200px;
    height: auto;
  }

  .mision-vision-section .text-content h2 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .mision-vision-section .text-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #333;
  }

  @media (max-width: 768px) {
    .mision-vision-section .image-box {
      flex-direction: column;
      text-align: center;
    }

    .mision-vision-section img {
      max-width: 150px;
    }
  }



 .valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  align-items: start; /* <--- Esto evita que se estiren */
}

  .valor-item {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .valor-icono {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
  }

  .valor-header {
    font-weight: bold;
    font-size: 1.2rem;
    color: #e70505;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    user-select: none;
  }

  .toggle-icon {
    font-size: 1.5rem;
    color: #e70505;
    transition: transform 0.3s ease;
  }

  .valor-desc {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    margin-top: 1rem;
    color: #0a0a0a;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .valor-item.active .valor-desc {
    opacity: 1;
    max-height: 500px; /* Ajusta según necesidad */
  }

  .valor-item.active .toggle-icon {
    transform: rotate(45deg);
    color: #c40000;
  }