/* =============================================
   BLOG - Archive & Single
   ============================================= */

/* Hero Banner */
.blog-hero {
    position: relative;
    width: 100%;
    min-height: 250px;
    background-color: #1a1a2e;
    overflow: hidden;
}

.blog-hero__bg {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    display: block;
}

.blog-hero__default {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #0f0f23 100%);
}

.blog-hero__titulo {
    margin: 0;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 60px;
    font-weight: 700;
    letter-spacing: 8px;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* Header Section */
.blog-header {
    padding: 40px 0 20px;
    text-align: center;
}

.blog-header__titulo {
    margin: 0 0 20px;
    color: #C51A1B;
    font-family: 'Raleway', sans-serif;
    font-size: 42px;
    font-weight: 700;
    font-style: italic;
}

.blog-header__linea {
    width: 100%;
    height: 1px;
    background-color: #ddd;
}

/* =============================================
   ARCHIVE - Blog Listing
   ============================================= */

.blog-listing {
    padding: 20px 0 60px;
}

.blog-listing__vacio {
    text-align: center;
    color: #999;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    padding: 40px 0;
}

/* Blog Entry */
.blog-entry {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.blog-entry:last-child {
    border-bottom: none;
}

.blog-entry__titulo {
    margin: 0 0 15px;
}

.blog-entry__titulo a {
    color: #C51A1B;
    font-family: 'Raleway', sans-serif;
    font-size: calc(18px + (22 - 18) * ((100vw - 300px) / (1600 - 300)));
    font-weight: 700;
    text-decoration: none;
    line-height: 1.3;
}

.blog-entry__titulo a:hover {
    text-decoration: underline;
}

.blog-entry__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid #eee;
    background-color: #f9f9f9;
}

.blog-entry--right .blog-entry__card {
    direction: rtl;
}

.blog-entry--right .blog-entry__card > * {
    direction: ltr;
}

.blog-entry__imagen {
    overflow: hidden;
}

.blog-entry__img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.blog-entry__imagen:hover .blog-entry__img {
    transform: scale(1.05);
}

.blog-entry__no-img {
    width: 100%;
    height: 300px;
    background-color: #e0e0e0;
}

.blog-entry__contenido {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-entry__meta {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.blog-entry__autor {
    color: #666;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
}

.blog-entry__autor strong {
    color: #C51A1B;
}

.blog-entry__fecha {
    color: #666;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
}

.blog-entry__fecha strong {
    color: #C51A1B;
}

.blog-entry__share {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.blog-entry__share-icon {
    color: #999;
    transition: color 0.3s ease;
}

.blog-entry__share-icon:hover {
    color: #C51A1B;
}

.blog-entry__resumen {
    color: #666;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.blog-entry__btn {
    display: inline-block;
    align-self: flex-start;
    padding: 10px 25px;
    background-color: #C51A1B;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.blog-entry__btn:hover {
    background-color: #a01515;
    color: #fff;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #666;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-pagination a:hover {
    background-color: #C51A1B;
    color: #fff;
    border-color: #C51A1B;
}

.blog-pagination .current {
    background-color: #C51A1B;
    color: #fff;
    border-color: #C51A1B;
}

/* =============================================
   SINGLE - Blog Post
   ============================================= */

.blog-single-hero {
    position: relative;
    width: 100%;
    max-height: 400px;
    background-color: #1a1a2e;
    overflow: hidden;
}

.blog-single-hero__bg {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.blog-single-hero__default {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #0f0f23 100%);
}

.blog-single-hero__titulo {
    margin: 0;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 60px;
    font-weight: 700;
    letter-spacing: 8px;
}

/* Single Header */
.blog-single-header {
    padding: 30px 0;
    text-align: center;
}

.blog-single-header__titulo {
    margin: 0 0 15px;
    color: #C51A1B;
    font-family: 'Raleway', sans-serif;
    font-size: calc(24px + (32 - 24) * ((100vw - 300px) / (1600 - 300)));
    font-weight: 700;
    line-height: 1.3;
}

.blog-single-header__linea {
    width: 80px;
    height: 2px;
    background-color: #ccc;
    margin: 0 auto;
}

/* Featured Image */
.blog-single-featured {
    padding: 0 0 30px;
}

.blog-single-featured__wrap {
    max-width: 900px;
    margin: 0 auto;
}

.blog-single-featured__img {
    width: 100%;
    height: auto;
    display: block;
}

/* Meta Bar */
.blog-single-meta {
    padding: 0 0 30px;
}

.blog-single-meta__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background-color: #f9f9f9;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-single-meta__info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.blog-single-meta__autor {
    color: #666;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
}

.blog-single-meta__autor strong {
    color: #C51A1B;
}

.blog-single-meta__fecha {
    color: #666;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
}

.blog-single-meta__fecha strong {
    color: #C51A1B;
}

.blog-single-meta__share {
    display: flex;
    gap: 10px;
}

.blog-single-meta__share-icon {
    color: #999;
    transition: color 0.3s ease;
}

.blog-single-meta__share-icon:hover {
    color: #C51A1B;
}

/* Single Content */
.blog-single-content {
    padding: 0 0 40px;
}

.blog-single-content__texto {
    margin: 0 auto;
    color: #555;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    line-height: 1.8;
}

.blog-single-content__texto p {
    margin-bottom: 15px;
}

.blog-single-content__texto h2,
.blog-single-content__texto h3,
.blog-single-content__texto h4 {
    color: #606060;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 10px;
}

.blog-single-content__texto h2 {
    font-size: 22px;
}

.blog-single-content__texto h3 {
    font-size: 18px;
}

.blog-single-content__texto h4 {
    font-size: 16px;
}

.blog-single-content__texto strong {
    color: #606060;
    font-weight: 600;
}

.blog-single-content__texto a {
    color: #C51A1B;
    text-decoration: underline;
}

.blog-single-content__texto a:hover {
    color: #a01515;
}

.blog-single-content__texto blockquote {
    border-left: 4px solid #C51A1B;
    padding: 15px 20px;
    margin: 20px 0;
    background-color: #f9f9f9;
    font-style: italic;
    color: #555;
}

.blog-single-content__texto ul,
.blog-single-content__texto ol {
    padding-left: 25px;
    margin-bottom: 15px;
}

.blog-single-content__texto li {
    margin-bottom: 8px;
}

.blog-single-content__texto img {
    max-width: 100%;
    height: auto;
}

/* Volver */
.blog-single-volver {
    padding: 0 0 50px;
    text-align: center;
}

.blog-single-volver__btn {
    display: inline-block;
    padding: 12px 40px;
    background-color: #C51A1B;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.blog-single-volver__btn:hover {
    background-color: #a01515;
    color: #fff;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (min-width: 1024px) and (max-width: 1199px) {
    .blog-hero__titulo {
        font-size: 50px;
    }

    .blog-entry__img {
        height: 260px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .blog-hero__titulo {
        font-size: 45px;
    }

    .blog-header__titulo {
        font-size: 36px;
    }

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

    .blog-entry--right .blog-entry__card {
        direction: ltr;
    }

    .blog-entry__img {
        height: 250px;
    }

    .blog-entry__contenido {
        padding: 20px;
    }

    .blog-single-header__titulo {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .blog-hero {
        min-height: 180px;
    }

    .blog-hero__default {
        min-height: 180px;
    }

    .blog-hero__titulo {
        font-size: 36px;
        letter-spacing: 4px;
    }

    .blog-header__titulo {
        font-size: 32px;
    }

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

    .blog-entry--right .blog-entry__card {
        direction: ltr;
    }

    .blog-entry__img {
        height: 200px;
    }

    .blog-entry__contenido {
        padding: 15px;
    }

    .blog-entry__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .blog-entry__share {
        margin-left: 0;
    }

    .blog-single-hero {
        max-height: 250px;
    }

    .blog-single-hero__bg {
        max-height: 250px;
    }

    .blog-single-header__titulo {
        font-size: 22px;
    }

    .blog-single-meta__bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-single-meta__share {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .blog-hero__titulo {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .blog-header__titulo {
        font-size: 28px;
    }

    .blog-entry__titulo a {
        font-size: 18px;
    }

    .blog-entry__btn {
        font-size: 12px;
        padding: 8px 20px;
    }

    .blog-single-hero__titulo {
        font-size: 28px;
    }

    .blog-single-header__titulo {
        font-size: 20px;
    }

    .blog-single-content__texto {
        font-size: 14px;
    }

    .blog-single-volver__btn {
        font-size: 14px;
        padding: 10px 30px;
    }
}
