
/* ---
   Theme: Minimalist Clean
   Font: Inter
   Primary Language: Spanish
   Tone: Informative & Straightforward
--- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

/* --- CSS Variables --- */
:root {
    --bg-color: #ffffff;
    --surface-color: #f8f9fa;
    --primary-color: #0056b3;
    --text-color: #212529;
    --muted-text-color: #6c757d;
    --border-color: #dee2e6;
    --header-bg: #ffffff;
    --footer-bg: #343a40;
    --footer-text: #f8f9fa;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* --- General Resets & Typography --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    background-color: var(--bg-color);
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1.25rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
}

a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Main Layout & Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

@media (min-width: 992px) {
    .main-layout {
        grid-template-columns: 3fr 1fr;
    }
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

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

.main-nav ul {
    list-style-type: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
}

.main-nav a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Hero Section (Homepage) --- */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background-color: var(--surface-color);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.hero h1 {
    margin-bottom: 1rem;
}

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

/* --- Blog Post Cards --- */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.article-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

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

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    margin-bottom: 1rem;
    color: var(--muted-text-color);
    flex-grow: 1;
}

.read-more-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    align-self: flex-start;
}

.read-more-btn:hover {
    opacity: 0.9;
    color: white;
    text-decoration: none;
}


/* --- Article Page --- */
.article-full {
    background-color: var(--bg-color);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.article-header h1 {
    font-size: 2.8rem;
    line-height: 1.2;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--muted-text-color);
}

.article-content h2 {
    margin-top: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.article-content h3 {
    margin-top: 1.5rem;
}

.article-content ul, .article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

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

.cta-box {
    background-color: var(--surface-color);
    border-left: 5px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

.cta-box p:last-child {
    margin-bottom: 0;
}

/* --- Sidebar --- */
.sidebar .widget {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 0.75rem;
}

.widget ul li a {
    color: var(--text-color);
}

.widget ul li a:hover {
    color: var(--primary-color);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 2rem 0;
    margin-top: 2rem;
    text-align: center;
}

/* --- Static Page Specific Styles --- */
.page-header {
    text-align: center;
    padding: 4rem 1rem;
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}
