.glow {
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  border-radius: 100%;
}

.glow-1 {
  animation: glow1 4s linear infinite;
}

.glow-2 {
  animation: glow2 4s linear infinite;
  animation-delay: 100ms;
}

.glow-3 {
  animation: glow3 4s linear infinite;
  animation-delay: 200ms;
}

.glow-4 {
  animation: glow4 4s linear infinite;
  animation-delay: 300ms;
}

@keyframes glow1 {
  0% {
    transform: translate(10%, 10%) scale(1);
  }
  25% {
    transform: translate(-10%, 10%) scale(1);
  }
  50% {
    transform: translate(-10%, -10%) scale(1);
  }
  75% {
    transform: translate(10%, -10%) scale(1);
  }
  100% {
    transform: translate(10%, 10%) scale(1);
  }
}

@keyframes glow2 {
  0% {
    transform: translate(-10%, -10%) scale(1);
  }
  25% {
    transform: translate(10%, -10%) scale(1);
  }
  50% {
    transform: translate(10%, 10%) scale(1);
  }
  75% {
    transform: translate(-10%, 10%) scale(1);
  }
  100% {
    transform: translate(-10%, -10%) scale(1);
  }
}

@keyframes glow3 {
  0% {
    transform: translate(-10%, 10%) scale(1);
  }
  25% {
    transform: translate(-10%, -10%) scale(1);
  }
  50% {
    transform: translate(10%, -10%) scale(1);
  }
  75% {
    transform: translate(10%, 10%) scale(1);
  }
  100% {
    transform: translate(-10%, 10%) scale(1);
  }
}

@keyframes glow4 {
  0% {
    transform: translate(10%, -10%) scale(1);
  }
  25% {
    transform: translate(10%, 10%) scale(1);
  }
  50% {
    transform: translate(-10%, 10%) scale(1);
  }
  75% {
    transform: translate(-10%, -10%) scale(1);
  }
  100% {
    transform: translate(10%, -10%) scale(1);
  }
}

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

:root {
    --bg-main: #f0f0f2;
    --card-white: #ffffff;
    --text-dark: #121212;
    --text-muted: #707070;
    --pink: #ffe1f2;
    --blue: #e4f7fe;
    --yellow: #fff9db;
    --green: #d8fee4;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    padding: 50px 20px;
}

.container { max-width: 1100px; margin: 0 auto; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}


.card {
    background-color: var(--card-white);
    border-radius: 30px;
    padding: 3px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.card-inner {
    border-radius: 28px; 
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pink-bg { background-color: var(--pink); }
.blue-bg { background-color: var(--blue); }
.yellow-bg { background-color: var(--yellow); }
.green-bg { background-color: var(--green); }


.content-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.text-side { flex: 1; }

.platform-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    flex-shrink: 0;
}


.badge {
    background: rgba(0, 0, 0, 0.1);
    padding: 5px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

h3 { font-size: 22px; color: var(--text-dark); margin-bottom: 10px; }
p { font-size: 14px; color: var(--text-muted); line-height: 1.5; margin-bottom: 20px; }

.stats {
    display: flex;
  align-items: center;
    gap: 15px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.stats span { display: flex; align-items: center; gap: 6px; }
.stats i { width: 18px; color: #444; }


.progress-section { margin-top: 30px; }

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.progress-track {
    height: 8px;
    background: rgba(0,0,0,0.06);
    border-radius: 10px;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: #000;
    border-radius: 10px;
}


.card-footer {
    padding: 20px 30px 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text { font-size: 14px; color: var(--text-muted); }
.footer-text strong { color: var(--text-dark); }

.btn-action {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-action:hover { transform: scale(1.03); }


@media (max-width: 480px) {
    .grid { grid-template-columns: 1fr; }
    .card-inner { padding: 25px; }
    .content-top { gap: 6px; }
    .avatar { width: 60px; height: 60px; }
}

.text-side { min-width: 0; }                 
.text-side p { overflow-wrap: break-word; } 
.text-side p {
    display: -webkit-box;
    -webkit-line-clamp: 3;      /* máximo 3 líneas, el resto se corta con … */
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.tags {
    display: flex;
    flex-wrap: wrap;        
    gap: 8px;
    margin-top: 4px;
}
.tag {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.08);
    padding: 4px 12px;
    border-radius: 12px;
}

.progress-fill.easy   { background: #2e9e5b; }
.progress-fill.medium { background: #e0a11b; }
.progress-fill.hard   { background: #e0653f; }
.progress-fill.insane { background: #9b59b6; }

a.btn-action {
    text-decoration: none;
    display: inline-block;
    text-align: center;
}