/* =========================
   VALORES SECTION
========================= */
.valores-section {
  width: 100%;
  padding: 80px 20px;
  background: #ffffff;
}

.valores-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* HEADER */
.valores-header {
  text-align: center;
  margin-bottom: 60px;
}

.valores-header h2 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 15px;
}

.valores-header h2::after {
  content: "";
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #cc0000, #990000);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.valores-subtitle {
  color: #666;
  font-size: 1.1rem;
}

/* GRID */
.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* CARD */
.valor-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* LINEA TOP */
.valor-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #cc0000, #990000);
  transition: width 0.4s ease;
}

.valor-card:hover::before {
  width: 100%;
}

/* HOVER */
.valor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(204, 0, 0, 0.15);
}

/* ICONO SVG */
.valor-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, #fff5f5, #ffeaea);
  border-radius: 16px;
}

.valor-icon img {
  width: 45px;
  height: 45px;
  transition: all 0.3s ease;
}

/* ANIMACIÓN HOVER ICONO */
.valor-card:hover img {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 8px 15px rgba(204, 0, 0, 0.3));
}

/* TITULO */
.valor-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* TEXTO */
.valor-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =========================
   ANIMACIÓN SCROLL
========================= */
.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .valores-header h2 {
    font-size: 2rem;
  }

  .valor-card {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .valores-grid {
    grid-template-columns: 1fr;
  }
}
