/* =============================================
   FlashChip — CSS compartido v2.01
   Todas las páginas nuevas de la arquitectura SEO
   ============================================= */

/* ---- Custom Properties ---- */
:root {
  --bg:       #0a0e1a;
  --bg2:      #0d1117;
  --bg3:      #161b22;
  --card:     rgba(16,21,32,0.82);
  --card-h:   rgba(20,26,40,0.97);
  --border:   rgba(48,54,70,0.65);
  --border-h: rgba(88,166,255,0.45);
  --text1:    #eef2ff;
  --text2:    #8892a4;
  --text3:    #454f5e;
  --blue:     #58a6ff;
  --blue-g:   rgba(88,166,255,0.18);
  --green:    #3fb950;
  --green-g:  rgba(63,185,80,0.18);
  --orange:   #f0883e;
  --red:      #f85149;
  --nav-bg:   rgba(10,14,26,0.97);
  --sh1:      0 2px 10px rgba(0,0,0,0.35);
  --sh2:      0 6px 24px rgba(0,0,0,0.48);
  --sh3:      0 12px 48px rgba(0,0,0,0.6);
  --sh-blue:  0 8px 32px rgba(88,166,255,0.22);
  --r-sm:     8px;
  --r-md:     14px;
  --r-lg:     22px;
  --ease:     all 0.25s cubic-bezier(.4,0,.2,1);
  --spring:   all 0.32s cubic-bezier(.34,1.56,.64,1);
  --font:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --hdr:      58px;
  --nav:      62px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text1);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 70% 50% at 15% 60%, rgba(88,166,255,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(63,185,80,0.05) 0%, transparent 55%);
  background-attachment: fixed;
}
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
button { font-family: var(--font); }
input, select, textarea { font-family: var(--font); }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ---- Header ---- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--hdr);
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; z-index: 100; gap: 8px;
}
.hdr-logo {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; flex-shrink: 0;
}
.hdr-logo img { height: 34px; width: 34px; object-fit: contain; border-radius: 8px; }
.hdr-logo-txt { font-size: 17px; font-weight: 800; letter-spacing: -0.4px; color: var(--text1); }
.hdr-logo-txt span { color: var(--blue); }

/* Desktop nav */
.hdr-nav {
  display: none;
  align-items: center; gap: 2px; flex: 1; justify-content: center;
}
.hdr-nav-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 11px; border-radius: var(--r-sm);
  border: none; background: transparent; text-decoration: none;
  color: var(--text2); font-family: var(--font);
  font-size: 12.5px; font-weight: 500;
  cursor: pointer; transition: var(--ease); white-space: nowrap;
}
.hdr-nav-btn:hover, .hdr-nav-btn.active {
  background: var(--blue-g); color: var(--blue);
}
.hdr-auth {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.hdr-actions {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  position: relative;
}
.hdr-more-btn {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--card); border: 1px solid var(--border);
  color: var(--text1); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--ease); flex-shrink: 0;
}
.hdr-more-btn:hover, .hdr-more-btn.active {
  background: var(--blue-g); border-color: var(--blue); color: var(--blue);
  box-shadow: 0 0 12px rgba(88, 166, 255, 0.35);
}
.hdr-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 290px; max-width: calc(100vw - 20px);
  background: rgba(13, 19, 33, 0.96); backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px); border: 1px solid var(--border-h);
  border-radius: var(--r-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(88, 166, 255, 0.15);
  padding: 8px; z-index: 1000; display: none;
  animation: dropIn .18s ease-out; max-height: calc(100vh - 80px);
  overflow-y: auto;
}
.hdr-dropdown.show { display: block; }
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.menu-sec-ttl {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.9px; color: var(--text3); padding: 6px 10px 4px;
}
.menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 11px; border-radius: var(--r-sm);
  color: var(--text1); font-size: 13px; font-weight: 600;
  text-decoration: none; transition: var(--ease);
}
.menu-item:hover {
  background: var(--card-h); color: var(--blue); transform: translateX(3px);
}
.menu-item.active {
  color: var(--blue); background: var(--blue-g);
}
.menu-item-admin {
  background: rgba(240, 136, 62, 0.12) !important;
  border: 1px solid rgba(240, 136, 62, 0.35) !important;
  color: var(--orange) !important; margin-top: 2px;
}
.menu-item-admin:hover {
  background: rgba(240, 136, 62, 0.22) !important;
  border-color: var(--orange) !important;
}
.menu-divider {
  border-top: 1px solid var(--border); margin: 6px 0;
}
.menu-auth-sec { padding-top: 4px; }
.menu-user-box {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 9px; background: var(--bg2);
  border-radius: var(--r-sm); border: 1px solid var(--border);
}
@media (max-width: 767px) {
  .hdr-auth { display: none !important; }
}

