/* MUNDOS / WORLDS SHOWCASE */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h3 {
  font-size: 38px;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}


.worlds-app {
  margin-top: 12px;
  max-width: 640px;
}
.section-title p {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
}

.worlds-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.world-card {
  background: white;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(30, 94, 53, 0.05);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.world-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(15, 58, 32, 0.12);
  border-color: rgba(30, 94, 53, 0.15);
}

.world-card:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.world-img-container {
  height: 214px;
  position: relative;
  background: var(--color-primary-dark);
  overflow: hidden;
}

.world-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.15);
  font-size: 80px;
  font-family: var(--font-headings);
  font-weight: 900;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.world-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  position: relative;
  z-index: 2;
  transition: var(--transition);
  filter: brightness(0.92);
}

.world-card:hover .world-img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.world-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(15, 58, 32, 0.85);
  color: var(--color-accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  z-index: 3;
  backdrop-filter: blur(5px);
  border: 1.5px solid rgba(0, 255, 204, 0.3);
}

.world-info {
  padding: 30px;
}

.world-info h4 {
  font-size: 24px;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.world-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.world-info p {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.world-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.world-tag {
  background: rgba(30, 94, 53, 0.05);
  color: var(--color-primary);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.feature-card {
  background: white;
  border: 1px solid rgba(30, 94, 53, 0.05);
  border-radius: 28px;
  padding: 35px;
  box-shadow: var(--shadow-premium);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.feature-card.clickable {
  cursor: pointer;
  border-color: rgba(255, 179, 0, 0.28);
  animation: featureInvite 2.8s ease-in-out infinite;
}

.feature-card.clickable:nth-child(1) { animation-delay: 0s; }
.feature-card.clickable:nth-child(2) { animation-delay: 0.35s; }
.feature-card.clickable:nth-child(3) { animation-delay: 0.7s; }
.feature-card.clickable:nth-child(4) { animation-delay: 1.05s; }

@keyframes featureInvite {
  0%, 100% {
    transform: translateY(0);
    box-shadow: var(--shadow-premium), 0 0 0 0 rgba(255, 179, 0, 0);
  }
  50% {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px rgba(15, 58, 32, 0.12), 0 0 0 4px rgba(255, 179, 0, 0.18);
  }
}

.feature-card.clickable::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 179, 0, 0.14), transparent);
  animation: featureShine 3.6s ease-in-out infinite;
  pointer-events: none;
}

.feature-card.clickable:nth-child(2)::before { animation-delay: 0.4s; }
.feature-card.clickable:nth-child(3)::before { animation-delay: 0.8s; }
.feature-card.clickable:nth-child(4)::before { animation-delay: 1.2s; }

@keyframes featureShine {
  0%, 35% { left: -120%; }
  65%, 100% { left: 140%; }
}

.feature-card.clickable:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.feature-card.clickable:hover,
.feature-card.clickable:focus-visible {
  animation: none;
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255, 179, 0, 0.65);
  box-shadow: 0 28px 50px rgba(15, 58, 32, 0.14), 0 0 0 3px rgba(255, 179, 0, 0.22);
}

.feature-card.clickable:hover::before,
.feature-card.clickable:focus-visible::before {
  animation: none;
  opacity: 0;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(30, 94, 53, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.feature-card.clickable .feature-icon {
  animation: featureIconPulse 2.8s ease-in-out infinite;
}

.feature-card.clickable:nth-child(2) .feature-icon { animation-delay: 0.35s; }
.feature-card.clickable:nth-child(3) .feature-icon { animation-delay: 0.7s; }
.feature-card.clickable:nth-child(4) .feature-icon { animation-delay: 1.05s; }

@keyframes featureIconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.feature-card.clickable:hover .feature-icon,
.feature-card.clickable:focus-visible .feature-icon {
  animation: none;
  background: var(--color-primary);
  color: white;
  transform: scale(1.08) rotate(5deg);
}

.feature-card h4 {
  font-size: 20px;
  color: var(--color-primary-dark);
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
  flex: 1;
}

.feature-cta {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 179, 0, 0.12);
  border: 1px solid rgba(255, 179, 0, 0.35);
  color: var(--color-primary-dark);
  font-family: var(--font-headings);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.feature-cta svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  animation: featureTap 1.4s ease-in-out infinite;
}

.feature-card.clickable:hover .feature-cta {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-primary-dark);
}

.feature-card.clickable:hover .feature-cta svg {
  animation: none;
  transform: translateX(3px);
}

@keyframes featureTap {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(2px, 2px) scale(0.9); }
  70% { transform: translate(0, 0) scale(1.08); }
}
@media (max-width: 768px) {
  .section-title {
    margin-bottom: 28px;
  }

  .section-title h3 {
    font-size: 28px;
  }

  .section-title p {
    font-size: 14px;
    padding: 0 4px;
  }

  .worlds-container {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 48px;
  }

  .world-img-container {
    height: 180px;
  }

  .world-info {
    padding: 22px 18px 24px;
  }

  .world-info h4 {
    font-size: 22px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 36px;
  }

  .feature-card {
    padding: 24px 20px;
    border-radius: 22px;
    gap: 14px;
  }

  .feature-card.clickable:hover,
  .feature-card.clickable:focus-visible {
    transform: translateY(-4px) scale(1.01);
  }
}
