/* ================= TOKENS ================= */
:root {
  --bg: #14161a;
  --surface: #1c1f24;
  --surface-alt: #23262c;
  --border: #2e3238;
  --accent: #f5b942;
  --accent-dark: #d99a2b;
  --text: #f2f0ea;
  --text-muted: #9aa0a6;
  --radius: 10px;
  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button { font-family: inherit; cursor: pointer; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ================= BANNER ================= */
.banner {
  background: var(--surface);
  border-bottom: 3px solid var(--accent);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.banner__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.banner__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  letter-spacing: 0.5px;
  margin: 0;
  line-height: 1;
}

.banner__title span {
  color: var(--accent);
}

.banner__subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 4px 0 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #14161a;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  border: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-whatsapp:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-whatsapp svg { width: 18px; height: 18px; }

/* ================= NAV CATEGORÍAS ================= */
.category-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.category-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 18px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.category-tab:hover { color: var(--text); }

.category-tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ================= CATÁLOGO ================= */
.catalog-section {
  padding: 40px 24px 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.catalog-section__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 20px;
  padding-top: 30px;
  scroll-margin-top: 70px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 10px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card__img-wrap {
  aspect-ratio: 4 / 3;
  background: var(--surface-alt);
  overflow: hidden;
}

.card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.card__title {
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}

.card__specs {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
}

.price-tag {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--accent);
  color: #14161a;
  padding: 5px 10px 5px 12px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}

.card__arrow {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
}

.empty-msg {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* ================= MODAL FICHA DE PRODUCTO ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 13, 0.85);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  z-index: 100;
}

.modal-overlay.is-open { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 900px;
  width: 100%;
  padding: 28px;
  position: relative;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
}

.modal__close:hover { color: var(--accent); border-color: var(--accent); }

.modal__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
}

@media (max-width: 700px) {
  .modal__grid { grid-template-columns: 1fr; }
}

.modal__main-img {
  aspect-ratio: 4/3;
  background: var(--surface-alt);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
}

.modal__main-img img { width: 100%; height: 100%; object-fit: cover; }

.modal__thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.modal__thumbs button {
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--surface-alt);
}

.modal__thumbs button.is-active { border-color: var(--accent); }
.modal__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.modal__estado {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 12px;
}

.modal__spec-table {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.modal__spec-table td {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.modal__spec-table td:first-child {
  color: var(--text-muted);
  width: 40%;
}

.modal__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.modal__price {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ================= INFO ÚTIL ================= */
.info-section {
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 0 24px 50px;
}

.info-section__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.info-grid--single {
  grid-template-columns: minmax(0, 480px);
  justify-content: center;
}

.info-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-list li::marker {
  color: var(--accent);
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
}

.info-card__icon { font-size: 1.4rem; margin-bottom: 10px; }

.info-card h3 {
  font-size: 1rem;
  margin: 0 0 8px;
}

.info-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.info-card.contact {
  background: var(--accent);
  color: #14161a;
  border-left-color: var(--accent-dark);
}

.info-card.contact h3 { color: #14161a; }
.info-card.contact p { color: #14161a; opacity: 0.85; margin-bottom: 14px; }

.info-card.contact .btn-whatsapp {
  background: #14161a;
  color: var(--accent);
}

.info-card.contact .btn-whatsapp:hover { background: #22252b; }

/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
