/* ═══════════════════════════════════════════════════════════════════════
   LYVANTO — BLOG MODULE STYLES  ·  blog.css
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. Layout del Blog ──────────────────────────────────────────────── */
.blog-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 80px 80px; /* Margen superior amplio por la barra de navegación */
    min-height: calc(100vh - 400px);
}

.blog-header {
    text-align: center;
    margin-bottom: 72px;
}

.blog-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--bronce);
    margin-bottom: 14px;
}

.blog-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 700;
    color: var(--verde);
    line-height: 1.15;
}

.blog-subtitle {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--gris);
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.7;
    opacity: 0.8;
}

/* ── 2. Grid de Artículos ────────────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 48px;
    margin-bottom: 60px;
}

.blog-card {
    background: var(--blanco);
    border: 1px solid rgba(26, 46, 34, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(26, 46, 34, 0.08);
    border-color: rgba(26, 46, 34, 0.15);
}

.blog-card-image-link {
    display: block;
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background-color: var(--crema);
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

.blog-card-meta {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bronce);
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
}

.blog-card-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--verde);
    margin-bottom: 14px;
    line-height: 1.3;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card-excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: var(--gris);
    margin-bottom: 24px;
    flex-grow: 1;
    opacity: 0.85;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--verde);
    text-decoration: none;
    transition: color 0.2s;
    margin-top: auto;
}

.blog-card-link::after {
    content: "→";
    transition: transform 0.2s;
}

.blog-card-link:hover {
    color: var(--bronce);
}

.blog-card-link:hover::after {
    transform: translateX(4px);
}

/* ── 3. Detalle del Artículo (Post Page) ──────────────────────────────── */
.post-layout {
    max-width: 900px;
    margin: 0 auto;
    padding: 160px 24px 80px;
}

.post-header {
    text-align: center;
    margin-bottom: 56px;
}

.post-meta {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--bronce);
    margin-bottom: 20px;
}

.post-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 3.5vw, 48px);
    font-weight: 700;
    color: var(--verde);
    line-height: 1.2;
    margin-bottom: 32px;
}

.post-hero {
    width: 100%;
    height: 480px;
    margin-bottom: 56px;
    overflow: hidden;
    border: 1px solid rgba(26, 46, 34, 0.08);
}

.post-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.95;
    color: rgba(53, 32, 22, 0.88);
    text-align: justify;
}

.post-content p {
    margin-bottom: 32px;
}

.post-content h2, .post-content h3 {
    font-family: var(--font-serif);
    color: var(--verde);
    margin-top: 48px;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.post-content h2 {
    font-size: 28px;
    border-bottom: 1px solid rgba(26,46,34,.1);
    padding-bottom: 12px;
}

.post-content h3 {
    font-size: 22px;
}

.post-content ul, .post-content ol {
    margin-bottom: 32px;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 12px;
}

.post-content blockquote {
    margin: 48px 0;
    padding: 24px 40px;
    border-left: 3px solid var(--bronce);
    background: rgba(245, 242, 232, 0.4);
    font-family: var(--font-serif);
    font-size: 20px;
    font-style: italic;
    line-height: 1.6;
    color: var(--verde);
}

/* ── 4. Sección Compartida en Home (Landing Page) ────────────────────── */
.landing-blog-section {
    padding: 100px 48px;
    background: var(--blanco);
    border-top: 1px solid rgba(26, 46, 34, 0.08);
}

.landing-blog-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.landing-blog-header {
    text-align: center;
    margin-bottom: 56px;
}

/* ── 5. Responsive móvil ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .blog-layout {
        padding: 120px 24px 60px;
    }
    .blog-header {
        margin-bottom: 48px;
    }
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .post-layout {
        padding: 120px 20px 60px;
    }
    .post-hero {
        height: 280px;
        margin-bottom: 32px;
    }
    .post-content {
        font-size: 15px;
        line-height: 1.85;
    }
    .landing-blog-section {
        padding: 60px 20px;
    }
}

/* ── 6. Botón Explorar Blog (Landing) ───────────────────────────────── */
.blog-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--verde, #214530);
    text-decoration: none;
    padding: 18px 40px;
    border: 1px solid rgba(26, 46, 34, 0.2);
    background: transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.blog-explore-btn:hover {
    background: var(--verde, #214530);
    color: var(--hueso, #F5F2E8);
    border-color: var(--verde, #214530);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(33, 69, 48, 0.15);
}

.blog-explore-btn svg {
    transition: transform 0.3s ease;
}

.blog-explore-btn:hover svg {
    transform: translateX(4px);
}
