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

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #2f7e34;
}

/* Header */
.top-header {
    background-color: #000000;
    color: #ffffff;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 3px solid #2f7e34;
}

.top-header .brand {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.top-header .right-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-header .official-link {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.top-header .search-btn {
    background-color: #2f7e34;
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.2s ease;
}

.top-header .search-btn:hover {
    background-color: #225a25;
}

/* Main Layout Grid */
.main-layout {
    display: grid;
    grid-template-columns: 260px 1fr 300px;
    min-height: calc(100vh - 60px);
}

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 240px 1fr;
    }
    .right-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    .left-sidebar {
        display: none;
    }
}

/* Left Sidebar */
.left-sidebar {
    background-color: #000000;
    color: #ffffff;
    padding: 20px;
    border-right: 1px solid #1a1a1a;
}

.left-sidebar .blog-desc {
    font-size: 13px;
    color: #999999;
    margin-bottom: 30px;
    line-height: 1.4;
}

.left-sidebar .nav-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.left-sidebar .nav-menu li {
    border-bottom: 1px solid #1c1c1c;
}

.left-sidebar .nav-menu a {
    display: block;
    padding: 12px 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.left-sidebar .section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 25px 0 10px 0;
    position: relative;
}

.left-sidebar .category-select {
    width: 100%;
    background-color: #ffffff;
    color: #333;
    padding: 6px;
    font-size: 13px;
    border: none;
    outline: none;
    margin-bottom: 25px;
}

.left-sidebar .social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 35px;
}

.left-sidebar .social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #cccccc;
}

.left-sidebar .social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.left-sidebar .search-form {
    margin-bottom: 30px;
}

.left-sidebar .search-input {
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    color: #ffffff;
    padding: 10px;
    font-size: 13px;
    outline: none;
}

.left-sidebar .search-input::placeholder {
    color: #666666;
}

.left-sidebar .recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.left-sidebar .recent-list li {
    margin-bottom: 15px;
    font-size: 12px;
    line-height: 1.4;
}

.left-sidebar .recent-list a {
    color: #cccccc;
}

.left-sidebar .recent-list a:hover {
    color: #ffffff;
}

/* Center Content Area */
.content-area {
    background-color: #ffffff;
    padding: 40px 50px;
    overflow-y: auto;
}

@media (max-width: 600px) {
    .content-area {
        padding: 20px;
    }
}

/* Article */
.article {
    margin-bottom: 60px;
}

.article-categories {
    font-size: 11px;
    font-weight: 700;
    color: #666666;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.article-categories a:hover {
    color: #000;
}

.article-title {
    font-size: 32px;
    font-weight: 300;
    color: #1f354f;
    margin: 0 0 10px 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.article-title a:hover {
    color: #2f7e34;
}

.article-date {
    font-size: 12px;
    color: #888888;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    font-weight: 600;
}

.article-body {
    font-size: 15px;
    color: #333333;
    margin-bottom: 20px;
}

.article-image {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    display: block;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.read-more {
    display: inline-block;
    color: #2f7e34;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 30px;
    border-bottom: 1px solid transparent;
}

.read-more:hover {
    border-bottom-color: #2f7e34;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid #eeeeee;
}

.tag-badge {
    background-color: #7b7b7b;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tag-badge::before {
    content: "•";
    color: #ccc;
    font-size: 12px;
}

.tag-badge:hover {
    background-color: #2f7e34;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 10px;
    margin-top: 40px;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border: 1px solid #ddd;
    font-size: 14px;
    font-weight: 600;
}

.pagination .active {
    background-color: #2f7e34;
    color: white;
    border-color: #2f7e34;
}

/* Right Sidebar */
.right-sidebar {
    background-color: #ffffff;
    padding: 40px 30px;
    border-left: 1px solid #eeeeee;
}

.right-sidebar .phone-contact {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 40px;
}

.right-sidebar .sidebar-widget {
    margin-bottom: 40px;
}

.right-sidebar .widget-title {
    font-size: 12px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-top: 4px solid #000000;
    padding-top: 8px;
}

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

.right-sidebar .widget-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f2f2f2;
    font-size: 13px;
    line-height: 1.4;
}

.right-sidebar .widget-list a {
    color: #2f7e34;
    font-weight: 600;
}

.right-sidebar .widget-list a:hover {
    color: #1a4d1d;
    text-decoration: underline;
}

.right-sidebar .widget-list .count {
    color: #888888;
    font-weight: normal;
}

/* Search results info */
.search-info {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f7f9fa;
    border-left: 4px solid #2f7e34;
    font-size: 14px;
}

/* Detail page comments section */
.comments-section {
    margin-top: 50px;
    border-top: 2px solid #eee;
    padding-top: 30px;
}

.comments-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.comment-card {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.comment-author {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
}

.comment-date {
    font-size: 11px;
    color: #888;
    margin-bottom: 10px;
}

.comment-content {
    font-size: 14px;
}

/* Formatos de contenido estructurado del blog */
.article-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.article-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-top: 25px;
    margin-bottom: 10px;
}

.article-body ul {
    margin: 15px 0;
    padding-left: 20px;
    list-style-type: disc;
}

.article-body li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Bloques de código con números de línea */
.code-block-wrapper {
    display: flex;
    background-color: #f7f9fa;
    border: 1px solid #e1e4e6;
    border-radius: 4px;
    margin: 20px 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
}

.code-line-numbers {
    padding: 15px 10px 15px 15px;
    text-align: right;
    color: #a0a0a0;
    user-select: none;
    background-color: #f1f3f4;
    min-width: 35px;
}

.code-divider {
    width: 2px;
    background-color: #2f7e34; /* Línea divisoria verde */
    margin: 0;
}

.code-content {
    margin: 0;
    padding: 15px;
    overflow-x: auto;
    flex-grow: 1;
    background-color: #f7f9fa;
}

.code-content code {
    font-family: inherit;
    color: #0000ff; /* Color de código por defecto */
    white-space: pre;
}
