/* ============================================
   BLOG PREMIUM
   Estudio Jurídico Giusta 2025
   ============================================ */

/* ============================================
   BLOG HERO PREMIUM
   ============================================ */

.blog-hero-premium {
    position: relative;
    padding: calc(80px + var(--space-20)) 0 var(--space-20);
    background: var(--navy-primary);
    color: var(--white);
    text-align: center;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.blog-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-medium) 100%);
}

.blog-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(247, 184, 199, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(247, 184, 199, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(247, 184, 199, 0.08) 0%, transparent 50%);
}

.blog-hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.blog-badge-premium {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: rgba(247, 184, 199, 0.15);
    border: 1px solid rgba(247, 184, 199, 0.3);
    border-radius: var(--radius-full);
    color: var(--gold-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-6);
    backdrop-filter: blur(10px);
}

.blog-badge-premium .badge-icon {
    color: var(--gold-primary);
}

.blog-hero-title-premium {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: var(--font-extrabold);
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: var(--white);
}

.blog-hero-title-premium .text-gold {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero-subtitle-premium {
    font-size: var(--text-xl);
    line-height: 1.6;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto var(--space-8);
    color: rgba(255, 255, 255, 0.95);
}

.blog-hero-subtitle-premium strong {
    color: var(--gold-primary);
    font-weight: var(--font-semibold);
}

.blog-hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: var(--text-3xl);
    font-weight: var(--font-extrabold);
    color: var(--gold-primary);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: var(--text-sm);
    opacity: 0.9;
    font-weight: var(--font-medium);
    color: rgba(255, 255, 255, 0.9);
}

/* Blog Hero Legacy (mantener para compatibilidad) */
.blog-hero {
    padding: calc(80px + var(--space-16)) 0 var(--space-16);
    background: linear-gradient(135deg, var(--navy-primary), var(--navy-medium));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(247, 184, 199, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
}

.blog-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: rgba(247, 184, 199, 0.2);
    border: 2px solid var(--gold-primary);
    border-radius: var(--radius-full);
    color: var(--gold-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-4);
}

.blog-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-extrabold);
    margin-bottom: var(--space-4);
}

.blog-hero-subtitle {
    font-size: var(--text-xl);
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   BLOG CONTROLS PREMIUM
   ============================================ */

.blog-controls-premium {
    background: var(--white);
    padding: var(--space-8) 0;
    border-bottom: 1px solid var(--gray-100);
}

.search-box-premium {
    position: relative;
    max-width: 600px;
    margin: 0 auto var(--space-8);
}

.search-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    z-index: 2;
}

.search-box-premium input {
    width: 100%;
    padding: var(--space-4) var(--space-4) var(--space-4) calc(var(--space-4) + 24px + var(--space-2));
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    font-size: var(--text-lg);
    background: var(--white);
    transition: all var(--duration-300) var(--ease-premium);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-box-premium input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(247, 184, 199, 0.1);
}

.search-results-count {
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--text-sm);
    color: var(--gray-500);
    font-weight: var(--font-medium);
}

.filter-tags-premium {
    max-width: 1000px;
    margin: 0 auto;
}

.filter-section {
    text-align: center;
}

.filter-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--navy-primary);
    margin-bottom: var(--space-4);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.filter-tag-premium {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    color: var(--gray-600);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all var(--duration-300) var(--ease-premium);
    position: relative;
    overflow: hidden;
}

.filter-tag-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(247, 184, 199, 0.1), transparent);
    transition: left var(--duration-500) var(--ease-premium);
}

.filter-tag-premium:hover::before {
    left: 100%;
}

.filter-tag-premium:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 184, 199, 0.2);
}

.filter-tag-premium.active {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(247, 184, 199, 0.3);
}

.filter-tag-premium svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero-stats {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: var(--space-2);
    }
    
    .filter-tag-premium {
        flex-shrink: 0;
    }
}

/* Featured Post */
.featured-post {
    margin: calc(-1 * var(--space-12)) auto var(--space-16);
    max-width: 1200px;
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    position: relative;
}

