/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

main,
.header-wrapper,
.hero-wrapper,
.footer-wrapper {
  max-width: 1000px;
  margin: auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background-color: #fff;
  border-bottom: 2px solid #f1f1f1;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  height: 60px;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: #FFD700;
}

/* Menú móvil */
.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-icon span {
  height: 3px;
  width: 25px;
  background: #333;
  margin-bottom: 4px;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  .menu-toggle:checked + .menu-icon + .nav {
    display: flex;
  }
  .menu-icon {
    display: flex;
  }
}

/* Hero */
.hero {
  text-align: center;
  padding: 2rem 1rem;
}

.hero-wrapper {
  max-width: 1000px;
  margin: auto;
}

.hero-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.franja-amarilla {
  background-color: #FFD700;
  padding: 1rem;
  font-weight: bold;
  border-radius: 0.5rem;
  max-width: 1000px;
  margin: 0 auto 1.5rem;
}

.hero-content h1 {
  font-size: 2rem;
  margin: 1rem 0;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.btn-amarillo {
  background-color: #FFD700;
  color: #000;
  padding: 1rem 2rem;
  border: none;
  border-radius: 2rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn-amarillo:hover {
  background-color: #FFC400;
}

/* Categorías */
.categorias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
}

.card {
  text-align: center;
  border: 1px solid #f0f0f0;
  border-radius: 1rem;
  padding: 2rem 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
  background: #fff;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card img {
  height: 60px;
  margin-bottom: 1rem;
}

.card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Carrusel de marcas */
.carrusel-marcas {
  overflow: hidden;
  background-color: #fff;
  padding: 2rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  position: relative;
}

.carrusel-track {
  display: flex;
  width: max-content;
  animation: scroll-carrusel 30s linear infinite;
}

.carrusel-track img {
  height: 60px;
  margin: 0 2rem;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.carrusel-track img:hover {
  opacity: 1;
}

@keyframes scroll-carrusel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Footer */
.footer {
  background-color: #f9f9f9;
  padding: 3rem 1rem;
  text-align: left;
  border-top: 1px solid #e0e0e0;
  margin-top: 3rem;
}

.footer-wrapper {
  max-width: 1000px;
  margin: auto;
}

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

.footer-col h3,
.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #333;
}

.footer-col p,
.footer-col a {
  font-size: 0.95rem;
  color: #555;
  text-decoration: none;
}

.footer-col a:hover {
  color: #000;
}

.social-icons a img {
  width: 24px;
  margin-right: 0.5rem;
  transition: opacity 0.3s;
}

.social-icons a img:hover {
  opacity: 0.7;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
  color: #555;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: #000;
}

.copyright {
  text-align: center;
  font-size: 0.85rem;
  color: #999;
}

/* Animaciones */
.hero-content {
  animation: fadeIn 1s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
