/* =========================================
   THE CULINARY JOURNAL (BLOG)
   ========================================= */

/* Hero Section */
.journal-hero {
    position: relative;
    height: 45vh;
    min-height: 400px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/taste-peru.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 136px; /* Ajuste por tu header fijo */
    text-align: center;
}

.journal-hero-content {
    color: #fff;
    padding: 20px;
    animation: fadeInDown 1.5s ease;
}

.journal-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.journal-hero-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-weight: 300;
    font-style: italic;
    color: #f1f1f1;
}

/* Layout Principal */
.journal-main {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Artículo Destacado */
.journal-featured {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 60px;
    transition: transform 0.3s ease;
}

.journal-featured:hover {
    transform: translateY(-5px);
}

.featured-image {
    flex: 1;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.journal-featured:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.journal-category {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #E0301F;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.featured-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 20px;
}

.featured-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.featured-title a:hover {
    color: #E0301F;
}

.featured-excerpt {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #6A7677;
    line-height: 1.8;
    margin-bottom: 30px;
}

.journal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
    font-family: 'Open Sans', sans-serif;
    color: #888;
}

.btn-read-more {
    color: #E0301F;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

.btn-read-more:hover {
    opacity: 0.7;
}

/* Cuadrícula (Grid) */
.journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.journal-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.journal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.journal-card:hover .card-image-wrapper img {
    transform: scale(1.08);
}

.card-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #fff;
    color: #2c3e50;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
}

.card-content {
    padding: 30px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.card-title a:hover {
    color: #E0301F;
}

.card-excerpt {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: #6A7677;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

.card-link {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #E0301F;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    position: relative;
}

.card-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #E0301F;
    transition: width 0.3s ease;
}

.journal-card:hover .card-link::after {
    width: 100%;
}

/* Móviles */
@media (max-width: 768px) {
    .journal-hero {
        margin-top: 0;
        height: 40vh;
    }
    .journal-hero-title {
        font-size: 38px;
    }
    .journal-featured {
        flex-direction: column;
    }
    .featured-content {
        padding: 30px 20px;
    }
    .featured-title {
        font-size: 26px;
    }
}

/* =========================================
   DISEÑO DEL ARTÍCULO INDIVIDUAL (SINGLE POST)
   ========================================= */

.single-article {
    background-color: #fcfcfc;
    padding-bottom: 80px;
}

/* Hero del Artículo */
.article-hero {
    position: relative;
    height: 55vh;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 136px;
    text-align: center;
    padding: 0 20px;
}

.article-hero-content {
    max-width: 800px;
    color: #fff;
    animation: fadeInUp 1s ease;
}

.article-badge {
    background-color: #E0301F;
    color: #fff;
    padding: 6px 15px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 20px;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.article-meta-header {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: #ddd;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Contenedor del texto */
.article-container {
    max-width: 800px;
    margin: -60px auto 0; /* Sube un poco sobre la imagen hero */
    background: #fff;
    padding: 60px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
}

.article-content {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    line-height: 1.9;
    color: #444;
}

/* Letra Capital (Drop Cap) */
.drop-cap {
    float: left;
    font-family: 'Playfair Display', serif;
    font-size: 75px;
    line-height: 60px;
    padding-top: 4px;
    padding-right: 12px;
    color: #E0301F;
}

.article-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #2c3e50;
    margin-top: 50px;
    margin-bottom: 20px;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content strong {
    color: #2c3e50;
}

/* Cita (Blockquote) */
.article-quote {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-style: italic;
    color: #1D864B;
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    position: relative;
}

/* Caja de Llamada a la Acción (Reservas) */
.article-cta-box {
    background-color: #f8f9fa;
    border-left: 4px solid #E0301F;
    padding: 30px;
    margin: 50px 0;
    border-radius: 0 8px 8px 0;
}

.article-cta-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
}

.btn-cta-article {
    display: inline-block;
    background-color: #E0301F;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-cta-article:hover {
    background-color: #1D864B;
}

/* Caja del Autor */
.author-box {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.author-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.author-info p {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: #6A7677;
    margin: 0;
    line-height: 1.6;
}

/* Responsive para el Artículo */
@media (max-width: 768px) {
    .article-hero {
        margin-top: 0;
        height: 40vh;
    }
    .article-title {
        font-size: 32px;
    }
    .article-container {
        margin: -30px 15px 0;
        padding: 30px 20px;
    }
    .article-content {
        font-size: 16px;
    }
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}