/* ---- Bottom nav (mobile) ---- */
.bot-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--nav);
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-around;
  z-index: 100; padding: 0 2px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 5px 4px; border-radius: var(--r-sm);
  cursor: pointer; transition: var(--spring);
  background: none; border: none; text-decoration: none;
  color: #c9d4e8; font-size: 9px; font-weight: 600; font-family: var(--font);
  flex: 1; min-width: 0; letter-spacing: 0.1px; white-space: nowrap;
}
.nav-btn svg { width: 22px; height: 22px; transition: var(--ease); flex-shrink: 0; opacity: 0.92; }
.nav-btn:hover { color: #ffffff; }
.nav-btn.active {
  color: #7cc0ff;
  background: rgba(88,166,255,0.14);
  box-shadow: inset 0 0 0 1px rgba(88,166,255,0.28);
}
.nav-btn.active svg { opacity: 1; filter: drop-shadow(0 0 7px rgba(88,166,255,0.8)); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--r-sm);
  border: none; font-family: var(--font); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--spring); text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.95) !important; }
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 4px 14px rgba(88,166,255,0.42);
}
.btn-primary:hover {
  background: #79b8ff; transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(88,166,255,0.55);
}
.btn-secondary {
  background: var(--card); color: var(--text1);
  border: 1px solid var(--border); backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  border-color: var(--blue); color: var(--blue);
  transform: translateY(-3px); box-shadow: var(--sh-blue);
}
.btn-success {
  background: var(--green); color: #fff;
  box-shadow: 0 4px 14px rgba(63,185,80,0.4);
}
.btn-success:hover {
  background: #56d364; transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(63,185,80,0.55);
}
.btn-ghost {
  background: transparent; color: var(--text2);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--card-h); color: var(--text1);
  border-color: var(--border-h);
}
.btn-danger {
  background: var(--red); color: #fff;
  box-shadow: 0 4px 14px rgba(248,81,73,0.35);
}
.btn-danger:hover {
  background: #f85149dd; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(248,81,73,0.5);
}
.btn-sm { font-size: 11.5px; padding: 6px 12px; }

/* ---- Cards ---- */
.gc {
  background: var(--card); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--sh2);
}
.gc-static {
  background: var(--card); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--sh2);
}

/* ---- Main & page layout ---- */
.main {
  padding-top: var(--hdr);
  padding-bottom: calc(var(--nav) + 12px);
  min-height: 100vh;
}
.page-content {
  padding: 28px 16px 48px;
  max-width: 900px;
  margin: 0 auto;
}

/* ---- Typography ---- */
.page-title {
  font-size: 26px; font-weight: 900;
  letter-spacing: -0.5px; line-height: 1.2;
  margin-bottom: 10px;
}
.page-title span { color: var(--blue); }
.page-sub {
  font-size: 14px; color: var(--text2);
  line-height: 1.65; margin-bottom: 28px;
}
h2.section-ttl {
  font-size: 18px; font-weight: 800;
  letter-spacing: -0.3px; margin: 32px 0 10px;
  color: var(--text1);
}
h3.sub-ttl {
  font-size: 15px; font-weight: 700;
  margin: 22px 0 7px; color: var(--text1);
}
.prose {
  font-size: 13.5px; color: var(--text2);
  line-height: 1.7; margin-bottom: 14px;
}
.prose strong { color: var(--text1); }
.prose a { color: var(--blue); text-decoration: underline; }
.prose a:hover { color: #79b8ff; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text3);
  margin-bottom: 22px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text3); }

