/* Estilos generales */
body {
    font-family: 'Garamond', serif;
    margin: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #313131;
}

header {
    background-color: rgba(64, 65, 63, 0.8);
    color: #f8f6f6;
    padding: 10px;
}

.top-bar, .Deno_Imagen, nav {
    display: flex;
    align-items: center;
    background-color: rgba(64, 65, 63, 0.8);
    color: white;
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden;
}

.news-ticker-wrapper {
    overflow: hidden;
    flex-grow: 1;
    margin: 0 10px;
}

.news-ticker {
    display: flex;
    gap: 15px;
    animation: ticker 20s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.auth-links button {
    padding: 5px 10px;
    background-color: #28a745;
    border: none;
    color: white;
    border-radius: 3px;
    cursor: pointer;
}

.auth-links button:hover {
    background-color: #885321;
}

.social-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.social-icon {
    color: rgb(15, 211, 162);
    font-size: 20px;
    text-decoration: none;
}

.social-icon:hover {
    color: #ddd;
}

nav {
    justify-content: space-between;
    padding: 10px 30px;
    background-color: rgb(121, 103, 56);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    height: auto;
}

.company-name {
    font-size: 24px;
    font-weight: bold;
    margin-left: 10px;
    color: #ffffff;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #996504;
    border-radius: 5px;
}

.section-title {
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    display: block;
    width: 100vw;
    height: 5px;
    background-color: #996504;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
}

/* Contenedor de los artículos del blog */
section#section1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-post {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: justify;
}

.blog-post:hover {
    transform: translateY(-10px);
}

.blog-post img {
    width: 100%;
    height: auto;
    border-bottom: 2px solid #6d5505;
}

.blog-post h3 {
    margin: 15px;
    font-size: 20px;
    color: #362300;
}

.blog-post .meta {
    margin: 0 15px 10px;
    font-size: 14px;
    color: #555;
}

.blog-post p {
    margin: 0 15px 20px;
    font-size: 16px;
    color: #333;
}

.blog-post .read-more {
    display: block;
    margin: 0 15px 20px;
    padding: 10px;
    background-color: #996504;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    align-self: flex-end;
}

.blog-post .read-more:hover {
    background-color: #996504;
}

.pagination {
    text-align: center;
    margin: 20px 0;
}

.pagination a {
    margin: 0 5px;
    padding: 10px 15px;
    background-color: #363100;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.pagination a:hover {
    background-color: #818821;
}

footer {
    text-align: center;
    background-color: rgba(64, 65, 63, 0.8);
    color: white;
    padding: 20px;
    margin-top: 20px;
}

footer p {
    margin: 0;
}

/* Media Queries para pantallas más pequeñas */
@media (max-width: 768px) {
    .top-bar, .auth-links, .search-bar, nav, .logo-container {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .search-bar {
        flex-direction: column;
    }

    .search-bar button {
        margin-left: 0;
        margin-top: 5px;
    }

    .blog-post .read-more {
        width: calc(100% - 30px); /* Ajustar ancho para pantallas más pequeñas */
    }
}
