* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: url('bg.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-size: 11px;
    color: #000;
    padding: 60px 40px;
    line-height: 1.6;
}

.window {
    max-width: 800px;
    margin: 0 auto;
    background: #ece9d8;
    border: 3px solid;
    border-color: #fff #999 #999 #fff;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.window.wide {
    max-width: 900px;
}

.titlebar {
    background: linear-gradient(to bottom, #0997ff 0%, #0053ee 100%);
    padding: 3px 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 26px;
}

.titlebar-text {
    color: #fff;
    font-weight: bold;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.titlebar-buttons {
    display: flex;
    gap: 2px;
}

.titlebar-button {
    width: 21px;
    height: 21px;
    background: linear-gradient(to bottom, #f0f0f0 0%, #c0c0c0 100%);
    border: 1px solid;
    border-color: #fff #666 #666 #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #000;
    cursor: default;
}

.content {
    padding: 15px 20px;
    background: #fff;
    min-height: 500px;
}

.header {
    border-bottom: 1px solid #c0c0c0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.site-title {
    font-size: 18px;
    font-weight: bold;
    color: #0053ee;
    margin-bottom: 5px;
}

.site-subtitle {
    font-size: 11px;
    color: #666;
    font-style: italic;
}

.nav {
    margin: 15px 0;
    padding: 8px;
    background: #f0f0f0;
    border: 1px solid #c0c0c0;
}

.nav a {
    color: #0053ee;
    text-decoration: none;
    margin-right: 15px;
}

.nav a:hover {
    text-decoration: underline;
}

.nav a.active {
    font-weight: bold;
}

/* Post list styles (index.html) */
.post-list {
    margin-top: 30px;
}

.post-item {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #c0c0c0;
    background: #f9f9f9;
}

.post-item:hover {
    background: #f0f0f0;
}

.post-item-date {
    color: #666;
    font-size: 10px;
    margin-bottom: 5px;
}

.post-item-title {
    font-size: 13px;
    font-weight: bold;
    color: #0053ee;
    margin-bottom: 8px;
}

.post-item-title a {
    color: #0053ee;
    text-decoration: none;
}

.post-item-title a:hover {
    text-decoration: underline;
}

.post-item-excerpt {
    color: #333;
    font-size: 11px;
    line-height: 1.6;
}

/* Archive styles (archivo.html) */
.archive {
    margin-top: 30px;
}

.archive-year {
    font-size: 14px;
    font-weight: bold;
    color: #0053ee;
    margin: 25px 0 15px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #c0c0c0;
}

.archive-list {
    margin-left: 20px;
}

.archive-item {
    margin: 12px 0;
    display: flex;
    gap: 15px;
}

.archive-date {
    color: #666;
    font-size: 10px;
    min-width: 80px;
}

.archive-title a {
    color: #0053ee;
    text-decoration: none;
    font-size: 11px;
}

.archive-title a:hover {
    text-decoration: underline;
}

/* About page styles (sobre-mi.html) */
.about-content {
    margin-top: 30px;
    line-height: 1.8;
}

.about-content h2 {
    font-size: 14px;
    color: #0053ee;
    margin: 25px 0 15px 0;
    font-weight: bold;
}

.about-content p {
    margin-bottom: 15px;
    color: #333;
}

/* Drawings page styles (dibujos.html) */
.intro {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #c0c0c0;
    line-height: 1.8;
}

.gallery {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.art-item {
    border: 2px solid #c0c0c0;
    background: #f0f0f0;
    padding: 8px;
}

.art-preview {
    width: 100%;
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid #999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 10px;
    text-align: center;
    padding: 10px;
}

.art-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.art-info {
    margin-top: 8px;
}

.art-title {
    font-size: 11px;
    font-weight: bold;
    color: #000;
    margin-bottom: 3px;
}

.art-date {
    font-size: 10px;
    color: #666;
}

.instructions {
    margin: 30px 0 20px 0;
    padding: 15px;
    background: #fff9e6;
    border: 1px solid #f0c000;
}

.instructions-title {
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
}

.instructions ul {
    margin-left: 20px;
    line-height: 1.8;
}

.instructions code {
    background: #f0f0f0;
    padding: 1px 4px;
    border: 1px solid #ccc;
    font-family: "Courier New", monospace;
    font-size: 10px;
}

/* Individual post page styles */
.post {
    margin-bottom: 40px;
}

.post-date {
    color: #666;
    font-size: 10px;
    margin-bottom: 8px;
}

.post-title {
    font-size: 14px;
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
}

.post-content {
    color: #333;
    line-height: 1.8;
    white-space: pre-wrap;
}

.back-link {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #c0c0c0;
}

.back-link a {
    color: #0053ee;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    margin-top: 40px;
    padding-top: 15px;
    border-top: 1px solid #c0c0c0;
    text-align: center;
    color: #666;
    font-size: 10px;
}

::selection {
    background: #0053ee;
    color: #fff;
}

/* Responsive styles */
@media (max-width: 768px) {
    body {
        padding: 30px 15px;
    }
    
    .content {
        padding: 10px 15px;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .archive-item {
        flex-direction: column;
        gap: 3px;
    }
}