*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #f4b41a;
  --color-gold: #ffd600;
  --color-gold-dark: #d99b00;
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  --color-emerald-500: #10b981;
  --color-emerald-600: #059669;
  --color-amber-600: #d97706;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-slate-50);
  color: var(--color-slate-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-image: url('/imagenes/logoultimo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-size: min(40vw, 500px);
}

::selection {
  background-color: var(--color-primary);
  color: #000;
}

/* ==========================================
   LAYOUT CONTAINERS
   ========================================== */
.container {
  max-width: 80rem; /* 1280px */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ==========================================
   HEADER & NAVBAR CON FONDO NEGRO
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background-color: #000000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid #1a1a1a;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: 
    drop-shadow(0px 0px 8px rgba(244, 180, 26, 0.95))
    drop-shadow(0px 4px 16px rgba(244, 180, 26, 0.85));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.header-logo-img:hover {
  filter: 
    drop-shadow(0px 0px 12px rgba(244, 180, 26, 1))
    drop-shadow(0px 6px 20px rgba(244, 180, 26, 0.95));
  transform: scale(1.02);
}

.header-brand-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-align: center;
}

.header-brand-title .highlight-change {
  color: #F4B41A;
}

.desktop-nav {
  display: none;
  gap: 1.2rem;
  align-items: center;
}

.desktop-nav a:not(.whatsapp-btn) {
  text-decoration: none;
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.desktop-nav a:not(.whatsapp-btn):hover {
  color: #F4B41A;
}

/* BOTÓN WHATSAPP HEADER GENERAL */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #25d366;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-btn:hover {
  background-color: #20ba5a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45);
}

.whatsapp-btn i, .whatsapp-btn svg {
  width: 18px;
  height: 18px;
}

.menu-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: background-color 0.2s;
}

.menu-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.menu-toggle-btn i {
  width: 28px;
  height: 28px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  background-color: #000000;
  border-top: 1px solid #1a1a1a;
  padding: 1rem 1.5rem;
  gap: 0.5rem;
}

.mobile-link {
  text-decoration: none;
  color: #e2e8f0;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  transition: background-color 0.2s, color 0.2s;
}

.mobile-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #F4B41A;
}

.mobile-whatsapp-btn {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

@media (min-width: 900px) {
  .desktop-nav {
    display: flex;
  }

  .menu-toggle-btn,
  .header-brand-title {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* ==========================================
   PAGE HEADER & BOTÓN VOLVER AL INICIO
   ========================================== */
.page-header {
  background-color: #ffffff;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-slate-200);
}

.page-header__wrapper {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .page-header__wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.page-header__title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--color-slate-900);
}

.page-header__description {
  color: var(--color-slate-600);
  margin-top: 0.25rem;
  font-size: 0.875rem;
}

/* ESTILOS BOTÓN VOLVER AL INICIO */
.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-slate-900);
  color: #ffffff;
  border: 1px solid var(--color-slate-800);
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  align-self: flex-start;
}

@media (min-width: 768px) {
  .btn-back {
    align-self: center;
  }
}

.btn-back:hover {
  background-color: #000000;
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-back svg {
  transition: transform 0.2s ease;
}

.btn-back:hover svg {
  transform: translateX(-3px);
}

/* ==========================================
   MAIN CONTENT & PRODUCT CARDS
   ========================================== */
.main-content {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.catalog-section__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.catalog-section__icon {
  color: var(--color-amber-600);
  width: 1.5rem;
  height: 1.5rem;
}

.catalog-section__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-slate-900);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.product-card {
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--color-slate-200);
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
  transform: translateY(-0.35rem);
  border-color: var(--color-primary);
  box-shadow: 0 15px 30px -5px rgba(244, 180, 26, 0.25);
}

.product-card__image-box {
  position: relative;
  margin-bottom: 0.75rem;
  display: flex;
  height: 10rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background-color: var(--color-slate-50);
  padding: 0.75rem;
  border: 1px solid var(--color-slate-100);
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.product-card__badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  background-color: var(--color-primary);
  color: var(--color-slate-900);
  font-weight: 800;
  font-size: 10px;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.product-card__image {
  position: relative;
  z-index: 0;
  height: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
}

.product-card:hover .product-card__image {
  transform: scale(1.08) translateY(-0.2rem);
}

.product-card__title {
  font-weight: 700;
  color: var(--color-slate-900);
  font-size: 1rem;
}

.product-card__description {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--color-slate-600);
}

.product-card__price {
  margin-top: 0.5rem;
  font-weight: 900;
  color: var(--color-amber-600);
  font-size: 1.125rem;
}

.product-card__actions {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ESTILOS BOTÓN PEDIR POR WHATSAPP EN TARJETAS */
.btn-whatsapp-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background-color: #25d366;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-whatsapp-card:hover {
  background-color: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-card svg,
.btn-whatsapp-card i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================
   FOOTER (PIE DE PÁGINA) EN NEGRO
   ========================================== */
.site-footer {
  background-color: #000000;
  color: #ffffff;
  border-top: 1px solid #1a1a1a;
  width: 100%;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .footer-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .footer-container {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 3rem;
  }

  .footer-col-brand {
    grid-column: span 2 / span 2;
  }
}

.footer-col-brand > * + * {
  margin-top: 1rem;
}

.footer-logo-link {
  display: inline-block;
}

.footer-logo-img {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(244, 180, 26, 0.8));
}

.footer-brand-desc {
  color: #a1a1aa;
  font-size: 0.875rem;
  line-height: 1.625;
  max-width: 24rem;
  margin: 0;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background-color: #18181b;
  color: #a1a1aa;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.social-btn .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.social-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.social-btn.instagram:hover { background-color: #e1306c; }
.social-btn.facebook:hover { background-color: #1877f2; }
.social-btn.whatsapp:hover { background-color: #25d366; }

.footer-title {
  color: #F4B41A;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem 0;
}

.footer-list, .footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list > li + li,
.footer-contact-list > li + li {
  margin-top: 0.5rem;
}

.footer-list a {
  color: #a1a1aa;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-list a:hover {
  color: #ffffff;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #a1a1aa;
  font-size: 0.875rem;
}

.contact-icon {
  width: 1rem;
  height: 1rem;
  color: #F4B41A;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid #1a1a1a;
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: #71717a;
}

.footer-bottom p {
  margin: 0;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: #71717a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: #a1a1aa;
}

/* ==========================================
   UTILIDADES
   ========================================== */
.hidden {
  display: none !important;
}

#mobile-menu {
  transition: all 0.3s ease-in-out;
}