/* ========================================
   BLOG - PÁGINA DE BLOG Y RECETAS
   ======================================== */

/* ======== BEST RECIPES SECTION ======== */
.best-recipes-section {
    padding: var(--spacing-xxl) 0;
}

.section-header-left {
    text-align: left;
    margin-bottom: var(--spacing-xl);
    padding-left: var(--spacing-md);
    border-left: 4px solid var(--color-primary);
}

.section-header-left h2 {
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: 3px;
    font-size: 1.8rem;
    font-weight: 700;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

/* ======== RECIPE CARD ======== */
.recipe-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(139,90,60,0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.recipe-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(139,90,60,0.25);
}

.recipe-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.recipe-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recipe-card:hover .recipe-card-image img {
    transform: scale(1.1);
}

.recipe-card-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.recipe-card-content h3 {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    line-height: 1.3;
}

.recipe-card-content p {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
    font-size: 0.95rem;
}

/* Recipe Meta (tiempo y likes) */
.recipe-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(139,90,60,0.1);
}

.recipe-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.recipe-meta span:last-child {
    margin-left: auto;
}

.recipe-meta i {
    color: var(--color-primary);
    font-size: 0.9rem;
}

/* Botón Ver Receta */
.btn-recipe {
    display: block;
    text-align: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(139,90,60,0.3);
}

.btn-recipe:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(139,90,60,0.4);
}

.btn-recipe:active {
    transform: translateY(0);
}

/* Badge NEW */
.recipe-card .badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-primary);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 
        0 0 15px rgba(139,90,60,0.6),
        0 0 30px rgba(139,90,60,0.3),
        0 4px 10px rgba(139,90,60,0.4);
}


/* ======== BANNER SECTION ======== */
.blog-banner {
    background: linear-gradient(135deg, #6B4423 0%, #8B5A3C 50%, #A0785A 100%);
    padding: 0;
    overflow: hidden;
    position: relative;
}

.blog-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 1px, transparent 1px),
        radial-gradient(circle at 40% 20%, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 80px 80px, 120px 120px, 100px 100px;
    background-position: 0 0, 40px 40px, 20px 20px;
    pointer-events: none;
}

.blog-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 5px, rgba(255,255,255,0.02) 5px, rgba(255,255,255,0.02) 10px),
        repeating-linear-gradient(0deg, transparent, transparent 5px, rgba(0,0,0,0.02) 5px, rgba(0,0,0,0.02) 10px);
    pointer-events: none;
}

.banner-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 350px;
    gap: 2.5rem;
    padding: 2.5rem 3rem;
    position: relative;
    z-index: 1;
}

.banner-content {
    padding: 1.5rem;
    color: white;
}

.banner-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1rem;
}

.banner-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.banner-content p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-banner {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    background: white;
    color: #8B5A3C;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: #F5F5F0;
}

.banner-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.banner-image {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ======== COFFEE RECIPES SECTION ======== */
.coffee-recipes-section {
    padding: var(--spacing-xxl) 0;
}

/* ======== SHARE RECIPE SECTION ======== */
.share-recipe-section {
    padding: var(--spacing-xxl) 0;
}

.share-box {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: var(--spacing-xxl) var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 8px 30px rgba(139,90,60,0.2);
}

.share-box h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.share-box p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2.5rem;
    background: white;
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-share i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-share:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.btn-share:hover i {
    transform: translateX(3px);
}

/* ======== TIPS SECTION ======== */
.tips-section {
    padding: var(--spacing-xxl) 0;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.tip-card {
    display: flex;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(139,90,60,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(139,90,60,0.2);
}

.tip-image {
    flex-shrink: 0;
    width: 280px;
    height: 240px;
    overflow: hidden;
}

.tip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tip-card:hover .tip-image img {
    transform: scale(1.08);
}

.tip-content {
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    flex-grow: 1;
}

.tip-text {
    flex-grow: 1;
}

.tip-content h3 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    line-height: 1.3;
}

.tip-content p {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.tip-meta {
    display: flex;
    gap: var(--spacing-lg);
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.tip-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tip-meta i {
    color: var(--color-primary);
}

.btn-read {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 4px 12px rgba(139,90,60,0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-read:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(139,90,60,0.4);
}

.btn-read:active {
    transform: translateY(0);
}

/* ======== RESPONSIVE ======== */
@media (max-width: 992px) {
    .recipes-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .recipe-card-image {
        height: 220px;
    }

    .blog-banner {
        background-attachment: scroll;
    }

    .blog-banner .banner-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 2rem;
        min-height: auto;
    }

    .banner-content {
        text-align: center;
        padding: 1rem;
    }

    .banner-content h2 {
        font-size: 1.8rem;
    }

    .banner-image-wrapper {
        padding: 0.5rem;
    }

    .banner-image {
        max-width: 450px;
        height: 280px;
        margin: 0 auto;
    }

    .share-box {
        padding: var(--spacing-xl);
    }

    .share-box h2 {
        font-size: 1.7rem;
    }

    .section-header-left h2 {
        font-size: 1.6rem;
    }

    .tip-card {
        flex-direction: column;
    }

    .tip-image {
        width: 100%;
        height: 240px;
    }

    .tip-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-read {
        align-self: flex-end;
        margin-top: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .recipes-grid {
        grid-template-columns: 1fr;
    }

    .recipe-card-image {
        height: 200px;
    }

    .recipe-card-content h3 {
        font-size: 1.2rem;
    }

    .blog-banner {
        background-attachment: scroll;
    }

    .banner-content h2 {
        font-size: 1.5rem;
    }

    .banner-content p {
        font-size: 0.85rem;
    }

    .banner-image {
        max-width: 100%;
        height: 240px;
    }

    .share-box h2 {
        font-size: 1.5rem;
    }

    .share-box p {
        font-size: 0.95rem;
    }

    .section-header-left h2 {
        font-size: 1.4rem;
    }

    .tip-content h3 {
        font-size: 1.2rem;
    }

    .tip-content {
        padding: var(--spacing-lg);
    }
}
