/* 
 * Blog Académico IVCA
 * Hoja de Estilos
 */

:root {
    --landing-primary: #154ec1;
    --landing-primary-hover: #0f3ba1;
    --landing-bg: #f8fafc;
    --landing-text-dark: #1e293b;
    --landing-text-muted: #475569;
    --landing-accent: #f97316;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--landing-bg);
    color: var(--landing-text-dark);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Header --- */
.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(21, 78, 193, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--landing-primary);
    text-decoration: none;
}

.landing-logo img {
    height: 36px;
    width: 36px;
    border-radius: 8px;
    object-fit: contain;
}

.btn-outline {
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--landing-primary);
    border: 2px solid var(--landing-primary);
    background: transparent;
    transition: all 0.2s;
 display: inline-block; white-space: nowrap; text-align: center;}

.btn-outline:hover {
    background-color: #eef4ff;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 4rem 2rem 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--landing-text-dark);
}

.hero p {
    color: var(--landing-text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Blog Hub Grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 5%;
}

.blog-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.blog-card-img {
    height: 200px;
    background-color: #eef4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.blog-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-tag {
    color: var(--landing-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.25rem;
    margin: 0 0 10px 0;
    color: var(--landing-text-dark);
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--landing-text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-date {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* --- Single Post Layout --- */
.post-container {
    max-width: 800px;
    margin: 3rem auto 5rem;
    padding: 0 5%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    padding: 3rem 4rem;
}

.post-header {
    margin-bottom: 3rem;
    text-align: center;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 2rem;
}

.post-header h1 {
    font-size: 2.5rem;
    color: var(--landing-text-dark);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.post-meta {
    color: #64748b;
    font-size: 0.95rem;
}

.post-content h2 {
    font-size: 1.8rem;
    color: var(--landing-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-content h3 {
    font-size: 1.4rem;
    color: var(--landing-text-dark);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.post-content p {
    font-size: 1.1rem;
    color: var(--landing-text-muted);
    margin-bottom: 1.5rem;
}

.post-content ul, .post-content ol {
    font-size: 1.1rem;
    color: var(--landing-text-muted);
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content strong {
    color: var(--landing-text-dark);
}

.source-box {
    background: #eef4ff;
    border-left: 4px solid var(--landing-primary);
    padding: 1.5rem;
    margin: 3rem 0;
    border-radius: 0 8px 8px 0;
}

.source-box p {
    margin: 0;
    font-size: 1rem;
    color: var(--landing-primary);
}

.source-box a {
    color: var(--landing-primary-hover);
    font-weight: bold;
    text-decoration: underline;
}

/* --- Footer --- */
.landing-footer {
    background-color: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: auto;
}

@media (max-width: 768px) {
    .post-container {
        padding: 2rem;
    }
    .post-header h1 {
        font-size: 2rem;
    }
}

