/* ---
Website: El Rincón del Descubridor
Language: Spanish
Theme: VintagePress (Retro / Vintage)
Font: Roboto Slab
Tone: Storytelling / Narrative
--- */

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&display=swap');

/* --- CSS Variables --- */
:root {
    --bg-color: #FDF6E3; /* Creamy, aged paper */
    --surface-color: #F5EFE0; /* Slightly darker cream */
    --text-color: #584B3E; /* Dark Sepia Brown */
    --heading-color: #3C3228; /* Dark Charcoal/Brown */
    --accent-color: #9A6B46; /* Muted, warm brown */
    --accent-hover-color: #795536; /* Darker accent */
    --border-color: #DCD0B9; /* Light, soft border */
    --font-family: 'Roboto Slab', serif;
    --border-radius: 4px;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* --- General Reset & Body --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    font-size: 17px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--heading-color);
}

h1 { font-size: 2.8rem; text-align: center; }
h2 {
    font-size: 2.2rem;
    padding-bottom: 0.5rem;
    margin-top: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}
h3 { font-size: 1.5rem; margin-top: 1.8rem; }
p { margin-bottom: 1.2rem; }

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover-color);
    text-decoration: underline;
}

ul, ol {
    padding-left: 25px;
    margin-bottom: 1.2rem;
}

li {
    margin-bottom: 0.6rem;
}

/* --- Image Styling --- */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    filter: sepia(0.2);
}

.article-hero-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    margin-bottom: 2rem;
}

.article-inline-image {
    max-width: 50%;
    float: right;
    margin: 10px 0 15px 25px;
}


/* --- Layout & Container --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

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

/* --- Header --- */
.site-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(253, 246, 227, 0.85);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.site-title a {
    color: var(--heading-color);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-size: 1.1rem;
    color: var(--heading-color);
    text-decoration: none;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--accent-hover-color);
    text-decoration: underline;
}


/* --- Main Content --- */
main {
    padding: 30px 0;
}

.intro-section {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.intro-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.intro-section p {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

/* --- Blog Articles Section --- */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

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

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

.article-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: all 0.3s ease-out;
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.article-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}


.article-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card-content h3 {
    margin-top: 0;
    font-size: 1.3rem;
    color: var(--heading-color);
}

.article-card-content p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.read-more-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-align: center;
    margin-top: auto;
    align-self: flex-start;
    text-decoration: none;
    transition: all 0.2s ease;
}

.read-more-btn:hover {
    background-color: var(--accent-hover-color);
    color: #fff;
    text-decoration: none;
}

/* --- Sidebar --- */
.sidebar {
    padding: 25px;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    align-self: start;
}

.widget {
    margin-bottom: 30px;
}
.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    margin-bottom: 10px;
}

.widget li a::before {
    content: '›';
    margin-right: 10px;
    color: var(--accent-color);
    font-weight: 700;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--surface-color);
    color: var(--text-color);
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

.site-footer a {
    color: var(--accent-hover-color);
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.copyright {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* --- Article Page Specifics --- */
.article-header {
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}
.article-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}
.article-meta {
    font-size: 0.95rem;
    color: var(--text-color);
}
.article-meta span {
    margin: 0 10px;
}

.article-content {
    font-size: 1.1rem;
}

.cta-section {
    background-color: var(--bg-color);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 2.5rem 0;
}

.cta-section h3 {
    margin-top: 0;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 700;
    margin-top: 1rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.cta-button:hover {
    background-color: var(--accent-hover-color);
    text-decoration: none;
}

/* --- Contact Page --- */
.contact-info {
    list-style: none;
    padding: 0;
}
.contact-info li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    background: var(--surface-color);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}
.contact-info strong {
    color: var(--heading-color);
    display: block;
    margin-bottom: 5px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    body { font-size: 16px; }
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }
    h1 { font-size: 2.4rem; }
    .article-header h1 { font-size: 2.4rem; }
    .intro-section h1 { font-size: 2.6rem; }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .article-inline-image {
        max-width: 100%;
        float: none;
        margin: 1rem auto;
        display: block;
    }
}