/* ============================================
   BLOG PAGES — Shared Styles
   Used by blog/index.php and blog/post.php
============================================ */

header {
  background: rgba(10, 10, 11, 0.95);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.logo {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none !important;
}

/* Blog Index */
.blog-header {
  text-align: center;
  margin: 4rem 0;
}
.blog-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #e4c06e, #c9a84c, #a07830);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.blog-header p {
  color: var(--muted-foreground);
  font-size: 1.1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
}
.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201,168,76,0.3);
}
.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--surface-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card-content { padding: 1.5rem; }
.blog-card-category {
  color: var(--gold);
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.blog-card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.blog-card-excerpt {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.blog-card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.25rem;
  transition: color 0.2s;
}
.blog-card:hover .blog-card-more {
  color: var(--gold-light);
}
.blog-card-more svg {
  transition: transform 0.2s;
}
.blog-card:hover .blog-card-more svg {
  transform: translateX(4px);
}
.blog-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 4rem;
}
.page-link {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.2s;
}
.page-link:hover, .page-link.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

/* Blog Post */
.post-header {
  margin: 4rem 0 2rem;
  text-align: center;
}
.post-category {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}
.post-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.post-meta {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.post-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 3rem;
}

.post-content h2, .post-content h3 { margin: 2rem 0 1rem; color: var(--gold); }
.post-content p { margin-bottom: 1.5rem; color: #d6d6d6; }
.post-content ul, .post-content ol { margin-bottom: 1.5rem; padding-left: 1.5rem; color: #d6d6d6; }
.post-content li { margin-bottom: 0.5rem; }
.post-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5rem 0; }
.post-content blockquote {
  border-left: 4px solid var(--gold);
  padding-left: 1rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--muted-foreground);
}

.post-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Shared button */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.2s;
}
.btn-outline:hover {
  background: var(--gold);
  color: #000;
}

/* ============================================
   CTA PRESUPUESTO (post.php)
============================================ */
.post-cta {
  margin: 4rem 0 3rem;
  border-radius: 16px;
  background: linear-gradient(135deg,
    rgba(201, 168, 76, 0.12) 0%,
    rgba(160, 120, 48, 0.06) 50%,
    rgba(201, 168, 76, 0.10) 100%);
  border: 1px solid rgba(201, 168, 76, 0.3);
  position: relative;
  overflow: hidden;
}

.post-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top center, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.post-cta-inner {
  position: relative;
  padding: 3rem 2.5rem;
  text-align: center;
}

.post-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  margin-bottom: 1.5rem;
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.3);
}

.post-cta-icon i {
  width: 28px;
  height: 28px;
  color: #000;
}

.post-cta-title {
  font-size: 1.9rem;
  font-weight: 700;
  background: linear-gradient(135deg, #e4c06e, #c9a84c, #a07830);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.post-cta-subtitle {
  color: var(--muted-foreground);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.post-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.post-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.post-cta-btn i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.post-cta-btn--primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #000;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
}

.post-cta-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(201, 168, 76, 0.5);
}

.post-cta-btn--outline {
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.post-cta-btn--outline:hover {
  background: var(--gold);
  color: #000;
  transform: translateY(-2px);
}

.post-cta-btn--whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.post-cta-btn--whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
}

@media (max-width: 600px) {
  .post-cta-inner { padding: 2rem 1.25rem; }
  .post-cta-title { font-size: 1.5rem; }
  .post-cta-actions { flex-direction: column; align-items: center; }
  .post-cta-btn { width: 100%; justify-content: center; }
}
