/* RESET BÁSICO */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; color: #333; line-height: 1.6; background-color: #fff; display: flex; flex-direction: column; min-height: 100vh; }

/* LAYOUT PRINCIPAL */
/* Esto empuja el footer hacia abajo si hay poco contenido */
main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 40px 20px; }

/* HEADER */
header { background: #fff; border-bottom: 1px solid #eee; padding: 15px 0; }
.header-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: bold; text-decoration: none; color: #000; letter-spacing: -1px; }
.nav-menu a { text-decoration: none; color: #666; margin-left: 20px; font-weight: 500; transition: color 0.3s; }
.nav-menu a:hover, .nav-menu a.active { color: #000; }

/* FOOTER */
footer { background: #1a1a1a; color: #999; padding: 40px 0; margin-top: auto; font-size: 0.9rem; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; text-align: center; }

/* COMPONENTES GLOBALES */
h1 { font-size: 2.5rem; margin-bottom: 20px; letter-spacing: -1px; }
.btn { display: inline-block; background: #000; color: #fff; padding: 10px 25px; text-decoration: none; border-radius: 4px; transition: background 0.3s; }
.btn:hover { background: #333; }

/* GRILLA DE PRODUCTOS (Reutilizada) */
.grid-productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px; margin-top: 30px; }
.card { border: 1px solid #f0f0f0; border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; display: block; transition: transform 0.2s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.card-img { width: 100%; height: 250px; object-fit: cover; background: #f9f9f9; }
.card-body { padding: 20px; }
.card-cat { font-size: 0.75rem; color: #999; text-transform: uppercase; letter-spacing: 1px; }
.card-title { font-size: 1.2rem; margin-top: 5px; font-weight: 600; }

/* FICHA PRODUCTO */
.producto-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.producto-img img { width: 100%; border-radius: 8px; }
.specs-box { background: #f9f9f9; padding: 30px; border-radius: 8px; margin-top: 30px; }
.spec-item { display: flex; justify-content: space-between; border-bottom: 1px solid #e0e0e0; padding: 12px 0; }
.spec-item:last-child { border-bottom: none; }

/* MÓVIL */
@media (max-width: 768px) {
    .producto-layout { grid-template-columns: 1fr; }
    .header-container { flex-direction: column; gap: 15px; }
    .nav-menu { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
    .nav-menu a { margin: 0; }
}