/* ==========================================================================
   Estilos de la Sección de Blog - SinkroPro
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading);
}

body {
    background-color: #111111;
    color: #ffffff;
    font-family: var(--body);
}

/* Contenedor general del blog al 90% */
.container-blog {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 90px;
}

/* --- Banner Superior --- */
.banner-section {
    position: relative;
    width: 100%;
    height: 47rem;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(17, 17, 17, 0.4) 0%,
        rgba(17, 17, 17, 0.95) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner-content .servicios-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    margin: 0;
}

.text-red {
    color: #e31b23;
}

.servicios-informativos {
    padding: 2rem;
}
.servicios-header {
    justify-items: center;
}
/* --- 1. Artículo Destacado --- */
.featured-post {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    background-color: #161616;
    border: 1px solid #222222;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s ease;
}

.featured-post:hover {
    border-color: #e31b23;
}

.featured-img-wrap {
    position: relative;
    width: 100%;
    min-height: 350px;
    overflow: hidden;
}

.featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-post:hover .featured-img-wrap img {
    transform: scale(1.04);
}

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta {
    font-size: 13px;
    color: #999999;
    margin-bottom: 15px;
    display: flex;
    gap: 8px;
}

.post-category {
    color: #e31b23;
    font-weight: 600;
}

.featured-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.featured-content p {
    font-size: 15px;
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* --- Botón Inclinado Estilo SinkroPro --- */
.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff5722 0%, #e31b23 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 28px;
    transform: skewX(-20deg);
    text-decoration: none;
    width: fit-content;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(227, 27, 35, 0.3);
    font-family: var(--heading);
}

.service-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px) skewX(-20deg);
}

/* --- 2. Grid de Entradas --- */
.blog-grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}

.blog-card-item {
    background-color: #161616;
    border: 1px solid #222222;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.blog-card-item:hover {
    transform: translateY(-6px);
    border-color: #e31b23;
    box-shadow: 0 10px 25px rgba(227, 27, 35, 0.25);
}

.blog-card-img {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #202020;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card-item:hover .blog-card-img img {
    transform: scale(1.05);
}

.blog-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(227, 27, 35, 0.9);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.blog-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.blog-card-body p {
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e31b23;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.read-more-link:hover {
    color: #ffffff;
}

.read-more-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* --- Adaptabilidad Responsive --- */
@media (max-width: 992px) {
    .banner-section {
        height: 13rem;
    }
    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-img-wrap {
        min-height: 250px;
    }

    .blog-grid-section {
        grid-template-columns: 1fr;
    }

    .slide-from-left,
    .slide-from-right {
        transform: none;
    }
}
