/* ============================================================
   MÉTRICA MAKER — Estilos compartidos
   metricamaker.es
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Montserrat:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0e1014;
  --bg2:      #121417;
  --bg3:      #1a1d22;
  --bg4:      #21252c;
  --orange:   #FF6A00;
  --orange2:  #FF8C38;
  --blue:     #0EA5E9;
  --purple:   #8B5CF6;
  --green:    #10B981;
  --lblue:    #38BDF8;
  --red:      #EF4444;
  --text:     #E5E7EB;
  --text2:    #9CA3AF;
  --text3:    #6B7280;
  --border:   #2a2d35;
  --border2:  #1e2027;
  --font-t:   'Orbitron', sans-serif;
  --font-b:   'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg2);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* FONDO BLUEPRINT */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('/assets/blueprint-bg.svg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 1;
}

/* HEXÁGONOS FONDO */
.hex-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  width: 100%;
  height: 100%;
}

/* ---- TICKER ---- */
.ticker {
  position: relative;
  z-index: 101;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
}
.ticker-label {
  background: var(--orange);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 3px;
  flex-shrink: 0;
  font-family: var(--font-t);
}
.ticker-track { flex: 1; overflow: hidden; position: relative; height: 32px; }
.ticker-inner {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.ticker-inner:hover { animation-play-state: paused; }
.ticker-item { font-size: 11px; color: var(--text2); cursor: pointer; transition: color .2s; }
.ticker-item:hover { color: var(--orange); }
.ticker-dot { margin-right: 6px; }
@keyframes ticker {
  0%   { transform: translateX(0) translateY(-50%); }
  100% { transform: translateX(-50%) translateY(-50%); }
}

/* ---- NAVBAR ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,16,20,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  height: 60px;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { height: 34px; width: auto; object-fit: contain; }
.nav-logo-text {
  font-family: var(--font-t);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1.15;
}
.nav-logo-text span { color: var(--orange); }
.nav-links { display: flex; align-items: center; margin-left: auto; }
.nav-link {
  padding: 0 13px;
  height: 60px;
  display: flex;
  align-items: center;
  color: var(--text2);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-bottom: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.nav-link:hover { color: #fff; border-bottom-color: var(--orange); }
.nav-link.active { color: #fff; border-bottom-color: var(--orange); }
.nav-cta {
  margin-left: 1rem;
  background: var(--orange);
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: background .2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--orange2); }

/* ---- BOTONES ---- */
.btn-primary {
  background: var(--orange);
  color: #fff;
  padding: 11px 26px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  font-family: var(--font-b);
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary:hover { background: var(--orange2); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: 11px 26px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.5px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--font-b);
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }

/* ---- PAGE WRAPPER ---- */
.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

/* ---- PAGE HEADER ---- */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border2);
}
.page-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.page-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.page-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: var(--font-t);
}
.page-title {
  font-family: var(--font-t);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.page-sub { font-size: 13px; color: var(--text3); }

/* ---- FILTROS ---- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.ftab {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  color: var(--text2);
  background: transparent;
  transition: all .2s;
  font-family: var(--font-b);
  letter-spacing: 0.3px;
}
.ftab:hover, .ftab.active {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255,106,0,0.08);
}
.search-box {
  margin-left: auto;
  position: relative;
}
.search-input {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px 7px 34px;
  color: var(--text);
  font-size: 12px;
  font-family: var(--font-b);
  outline: none;
  width: 220px;
  transition: border-color .2s;
}
.search-input:focus { border-color: var(--orange); }
.search-input::placeholder { color: var(--text3); }
.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  font-size: 14px;
}

/* ---- CARDS NOTICIAS ---- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.news-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border-left: 3px solid var(--orange);
  transition: all .2s;
  text-decoration: none;
  display: block;
}
.news-card:hover { transform: translateY(-2px); border-color: var(--orange); }
.news-card.cat-laser { border-left-color: var(--blue); }
.news-card.cat-filament { border-left-color: var(--purple); }
.news-card.cat-review { border-left-color: var(--green); }
.news-card.cat-software { border-left-color: var(--lblue); }
.nc-img { width: 100%; height: 160px; object-fit: cover; background: var(--bg4); }
.nc-body { padding: 1rem; }
.nc-tag { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.nc-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.nc-cat { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; font-family: var(--font-t); }
.nc-title { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.4; margin-bottom: 8px; }
.nc-excerpt { font-size: 12px; color: var(--text2); line-height: 1.6; margin-bottom: 10px; }
.nc-meta { font-size: 11px; color: var(--text3); display: flex; gap: 10px; }

/* ---- CARDS BASE DE DATOS ---- */
.db-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.db-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all .2s;
  cursor: pointer;
}
.db-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.db-card.laser-co2 { border-top: 2px solid var(--lblue); }
.db-card.laser-diode { border-top: 2px solid var(--blue); }
.db-card.resin { border-top: 2px solid var(--purple); }
.db-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-t);
  margin-bottom: 8px;
}
.db-name { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.db-brand { font-size: 11px; color: var(--text3); margin-bottom: 1rem; }
.db-specs { display: flex; flex-direction: column; gap: 8px; }
.db-spec { display: flex; justify-content: space-between; align-items: center; }
.db-spec-label { font-size: 11px; color: var(--text3); }
.db-spec-val { font-size: 11px; font-weight: 600; color: var(--text); }
.db-bar-wrap { height: 4px; background: var(--bg4); border-radius: 2px; margin-top: 2px; overflow: hidden; }
.db-bar { height: 100%; border-radius: 2px; }

/* ---- REVIEWS ---- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.review-card { background: var(--bg3); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; }
.rev-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.rev-score { font-family: var(--font-t); font-size: 26px; font-weight: 700; color: var(--orange); line-height: 1; }
.rev-verdict {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 4px;
  display: inline-block;
  letter-spacing: 0.5px;
}
.rev-verdict.excelente { background: rgba(16,185,129,0.15); color: var(--green); border: 1px solid rgba(16,185,129,0.3); }
.rev-verdict.bueno { background: rgba(255,106,0,0.15); color: var(--orange); border: 1px solid rgba(255,106,0,0.3); }
.rev-verdict.regular { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.rev-name { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.rev-type { font-size: 11px; color: var(--text3); margin-bottom: 1rem; }
.rev-bars { display: flex; flex-direction: column; gap: 8px; }
.rev-bar-row { display: flex; align-items: center; gap: 8px; }
.rev-bar-label { font-size: 11px; color: var(--text3); width: 80px; flex-shrink: 0; }
.rev-bar-track { flex: 1; height: 4px; background: var(--bg4); border-radius: 2px; overflow: hidden; }
.rev-bar-fill { height: 100%; border-radius: 2px; background: var(--orange); }
.rev-bar-val { font-size: 11px; color: var(--text2); width: 24px; text-align: right; flex-shrink: 0; }

/* ---- DIVIDER ---- */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 2.5rem 0; }