/* ---- Info blocks ---- */
.info-blk {
  background: var(--card); border: 1px solid var(--border);
  border-left: 3px solid var(--blue); border-radius: var(--r-md);
  padding: 16px; margin-bottom: 12px;
}
.info-blk h3 { font-size: 13.5px; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.info-blk p  { font-size: 13px; color: var(--text2); line-height: 1.6; }
.info-blk p a { color: var(--blue); text-decoration: underline; }
.info-blk.green { border-left-color: var(--green); }
.info-blk.green h3 { color: var(--green); }
.info-blk.orange { border-left-color: var(--orange); }
.info-blk.orange h3 { color: var(--orange); }

/* ---- Disclaimer box ---- */
.disclaimer {
  background: rgba(240, 136, 62, 0.08);
  border: 1px solid rgba(240, 136, 62, 0.28);
  border-left: 3px solid var(--orange);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 20px;
}
.disc-ttl {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.disc-txt {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.55;
}

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
}
.b-ok { background: rgba(63,185,80,0.13); color: var(--green); border: 1px solid rgba(63,185,80,0.28); }
.b-sp { background: rgba(240,136,62,0.13); color: var(--orange); border: 1px solid rgba(240,136,62,0.28); }
.b-no { background: rgba(248,81,73,0.13); color: var(--red); border: 1px solid rgba(248,81,73,0.28); }
.b-usr { background: rgba(139,148,158,0.15); color: var(--text2); border: 1px solid rgba(139,148,158,0.3); }

/* ---- Tag chips ---- */
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 20px; }
.tag {
  padding: 4px 11px; border-radius: 20px;
  background: var(--blue-g); color: var(--blue);
  border: 1px solid rgba(88,166,255,0.28);
  font-size: 11.5px; font-weight: 600;
}
.tag.green {
  background: var(--green-g); color: var(--green);
  border-color: rgba(63,185,80,0.28);
}

