* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0b0b1a 0%, #0a0a1a 100%);
    color: #e0e0e0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #00ffff, #ffaa00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #ffaa00);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #00ffff;
}

.translate-widget {
    margin-left: 1rem;
}

.menu-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero */
.hero {
    padding: 5rem 0 4rem;
    text-align: center;
    background: radial-gradient(circle at 30% 10%, rgba(0,255,255,0.1) 0%, transparent 70%);
}

.animated-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0,255,255,0.5), 0 0 20px rgba(0,255,255,0.3);
}
@keyframes titleGlow {
    0% { text-shadow: 0 0 5px rgba(0,255,255,0.3); }
    100% { text-shadow: 0 0 20px rgba(0,255,255,0.6), 0 0 5px #ffaa00; }
}

.btn-primary {
    background: linear-gradient(45deg, #00ffff, #ffaa00);
    border: none;
    padding: 0.9rem 2rem;
    font-weight: bold;
    border-radius: 40px;
    color: #0a0a1a;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 1.5rem;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #00ffff;
}

.btn-secondary {
    background: transparent;
    border: 2px solid #00ffff;
    padding: 0.7rem 1.5rem;
    border-radius: 40px;
    color: #00ffff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.btn-secondary:hover {
    background: #00ffff20;
    border-color: #ffaa00;
    color: #ffaa00;
}

/* Buscador */
.glass {
    background: rgba(20, 20, 40, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0,255,255,0.3);
    border-radius: 32px;
}

.search-section {
    margin: 2rem 0;
    padding: 1.5rem;
}

.search-wrapper {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

#searchInput, #categoryFilter {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 60px;
    border: 1px solid rgba(0,255,255,0.5);
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 1rem;
}

#searchInput:focus, #categoryFilter:focus {
    outline: none;
    border-color: #ffaa00;
    box-shadow: 0 0 10px #ffaa00;
}

.results-count {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #aaa;
}

/* Grid de artículos - SIN IMÁGENES */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.8rem;
    margin: 2rem 0;
}

.card {
    background: rgba(15, 15, 25, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 24px;
    border: 1px solid rgba(0,255,255,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 1.5rem;
}

.card:hover {
    transform: translateY(-6px);
    border-color: #ffaa00;
    box-shadow: 0 15px 25px -10px rgba(255,170,0,0.3);
}

.card .badge {
    background: linear-gradient(135deg, #00ffff, #ffaa00);
    display: inline-block;
    padding: 0.2rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    color: #0a0a1a;
    margin-bottom: 0.8rem;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.card p {
    color: #bbb;
    margin: 0.5rem 0;
}

.difficulty {
    font-size: 0.8rem;
    color: #ffaa00;
    margin-top: 0.8rem;
}

/* Load more button */
.load-more-container {
    text-align: center;
    margin: 1rem 0 3rem;
}

/* Secciones */
.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    border-left: 6px solid #00ffff;
    padding-left: 1rem;
    background: linear-gradient(90deg, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.components-grid, .models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.8rem;
    margin: 2rem 0;
}

.component-card, .model-card {
    background: rgba(15, 15, 25, 0.7);
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid rgba(0,255,255,0.2);
    transition: 0.2s;
}

.component-card:hover, .model-card:hover {
    border-color: #ffaa00;
    transform: scale(1.02);
}

.component-card h3, .model-card h3 {
    color: #00ffff;
    margin-bottom: 0.5rem;
}

.faults-list {
    font-size: 0.85rem;
    color: #ffaa00;
    margin-top: 0.7rem;
}

.view-all {
    text-align: right;
    margin-bottom: 2rem;
}

.link-viewall {
    color: #00ffff;
    text-decoration: none;
    font-weight: 500;
}

.link-viewall:hover {
    color: #ffaa00;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 700px;
    width: 90%;
    border-radius: 28px;
    padding: 2rem;
    max-height: 85vh;
    overflow-y: auto;
    animation: fadeInUp 0.3s;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal, .close-policy {
    float: right;
    font-size: 1.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.close-modal:hover, .close-policy:hover {
    color: #ffaa00;
    transform: rotate(90deg);
}

.related-links {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

.related-links a {
    color: #00ffff;
    margin-right: 1rem;
    cursor: pointer;
}

/* Footer */
.footer {
    background: #05050a;
    border-top: 1px solid rgba(0,255,255,0.3);
    margin-top: 4rem;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #fff, #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    margin: 0 1rem;
}

.footer-links a:hover {
    color: #00ffff;
}

.footer-copy {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    width: 100%;
    margin-top: 1rem;
}

/* Cookies */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #00ffff;
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    z-index: 3000;
    animation: slideUp 0.4s;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-buttons button, .cookie-buttons a {
    background: transparent;
    border: 1px solid #00ffff;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    color: #00ffff;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: 0.2s;
}

.cookie-buttons button:hover, .cookie-buttons a:hover {
    background: #00ffff20;
    border-color: #ffaa00;
    color: #ffaa00;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #0a0a1a;
        padding: 1rem;
    }
    .nav-links.active {
        display: flex;
    }
    .menu-icon {
        display: block;
    }
    .animated-title {
        font-size: 1.8rem;
    }
    .search-wrapper {
        flex-direction: column;
    }
    .articles-grid, .components-grid, .models-grid {
        grid-template-columns: 1fr;
    }
    .cookie-consent {
        flex-direction: column;
        text-align: center;
    }
}