/* ---- EMPTY STATE ---- */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text3); }
.empty-state i { font-size: 48px; margin-bottom: 1rem; display: block; }
.empty-state h3 { font-size: 16px; color: var(--text2); margin-bottom: 8px; }

/* ---- PAGINATION ---- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 2rem; }
.pag-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text2);
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-b);
  transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.pag-btn:hover, .pag-btn.active { border-color: var(--orange); color: var(--orange); background: rgba(255,106,0,0.08); }

/* ---- FOOTER ---- */
footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
  margin-top: 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-logo img { height: 44px; object-fit: contain; margin-bottom: 1rem; }
.footer-brand-name { font-family: var(--font-t); font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-brand-name span { color: var(--orange); }
.footer-desc { font-size: 11px; color: var(--text3); line-height: 1.8; margin-bottom: 1rem; }
.footer-lema { font-size: 10px; color: var(--orange); font-family: var(--font-t); letter-spacing: 1px; }
.footer-col-title { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--text2); margin-bottom: 1rem; font-family: var(--font-t); }
.footer-link { display: block; font-size: 12px; color: var(--text3); text-decoration: none; margin-bottom: 6px; transition: color .2s; }
.footer-link:hover { color: var(--orange); }
.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text3);
  flex-wrap: wrap;
  gap: 8px;
}
.pwa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,106,0,0.1);
  border: 1px solid rgba(255,106,0,0.2);
  color: var(--orange);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-t);
  letter-spacing: 0.5px;
  transition: background .2s;
}
.pwa-badge:hover { background: rgba(255,106,0,0.2); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-link { padding: 0 8px; font-size: 11px; }
  .page-wrap { padding: 1.5rem 1rem 3rem; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  nav { padding: 0 1rem; }
  .nav-link { display: none; }
  .nav-cta { display: flex; }
}

/* ---- MEGA MENU NAV v2 ---- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-arrow { font-size: 9px; margin-left: 3px; opacity: 0.6; }
.nav-more { display: flex; align-items: center; }
.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14,16,20,0.98);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  min-width: 200px;
  z-index: 200;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.nav-item:hover .mega-menu { display: flex; flex-direction: column; }
.mega-link {
  display: block;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text2);
  text-decoration: none;
  border-radius: 6px;
  transition: all .15s;
  white-space: nowrap;
}
.mega-link:hover { background: rgba(255,106,0,0.1); color: var(--orange); }
.mega-link:first-child { color: #fff; font-weight: 600; border-bottom: 1px solid var(--border); margin-bottom: 4px; padding-bottom: 10px; }

/* ---- HAMBURGER ---- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  margin-left: auto;
  padding: 0;
}
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text2);
  border-radius: 1px;
  transition: all .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- MOBILE NAV ---- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 92px;
  left: 0;
  right: 0;
  background: rgba(14,16,20,0.98);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  flex-direction: column;
  backdrop-filter: blur(14px);
}
.mobile-nav.open { display: flex; }
.mobile-link {
  display: block;
  padding: 14px 2rem;
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--border2);
  transition: all .2s;
}
.mobile-link:hover { color: var(--orange); background: rgba(255,106,0,0.05); }
.mobile-link:last-child { border-bottom: none; }

/* ---- HOME HERO CARDS ---- */
.hero-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 8px; margin-top: 2rem; }
.hero-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hero-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.hero-card-icon { font-size: 28px; }
.hero-card-label { font-size: 11px; font-weight: 600; color: var(--text2); font-family: var(--font-t); letter-spacing: 0.3px; }

