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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0a0a0f;
  color: #e8e8f0;
  min-height: 100vh;
}

header {
  text-align: center;
  padding: 40px 20px 30px;
  background: linear-gradient(180deg, #12122a 0%, #0a0a0f 100%);
  border-bottom: 1px solid #1a1a2e;
}

header a img { height: 36px; }

nav {
  text-align: center;
  padding: 16px;
}

nav a {
  color: #a78bfa;
  text-decoration: none;
  font-size: 0.88rem;
}

nav a:hover { text-decoration: underline; }

/* Index */
.blog-header {
  text-align: center;
  padding: 48px 20px 32px;
}

.blog-header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.blog-header p {
  color: #888;
  font-size: 1rem;
}

.posts-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .posts-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .posts-list {
    grid-template-columns: 1fr;
  }
}

.post-card {
  background: #13131f;
  border: 1px solid #1e1e35;
  border-radius: 14px;
  padding: 24px 26px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.2s, transform 0.2s;
}

.post-card:hover {
  border-color: #a78bfa;
  transform: translateY(-2px);
}

.post-card .date {
  font-size: 0.78rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.post-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.post-card p {
  color: #888;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Post individual */
article {
  max-width: 720px;
  margin: 0 auto;
  padding: 50px 24px 80px;
}

.meta {
  font-size: 0.78rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

article h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 32px;
}

article h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin: 36px 0 14px;
}

article p {
  color: #aaa;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 22px;
}

article ul, article ol {
  padding-left: 22px;
  color: #aaa;
  line-height: 1.9;
  margin-bottom: 22px;
}

article li { margin-bottom: 6px; }

article a {
  color: #a78bfa;
  text-decoration: underline;
}

.back-link {
  display: inline-block;
  margin-top: 48px;
  color: #a78bfa;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid #2a2a45;
  padding: 10px 20px;
  border-radius: 8px;
  transition: background 0.2s;
}

.back-link:hover { background: #13131f; }

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  color: #444;
  font-size: 0.82rem;
  border-top: 1px solid #1a1a2e;
}

footer a {
  color: #666;
  text-decoration: none;
  margin: 0 10px;
}

footer a:hover { color: #a78bfa; }
footer p { margin-top: 14px; }


/* Imágenes en posts */
.post-image {
  margin: 28px 0;
  border-radius: 12px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.post-image figcaption {
  text-align: center;
  font-size: 0.82rem;
  color: #555;
  margin-top: 8px;
  font-style: italic;
}

/* Vídeos en posts */
.post-video {
  margin: 28px 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.post-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}
