body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(-45deg, #1f1c2c, #928DAB, #43cea2, #185a9d);
  background-size: 400% 400%;
  animation: gradientMove 10s ease infinite;
  color: #fff;
  text-align: center;
  overflow-x: hidden;
}

/* Fondo dinámico general */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Texto con degradado animado */
.titulo-grad, .texto-grad {
  background: linear-gradient(90deg, #ffeb3b, #ff4081, #40c9ff);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}
@keyframes shine {
  0% { background-position: 0%; }
  100% { background-position: 200%; }
}

/* HEADER con fondo propio */
header {
  background: linear-gradient(120deg, #232526, #414345, #2C5364);
  background-size: 300%;
  animation: headerAnim 8s ease infinite;
  padding: 50px 20px;
  border-bottom: 3px solid rgba(255,255,255,0.3);
  border-radius: 0 0 40px 40px;
  box-shadow: 0 0 25px rgba(255,255,255,0.2);
}
@keyframes headerAnim {
  0% { background-position: 0%; }
  50% { background-position: 100%; }
  100% { background-position: 0%; }
}

/* INTRODUCCIÓN con fondo degradado sólido */
.intro {
  margin: 40px auto;
  max-width: 850px;
  background: linear-gradient(135deg, #2C3E50, #4CA1AF);
  background-size: 200%;
  animation: introAnim 8s ease infinite;
  padding: 30px;
  border-radius: 25px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  color: #fff;
}
@keyframes introAnim {
  0% { background-position: 0%; }
  100% { background-position: 100%; }
}

/* TARJETAS */
.tarjetas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 35px;
  padding: 50px;
}

/* Cada tarjeta ahora con fondo propio */
.card {
  border-radius: 20px;
  padding: 25px;
  width: 280px;
  background: linear-gradient(145deg, rgba(40, 40, 60, 0.95), rgba(60, 80, 100, 0.95));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 20px rgba(255,255,255,0.15);
  transition: all 0.5s ease;
  transform-style: preserve-3d;
  animation: floatCard 4s ease-in-out infinite;
}

/* Animación flotante */
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.card:hover {
  transform: scale(1.07) rotateY(6deg);
  box-shadow: 0 0 40px rgba(255,255,255,0.4);
}

/* Imagen con marco degradado */
.img-container {
  border-radius: 15px;
  padding: 6px;
  background: linear-gradient(135deg, #00c6ff, #0072ff, #ff5e62, #ff9966);
  background-size: 400% 400%;
  animation: borderColor 6s ease infinite;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}
@keyframes borderColor {
  0% { background-position: 0%; }
  50% { background-position: 100%; }
  100% { background-position: 0%; }
}

.img-container img {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  transition: transform 1s ease, box-shadow 1s ease;
}
.img-container:hover img {
  transform: scale(1.15);
  box-shadow: 0 0 25px rgba(255,255,255,0.4);
}

/* Botones */
.btn {
  background: linear-gradient(90deg, #40c9ff, #e81cff);
  border: none;
  padding: 10px 18px;
  color: white;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 0 0 10px rgba(255,255,255,0.3);
}
.btn:hover {
  transform: scale(1.1);
  background: linear-gradient(90deg, #e81cff, #40c9ff);
  box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

/* MODALES */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  top: 0; left: 0;
  width: 100%; height: 100%;
  justify-content: center;
  align-items: center;
  background: rgba(10, 10, 25, 0.85);
  backdrop-filter: blur(10px);
}

.modal-content {
  background: linear-gradient(145deg, rgba(30,30,50,0.95), rgba(50,70,90,0.95));
  padding: 35px;
  border-radius: 25px;
  width: 85%;
  max-width: 550px;
  animation: zoomIn 0.6s ease forwards;
  box-shadow: 0 0 30px rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.2);
}
@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close {
  position: absolute;
  top: 10px; right: 20px;
  font-size: 25px;
  cursor: pointer;
  color: #fff;
  transition: 0.3s;
}
.close:hover { transform: scale(1.2); color: #ffeb3b; }

/* FOOTER */
footer {
  background: linear-gradient(120deg, #232526, #414345);
  padding: 25px;
  font-size: 15px;
  margin-top: 40px;
  border-top: 3px solid rgba(255,255,255,0.2);
  box-shadow: 0 -3px 15px rgba(255,255,255,0.1);
}

/* 🔮 Estilo de la Conclusión */
.conclusion {
  margin: 80px auto;
  padding: 40px 20px;
  max-width: 900px;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
  color: white;
  text-align: center;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  animation: aparecer 1.2s ease-in-out forwards;
}

.conclusion h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #ff9f43, #ff6bcb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brilloTexto 3s infinite alternate;
}

.conclusion p {
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.95;
  margin-bottom: 15px;
}

.conclusion .quote {
  font-style: italic;
  font-weight: bold;
  color: #fef3c7;
  background: linear-gradient(90deg, #facc15, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulso 2s infinite alternate;
}

/* ✨ Animaciones */
@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brilloTexto {
  from {
    filter: brightness(0.8);
  }
  to {
    filter: brightness(1.3);
  }
}

@keyframes pulso {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}
