* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #0a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  position: relative;
}

.stars {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 3s infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

.container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
  animation: slideDown 1s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header h1 {
  /* antes: fondo en gradiente que hacía monocromo al emoji */
  font-size: 2.5em;
  display: flex;
  align-items: center;
  gap: 12px;
  /* quitamos el gradiente global aquí; lo aplicamos solo al texto explícito */
}

header h1 .title {
  background: linear-gradient(45deg, #00ff88, #00cc66);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  mix-blend-mode: normal;
}

header h1 .icon {
  font-size: 1.2em;
  /* forzar uso de fuentes emoji a color */
  font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
  /* evitar que el gradiente y el text-clip afecten al emoji */
  background: none !important;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: initial;
  color: initial;
  mix-blend-mode: normal;
}

.back-btn {
  padding: 10px 20px;
  background: rgba(0, 204, 102, 0.3);
  border: 2px solid #00cc66;
  color: #00ff88;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s ease;
  text-decoration: none;
}

.back-btn:hover {
  background: rgba(0, 204, 102, 0.6);
  transform: translateX(-5px);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.section-card {
  background: rgba(0, 50, 0, 0.6);
  border: 2px solid rgba(0, 204, 102, 0.3);
  border-radius: 15px;
  padding: 30px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.section-card:nth-child(1) {
  animation-delay: 0.2s;
}

.section-card:nth-child(2) {
  animation-delay: 0.4s;
}

.section-card:nth-child(3) {
  animation-delay: 0.6s;
}

.section-card:nth-child(4) {
  animation-delay: 0.8s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 255, 136, 0.8);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.section-card h2 {
  font-size: 1.8em;
  color: #00ff88;
  margin-bottom: 15px;
}

.section-card p {
  color: #a8e6c1;
  line-height: 1.8;
  margin-bottom: 15px;
}

.fact-list {
  list-style: none;
  margin-top: 15px;
}

.fact-list li {
  padding: 8px 0;
  color: #7fdbaa;
  border-bottom: 1px solid rgba(0, 204, 102, 0.2);
}

.fact-list li::before {
  content: "🌿 ";
  margin-right: 10px;
}

footer {
  text-align: center;
  padding: 30px;
  color: #64748b;
  border-top: 1px solid rgba(0, 204, 102, 0.2);
  margin-top: 60px;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 20px;
  }

  header h1 {
    font-size: 1.8em;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}