:root {
    --primary: #2563eb;
    --dark: #1E293B; 
    --light: #f8fafc;
    --text: #334155;
    --white: #ffffff;
    --amazon: #ff9900;
}
/* Estilos Globales */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, sans-serif; line-height: 1.6; color: var(--text); background-color: #f1f5f9; }
.container { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* Navegación */
.main-header { background: var(--white); padding: 1rem 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: bold; color: var(--dark); text-decoration: none; }
.logo span { color: var(--primary); }
.nav-menu { display: flex; list-style: none; gap: 20px; }
.nav-menu a { text-decoration: none; color: var(--text); font-weight: 500; }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }

/* --- BLOQUE TÍTULO (HERO) CON GRIS OSCURO --- */
.hero { background-color: #1E293B;  color: var(--white); padding: 80px 0; text-align: center; }
.hero h1 { font-size: 2.8rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; opacity: 0.9; }

/* Rejilla de Artículos */
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-top: 50px; margin-bottom: 60px; }
.card { background: var(--white); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: 0.3s; box-shadow: 0 4px 6px hsla(0, 0%, 0%, 0.582); }
.card:hover { transform: translateY(-5px); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 20px; }

/* Badges */
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: bold; text-transform: uppercase; margin-bottom: 10px; }
.badge-guia { background: #dcfce7; color: #166534; }
.badge-analisis { background: #dbeafe; color: #1e40af; }


/* Banner Cookies */
.cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background: #000; color: var(--white); padding: 15px; display: none; justify-content: center; align-items: center; gap: 20px; z-index: 2000; }
.btn-cookie { background: var(--primary); color: white; border: none; padding: 8px 15px; border-radius: 5px; cursor: pointer; font-weight: bold; }
:root {
    --primary: #2563eb;
    --dark: #1a1a1a;
    --light: #f8fafc;
    --text: #334155;
    --white: #ffffff;
    --amazon: #ff9900;
}



/* Navegación */
.main-header { background: var(--white); padding: 1rem 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 20px; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: bold; color: var(--dark); text-decoration: none; }
.logo span { color: var(--primary); }

/* --- IMAGEN QUE NO SE SALE --- */
.featured-img { 
    max-width: 100%; 
    height: auto; 
    border-radius: 15px; 
    display: block; 
    margin: 20px auto; 
}

/* --- PRODUCT CARD (Fichas de los artículos) --- */
.product-card { 
    background: var(--white); 
    border-radius: 15px; 
    padding: 30px; 
    margin-bottom: 40px; 
    border: 1px solid #e2e8f0; 
}

/* --- PROS Y CONTRAS CON COLOR --- */
.pros-cons { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; 
    margin: 25px 0; 
}
.pros { 
    background-color: #f0fdf4 !important; /* Verde clarito */
    border-left: 5px solid #22c55e; 
    padding: 20px; 
    border-radius: 8px; 
}
.cons { 
    background-color: #fef2f2 !important; /* Rojo clarito */
    border-left: 5px solid #ef4444; 
    padding: 20px; 
    border-radius: 8px; 
}

/* --- BOTÓN AMAZON CENTRADO Y LLAMATIVO --- */
.cta-amazon { 
    display: block; 
    background-color: var(--amazon) !important; 
    color: #000 !important; 
    text-align: center; 
    padding: 18px; 
    border-radius: 10px; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 1.2rem; 
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(255, 153, 0, 0.3);
}
.cta-amazon:hover { background-color: #e68a00 !important; }


/* --- CABECERA CORREGIDA Y ALINEADA --- */
.main-header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
        margin-bottom: 0px;
}

.nav-container { 
    max-width: 1000px; /* Misma anchura que tu contenido central */
    margin: 0 auto;    /* Centra el bloque en la pantalla */
    padding: 0 20px;   /* Margen de seguridad para móviles */
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.nav-menu { 
    display: flex; 
    list-style: none; 
    gap: 25px; 
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: 0.3s;
}

/* --- RESPONSIVE MÓVIL --- */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column; /* Logo arriba, menú abajo */
        gap: 10px;
    }
    .nav-menu {
        gap: 15px;
        font-size: 1.1rem;
    }
}
/* --- AJUSTE DE IMÁGENES --- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Estilos para Relacionados sin imágenes */
.relacionados-text {
    margin-top: 50px;
    padding: 25px;
    background-color: #f8fafc;
    border-left: 5px solid #2563eb;
    border-radius: 8px;
}

.relacionados-text h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #1e293b;
}

.relacionados-text ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.relacionados-text li {
    margin-bottom: 12px;
}

.relacionados-text a {
    text-decoration: none;
    color: #2563eb;
    font-weight: 600;
    transition: color 0.3s;
}

.relacionados-text a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}