/* ---- HOME FEATURED NEWS ---- */
.featured-news-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.featured-news-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.fnc-img { width: 100%; height: 200px; object-fit: cover; background: var(--bg4); }
.fnc-body { padding: 1.2rem; }
.fnc-cat { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; font-family: var(--font-t); margin-bottom: 6px; }
.fnc-title { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.35; margin-bottom: 8px; }
.fnc-excerpt { font-size: 12px; color: var(--text2); line-height: 1.6; margin-bottom: 10px; }
.fnc-meta { font-size: 11px; color: var(--text3); display: flex; justify-content: space-between; }
.fnc-expand { display: none; padding: 0 1.2rem 1.2rem; border-top: 1px solid var(--border2); margin-top: 8px; }
.fnc-expand.open { display: block; }
.fnc-full { font-size: 13px; color: var(--text2); line-height: 1.8; margin-bottom: 1rem; }
.fnc-full p { margin-bottom: 0.7rem; }

/* ---- REVIEW CARD HOME ---- */
.rev-home-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all .2s;
  text-decoration: none;
}
.rev-home-card:hover { border-color: var(--orange); transform: translateY(-1px); }
.rev-home-score { font-family: var(--font-t); font-size: 28px; font-weight: 900; color: var(--orange); line-height: 1; flex-shrink: 0; }
.rev-home-content { flex: 1; }
.rev-home-type { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; color: var(--text3); font-family: var(--font-t); margin-bottom: 4px; }
.rev-home-name { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.rev-home-desc { font-size: 12px; color: var(--text2); line-height: 1.5; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
