/* ---
Website: El Resumen del Descubridor de Ofertas
Language: Spanish
Theme: 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: #FDF8E8; /* Creamy Off-White */
    --surface-color: #FFFFFF;
    --text-color: #3B322C; /* Dark Charcoal */
    --heading-color: #5A4F46; /* Sepia Brown */
    --accent-color: #8D6E63; /* Muted Brown Accent */
    --accent-hover-color: #6D4C41;
    --border-color: #D7CCC8;
    --font-family: 'Roboto Slab', serif;
    --border-radius: 4px;
}

/* --- 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.4;
    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: 2px 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;
}

/* --- 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: 2px solid var(--border-color);
    background-color: var(--bg-color);
}

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

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

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

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

.main-nav a {
    font-size: 1.1rem;
    color: var(--text-color);
    text-decoration: none;
    padding-bottom: 5px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--heading-color);
    border-bottom: 2px solid var(--accent-color);
}

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

.intro-section {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
    background-color: var(--surface-color);
    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: 750px;
    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);
    }
}

.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: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease-out;
}

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

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

.article-card-content h3 {
    margin-top: 0;
    font-size: 1.4rem;
    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);
    font-weight: 700;
}

.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);
}

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

.site-footer a {
    color: var(--bg-color);
    font-weight: 600;
}

.site-footer a:hover {
    text-decoration: underline;
}

.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.9rem;
    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: 3rem;
    margin-bottom: 0.5rem;
}
.article-meta {
    font-size: 0.9rem;
    color: var(--text-color);
    font-style: italic;
}
.article-meta span {
    margin: 0 10px;
}

.article-content {
    font-size: 1.15rem;
    max-width: 750px;
    margin: 0 auto;
}

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

.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;
}
.contact-info strong {
    color: var(--heading-color);
    min-width: 150px;
    display: inline-block;
}

/* --- Responsive Menu --- */
@media (max-width: 768px) {
    body { font-size: 16px; }
    .site-header .container {
        flex-direction: column;
        gap: 20px;
    }
    h1 { font-size: 2.2rem; }
    .article-header h1 { font-size: 2.4rem; }
    .intro-section h1 { font-size: 2.6rem; }
    .articles-grid {
        grid-template-columns: 1fr;
    }
}
