/* Estilos propios de blog.html (antes estaban dentro de la página) */
:root {
    --primary: #c5a059;
    --dark-bg: #0a0b10;
    --card-bg: #16181d;
    --text: #e0e0e0;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--dark-bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.content-bg {
    position: relative;
    padding-top: 95px;
    padding-bottom: 70px;
    min-height: 85vh;
    z-index: 1;
}

.content-bg::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(10, 11, 16, 0.88), rgba(10, 11, 16, 0.96)), url('/img/ui/fondo.jpg') no-repeat center center/cover;
    z-index: -1;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
    gap: 26px;
}

.blog-card {
    background: rgba(18, 22, 32, 0.95);
    border: 1px solid rgba(197, 160, 89, 0.28);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.blog-card:hover {
    transform: translateY(-8px) scale(1.015);
    border-color: #facc15;
    box-shadow: 0 20px 45px rgba(0,0,0,0.8), 0 0 30px rgba(197, 160, 89, 0.28);
}

.blog-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

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

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

.blog-tag {
    background: rgba(197, 160, 89, 0.15);
    color: var(--primary);
    border: 1px solid rgba(197, 160, 89, 0.35);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 800;
    width: fit-content;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
}

.blog-card-title {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.22rem;
    line-height: 1.35;
    margin: 0 0 10px 0;
    font-weight: 800;
    transition: color 0.25s ease;
}

.blog-card:hover .blog-card-title {
    color: #facc15;
}

.blog-card-desc {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0 0 16px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
    font-size: 0.8rem;
    color: #888;
}

/* VISTA DETALLADA DEL ARTÍCULO (READER) */
.article-reader-container {
    max-width: 920px;
    margin: 0 auto;
    background: rgba(18, 22, 32, 0.96);
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.85), 0 0 35px rgba(197, 160, 89, 0.15);
    animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .article-reader-container { padding: 22px 18px; }
    .blog-grid { grid-template-columns: 1fr; }
}

.article-prose {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.85;
    margin-top: 25px;
}

.article-prose p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-prose h3 {
    color: #facc15;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.45rem;
    margin: 35px 0 14px 0;
    border-bottom: 1px solid rgba(197, 160, 89, 0.25);
    padding-bottom: 8px;
}

.article-callout {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.12), rgba(18, 22, 32, 0.95));
    border-left: 5px solid var(--primary);
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin: 28px 0;
    color: #e2e8f0;
    font-size: 0.98rem;
    line-height: 1.65;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.article-callout code {
    background: #0b0f19;
    color: #4ade80;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.95rem;
}

