/* ===========================
   ====== HEADER ======
   =========================== */

header {
  background: linear-gradient(to right, #967955 0%, #967955 40%, #6b5640 100%);
  color: var(--color-secondary);
  padding: 0 2rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 110px;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.logo-img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.nombre-sitio {
  font-size: 2.5rem;
  font-weight: 300;
  margin: 0;
  font-family: 'Arial', sans-serif;
  letter-spacing: 1px;
  position: relative;
  top: 0.5rem;
}

.nombre-oscuro {
  color: #4a3a2a;
}

.nombre-claro {
  color: #d4c5b5;
  text-shadow: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.socials {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-link {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 8px;
  transition: var(--transition);
  background-color: #3d2e1f;
}

.social-link:hover {
  background-color: #2a1f14;
  transform: scale(1.05);
}

.social-link svg {
  width: 24px;
  height: 24px;
}

/* Carrito en header */
.carrito-container {
  position: relative;
}

.carrito-btn {
  background-color: #c9a227;
  color: #2a1f14;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  position: relative;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.carrito-btn img {
  height: 24px;
  width: 24px;
  object-fit: contain;
}

.carrito-btn:hover {
  background-color: #b8922a;
  transform: scale(1.05);
}

.carrito-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--color-accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: var(--shadow-sm);
}

/* Responsive Header */
@media (max-width: 768px) {
  .nombre-sitio {
    display: none;
  }

  header {
    padding: 0 1rem;
    height: 100px;
  }

  .header-right {
    gap: 0.6rem;
  }

  .socials {
    gap: 0.4rem;
  }

  .social-link {
    padding: 0.45rem;
  }

  .social-link svg {
    width: 22px;
    height: 22px;
  }

  .carrito-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.75rem;
    gap: 0.4rem;
  }

  .carrito-btn img {
    height: 18px;
    width: 18px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0 0.75rem;
    height: 85px;
  }

  .header-right {
    gap: 0.5rem;
  }

  .socials {
    gap: 0.3rem;
  }

  .social-link {
    padding: 0.4rem;
  }

  .social-link svg {
    width: 20px;
    height: 20px;
  }

  .carrito-btn {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    gap: 0.4rem;
  }

  .carrito-btn img {
    height: 20px;
    width: 20px;
  }
}