/* ============================================================
   TADC CATALOG — styles.css
   Dark · Cinematic · Industrial · Premium
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Barlow:wght@300;400;500;600&display=swap');

/* ── Variables ───────────────────────────────────────────── */
:root {
  --bg:          #0a0a0a;
  --bg-2:        #111111;
  --bg-3:        #1a1a1a;
  --surface:     #161616;
  --border:      #2a2a2a;
  --border-l:    #3a3a3a;

  --white:       #ffffff;
  --off-white:   #e8e4de;
  --muted:       #7a7672;
  --accent:      #c8a84b;       /* gold — matches TADC's warm highlight */
  --accent-dim:  rgba(200,168,75,.15);

  --font-head:   'Barlow Condensed', sans-serif;
  --font-body:   'Barlow', sans-serif;

  --radius:      4px;
  --transition:  .22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; background: none; border: none; font: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-fluid { padding: 0 24px; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--white);
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;

  background: var(--accent);
  color: #000;
  border: 2px solid var(--accent);
}
.btn:hover {
  background: #e0be62;
  border-color: #e0be62;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--off-white);
  border: 2px solid var(--border-l);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-1px);
}

/* ── Header / Nav ────────────────────────────────────────── */
#header_nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

#header_nav .row { display: flex; align-items: center; flex-wrap: wrap; }
#header_nav .col-12 { padding: 0 12px; }

.logo { height: 36px; }
.logo.transition { transition: opacity var(--transition); }
.logo:hover { opacity: .75; }

nav.main ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  justify-content: flex-end;
  flex-wrap: wrap;
}

nav.main ul li a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: color var(--transition);
}
nav.main ul li a:hover { color: var(--white); }
nav.main ul li:has(.lang) a { color: var(--muted); }

.lang { display: inline; height: 14px; vertical-align: middle; margin-left: 4px; }

/* ── Topbar (producto.html simple header) ────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10,10,10,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar .logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: .15em;
  color: var(--white);
  text-transform: uppercase;
}

.topbar .nav {
  display: flex;
  gap: 4px;
}

.topbar .nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color var(--transition);
}
.topbar .nav a:hover,
.topbar .nav a.active { color: var(--white); }

/* ── Breadcrumbs ─────────────────────────────────────────── */
.breadcrumbs {
  padding-top: 110px;
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-family: var(--font-head);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); transition: color var(--transition); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs strong { color: var(--off-white); }

/* ── Hero (catálogo) ─────────────────────────────────────── */
.hero {
  padding: 100px 0 0;
  background: var(--bg);
}

.hero__box {
  height: 220px;
  background:
    linear-gradient(135deg, rgba(200,168,75,.08) 0%, transparent 60%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 79px,
      rgba(255,255,255,.03) 79px,
      rgba(255,255,255,.03) 80px
    );
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero__box::before {
  content: 'CATÁLOGO DE PRODUCTOS';
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 4.5rem);
  letter-spacing: .18em;
  color: rgba(255,255,255,.06);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* ── Section ─────────────────────────────────────────────── */
.section {
  padding: 72px 0;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.section__head h2 { margin-bottom: 6px; }

.section__head p {
  color: var(--muted);
  font-size: .95rem;
  max-width: 480px;
}

/* ── Search bar ──────────────────────────────────────────── */
.searchbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.field, .select {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--off-white);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: .9rem;
  outline: none;
  transition: border-color var(--transition);
}

.field { flex: 1; min-width: 200px; }
.field::placeholder { color: var(--muted); }
.field:focus, .select:focus { border-color: var(--accent); }

.select { min-width: 180px; appearance: none; cursor: pointer; }

/* ── Grid ────────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 2px;
}

.grid--categories {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.grid--products {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition);
}

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

.card__media {
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-3);
  position: relative;
  overflow: hidden;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}

.card:hover .card__media { transform: scale(1.04); }

.card__media iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78%;
  height: 100%;
  transform: translate(-50%, -50%);
  border: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.card:hover .card__media iframe {
  opacity: 1;
}

.card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 55%);
}

.card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card__meta {
  font-family: var(--font-head);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.card__title {
  font-size: 1.35rem;
  color: var(--white);
  margin: 0;
  text-transform: uppercase;
}

.card__text {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.card__body .btn { margin-top: 12px; align-self: flex-start; }

/* ── Category Banner ─────────────────────────────────────── */
.category-banner {
  padding: 100px 0 0;
}

.category-banner__box {
  padding: 52px 52px;
  background:
    linear-gradient(135deg, rgba(200,168,75,.07) 0%, transparent 55%),
    var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.category-banner__box::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 120px; height: 3px;
  background: var(--accent);
}

.category-banner__content h1 { margin-bottom: 14px; }
.category-banner__content p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.65;
}

/* ── Catalog Toolbar ─────────────────────────────────────── */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 28px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.catalog-toolbar__left { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Product Detail ──────────────────────────────────────── */
.product-detail { padding-bottom: 80px; }

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 28px;
}

/* Gallery */
.gallery { display: flex; flex-direction: column; gap: 10px; }

.gallery__main {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery__main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .3s;
}

.gallery__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 40px; height: 40px;
  background: rgba(0,0,0,.65);
  border: 1px solid var(--border-l);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}
.gallery__nav:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.gallery__nav--prev { left: 10px; }
.gallery__nav--next { right: 10px; }

.gallery__thumbs {
  display: flex;
  gap: 8px;
}

.gallery__thumb {
  flex: 1;
  aspect-ratio: 1;
  background: var(--bg-3);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
  padding: 0;
}

.gallery__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .6;
  transition: opacity var(--transition);
}
.gallery__thumb:hover img,
.gallery__thumb.active img { opacity: 1; }
.gallery__thumb.active { border-color: var(--accent); }

/* Product Info */
.product-info__eyebrow {
  font-family: var(--font-head);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.product-info h1 { margin-bottom: 4px; }

.product-code {
  font-family: var(--font-head);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.product-summary {
  font-size: .97rem;
  color: var(--off-white);
  line-height: 1.7;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.specs {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 32px;
}

.specs > div {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}

.specs > div span { color: var(--muted); }
.specs > div strong { color: var(--white); font-weight: 600; }

.product-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Product Extra */
.product-extra {
  margin-top: 64px;
  padding: 40px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

.product-extra::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 3px;
  background: var(--accent);
  border-radius: var(--radius);
}

.product-extra h3 {
  font-size: 1.3rem;
  margin-bottom: 18px;
  color: var(--white);
}

.product-extra p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.72;
  margin-bottom: 12px;
}

/* Related */
.related { margin-top: 72px; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 4px;
}

.footer__text {
  font-size: .82rem;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ── Temática cards (no image) ───────────────────────────── */
.card--tematica {
  border-left: 3px solid var(--accent);
  background: var(--bg-3);
}

.card--tematica .card__body { padding: 28px 26px 30px; }

.card--tematica .card__title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.card--tematica:hover {
  border-left-color: var(--accent);
  background: #1f1d1a;
}

/* ── Utilities ───────────────────────────────────────────── */
.transition { transition: var(--transition); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; gap: 32px; }
  .category-banner__box { padding: 36px 28px; }
}

@media (max-width: 640px) {
  .grid--categories,
  .grid--products { grid-template-columns: 1fr; }
  .searchbar { flex-direction: column; }
  .topbar .nav { display: none; }
  nav.main ul { gap: 2px; }
  nav.main ul li a { font-size: .78rem; padding: 4px 6px; }
}
