/* === CATÁLOGO GSEB — Estilo Oscuro Minimalista === */
*, *::before, *::after { box-sizing: border-box; }

body {
  background: #18191a;
  color: #f5f5f5;
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

h1, h2, h3 { font-weight: 700; letter-spacing: 0.5px; margin: 0 0 0.5em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* === LAYOUT === */
.container  { max-width: 1100px; margin: 0 auto; padding: 0 1.2em; }
.main-content { min-height: 70vh; }
.section    { padding: 3em 0; }
.section-title { font-size: 1.4rem; margin-bottom: 1.2em; border-left: 3px solid #555; padding-left: 0.7em; }
.page-header { margin-bottom: 2em; }
.page-desc   { color: #aaa; margin-top: 0.4em; }
.empty-msg  { color: #666; font-style: italic; }

/* === NAVBAR === */
.navbar { background: #111; border-bottom: 1px solid #222; position: sticky; top: 0; z-index: 100; }
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1.2em;
  display: flex; align-items: center; gap: 1.5em;
  height: 60px;
}
.navbar-brand { display: flex; align-items: center; }
.nav-logo     { height: 36px; width: auto; }
.brand-name   { font-size: 1.3rem; font-weight: 700; letter-spacing: 2px; color: #fff; }
.nav-links    { display: flex; gap: 0.5em; flex-wrap: wrap; }
.nav-link     { padding: 0.4em 0.8em; border-radius: 5px; font-size: 0.88rem; font-weight: 600; color: #ccc; transition: color 0.15s, background 0.15s; }
.nav-link:hover { color: #fff; background: #222; }
.nav-toggle   { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; margin-left: auto; }

/* === HERO === */
.hero { position: relative; overflow: hidden; background: #111; }
.hero-slides { position: relative; }
.hero-slide  { display: none; position: relative; }
.hero-slide.active { display: block; }
.hero-slide img { width: 100%; max-height: 480px; object-fit: cover; }
.hero-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2em 2.5em;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
}
.hero-caption h2 { font-size: 2rem; margin: 0 0 0.2em; }
.hero-caption p  { color: #ddd; margin: 0; font-size: 1rem; }

/* === PRODUCT GRID === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5em;
}
.product-card {
  background: #232526;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
  display: block;
  color: inherit;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.5); }

.product-img-wrap { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #1a1b1c; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .product-img-wrap img { transform: scale(1.04); }
.product-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #444; font-size: 0.8rem; }

.product-badges { position: absolute; top: 0.6em; left: 0.6em; display: flex; flex-wrap: wrap; gap: 0.3em; }
.badge           { display: inline-block; font-size: 0.68rem; font-weight: 700; padding: 0.2em 0.55em; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-agotado   { background: #2a1200; color: #ff6200; border: 1px solid #ff6200; }
.badge-limited   { background: #ff6200; color: #111; }
.badge-dest      { background: #ff6200; color: #111; }

.product-info    { padding: 1em 1.1em 1.2em; }
.product-cat     { font-size: 0.72rem; color: #888; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 0.3em; }
.product-name    { font-size: 0.95rem; font-weight: 600; margin: 0 0 0.4em; line-height: 1.3; }
.product-price   { font-size: 1.05rem; font-weight: 700; color: #ff6200; }

/* === PRODUCT DETAIL === */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3em;
  align-items: start;
}
.gallery-main img  { width: 100%; border-radius: 10px; object-fit: cover; max-height: 500px; }
.gallery-no-img    { background: #232526; border-radius: 10px; height: 320px; display: flex; align-items: center; justify-content: center; color: #999; }
.gallery-thumbs    { display: flex; gap: 0.5em; margin-top: 0.7em; flex-wrap: wrap; }
.thumb-btn         { background: none; border: 2px solid transparent; border-radius: 6px; padding: 0; cursor: pointer; transition: border-color 0.15s; overflow: hidden; }
.thumb-btn:hover   { border-color: #555; }
.thumb-btn img     { width: 70px; height: 70px; object-fit: cover; display: block; }

.product-detail-title { font-size: 1.8rem; margin: 0.3em 0 0.5em; }
.product-detail-price { font-size: 2rem; font-weight: 700; margin-bottom: 0.8em; color: #ff6200; }
.product-short-desc   { color: #bbb; line-height: 1.6; margin-bottom: 1em; }
.product-long-desc    { color: #aaa; line-height: 1.7; margin-bottom: 1.5em; font-size: 0.95rem; }

.btn           { display: inline-block; padding: 0.75em 1.8em; border-radius: 7px; font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: background 0.2s; border: none; text-align: center; }
.btn-wa        { background: #ff6200; color: #fff; }
.btn-wa:hover  { background: #d95200; }
.btn-disabled  { background: #2a2a2a; color: #aaa; cursor: not-allowed; }

/* === QUANTITY SELECTOR === */
.quantity-wrap  { margin: 1.2em 0; }
.qty-label      { display: block; font-size: 0.85rem; color: #aaa; margin-bottom: 0.5em; font-weight: 600; }
.stock-info     { color: #666; font-weight: 400; }
.qty-controls   { display: flex; align-items: center; gap: 0; width: fit-content; border: 1px solid #333; border-radius: 8px; overflow: hidden; margin-bottom: 1.2em; }
.qty-btn        { background: #232526; color: #fff; border: none; width: 42px; height: 42px; font-size: 1.3rem; cursor: pointer; transition: background 0.15s; }
.qty-btn:hover  { background: #333; }
.qty-input      { width: 56px; height: 42px; text-align: center; background: #1a1b1c; color: #fff; border: none; border-left: 1px solid #333; border-right: 1px solid #333; font-size: 1rem; font-weight: 700; font-family: inherit; }

.related-section { margin-top: 4em; }

/* === CONTACT === */
.contact-wrap    { max-width: 600px; margin: 0 auto; text-align: center; }
.contact-intro   { color: #aaa; margin: 0.5em 0 2em; font-size: 1.05rem; }
.contact-cards   { display: flex; gap: 1.2em; justify-content: center; flex-wrap: wrap; }
.contact-card    {
  background: #232526; border-radius: 12px; padding: 1.5em 2em;
  display: flex; align-items: center; gap: 1em;
  transition: background 0.2s; min-width: 200px;
}
.contact-card:hover { background: #2c2e30; }
.contact-icon    { font-size: 2rem; }
.contact-card strong { display: block; font-size: 1rem; }
.contact-card span   { color: #aaa; font-size: 0.85rem; }

/* === FOOTER === */
.site-footer  { background: #111; border-top: 1px solid #222; margin-top: 4em; padding: 2.2em 0 1.8em; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2em; }
.footer-brand-block { display: flex; align-items: center; }
.footer-logo  { height: 40px; width: auto; object-fit: contain; }
.footer-brand { font-weight: 700; letter-spacing: 2px; font-size: 1rem; }
.footer-social { display: flex; gap: 0.7em; align-items: center; }
.footer-social-btn {
  display: flex; align-items: center; gap: 0.4em;
  padding: 0.45em 1em; border-radius: 30px;
  font-size: 0.82rem; font-weight: 700; transition: opacity 0.15s;
}
.footer-social-btn:hover { opacity: 0.85; }
.footer-wa { background: #ff6200; color: #111; }
.footer-ig { background: linear-gradient(135deg,#c4752a,#b84e28,#a81d30,#8f1248,#7a0d5a); color: #fff; }
.footer-copy  { display: flex; align-items: center; gap: 0.5em; }
.footer-link  { color: #888; font-size: 0.88rem; transition: color 0.15s; }
.footer-link:hover { color: #fff; }
.footer-sep   { color: #444; }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1em; }
  .footer-social-btn span { display: none; }
  .footer-social-btn { padding: 0.5em 0.75em; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-toggle  { display: block; }
  .nav-links   { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: #111; padding: 1em; border-bottom: 1px solid #222; z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-inner   { position: relative; }

  /* Detalle producto — columna única */
  .product-detail { grid-template-columns: 1fr; gap: 1.2em; }
  .product-detail-title { font-size: 1.3rem; }
  .product-detail-price { font-size: 1.6rem; }

  /* Hero */
  .hero-caption h2 { font-size: 1.2rem; }
  .hero-slide img  { max-height: 200px; }

  /* Cards */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7em; }
  .product-name  { font-size: 0.82rem; }
  .product-price { font-size: 0.95rem; }
  .product-info  { padding: 0.65em 0.7em 0.85em; }

  /* Sección */
  .section { padding: 1.8em 0; }
  .section-title { font-size: 1.05rem; }

  /* Combo block */
  .combo-price-block { padding: 0.75em 1em; }
  .combo-price-value { font-size: 1.45rem; }

  /* Qty selector táctil */
  .qty-btn   { width: 50px; height: 50px; font-size: 1.5rem; }
  .qty-input { width: 58px; height: 50px; font-size: 1.1rem; }
  .qty-controls { border-radius: 10px; }

  /* Botón WA full width */
  .btn-wa       { display: block; width: 100%; text-align: center; padding: 1em; font-size: 1rem; border-radius: 10px; }
  .btn-disabled { display: block; width: 100%; text-align: center; }

  /* Galería thumbs más chicas */
  .thumb-btn img { width: 55px; height: 55px; }
}

/* iPhone SE / pantallas muy chicas */
@media (max-width: 390px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.45em; }
  .product-info  { padding: 0.55em 0.55em 0.7em; }
  .product-name  { font-size: 0.76rem; line-height: 1.25; }
  .product-img-wrap { aspect-ratio: 1/1; }
  .badge         { font-size: 0.58rem; padding: 0.12em 0.35em; }
  .container     { padding: 0 0.65em; }
  .product-detail-title { font-size: 1.15rem; }
  .product-detail-price { font-size: 1.45rem; }
  .gallery-main img { max-height: 260px; }
  .thumb-btn img { width: 48px; height: 48px; }
  .nav-logo      { height: 28px; }
}

/* === PROMO TOAST === */
.promo-toast {
  position: fixed;
  bottom: 1.5em;
  right: 1.5em;
  background: #1c1c1e;
  border: 1px solid #ff6200;
  border-radius: 14px;
  padding: 1em 1.1em 1em 1em;
  display: flex;
  align-items: center;
  gap: 0.75em;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  z-index: 999;
  max-width: 310px;
  transform: translateY(120px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(.22,1,.36,1), opacity 0.4s;
  pointer-events: none;
}
.promo-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.promo-toast-icon { font-size: 1.8rem; flex-shrink: 0; }
.promo-toast-body { flex: 1; }
.promo-toast-body strong { display: block; font-size: 0.9rem; color: #ff6200; margin-bottom: 0.15em; }
.promo-toast-body span  { font-size: 0.78rem; color: #ccc; line-height: 1.3; display: block; }
.promo-toast-cta {
  background: #ff6200;
  color: #111;
  border: none;
  border-radius: 8px;
  padding: 0.45em 0.85em;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.promo-toast-cta:hover { background: #d95200; color: #111; }
.promo-toast-close {
  position: absolute;
  top: 0.4em;
  right: 0.5em;
  background: none;
  border: none;
  color: #555;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.promo-toast-close:hover { color: #aaa; }
@media (max-width: 480px) {
  .promo-toast {
    bottom: 0;
    right: 0;
    left: 0;
    max-width: 100%;
    border-radius: 14px 14px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    transform: translateY(100%);
  }
  .promo-toast.show { transform: translateY(0); }
}

/* === PROMO TICKER === */
.promo-ticker {
  background: #ff6200;
  color: #111;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  overflow: hidden;
  white-space: nowrap;
  height: 24px;
  display: flex;
  align-items: center;
}
.promo-ticker-track {
  display: inline-block;
  animation: ticker-scroll 14s linear infinite;
  padding-left: 100%;
}
.promo-ticker-track span { display: inline-block; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === COMBO PRICE === */
.combo-price-block {
  background: linear-gradient(135deg, #2e1a0a 0%, #3a1e0a 100%);
  border: 1px solid #ff6200;
  border-radius: 10px;
  padding: 0.9em 1.2em;
  margin-bottom: 1.2em;
  display: none;
}
.combo-price-block.visible { display: block; }
.combo-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ff6200;
  margin-bottom: 0.25em;
}
.combo-price-value {
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
}
.combo-price-value small {
  font-size: 0.5em;
  color: #aaa;
}
.combo-saving {
  font-size: 0.78rem;
  color: #aaa;
  margin-top: 0.2em;
}
