/* ======================
   ESTRUCTURA GENERAL
======================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======================
   HEADER
======================= */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

/* Logo */
.site-branding .site-title {
    margin: 0;
    font-size: 1.5em;
}

.site-branding .site-title a {
    text-decoration: none;
    color: #2c3e50;
}

/* Menú Principal */
.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin: 0 15px;
}

.main-navigation a {
    text-decoration: none;
    color: #34495e;
    font-weight: 500;
}

/* Selector de Idiomas */
.polylang-lang-switcher {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.polylang-lang-switcher li {
    margin: 0 5px;
}

.polylang-lang-switcher a {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
}

.polylang-lang-switcher .current-lang a {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Menú Hamburguesa (Móvil) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger-bar {
    display: block;
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 4px 0;
}

/* ======================
   CONTENIDO PRINCIPAL
======================= */
.site-content {
    margin-top: 80px; /* Para compensar header fijo */
    min-height: 60vh;
}

/* Grid de Posts */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Tarjetas de Post */
.post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.entry-title {
    margin: 0 0 10px 0;
    font-size: 1.3em;
}

.entry-title a {
    text-decoration: none;
    color: #2c3e50;
}

.entry-meta {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.entry-content {
    line-height: 1.6;
    color: #34495e;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

/* ======================
   FOOTER
======================= */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.site-info {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.site-info a {
    color: #3498db;
    text-decoration: none;
}

#footer-menu ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

#footer-menu li {
    margin: 0 15px;
}

#footer-menu a {
    color: #bdc3c7;
    text-decoration: none;
}

/* ======================
   RESPONSIVE
======================= */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        display: none;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .main-navigation li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    
    .main-navigation a {
        display: block;
        padding: 15px 20px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .site-header .container {
        flex-wrap: wrap;
    }
    
    .language-switcher {
        order: 3;
        width: 100%;
        margin-top: 15px;
        display: none;
    }
    
    .site-content {
        margin-top: 120px;
    }
}