/* ==========================================================================
   Termos Épicos — Components: botones, header/nav, footer, cards, forms
   ========================================================================== */

/* ---------- Botones ---------- */
.btn {
  --b-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-serif); font-weight: 600;
  font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  padding: 14px 26px; border-radius: var(--r-pill);
  border: 1px solid var(--gold-lo); background: var(--b-bg); color: var(--text);
  cursor: pointer; transition: all var(--dur-fast) var(--ease); white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: var(--grad-gold); background-size: 200% auto;
  color: #1a1305; border-color: transparent; font-weight: 700;
  box-shadow: 0 8px 30px var(--glow);
}
.btn-gold:hover { background-position: right center; box-shadow: 0 12px 44px var(--glow); }
.btn-ghost { background: rgba(240,234,216,.02); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-wa { background: var(--wa); border-color: transparent; color: #06210f; font-weight: 700; }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 34px; font-size: .88rem; }
.btn-sm { padding: 10px 18px; font-size: .74rem; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.link-gold { color: var(--gold-hi); border-bottom: 1px solid var(--gold-lo); padding-bottom: 1px; transition: color var(--dur-fast); }
.link-gold:hover { color: var(--gold); }

/* ---------- Chips / tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-serif); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 13px; border-radius: var(--r-pill); border: 1px solid var(--line);
  color: var(--muted-hi); background: rgba(240,234,216,.02);
}
.chip.gold-chip { border-color: var(--gold-lo); color: var(--gold-hi); }
.badge-tag {
  position: absolute; top: 0; left: 0; z-index: 3;
  font-family: var(--font-serif); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 0; background: var(--grad-gold); color: #1a1305; font-weight: 700;
}
/* Etiqueta de urgencia (inventario limitado) */
.badge-tag.badge-urgent { background: #b5462f; color: #fbe9d8; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background var(--dur), border-color var(--dur), backdrop-filter var(--dur);
}
.site-header.scrolled {
  background: rgba(6, 4, 2, .82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; gap: 22px; width: 100%; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 2px 8px var(--glow)); }
.brand-name { font-family: var(--font-display); font-size: 1.14rem; letter-spacing: .04em; line-height: 1; }
.brand-name small { display: block; font-family: var(--font-serif); font-size: .5rem; letter-spacing: .42em; color: var(--gold); text-transform: uppercase; margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-family: var(--font-serif); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-hi); position: relative; padding-block: 6px; transition: color var(--dur-fast);
}
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width var(--dur-fast) var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--gold-hi); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid transparent;
  color: var(--text); background: transparent; cursor: pointer; transition: all var(--dur-fast);
}
.icon-btn:hover { color: var(--gold-hi); border-color: var(--line); background: rgba(240,234,216,.03); }
.icon-btn svg { width: 21px; height: 21px; }
.nav-toggle { display: none; }

/* ---------- Mobile nav ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 70; background: rgba(6,4,2,.97); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; padding: 30px var(--gutter);
  transform: translateX(100%); transition: transform var(--dur) var(--ease-out); visibility: hidden;
}
.mobile-nav.open { transform: none; visibility: visible; }
.mobile-nav a { font-family: var(--font-serif); font-size: 1.5rem; letter-spacing: .08em; text-transform: uppercase; padding: 15px 0; border-bottom: 1px solid var(--line-soft); color: var(--text); }
.mobile-nav a:hover { color: var(--gold-hi); }
.mobile-nav .close-x { align-self: flex-end; margin-bottom: 20px; }

/* ---------- Cards de producto ---------- */
.product-card { position: relative; display: flex; flex-direction: column; }
.product-card .thumb {
  position: relative; overflow: hidden; border-radius: 0; border: 0;
  aspect-ratio: 3 / 4; background: transparent;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6,4,2,.6)); opacity: 0; transition: opacity var(--dur); }
.product-card:hover .thumb::after { opacity: 1; }
.product-card .info { padding: 16px 0 0; }
.product-card .cat { font-family: var(--font-serif); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.product-card .title { font-family: var(--font-serif); font-size: 1.06rem; margin: 5px 0 4px; }
.product-card .price { display: flex; align-items: baseline; gap: 9px; }
.product-card .price .now { font-family: var(--font-serif); font-size: 1.15rem; color: var(--gold-hi); }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-serif); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-hi); margin-bottom: 8px; }
.input, .select, .textarea {
  width: 100%; background: var(--bg3); border: 1px solid var(--line); color: var(--text);
  font-family: var(--font-ui); font-size: 1rem; padding: 13px 15px; border-radius: var(--r-sm);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold-lo); box-shadow: 0 0 0 3px var(--glow); }
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.form-note { background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; font-size: .9rem; color: var(--muted-hi); }

/* ---------- Panels / surfaces ---------- */
.panel { background: linear-gradient(180deg, var(--bg3), var(--bg2)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 34px); }
.panel-flat { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg2); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-block: clamp(46px, 6vw, 70px); }
.footer-grid h4 { font-family: var(--font-serif); font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--muted-hi); font-size: .95rem; transition: color var(--dur-fast); }
.footer-grid a:hover { color: var(--gold-hi); }
.footer-brand p { font-size: .95rem; max-width: 34ch; margin-top: 14px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); }
.footer-social a:hover { border-color: var(--gold); color: var(--gold-hi); }
.footer-social svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid var(--line-soft); padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; color: var(--muted); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 55;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: #06210f; font-family: var(--font-serif); font-weight: 700;
  font-size: .82rem; letter-spacing: .08em; padding: 13px 20px 13px 15px; border-radius: var(--r-pill);
  box-shadow: 0 10px 34px rgba(0,0,0,.45); animation: waPulse 2.6s infinite;
}
.wa-float:hover { background: var(--wa-dark); color: #fff; transform: translateY(-2px); }
.wa-float svg { width: 24px; height: 24px; }

/* ---------- Toast ---------- */
.toast-host { position: fixed; left: 50%; bottom: 26px; z-index: 120; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  background: var(--bg3); border: 1px solid var(--gold-lo); color: var(--text);
  padding: 13px 20px; border-radius: var(--r-pill); box-shadow: var(--shadow); font-size: .92rem;
  display: flex; align-items: center; gap: 10px; animation: fadeUp .35s var(--ease-out);
}
.toast svg { width: 18px; height: 18px; color: var(--gold-hi); }

/* ---------- Breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-serif); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-block: 22px; }
.crumbs a:hover { color: var(--gold-hi); }
.crumbs span { color: var(--gold); }

/* ---------- Responsive nav ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
}
