/* Variables y Reset */
:root {
    /* Colores principales */
    --primary-color: #2C5530;      /* Verde oscuro principal */
    --secondary-color: #A8D5BA;    /* Verde sage secundario */
    --accent-color: #93B5B3;       /* Verde azulado para acentos */
    
    /* Colores de fondo */
    --bg-color: #F1F7EA;          /* Verde blanquecino para fondos */
    --white: #FFFFFF;             /* Blanco puro */
    --light-gray: #f5f5f5;        /* Gris claro */
    
    /* Colores de texto */
    --text-color: #4A6670;        /* Verde grisáceo para texto principal */
    --text-light: #666666;        /* Gris para texto secundario */
    --text-dark: #333333;         /* Casi negro para títulos */
    
    /* Colores de estado */
    --error-color: #e74c3c;       /* Rojo para errores */
    --success-color: #2ecc71;     /* Verde para éxito */
    
    /* Colores hover */
    --hover-color: #234426;       /* Verde más oscuro para hover */
    
    /* Otros */
    --border-color: var(--secondary-color);  /* Color para bordes */
    --shadow-color: rgba(0, 0, 0, 0.1);     /* Color para sombras */
    
    /* Valores comunes */
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

/* ====== NAV SECUNDARIO (OTRAS PÁGINAS) ====== */
.secondary-nav {
    background: var(--primary-color);
    padding: 1rem 0;
    color: var(--white);
}

.secondary-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-home {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.back-home:hover {
    transform: translateX(-5px);
}

.page-title h1 {
    font-size: 1.5rem;
    margin: 0;
}

/* Hero Section */
.blog-hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url('Imagenes/logoempre.webp') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 4rem;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Layout Principal */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Artículo Destacado */
.featured-post {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.featured-post .post-image {
    position: relative;
    height: 400px;
}

.featured-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 2rem;
}

.category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--medium-gray);
    margin: 1rem 0;
    font-size: 0.9rem;
}

.post-meta i {
    margin-right: 0.5rem;
}

/* Grid de Posts */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
}

.card-image {
    position: relative;
    height: 200px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.sidebar-widget h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

/* Widget de Búsqueda */
.search-widget {
    display: flex;
    gap: 0.5rem;
}

.search-widget input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

.search-widget button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

/* Widget de Categorías */
.categories-widget ul {
    list-style: none;
}

.categories-widget li {
    margin-bottom: 0.8rem;
}

.categories-widget a {
    display: flex;
    justify-content: space-between;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.categories-widget a:hover {
    color: var(--primary-color);
}

/* Widget de Posts Populares */
.popular-post {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.popular-post img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.popular-post h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.popular-post span {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

/* Widget de Newsletter */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

.newsletter-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--secondary-color);
}

/* Widget de Tags */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-cloud a {
    background: var(--light-gray);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.tags-cloud a:hover {
    background: var(--secondary-color);
    color: white;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a, .pagination span {
    padding: 0.8rem 1.2rem;
    background: white;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.pagination a.active {
    background: var(--primary-color);
    color: white;
}

.pagination a:hover:not(.active) {
    background: var(--secondary-color);
    color: white;
}

/* Botón Leer Más */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more i {
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* ====== FOOTER SECUNDARIO (OTRAS PÁGINAS) ====== */
.secondary-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-info {
    text-align: center;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}