/* ========================================= */
/* ESTILOS PARA INFORMÁTICA ADAPTADA - LIMPIO */
/* ========================================= */

/* 1. RESET Y BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

/* 2. LOGO - ESTILOS CORRECTOS Y ÚNICOS */
.site-header {
    background: #2c3e50;
    padding: 25px 0;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 25px;
    text-decoration: none;
    color: inherit;
}

.logo-image {
    width: 220px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.logo-text {
    display: block;
}

.logo-text h1 {
    color: white;
    font-size: 2.4rem;
    margin: 0 0 8px 0;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.logo-text .tagline {
    color: #ecf0f1;
    font-size: 1.2rem;
    margin: 0;
    font-style: italic;
    opacity: 0.9;
}

/* Responsive del logo */
@media (max-width: 768px) {
    .logo-link {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .logo-image {
        width: 180px;
    }
    
    .logo-text h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .logo-image {
        width: 150px;
    }
    
    .logo-text h1 {
        font-size: 1.7rem;
    }
    
    .logo-text .tagline {
        font-size: 1rem;
    }
}

/* 3. NAVEGACIÓN */
.main-nav {
    background: #34495e;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

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

.main-menu li {
    margin-right: 1.5rem;
}

.main-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    transition: background 0.3s;
}

.main-menu a:hover,
.main-menu a.active {
    background: rgba(255, 255, 255, 0.1);
}

/* 4. HERO SECTION */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.8));
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin: 2rem 0;
    border-radius: 10px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.btn-hero {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 1rem;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-hero:hover {
    background: #c0392b;
}

/* 5. ARTÍCULOS */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-category {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.article-content h3 {
    margin: 0.5rem 0;
    font-size: 1.25rem;
}

.article-content h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.article-content h3 a:hover {
    color: #e74c3c;
}

.article-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.article-excerpt {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.btn-read {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.btn-read:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 6. DONACIONES */
.donation-box {
    background: #f8f9fa;
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin: 2rem 0;
}

.btn-donate {
    background: #ffc439;
    color: #333;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    margin: 1rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
    font-weight: bold;
}

.btn-donate:hover {
    background: #e6b135;
}

.donation-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* 7. FOOTER */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-categories {
    list-style: none;
}

.footer-categories li {
    margin-bottom: 0.5rem;
}

.footer-categories a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-categories a:hover {
    color: white;
    text-decoration: underline;
}

.footer-credits {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* 8. ACCESIBILIDAD */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2c3e50;
    color: white;
    padding: 8px;
    z-index: 1000;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* 9. RESPONSIVE GENERAL */
@media (max-width: 768px) {
    .main-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .main-menu li {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}