/*secciones-soluciones.css*/


/* ================================ SOLUCIONES WRAPPER ================================ */
.solutions {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
}

/* ================================ TARJETAS ================================ */
.solution {
  background: linear-gradient(145deg, #0a0a0a, #000);
  border-radius: 10px;
  border: none;
  box-shadow: none;
  padding: 30px;
  width: var(--servicios-div-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(40px) scale(0.9) rotateY(10deg);
  transition: transform 0.4s ease, box-shadow 0.6s ease, border 0.6s ease;
  position: relative;
  overflow: hidden;
}

/* Marco dorado interno */
.solution::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 8px;
  pointer-events: none;
}

/* Bordes laterales dorados con puntas finas */
.solution::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0; 
  right: 0;
  border-radius: 10px;
  pointer-events: none;
  background: 
    linear-gradient(to bottom,
      rgba(212,175,55,0) 0%,
      rgba(212,175,55,0.7) 50%,
      rgba(212,175,55,0) 100%
    );
  background-repeat: no-repeat;
  background-size: 6px 100%, 6px 100%;
  background-position: left center, right center;
  background-image: 
    linear-gradient(to bottom,
      rgba(212,175,55,0) 0%,
      rgba(212,175,55,0.7) 50%,
      rgba(212,175,55,0) 100%),
    linear-gradient(to bottom,
      rgba(212,175,55,0) 0%,
      rgba(212,175,55,0.7) 50%,
      rgba(212,175,55,0) 100%);
}

/* Animación de aparición */
.solution.visible {
  animation: aparecer 1s ease forwards;
}

@keyframes aparecer {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.9) rotateY(10deg);
  }
  60% {
    opacity: 1;
    transform: translateY(-10px) scale(1.05) rotateY(0deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateY(0deg);
  }
}

/* Escalonado elegante */
.solutions .solution:nth-child(1) { animation-delay: 0.2s; }
.solutions .solution:nth-child(2) { animation-delay: 0.4s; }
.solutions .solution:nth-child(3) { animation-delay: 0.6s; }

/* Hover estilo dorado en desktop */
.solution:hover {
  transform: translateY(-12px) scale(1.08);
  box-shadow: 0 12px 28px rgba(212,175,55,0.55);
  border: 1px solid var(--dorado);
  position: relative;
  z-index: 5;
}


/* ================================ IMÁGENES ================================ */
.solution img {
  height: 160px;
  width: auto;
  margin: 0 auto 20px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(212,175,55,0.6));
}


/* ================================ TIPOGRAFÍA ================================ */
.solution h3 {
  color: var(--dorado);
  font-size: var(--h3-size);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: capitalize;
  letter-spacing: 1px;
}

.solution p {
  color: #f5f5f5;
  font-size: var(--p-size);
  line-height: 1.5;
}


/* ================================ RESPONSIVE ================================ */
@media (max-width: 1024px) {
  .solutions .solution::after {
    display: none;
  }
  .solution {
    border: 1px solid var(--dorado);
    box-shadow: 0 4px 12px rgba(212,175,55,0.25);
  }
}
