/* ===========================
   VARIABLES
=========================== */
:root {
  --amarillo: #ffcc33;
  --rojo: #ff3b30;
  --azul: #0057b7;
  --verde: #00b894;
  --oscuro: #1f2933;
  --gris: #f4f4f6;
  --blanco: #ffffff;

  --radius: 14px;
  --shadow-soft: 0 10px 25px rgba(0,0,0,0.12);
}

/* ===========================
   RESET
=========================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #fffdf5, #ffffff);
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===========================
   HEADER
=========================== */
header {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

nav {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-weight: 900;
  color: var(--oscuro);
}

.logo span {
  font-size: 2rem;
}

.logo img {
  height: 50px;
  opacity: 0;
  animation: fadeInLogo 0.8s ease forwards;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.logo img:hover {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
}

@keyframes fadeInLogo {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amarillo), var(--rojo));
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===========================
   LAYOUT
=========================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* ===========================
   HERO (OPTIMIZADO)
=========================== */
.hero {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr; /* más estable y responsivo */
  align-items: center;
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--oscuro);
  margin-bottom: 0.5rem;
}

.hero-title strong {
  background: linear-gradient(90deg, var(--amarillo), var(--rojo));
  -webkit-background-clip: text;
  color: transparent;
}
.hero-pill {
  font-size: 1.0rem;
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}


.hero-subtitle {
  font-size: 2rem;
  color: #7f6000;
  max-width: 480px;
  margin-bottom: 1rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
/* Botones */
.btn-primary {
  background: linear-gradient(135deg, var(--rojo), #ff7b02);
  border-radius: 999px;
  border: none;
  padding: 0.6rem 1.3rem;
  color: white;
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255,96,54,0.5);
}

.btn-secondary {
  border-radius: 999px;
  border: 1px solid #274e13;
  padding: 0.55rem 1.1rem;
  background: linear-gradient(135deg, var(--verde), #38b425);
  font-weight: 900;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ===========================
   BANNER OPTIMIZADO
=========================== */
.banner {
  width: 100%;
  max-width: 1024px;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.hero-banner-img {
  width: 100%;
  max-width: 1024px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: transform 0.5s ease;
}

.hero-banner-img:hover {
  transform: scale(1.05);
}


@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .banner {
    max-width: 100%;
  }
}

/* ===========================
   CATÁLOGO — GRID
=========================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

/* ===========================
   CATÁLOGO — IMÁGENES
=========================== */
.product-card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin: 0 auto 0.6rem;
}

/* ===========================
   BUSCADOR
=========================== */
.search-bar {
  width: 60%;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 2px solid #ddd;
  font-size: 1rem;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .search-bar {
    width: 100%;
  }

  .banner {
    margin: 0 auto;
  }
}