/* === Scroll Lateral Cinemático === */
.scroll-section {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
  will-change: transform;
  height: 400vh; 
  margin-bottom: 100vh;
  perspective: 1200px; /* Para efecto 3D */
}

.scroll-wrapper {
  display: flex;
  flex-wrap: nowrap;
  height: 100vh;
  width: max-content;
  position: relative;
  will-change: transform;
  padding: 0;
  background: #003F5C;
  background-size: 400% 400%;
  animation: gradientMove 20s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.tittle-scroll {
  position: sticky;
  top: 30px;
  left: 50px;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.panel {
  width: 60vw;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 800px;
}

.card {
  width: min(65vh, 85vw);
  height: min(65vh, 75vh);
  background: #003F5C;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2.5rem;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform-style: preserve-3d;
  transition: transform 0.6s ease, box-shadow 0.6s ease, background 0.6s ease;
}

.card:hover {
  transform: rotateY(15deg) rotateX(5deg) scale(1.1) translateZ(20px);
  background: #003F5C;
  box-shadow: 0 40px 80px rgba(0,0,0,0.7);
}

.card h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.card p {
  font-size: clamp(1rem, 3vw, 1.3rem);
  line-height: 1.8;
  color: #e2e8f0;
  max-width: 85%;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Pop-in al cargar */
.card {
  opacity: 0;
  transform: translateY(50px) scale(0.9);
  animation: cardIn 0.8s forwards;
}

.panel:nth-child(1) .card { animation-delay: 0.2s; }
.panel:nth-child(2) .card { animation-delay: 0.4s; }
.panel:nth-child(3) .card { animation-delay: 0.6s; }
.panel:nth-child(4) .card { animation-delay: 0.8s; }
.panel:nth-child(5) .card { animation-delay: 1s; }

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* === Responsive === */
@media (max-width: 768px) {
  .card {
    padding: 1.5rem;
    border-radius: 25px;
  }

  .card h2 { font-size: clamp(1.5rem, 5vw, 2.5rem); }
  .card p { font-size: clamp(0.95rem, 3vw, 1.1rem); }
}