/* ---- Feature grid (portada y páginas) ---- */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 24px; }
.feat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 16px;
  transition: var(--spring); box-shadow: var(--sh1);
}
.feat-card:hover { transform: translateY(-5px); border-color: var(--border-h); box-shadow: var(--sh2); }
.feat-ico { font-size: 24px; margin-bottom: 8px; display: block; }
.feat-ttl { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.feat-dsc { font-size: 11.5px; color: var(--text2); line-height: 1.45; }

/* ---- Guide cards (/guias) ---- */
.guide-grid { display: grid; gap: 10px; margin-top: 20px; }
.guide-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; transition: var(--spring);
  box-shadow: var(--sh1); color: inherit;
}
.guide-card:hover { transform: translateY(-4px); border-color: var(--border-h); box-shadow: var(--sh2), var(--sh-blue); }
.guide-card.soon { opacity: 0.55; cursor: default; }
.guide-card.soon:hover { transform: none; box-shadow: var(--sh1); border-color: var(--border); }
.guide-ico  { font-size: 28px; flex-shrink: 0; }
.guide-ttl  { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.guide-dsc  { font-size: 12px; color: var(--text2); }
.guide-tag  {
  font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: 20px; margin-top: 5px; display: inline-block;
  background: var(--blue-g); color: var(--blue);
  border: 1px solid rgba(88,166,255,0.28);
}
.guide-tag.soon-tag {
  background: rgba(240,136,62,0.1); color: var(--orange);
  border-color: rgba(240,136,62,0.28);
}

/* ---- Social cards (/comprar) ---- */
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.social-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 22px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 11px;
  text-decoration: none; transition: var(--spring);
  box-shadow: var(--sh2); cursor: pointer;
}
.social-card:hover { transform: translateY(-9px); box-shadow: var(--sh3); }
.social-card.yt:hover { border-color: #FF0000; box-shadow: var(--sh3), 0 0 36px rgba(255,0,0,0.2); }
.social-card.tg:hover { border-color: #229ED9; box-shadow: var(--sh3), 0 0 36px rgba(34,158,217,0.2); }
.social-card.eb:hover { border-color: #3665F3; box-shadow: var(--sh3), 0 0 36px rgba(54,101,243,0.2); }
.social-card.wp:hover { border-color: #13C3A2; box-shadow: var(--sh3), 0 0 36px rgba(19,195,162,0.2); }
.s-ico  { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.s-name { font-size: 13.5px; font-weight: 800; text-align: center; }
.s-desc { font-size: 11px; color: var(--text2); text-align: center; line-height: 1.4; }

/* ---- Board cards (/compatibilidad) ---- */
.filter-bar { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.fbtn {
  padding: 5px 13px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--card); color: var(--text2); font-family: var(--font);
  font-size: 12px; font-weight: 600; cursor: pointer; transition: var(--ease);
}
.fbtn:hover, .fbtn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.boards-grid { display: grid; grid-template-columns: 1fr; gap: 11px; }
.board-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 15px;
  display: flex; gap: 13px; align-items: flex-start;
  transition: var(--spring); box-shadow: var(--sh1);
}
.board-card:hover { transform: translateY(-5px); border-color: var(--border-h); box-shadow: var(--sh2), var(--sh-blue); }
.board-card-clickable { cursor: pointer; position: relative; }
.board-card-clickable:hover { border-color: var(--blue); box-shadow: var(--sh2), 0 0 20px rgba(88,166,255,0.25); transform: translateY(-4px); }
.board-ph {
  width: 62px; height: 62px; border-radius: var(--r-sm);
  background: var(--bg3); border: 1px solid var(--border);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.board-info { flex: 1; min-width: 0; }
.board-brand { font-size: 9.5px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text3); font-weight: 700; margin-bottom: 2px; }
.board-model { font-size: 15px; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.2px; }
.board-conn  { font-size: 11px; color: var(--text2); margin-bottom: 6px; }
.board-notes { font-size: 11.5px; color: var(--text2); line-height: 1.42; margin-top: 5px; }

/* ---- Loading / empty ---- */
.loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 52px 20px;
  color: var(--text3); font-size: 13px; gap: 13px;
}
.spin {
  width: 30px; height: 30px; border: 3px solid var(--border);
  border-top-color: var(--blue); border-radius: 50%;
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 44px 20px; color: var(--text3); }
.empty-ico { font-size: 42px; margin-bottom: 12px; display: block; opacity: 0.45; }

/* ---- Internal link block ---- */
.link-list { display: grid; gap: 8px; margin-top: 16px; }
.link-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 12px 15px;
  text-decoration: none; color: var(--text1);
  font-size: 13.5px; font-weight: 600;
  transition: var(--ease);
}
.link-card:hover { border-color: var(--blue); color: var(--blue); transform: translateX(4px); }
.link-card span { color: var(--blue); font-size: 15px; }

/* ---- Divider ---- */
.divider {
  border: none; border-top: 1px solid var(--border);
  margin: 28px 0;
}

/* ---- Footer ---- */
footer {
  text-align: center;
  padding: 22px 16px calc(var(--nav) + 24px);
  border-top: 1px solid var(--border);
  color: var(--text3); font-size: 12px; line-height: 1.8;
}
footer a { color: var(--blue); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* =============================================
   DESKTOP (≥ 768px)
   ============================================= */
@media (min-width: 768px) {
  :root { --nav: 0px; }
  .bot-nav   { display: none; }
  .hdr-nav   { display: flex; }
  .hdr       { padding: 0 22px; }
  .main      { padding-bottom: 0; }
  .page-content { padding: 40px 32px 64px; }
  .page-title   { font-size: 34px; }
  .feat-grid    { grid-template-columns: repeat(4, 1fr); }
  .boards-grid  { grid-template-columns: 1fr 1fr; }
  .social-grid  { grid-template-columns: repeat(4, 1fr); }
  .guide-grid   { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .boards-grid { grid-template-columns: repeat(3, 1fr); }
}