/* =============================
   BLOG STYLES
   ============================= */

/* Blog Hero */
.blog-hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1565c0 100%);
  color: var(--white);
  padding: 4rem 0 3rem;
  text-align: center;
}

.blog-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.blog-hero-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.blog-hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.95;
  line-height: 1.6;
}

/* Blog Index */
.blog-index {
  padding: 3rem 0 2rem;
  background: var(--light-gray);
}

.index-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
}

.index-title {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
}

.index-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.index-list li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.index-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--success-green);
  font-weight: bold;
}

.index-list a {
  color: var(--dark-gray);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1.05rem;
}

.index-list a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

/* Blog Articles */
.blog-articles {
  padding: 3rem 0;
  background: var(--white);
}

.blog-post {
  background: var(--white);
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.blog-post:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.post-header {
  border-bottom: 3px solid var(--success-green);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.post-title {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--dark-gray);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.post-summary {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--dark-gray);
  margin-top: 1.5rem;
}

.post-content h3 {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content p {
  margin-bottom: 1.2rem;
}

.post-content code {
  background: #f4f4f4;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: #d63384;
}

.post-conclusion {
  background: var(--light-gray);
  border-left: 4px solid var(--success-green);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.post-conclusion h3 {
  margin-top: 0;
}

.post-cta {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1565c0 100%);
  color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 2rem;
}

.post-cta p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.post-cta .btn {
  background: var(--white);
  color: var(--primary-blue);
  border: none;
  font-weight: 600;
}

.post-cta .btn:hover {
  background: var(--light-gray);
  transform: translateY(-2px);
}

.read-more-btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  margin-top: 1.5rem;
  background: var(--success-green);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  background: #0ea472;
  transform: translateY(-2px);
}

/* Blog Final CTA */
.blog-final-cta {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1565c0 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.blog-final-cta h2 {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.blog-final-cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary {
  background: var(--white);
  color: var(--primary-blue);
}

.cta-buttons .btn-secondary {
  border-color: var(--white);
  color: var(--white);
}

/* Botón volver arriba */
.scroll-top-btn {
  position: fixed;
  bottom: 100px;
  right: 25px;
  z-index: 9998;
  width: 50px;
  height: 50px;
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.scroll-top-btn:hover {
  background: #1565c0;
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
  .blog-hero {
    padding: 3rem 0 2rem;
  }

  .blog-hero-title {
    font-size: 2rem;
  }

  .blog-hero-subtitle {
    font-size: 1.05rem;
  }

  .index-card {
    padding: 1.5rem;
  }

  .blog-post {
    padding: 1.5rem;
  }

  .post-title {
    font-size: 1.5rem;
  }

  .post-meta {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .post-content h3 {
    font-size: 1.2rem;
  }

  .scroll-top-btn {
    bottom: 85px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .blog-hero-title {
    font-size: 1.75rem;
  }

  .post-title {
    font-size: 1.3rem;
  }

  .blog-post {
    padding: 1.25rem;
  }

  .post-cta {
    padding: 1.5rem;
  }
}
