/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.brand {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #777;
}

.search-icon {
    background-color: #333;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Main content */
.main-content {
    padding: 40px 0;
}

.blog-post {
    display: flex;
    margin-bottom: 40px;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.post-image {
    width: 230px;
    height: 180px;
    flex-shrink: 0;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 20px;
    flex-grow: 1;
}

.post-category {
    font-size: 14px;
    color: #7a7a7a;
    margin-bottom: 5px;
}

.post-date {
    color: #999;
    font-size: 14px;
    margin-left: 10px;
}

.post-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: #222;
    font-weight: 600;
}

.post-excerpt {
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    background-color: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.read-more:hover {
    background-color: #555;
}

/* Auth Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    width: 100%;
    max-width: 400px;
    position: relative;
}

.modal-title {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 16px;
}

.form-button {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-top: 10px;
}

.form-button:hover {
    background-color: #555;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Admin Dashboard */
.admin-dashboard {
    display: none;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-title {
    font-size: 24px;
    color: #333;
}

.post-form {
    margin-bottom: 30px;
}

.posts-management {
    width: 100%;
    border-collapse: collapse;
}

.posts-management th, .posts-management td {
    padding: 10px;
    border: 1px solid #eee;
    text-align: left;
}

.posts-management th {
    background-color: #f5f5f5;
}

.action-button {
    background-color: #333;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 5px;
}

.action-button.delete {
    background-color: #d9534f;
}

.action-button:hover {
    opacity: 0.8;
}

.login-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.logout-button {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
}

/* Responsive styles */
@media (max-width: 768px) {
    .blog-post {
        flex-direction: column;
    }
    
    .post-image {
        width: 100%;
        height: 200px;
    }
    
    .nav-menu {
        display: none;
    }
}
/* Agregar al final de styles.css */

/* Footer styles */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-content p {
    margin: 5px 0;
}

.footer-content a {
    color: #fff;
    text-decoration: underline;
}

.footer-content a:hover {
    color: #ddd;
}

/* Estilo para enlaces de categoría activos */
.nav-menu a.active {
    color: #000;
    font-weight: bold;
    border-bottom: 2px solid #333;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}