/* =========================================
   Blog Styles - Design System Tokens
========================================= */

/* Typography Utils */
.vagBold {
    font-weight: 700;
}

/* Banner */
.blog-banner {
    position: relative;
    width: 100%;
}

/* Banner simple del listado (sin imagen de fondo), ver blog_page.html */
.blog-banner-simple {
    border-bottom: 4px solid var(--bs-danger, #dc3545);
}

/* #header .fixed-top flota fuera del flujo del documento (position: fixed),
   por lo que el contenido no recibe ningún empuje automático hacia abajo.
   Sin este padding, el título/imagen del héroe queda tapado por el nav. */
.article-hero {
    padding-top: 130px !important;
}
@media (max-width: 991px) {
    .article-hero {
        padding-top: 100px !important;
    }
}
.blog-banner .banner-overlay {
    background: rgba(0, 0, 0, 0.4);
}
.wave-bottom svg {
    display: block;
}

/* Hero del articulo: imagen a la derecha del texto en todos los breakpoints
   (no se apila abajo en mobile). El titulo/descripcion se reducen para que
   quepan en la mitad del ancho en pantallas angostas. */
.article-hero-title {
    font-size: 42px;
}
.article-hero-description {
    font-size: 18px;
}
@media (max-width: 767px) {
    .article-hero-title {
        font-size: 22px;
    }
    .article-hero-description {
        font-size: 14px;
    }
    .article-hero-row {
        min-height: auto !important;
    }
    .article-hero-content .category-badge .badge {
        font-size: 11px;
        padding: 0.35rem 0.6rem !important;
    }
    [data-testid="blog-article-breadcrumb"] {
        font-size: 11px;
    }
    [data-testid="blog-article-breadcrumb"] [data-testid^="blog-article-breadcrumb-item-"] {
        font-size: 11px !important;
    }
}

/* Categories */
.blog-categories {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.blog-categories::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}
.category-item {
    min-width: max-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}
.category-item:hover .vagBold,
.category-item.active .vagBold {
    color: var(--bs-primary) !important;
}

/* Icono de categoria: circulo pequeño outline, se rellena solo si esta activo. */
.category-icon--outline {
    width: 56px;
    height: 56px;
    border: 2px solid var(--bs-primary);
    background-color: transparent;
    transition: all 0.3s ease;
}
.category-icon--outline img {
    width: 28px;
    height: 28px;
}
.category-item:hover .category-icon--outline,
.category-icon--outline.category-icon--active {
    background-color: var(--bs-primary);
    transform: scale(1.05);
}
.category-item:hover .category-icon--outline img,
.category-icon--active img {
    filter: brightness(0) invert(1);
}

/* Article Cards */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}
.transition-scale {
    transition: transform 0.4s ease;
}
.blog-card:hover .transition-scale {
    transform: scale(1.1);
}
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Social Sharing */
.social-sharing {
    padding-bottom: 2.5rem;
}
.social-sharing-icons {
    row-gap: 0.75rem;
}
.social-btn {
    width: 44px;
    height: 44px;
    padding: 10px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}
.social-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: #fff !important;
}

/* Contenido RichText */
.contenido h1, .contenido h2, .contenido h3, .contenido h4, .contenido h5 {
    color: var(--bs-info, #17a2b8);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}
.contenido p {
    font-size: 16px;
    color: var(--bs-secondary);
    line-height: 1.6;
}
.contenido blockquote {
    border-left: 4px solid var(--bs-info, #17a2b8);
    padding-left: 1rem;
    margin-left: 0;
    font-style: italic;
    color: #666;
}
.contenido img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 1.5rem 0;
}
.contenido iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    margin: 1.5rem 0;
}

/* Paginator */
.pagination .page-link {
    transition: all 0.2s ease;
}
.pagination .page-link:hover {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
}
