/*secciones.css*/


/* ================================ WRAPPER GENERAL ================================ */
.div-wrapper {
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  min-height: calc(100dvh - var(--header-height));
  background: url('../../media/index/momentospro_cord.avif') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.div-wrapper::-webkit-scrollbar {
  display: none;
}


/* ================================ SECTION ================================ */
.section {
  max-width: var(--section-width, 1200px);
  margin: var(--section-margin);
  padding: var(--section-padding);
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}


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

/* Línea vertical separadora entre tarjetas (PC) */
.cards .card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--dorado), transparent);
  right: -20px;
}


/* ================================ TARJETAS ================================ */
.card {
  background: transparent;
  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;
}

/* Animación de aparición */
.card.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 */
.cards .card:nth-child(1) { animation-delay: 0.2s; }
.cards .card:nth-child(2) { animation-delay: 0.4s; }
.cards .card:nth-child(3) { animation-delay: 0.6s; }

/* Hover estilo dorado en desktop */
.card: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 ================================ */
.card img {
  height: 160px;
  width: auto;
  margin: 0 auto 20px;
  display: block;
}


/* ================================ TIPOGRAFÍA ================================ */
/* Título dorado con líneas */
.section h2 {
  font-size: var(--h2-size);
  margin-bottom: 40px;
  color: var(--dorado);
  text-transform: none;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(212,175,55,0.4);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.section h2::before {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--dorado));
}

.section h2::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(to left, transparent, var(--dorado));
}

.card h3 {
  color: var(--dorado);
  font-size: var(--h3-size);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: capitalize;
  letter-spacing: 1px;
}

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


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