/* Reset básico y estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header h1 {
  font-size: 2.5rem;
  color: #00d4ff;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
  }
  to {
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.7),
      0 0 25px rgba(0, 212, 255, 0.4);
  }
}

/* Main content */
main {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

main h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #fff;
  position: relative;
}

main h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #00d4ff, #ff007a);
  border-radius: 2px;
}

/* Grid de robots */
main > div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

main div {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

main div:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 10px rgba(0, 212, 255, 0.3);
}

main div img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.5s ease;
}

main div:hover img {
  transform: scale(1.05);
}

main div h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #00d4ff;
}

main div p {
  line-height: 1.6;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.5);
  text-align: center;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
  main {
    padding: 1rem;
  }

  main h2 {
    font-size: 1.5rem;
  }

  header h1 {
    font-size: 2rem;
  }

  main > div {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
