/* ---
Website: Deal Discoverer's Digest
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: #fdf6e3; /* Creamy background */
    --surface-color: #f7ead0; /* Slightly darker cream */
    --primary-color: #cb4b16; /* Muted orange/rust */
    --secondary-color: #859900; /* Muted olive green */
    --text-color: #586e75; /* Dark slate gray */
    --text-muted-color: #6c757d; /* Lighter gray */
    --border-color: #d8c8a8; /* Faded brown */
    --shadow-color: rgba(0, 0, 0, 0.1);
    --font-family: 'Roboto Slab', serif;
}

/* --- 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-family: var(--font-family);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.3;
}

h1 { font-size: 2.7rem; text-align: center; text-transform: uppercase; letter-spacing: 1px; }
h2 { font-size: 2rem; border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; margin-top: 2rem; }
h3 { font-size: 1.5rem; color: var(--primary-color); margin-top: 1.5rem; }
p { margin-bottom: 1.2rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

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

li {
    margin-bottom: 0.7rem;
}

/* --- Layout & Container --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 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 {
    background-color: var(--surface-color);
    padding: 15px 0;
    border-bottom: 3px double var(--border-color);
}

.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(--text-color);
    text-decoration: none;
}
.site-title a:hover {
    color: var(--primary-color);
}

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

.main-nav a {
    font-weight: 400;
    font-size: 1rem;
    padding: 5px 12px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

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

/* --- Main Content --- */
main {
    background-color: var(--surface-color);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    box-shadow: 3px 3px 8px var(--shadow-color);
}

.intro-section {
    text-align: center;
    padding: 30px 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.intro-section h1 {
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
}

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

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

@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: 3px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.article-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px var(--shadow-color);
    transform: translateY(-3px);
}

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

.article-card-content h3 {
    margin-top: 0;
    font-size: 1.3rem;
}

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

.read-more-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 18px;
    border-radius: 3px;
    font-weight: 700;
    text-align: center;
    margin-top: 15px;
    align-self: flex-start;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

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

/* --- Sidebar --- */
.sidebar {
    padding: 20px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.4rem;
    color: var(--text-color);
    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;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--surface-color);
    color: var(--text-muted-color);
    text-align: center;
    padding: 30px 20px;
    margin-top: 30px;
    border-top: 3px double var(--border-color);
}

.site-footer a {
    color: var(--text-color);
}

.site-footer a:hover {
    color: var(--primary-color);
}

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

.copyright {
    font-size: 0.9rem;
}

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

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

.cta-section {
    background-color: var(--bg-color);
    border: 1px dashed var(--primary-color);
    border-radius: 3px;
    padding: 25px;
    margin: 2rem 0;
    text-align: center;
}

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

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

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
    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(--primary-color);
}

/* --- Responsive Menu --- */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
}