.featured-badge-post {
    position: absolute;
    top: var(--space-6);
    left: var(--space-6);
    padding: var(--space-2) var(--space-4);
    background: var(--gold-primary);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    border-radius: var(--radius-md);
    z-index: 10;
}

.featured-image {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-700) var(--ease-premium);
}

.featured-post:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: var(--space-10);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-category-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--navy-ultra-light);
    color: var(--navy-primary);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    width: fit-content;
}

.featured-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-extrabold);
    color: var(--navy-primary);
    margin-bottom: var(--space-4);
    line-height: var(--leading-tight);
}

.featured-excerpt {
    color: var(--gray-700);
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
}

.author-info-inline {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.author-avatar-small {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    object-fit: cover;
}

.author-details-inline {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name-inline {
    font-weight: var(--font-semibold);
    color: var(--navy-primary);
    font-size: var(--text-base);
}

.post-date-inline {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.btn-read-featured {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: var(--navy-medium);
    color: var(--white);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: var(--font-semibold);
    transition: all var(--duration-300) var(--ease-premium);
}

.btn-read-featured:hover {
    background: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    color: var(--white);
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gray-200);
    z-index: calc(var(--z-fixed) + 1);
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
    width: 0%;
    transition: width 0.1s ease;
}

/* Social Share Sticky */
.social-share-sticky {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-right: var(--space-6);
}

.share-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--duration-300) var(--ease-premium);
    font-size: var(--text-lg);
}

.share-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.share-btn[data-platform="whatsapp"]:hover {
    background: #25D366;
    color: var(--white);
    border-color: #25D366;
}

.share-btn[data-platform="twitter"]:hover {
    background: #1DA1F2;
    color: var(--white);
    border-color: #1DA1F2;
}

.share-btn[data-platform="facebook"]:hover {
    background: #1877F2;
    color: var(--white);
    border-color: #1877F2;
}

.share-btn[data-platform="linkedin"]:hover {
    background: #0A66C2;
    color: var(--white);
    border-color: #0A66C2;
}

.share-btn.copy-link:hover {
    background: var(--gold-primary);
    color: var(--white);
    border-color: var(--gold-primary);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.breadcrumbs a {
    color: var(--navy-medium);
    text-decoration: none;
    transition: color var(--duration-200);
}

.breadcrumbs a:hover {
    color: var(--gold-primary);
}

.breadcrumbs span {
    color: var(--gray-400);
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-8);
    padding-top: var(--space-8);
    border-top: 1px solid var(--gray-200);
}

.tag {
    padding: var(--space-2) var(--space-4);
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--duration-200) var(--ease-premium);
}

.tag:hover {
    background: var(--navy-medium);
    color: var(--white);
    transform: translateY(-2px);
}

/* Related Posts */
.related-posts {
    margin-top: var(--space-16);
    padding: var(--space-12) 0;
    border-top: 2px solid var(--gray-200);
}

.related-posts h3 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--navy-primary);
    margin-bottom: var(--space-8);
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

/* Post CTA Box */
.post-cta-box {
    margin-top: var(--space-12);
    padding: var(--space-10);
    background: linear-gradient(135deg, var(--navy-primary), var(--navy-medium));
    border-radius: var(--radius-2xl);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.post-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(247, 184, 199, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.post-cta-box h3 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 2;
    color: var(--white);
}

.post-cta-box p {
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.btn-cta-large {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    background: var(--gold-primary);
    color: var(--white);
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: var(--font-semibold);
    font-size: var(--text-lg);
    transition: all var(--duration-300) var(--ease-premium);
    position: relative;
    z-index: 2;
}

.btn-cta-large:hover {
    background: var(--gold-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold-lg);
    color: var(--white);
}

/* Responsive Blog */
@media (max-width: 1024px) {
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        height: 350px;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-share-sticky {
        position: relative;
        flex-direction: row;
        margin-right: 0;
        margin-bottom: var(--space-6);
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: calc(70px + var(--space-12)) 0 var(--space-12);
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-content {
        padding: var(--space-6);
    }
}



