/* =========================================================================
   STUDIO REDHOUSE - BLOG
   Estilos específicos del blog público (listado y artículo)
   ========================================================================= */

.page-hero {
    background: var(--cream-bg);
    padding: 160px 0 3.5rem;
    text-align: center;
    border-bottom: 1px solid var(--warm-gray);
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.5px;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    color: var(--dark-charcoal);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.page-hero h1 .red-text {
    color: var(--brand-red);
}

.page-hero p {
    color: rgba(18, 18, 16, 0.7);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
}

.breadcrumb {
    color: rgba(18, 18, 16, 0.6);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.breadcrumb a {
    color: var(--brand-red);
    font-weight: 600;
    text-decoration: none;
}

.blog-section {
    padding: 5rem 0;
    background: var(--white);
}

.blog-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.blog-filters .btn,
.pagination .btn {
    padding: 10px 22px;
    font-size: 0.85rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    justify-content: center;
    gap: 2.5rem;
}

.blog-card {
    display: block;
    width: 100%;
    max-width: 420px;
    justify-self: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--warm-gray-light);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-card .thumb {
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    background-color: var(--cream-bg);
}

.blog-card .body {
    padding: 1.75rem;
}

.blog-card .tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background-color: var(--brand-cyan-light);
    color: var(--brand-cyan-dark);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.2rem;
    margin: 10px 0;
    color: var(--dark-charcoal);
}

.blog-card p {
    color: rgba(18, 18, 16, 0.7);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.blog-card .date {
    color: rgba(18, 18, 16, 0.55);
    font-size: 0.85rem;
    font-weight: 500;
}

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 3.5rem;
}

.empty-state {
    text-align: center;
    color: rgba(18, 18, 16, 0.6);
    padding: 3rem 0;
}

/* Artículo individual */
.post-hero {
    padding-bottom: 3.5rem;
}

.post-hero h1 {
    text-transform: none;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.post-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 3.5rem 24px;
}

.post-article .post-featured-img {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.post-content {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--dark-charcoal);
}

.post-content h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.3px;
    margin-top: 2.2rem;
    margin-bottom: 1rem;
    font-size: 1.9rem;
    color: var(--brand-red);
}

.post-content h3 {
    margin-top: 1.8rem;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.post-content p {
    margin-bottom: 1.25rem;
}

.post-content img {
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
}

.post-content ul,
.post-content ol {
    margin: 0 0 1.25rem 1.5rem;
    list-style: revert;
}

.post-content a {
    color: var(--brand-cyan-dark);
    text-decoration: underline;
}

.cta-band {
    margin-top: 3.5rem;
    background: var(--brand-red);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-band h2 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.4rem;
    margin: 0 0 0.4rem;
}

.cta-band p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.related-section {
    background: var(--cream-bg);
    padding: 5rem 0;
}

.related-section .section-header {
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .page-hero { padding-top: 130px; }
    .post-article { padding: 2.5rem 20px; }
    .post-article .post-featured-img { aspect-ratio: 16 / 9; }
    .cta-band { flex-direction: column; text-align: center; }
}
