/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #FAFAFA;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #016B61;
    color: #FAFAFA;
    padding: 2rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: padding 0.3s ease;
}

header h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

header h1 a {
    color: inherit;
    text-decoration: none;
}

header h1 a:hover {
    opacity: 0.9;
}

header p {
    text-align: center;
    font-style: italic;
    color: #9ECFD4;
    max-height: 50px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    opacity: 1;
}

header.scrolled p {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

header.scrolled {
    padding: 1rem 0;
}

/* Navegación */
nav {
    background-color: #70B2B2;
    padding: 1rem 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0 1rem;
}

nav a {
    color: #016B61;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #FAFAFA;
}

/* Layout principal */
.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin: 2rem auto;
}

/* Contenido */
.content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Sidebar */
.sidebar {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 180px;
    transition: top 0.3s ease;
}

body.scrolled .sidebar {
    top: 120px;
}

.sidebar h3 {
    color: #016B61;
    margin-bottom: 1rem;
    border-bottom: 2px solid #70B2B2;
    padding-bottom: 0.5rem;
}

.widget {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 2px solid;
    border-color: #9ECFD4;
    border-radius: 5px;
}

.widget h4 {
    margin-bottom: 0.5rem;
    color: #016B61;
}

.widget p {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Lista de artículos */
.articles-list {
    list-style: none;
}

.article-preview {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #9ECFD4;
}

.article-preview:last-child {
    border-bottom: none;
}

.article-preview h2 {
    color: #016B61;
    margin-bottom: 0.5rem;
}

.article-preview h2 a {
    color: #016B61;
    text-decoration: none;
    transition: color 0.3s;
}

.article-preview h2 a:hover {
    color: #70B2B2;
}

.article-date {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-excerpt {
    color: #555;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: #70B2B2;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.read-more:hover {
    color: #016B61;
}

/* Artículo completo */
.article-full {
    margin-bottom: 2rem;
}

.article-full h1 {
    color: #016B61;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.article-full .article-date {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #9ECFD4;
}

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

.article-content h2 {
    color: #016B61;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    color: #70B2B2;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content blockquote {
    border-left: 4px solid #70B2B2;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
    background-color: #FAFAFA;
    padding: 1rem 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 5px;
}

/* Botones de compartir */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #9ECFD4;
}

.share-buttons span {
    color: #666;
    font-size: 0.9rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    transition: opacity 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.share-btn.whatsapp {
    background-color: #25D366;
    color: white;
}

.share-btn.facebook {
    background-color: #1877F2;
    color: white;
}

.share-btn.copy-link {
    background-color: #70B2B2;
    color: white !important;
    font-family: inherit;
    height: auto;
}

.share-btn.copy-link.copied {
    background-color: #016B61;
}

.share-btn.copy-link.copied svg {
    display: none;
}

/* Navegación de artículos */
.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #9ECFD4;
}

.article-navigation a {
    color: #70B2B2;
    text-decoration: none;
    font-weight: bold;
}

.article-navigation a:hover {
    color: #016B61;
}

/* Footer */
footer {
    background-color: #016B61;
    color: #FAFAFA;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: #9ECFD4;
    text-decoration: none;
}

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

/* Responsive */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        top: auto;
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 0.9rem;
    }

    .article-full h1 {
        font-size: 2rem;
    }

    nav {
        display: none;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .share-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .article-navigation {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .article-content blockquote {
        margin-left: 0;
        margin-right: 0;
    }
}
