/* Estilo base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: radial-gradient(circle at center, #f3e9ff, #d1b7f2, #b68edb);
  background-size: 200% 200%;
  animation: moverFondo 10s ease infinite;
  min-height: 100vh;
}

/* Animación del fondo */
@keyframes moverFondo {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Contenido principal */
.main-content {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Títulos */
.central-title {
  text-align: center;
  margin: 20px 0;
}
.central-title h1 {
  font-size: 36px;
  color: #4c2e63;
}
.central-title h2 {
  font-size: 20px;
  color: #7f4ca5;
  margin-top: 10px;
}

/* Imagen con zoom */
.image-zoom-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}
.zoom-img {
  border: 4px solid #dbb6ee;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 50%;
  max-width: 200px;
  border-radius: 10px;
  transition: transform 0.4s ease;
}
.zoom-img:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
}

/* Tarjetas organizadas en cuadrícula */
.cards-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* Tarjeta individual */
.card {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  color: #333;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.15);
}

/* Título de la tarjeta */
.card h3 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 20px;
  background-color: #dbb6ee;
  color: #4c2e63;
  padding: 6px;
  border-radius: 6px;
}

/* Texto oculto clickeable */
.info-placeholder {
  background-color: rgba(123, 84, 152, 0.1);
  padding: 10px;
  margin-top: 8px;
  border-radius: 6px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  
  transition: background-color 0.3s;
}
.info-placeholder:hover {
  background-color: rgba(123, 84, 152, 0.2);
}

/* Texto expandido oculto inicialmente */
.expanded-text {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  margin-top: 5px;
  font-size: 13px;
  color: #333;
}

.info-placeholder {
  overflow: hidden;           /* que lo que “sobre” se quede dentro */
  transition: background 0.3s;
}
.info-placeholder .expanded-text {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.info-placeholder.open .expanded-text {
  max-height: 400px;
}



/* Responsive */
@media (max-width: 768px) {
  .zoom-img {
    width: 50%;
  }
}
