* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.valores {
  padding: 5rem 2rem;
  background-color: #495A1F;
  position: relative;  /* Necesario para posicionar el fondo */
  overflow: hidden;    /* Para que la imagen no se salga */
}

/* Imagen de fondo en esquina inferior izquierda */
.valores::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background-image: url('../../resources/img/estrella.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom left;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* Asegurar que el contenido esté por encima del fondo */
.valores-container {
  max-width: 1460px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Título superior centrado */
.valores-top {
  text-align: right;
  margin-bottom: 4rem;
}

.valores-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f5e8a6;
}

/* Contenedor de cards en cascada */
.valores-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Card horizontal - SIN FONDO NI SOMBRA */
.card-horizontal {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: transparent;
  border-radius: 20px;
  padding: 1rem 1.5rem;
  box-shadow: none;
  width: 100%;
  max-width: 550px;
  min-height: 110px;
  transition: transform 0.3s ease;
}

.card-horizontal:hover {
  transform: translateY(-5px);
}

/* Círculo con imagen */
.card-circle {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
}

.circle-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contenido de texto */
.card-text {
  flex: 1;
  min-width: 0;
}

.card-horizontal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f5e8a6;
  margin-bottom: 0.4rem;
}

.card-horizontal-description {
  font-size: 0.85rem;
  color: #fffaeb;
  line-height: 1.4;
  max-width: 400px;
}

/* Posicionamiento en cascada */
.card-left {
  margin-right: auto;
  margin-left: 0;
}

.card-center-left {
  margin: 0 auto 0 15%;
}

.card-center-right {
  margin: 0 15% 0 auto;
}

.card-right {
  margin-left: auto;
  margin-right: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .valores-cards {
    max-width: 800px;
  }
  
  .card-horizontal {
    max-width: 500px;
    padding: 0.875rem 1.25rem;
  }
  
  .card-center-left {
    margin: 0 auto 0 10%;
  }
  
  .card-center-right {
    margin: 0 10% 0 auto;
  }
}

@media (max-width: 768px) {
  .valores::before {
    width: 250px;
    height: 250px;
    opacity: 0.5;
  }
  
  .valores-title {
    font-size: 1.8rem;
    text-align: center;
  }
  
  .valores-top {
    text-align: center;
  }
  
  .valores-cards {
    max-width: 100%;
  }
  
  .card-horizontal {
    flex-direction: column;
    text-align: center;
    max-width: 100%;
    min-height: auto;
    padding: 1rem;
    gap: 1rem;
  }
  
  .card-circle {
    width: 60px;
    height: 60px;
  }
  
  .card-left,
  .card-center-left,
  .card-center-right,
  .card-right {
    margin: 0 auto;
  }
  
  .card-horizontal-description {
    text-align: center;
    max-width: 100%;
  }
  
  .card-text {
    min-width: auto;
  }
}

/* Desktop grande */
@media (min-width: 1400px) {
  .valores-cards {
    max-width: 1100px;
  }
  
  .card-horizontal {
    max-width: 600px;
    min-height: 120px;
    padding: 1rem 1.75rem;
  }
  
  .card-circle {
    width: 80px;
    height: 80px;
  }
  
  .card-horizontal-title {
    font-size: 1.2rem;
  }
  
  .card-horizontal-description {
    font-size: 0.9rem;
    max-width: 450px;
  }
}