/* Reset general */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: Arial,sans-serif; color:#222; background:#f4f4f4; }
.container { max-width:1200px; margin:auto; padding:0 1rem; }

/* Cabecera y logo */
.header { background:#111; color:#fff; position:relative; }
.header__inner { display:flex; align-items:center; justify-content:space-between; padding:1rem 0; }
.logo { font-size:1.8rem; font-weight:bold; }
.logo span { color:#e74c3c; }

/* Checkbox hack */
.menu-toggle { display:none; }
.menu-icon { display:none; flex-direction:column; gap:4px; cursor:pointer; }
.menu-icon span { width:25px; height:3px; background:#fff; border-radius:2px; }

/* Navegación horizontal (desktop) */
.nav__list { list-style:none; display:flex; gap:2rem; margin:0; padding:0; }
.nav__list a {
  position:relative; color:#fff; text-decoration:none; padding:0.5rem 0;
  transition: color 0.3s;
}
.nav__list a::before {
  content:''; position:absolute; bottom:-4px; left:50%; width:0; height:2px;
  background:#e74c3c; transition: width 0.3s, left 0.3s;
}
.nav__list a:hover {
  color:#e74c3c;
}
.nav__list a:hover::before {
  width:100%; left:0;
}

/* Responsive: menú hamburguesa */
@media (max-width:768px) {
  .menu-icon { display:flex; }
  .nav__list {
    flex-direction:column; position:absolute; top:100%; left:0;
    background:#111; width:100%; max-height:0; overflow:hidden;
    transition:max-height 0.3s ease-in-out;
  }
  .menu-toggle:checked + .menu-icon + nav .nav__list {
    max-height:300px;
  }
}

/* Hero */
.hero { background:#222; color:#fff; padding:4rem 0; }
.hero__inner { display:flex; flex-wrap:wrap; align-items:center; gap:2rem; }
.hero__img { flex:1; max-width:600px; width:100%; border-radius:8px; }
.hero__info { flex:1; }
.hero__info h1 { font-size:2.5rem; text-transform:uppercase; margin-bottom:1rem; }
.hero__info p { font-size:1.1rem; margin-bottom:1.5rem; }

/* Botones */
.btn {
  display:inline-block; background:#e74c3c; color:#fff;
  padding:.8rem 1.5rem; border-radius:4px; text-decoration:none;
  transition:background .3s;
}
.btn:hover { background:#c0392b; }

/* Catálogo */
.catalogo { padding:4rem 0; text-align:center; }
.catalogo h2 { font-size:2rem; margin-bottom:2rem; text-transform:uppercase; }
.card-container {
  display:flex; flex-wrap:wrap; gap:1.5rem;
  align-items:stretch; justify-content:center;
}
.card {
  flex:0 0 calc(33.333% - 1.5rem);
  background:#fff; border-radius:8px;
  display:flex; flex-direction:column; overflow:hidden;
  box-shadow:0 2px 8px rgba(0,0,0,.1);
  transition:transform .3s, box-shadow .3s;
}
.card:hover {
  transform:translateY(-5px);
  box-shadow:0 4px 16px rgba(0,0,0,.2);
}
.card img {
  width:100%; height:180px; object-fit:cover; flex-shrink:0;
}
.card__info {
  padding:1rem; display:flex; flex-direction:column; flex-grow:1;
}
.card__info h3 { margin-bottom:auto; }
.card__info p { margin-top:.5rem; font-weight:bold; color:#e74c3c; }

/* Contacto */
.contacto { background:#f9f9f9; padding:4rem 0; text-align:center; }
.contacto h2 { font-size:2rem; margin-bottom:2rem; }
.contacto__form {
  max-width:500px; margin:auto;
  display:flex; flex-direction:column; gap:1rem;
}
.contacto__form input,
.contacto__form textarea {
  padding:.8rem; border:1px solid #ccc; border-radius:4px; width:100%;
}
.contacto__form button { align-self:flex-end; }

/* Footer */
.footer { background:#111; color:#fff; padding:1.5rem 0; text-align:center; }
.footer a { color:#e74c3c; text-decoration:none; }
.footer a:hover { text-decoration:underline; }

/* Responsive breakpoints */
@media (max-width:1024px) {
  .card { flex:0 0 calc(50% - 1.5rem); }
}
@media (max-width:600px) {
  .hero__inner { flex-direction:column; }
  .card { flex:0 0 100%; }
}
