/* Sección Valores de la Empresa */
.valores {
  padding: 6rem 0;
  background: white;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  position: relative;
}

.titulo-valores {
  font-size: clamp(2rem, 5vw, 3.125rem);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #c81851;
  position: relative;
  display: inline-block;
  padding-bottom: 0.625rem;
}

.titulo-valores::after {
  content: "";
  width: 3.75rem;
  height: 0.3125rem;
  background: #0d163e;
  display: block;
  margin: 0.625rem auto 0;
  border-radius: 0.3125rem;
}

.descripcion-valores {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 50rem;
  margin: 0.625rem auto 3rem;
  font-style: italic;
}

.valores-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.valor {
  background: #0d163e;
  color: white;
  padding: 2.5rem;
  width: clamp(15rem, 40vw, 20rem);
  border-radius: 0.9375rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.5s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0.625rem 1.25rem rgba(0, 0, 0, 0.1);
  text-align: center;
}

.valor::before {
  content: "";
  position: absolute;
  top: -0.625rem;
  left: 50%;
  transform: translateX(-50%);
  width: 6.25rem;
  height: 0.3125rem;
  background: #c81851;
  border-radius: 0.3125rem;
}

.valor:hover {
  transform: translateY(-0.625rem);
  box-shadow: 0 0.9375rem 1.875rem rgba(0, 0, 0, 0.2);
  background: #c81851;
  color: white;
}

.icono {
  width: 5.625rem;
  height: 5.625rem;
  background: #0d163e;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0.3125rem 0.9375rem rgba(189, 15, 76, 0.4);
}

/* Misión y Visión */
.misión-vision {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 5rem 1.25rem 0 1.25rem;
  background: white;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.titulo-misión,
.titulo-visión {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: bold;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.125em;
  position: relative;
  display: inline-block;
  padding-bottom: 0.625rem;
  margin-bottom: 1.25rem;
  animation: tituloAnimado 1s ease-out forwards;
}

.titulo-misión::after,
.titulo-visión::after {
  content: "";
  width: 5rem;
  height: 0.1875rem;
  background: white;
  display: block;
  margin: 0.625rem auto 0;
  border-radius: 0.625rem;
}

.descripcion-misión,
.descripcion-visión {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  max-width: 34.375rem;
  color: white;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(1.875rem);
  animation: descripcionAnimada 1s ease-out 0.5s forwards;
}

@keyframes tituloAnimado {
  0% {
    transform: translateY(-3.125rem);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes descripcionAnimada {
  0% {
    opacity: 0;
    transform: translateY(1.875rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.misión,
.visión {
  padding: 2.5rem;
  border-radius: 0.75rem;
  flex: 1 1 300px;
  box-shadow: 0 0.9375rem 1.875rem rgba(0, 0, 0, 0.1);
  transform: translateY(1.875rem);
  opacity: 0;
  animation: cajaAnimada 1s ease-out forwards;
  color: white;
}

.misión {
  background: #c81851;
}

.visión {
  background: #0d163e;
}

@keyframes cajaAnimada {
  0% {
    transform: translateY(1.875rem);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.misión:hover {
  transform: scale(1.05);
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.2);
  background: #0d163e;
}

.visión:hover {
  transform: scale(1.05);
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.2);
  background: #c81851;
}

.politica-calidad {
  position: relative;
  background-image: url('https://firebasestorage.googleapis.com/v0/b/appinspections-77c4f.appspot.com/o/images%2Fcalidad.webp?alt=media&token=9d4b2fe5-2b5c-47e6-a254-eb80cf7ac1d7');
  background-size: cover;
  background-position: center;
  aspect-ratio: 16/5;
  min-height: 12rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  color: white;
}

.politica-calidad .contenido {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100rem;
  padding: 0 1rem;
  margin: 0 auto;
  box-sizing: border-box;
}

.politica-calidad .titulo {
  font-size: clamp(1rem, 5vw, 1.8rem);
  font-weight: bold;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.politica-calidad .descripcion {
  font-size: clamp(0.8rem, 4vw, 1.5rem);
  line-height: 1.5;
}

.politica-calidad::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  backdrop-filter: blur(1.5px);
  background: rgba(189, 15, 76, 0.3);
  z-index: 1;
  filter: brightness(0.8);
}



/*Solución para pantallas angostas: desactivar aspect-ratio */
@media (max-width: 880px) {
  .politica-calidad {
    aspect-ratio: auto;  /* Desactiva relación de aspecto */
    min-height: auto;
    padding-top: 3rem;   /* Da espacio extra arriba y abajo */
    padding-bottom: 3rem;
  }
  .misión {
    /* Mantiene animación de entrada + añade cambio de color */
    animation: cajaAnimada 1s ease-out forwards, cambioColorMision 10s ease-in-out infinite alternate;
  }

  .visión {
    /* Mantiene animación de entrada + añade cambio de color */
    animation: cajaAnimada 1s ease-out forwards, cambioColorVision 10s ease-in-out infinite alternate;
  }

  @keyframes cambioColorMision {
    from { background: #c81851; }
    to { background: #0d163e; }
  }

  @keyframes cambioColorVision {
    from { background: #0d163e; }
    to { background: #c81851; }
  }

  .valor {
  animation: cambioColorValor 10s ease-in-out infinite alternate;
  padding: 1.2rem 0.9rem;
}

/* Animación de cambio de color para .valor */
@keyframes cambioColorValor {
  from { background: #0d163e; }
  to { background: #c81851; }
}
}



