/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Barra de búsqueda */


/* Estilos para el contenedor de búsqueda y autocompletado */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 20px auto;
}

.search-box {
    display: flex;
    position: relative;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-box button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Estilos para el contenedor de sugerencias bsiqueda*/
.suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item.no-results {
    font-style: italic;
    color: #999;
    cursor: default;
}





/* Tarjetas de artículos */
.articles-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.article-card {
    flex: 1 1 calc(33.333% - 20px); /* Tres tarjetas por fila */
    max-width: calc(33.333% - 20px);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.article-card img {
    width: 100%;
    height: 180px; /* Tamaño uniforme para las imágenes */
    object-fit: cover; /* Asegura que las imágenes se ajusten al tamaño */
    border-bottom: 1px solid #ddd;
}

.article-card h3 {
    font-size: 16px;
    margin: 15px 10px;
    line-height: 1.4; /* Consistencia en el espaciado del texto */
    color: #333;
    min-height: 50px; /* Asegura que todos los títulos tengan el mismo espacio reservado */
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-card a {
    text-decoration: none;
    color: inherit;
    width: 100%;
}




/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.pagination a {
    color: #1a75a7;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 50%;
    margin: 0 5px;
    transition: background-color 0.3s;
}

.pagination a.active {
    background-color: #1a75a7;
    color: white;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

/* Estilos para páginas de artículos */
.article-content {
    background-color: hsla(0, 0%, 100%, 0.027);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.article-content h1 {
    font-size: 40px;
    margin-bottom: 40px;
    color: #090a0a;
}

.article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

.article-content p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #444;
}




/* Filtros para páginas de recompensas */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-button {
    padding: 8px 16px;
    background-color: #1a75a7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-button:hover {
    background-color: #135980;
}

.filter-button.active {
    background-color: #0d4563;
}

/* Social media sidebar */
.social-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: #1877f2; /* Facebook color */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2px;
    font-size: 20px;
}

.social-icon.whatsapp {
    background-color: #25d366; /* WhatsApp color */
}

.social-icon.telegram {
    background-color: #0088cc; /* Telegram color */
}

.social-icon.messenger {
    background-color: #006AFF; /* Messenger color */
}










/* Estilos para el formulario de comentarios */
.comment-form {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.comment-form h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.comment-form input, 
.comment-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.comment-form textarea {
    min-height: 120px;
}

.comment-form button {
    background-color: #1e88e5;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.comment-form button:hover {
    background-color: #1565c0;
}

/* Estilos para los comentarios existentes */
.comments-section {
    margin: 30px 0;
}

.comment {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.comment-avatar {
    margin-right: 15px;
}

.comment-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e0e0e0;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: bold;
    margin-bottom: 5px;
}

.comment-meta {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.comment-text {
    margin-bottom: 10px;
}

.comment-actions a {
    color: #1e88e5;
    text-decoration: none;
    margin-right: 15px;
}

/* Estilos para la columna lateral de artículos */
.page-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.main-content {
    flex: 1;
    min-width: 300px;
}

.sidebar {
    width: 300px;
}

.sidebar-title {
    margin-bottom: 20px;
    font-size: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #1e88e5;
}

.sidebar-article {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar-article img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.sidebar-article-content {
    padding: 15px;
}

.sidebar-article h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.sidebar-article a {
    text-decoration: none;
    color: #333;
}

.sidebar-article a:hover {
    color: #1e88e5;
}

/* Estilos responsivos para la columna lateral */
@media (max-width: 768px) {
    .page-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
}