/* =======================================================
   Diseños Personalizados para la Sección de Valores
======================================================= */
  
/* Background for Valores page */
#valores-section::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('../images/komatsulogoBlanco.png');
  background-size: 30%;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.05;
  z-index: 0;
}

#valores-section {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--top-bar-height) - var(--footer-height));
}

/* Estilo para la introducción */
.valores-intro {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--primary);
}

.valores-intro p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  text-align: justify;
  margin: 0;
}

/* Estilos para las cards de valores */
#valores-section .komatsu-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

#valores-section .komatsu-card {
  animation: floatCard 5s ease-in-out infinite;
  transition: all 0.3s ease;
}

#valores-section .komatsu-card:nth-child(2) {
  animation-delay: 0.2s;
}

#valores-section .komatsu-card:nth-child(3) {
  animation-delay: 0.4s;
}

#valores-section .komatsu-card:nth-child(4) {
  animation-delay: 0.6s;
}

#valores-section .komatsu-card:nth-child(5) {
  animation-delay: 0.8s;
}

#valores-section .komatsu-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

@keyframes floatCard {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* Estilos para la sección de video (igual que en Propósito) */
.video-section {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 25px;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.video-section h3 {
  color: var(--primary);
  text-align: center;
  margin-bottom: 25px;
  font-size: 22px;
  position: relative;
}

.video-section h3:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 3px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Proporción 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Media queries para dispositivos móviles */
@media (max-width: 768px) {
  #valores-section .komatsu-cards-container {
    grid-template-columns: 1fr;
  }
}