/*
Theme Name: BorisTechPedia
Theme URI: https://boristech.ai
Author: BorisTech
Author URI: https://boristech.ai
Description: Theme WordPress responsive estilo enciclopedia tecnológica, programación, código fuente e inteligencia artificial. Incluye AJAX search, infinite scroll, sidebar widgets, galería con lightbox, videos, header profesional y menú móvil flotante.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: boristechpedia
*/

:root{
  --bt-primary:#1d9bf0;
  --bt-primary-dark:#0b78c7;
  --bt-bg:#f1f6fa;
  --bt-card:#ffffff;
  --bt-text:#15202b;
  --bt-muted:#657786;
  --bt-border:#dce8f0;
  --bt-soft:#eef5f9;
  --bt-header:#ffffff;
  --bt-footer:#15202b;
  --bt-radius:26px;
  --bt-shadow:0 12px 35px rgba(15,40,60,.10);
}
*{box-sizing:border-box}
body{
  margin:0;
  background:
    radial-gradient(circle at top left,rgba(29,155,240,.12),transparent 35%),
    linear-gradient(180deg,#eef8ff 0%,#f6f9fb 100%);
  font-family:Arial,Helvetica,sans-serif;
  color:var(--bt-text);
}
a{color:var(--bt-primary);text-decoration:none}
a:hover{color:var(--bt-primary-dark)}
img{max-width:100%;height:auto}
.screen-reader-text{position:absolute;left:-9999px}

.bt-site-header{
  position:sticky;
  top:0;
  z-index:9999;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--bt-border);
  box-shadow:0 6px 24px rgba(0,0,0,.05);
}
.bt-header-inner{
  max-width:1480px;
  min-height:72px;
  margin:0 auto;
  padding:0 18px;
  display:flex;
  align-items:center;
  gap:16px;
}
.bt-brand{
  display:flex;
  align-items:center;
  gap:11px;
  margin-right:auto;
  color:var(--bt-primary);
  font-size:24px;
  font-weight:900;
  white-space:nowrap;
}
.bt-logo{
  width:58px;
  height:58px;
  border-radius:0;
  background:transparent;
  color:var(--bt-primary);
  display:grid;
  place-items:center;
  font-size:22px;
  box-shadow:none;
  overflow:hidden;
}
.bt-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.bt-main-menu ul{list-style:none;margin:0;padding:0;display:flex;gap:8px;align-items:center}
.bt-main-menu a{
  display:flex;
  gap:7px;
  align-items:center;
  padding:10px 13px;
  border-radius:999px;
  color:#445461;
  font-weight:800;
  font-size:.94rem;
}
.bt-main-menu a:hover,
.bt-main-menu .current-menu-item>a{
  background:#dff0fb;
  color:var(--bt-primary);
}
.bt-header-tools{
  display:flex;
  align-items:center;
  gap:10px;
}
.bt-search{
  width:440px;
  max-width:100%;
  position:relative;
}
.bt-search input{
  width:100%;
  height:46px;
  border:1px solid transparent;
  background:var(--bt-soft);
  border-radius:999px;
  padding:0 48px;
  outline:none;
  color:var(--bt-text);
  transition:.2s;
}
.bt-search input:focus{
  background:#fff;
  border-color:rgba(29,155,240,.35);
  box-shadow:0 0 0 5px rgba(29,155,240,.12);
}
.bt-search>i{
  position:absolute;
  left:18px;
  top:50%;
  transform:translateY(-50%);
  color:var(--bt-muted);
  pointer-events:none;
}
.bt-search-results{
  display:none;
  position:absolute;
  top:56px;
  left:0;
  right:0;
  background:#fff;
  border:1px solid var(--bt-border);
  border-radius:20px;
  box-shadow:var(--bt-shadow);
  overflow:hidden;
  max-height:430px;
  overflow-y:auto;
  z-index:99999;
}
.bt-search-results.active{display:block}
.bt-search-item{
  padding:14px 16px;
  display:flex;
  gap:12px;
  align-items:center;
  border-bottom:1px solid #edf3f7;
  color:var(--bt-text);
}
.bt-search-item:hover{background:#f4faff}
.bt-search-thumb{
  width:45px;
  height:45px;
  border-radius:50%;
  background:#e2edf5;
  object-fit:cover;
  flex:0 0 auto;
}
.bt-search-title{font-weight:900;font-size:.94rem;line-height:1.2}
.bt-search-meta{font-size:.8rem;color:var(--bt-muted);margin-top:3px}
.bt-header-cta,
.bt-menu-toggle{
  height:46px;
  border:none;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition:.2s;
  font-weight:900;
}
.bt-header-cta{
  padding:0 16px;
  background:var(--bt-soft);
  color:#445461!important;
}
.bt-header-cta:hover{
  background:#dff0fb;
  color:var(--bt-primary)!important;
}
.bt-menu-toggle{
  width:46px;
  background:linear-gradient(135deg,var(--bt-primary),var(--bt-primary-dark));
  color:#fff;
  font-size:22px;
  box-shadow:0 10px 22px rgba(29,155,240,.28);
  cursor:pointer;
}
.bt-quick-menu{
  position:fixed;
  top:84px;
  right:18px;
  width:390px;
  max-width:calc(100% - 30px);
  background:#fff;
  border:1px solid var(--bt-border);
  border-radius:26px;
  box-shadow:0 24px 65px rgba(0,0,0,.18);
  padding:18px;
  display:none;
  z-index:99999;
}
.bt-quick-menu.show{
  display:block;
  animation:btFadeDown .22s ease;
}
@keyframes btFadeDown{
  from{opacity:0;transform:translateY(-10px)}
  to{opacity:1;transform:translateY(0)}
}
.bt-quick-menu h5{
  margin:0 0 14px;
  font-size:1.1rem;
  font-weight:900;
}
.bt-quick-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:11px;
}
.bt-quick-grid a{
  display:flex;
  align-items:center;
  gap:11px;
  padding:15px;
  border-radius:18px;
  background:#f5f9fc;
  color:var(--bt-text);
  font-weight:800;
}
.bt-quick-grid a:hover{
  background:#e8f5fe;
  color:var(--bt-primary);
}

.bt-container{
  max-width:1480px;
  margin:0 auto;
  padding:22px 18px 90px;
  display:grid;
  grid-template-columns:330px minmax(0,1fr);
  gap:20px;
}
.bt-layout-right{grid-template-columns:minmax(0,1fr) 330px}
.bt-layout-none{grid-template-columns:minmax(0,900px);justify-content:center}
.bt-sidebar{
  display:flex;
  flex-direction:column;
  gap:20px;
  position:sticky;
  top:94px;
  align-self:start;
}
.bt-main{min-width:0}
.bt-widget,
.widget,
.bt-hero,
.bt-card,
.bt-single{
  background:rgba(255,255,255,.96);
  border:1px solid var(--bt-border);
  border-radius:var(--bt-radius);
  box-shadow:var(--bt-shadow);
  overflow:hidden;
}
.bt-widget,
.widget{padding:18px}
.bt-widget-title,
.widget-title,
.box-title{
  padding:0 0 14px;
  margin:0 0 14px;
  font-size:21px;
  font-weight:900;
  border-bottom:1px solid var(--bt-border);
  color:var(--bt-text);
}
.bt-profile-card{padding:0}
.bt-cover{
  height:160px;
  background:
    linear-gradient(rgba(0,0,0,.05),rgba(0,0,0,.58)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=900&q=80");
  background-size:cover;
  background-position:center;
}
.bt-profile-body{padding:0 24px 22px}
.bt-avatar{
  width:94px;
  height:94px;
  border-radius:50%;
  border:5px solid #fff;
  margin-top:-45px;
  background:linear-gradient(135deg,#fff,#e8f5fe);
  display:grid;
  place-items:center;
  box-shadow:0 10px 28px rgba(15,40,60,.18);
  color:var(--bt-primary);
  font-size:2.2rem;
  overflow:hidden;
}
.bt-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.bt-profile-body h3{
  margin:12px 0 3px;
  font-size:22px;
  font-weight:900;
}
.bt-profile-body p{
  margin:0;
  color:var(--bt-muted);
  line-height:1.5;
}
.bt-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  text-align:center;
  margin-top:20px;
}
.bt-stat{
  background:#f5f9fc;
  border-radius:18px;
  padding:12px 6px;
  font-size:13px;
  border:0;
}
.bt-stat strong{
  display:block;
  color:var(--bt-primary);
  font-size:23px;
}
.bt-stat span{
  color:var(--bt-muted);
  font-weight:800;
  text-transform:none;
  font-size:12px;
}
.bt-widget p,
.widget p{line-height:1.45}
.tag-cloud-link{
  display:inline-flex;
  margin:4px;
  padding:7px 10px;
  border-radius:999px;
  background:#f5f9fc;
  color:#445461;
  font-weight:800;
}

.bt-hero{
  padding:24px;
  margin-bottom:20px;
  position:relative;
  background:
    linear-gradient(135deg,rgba(255,255,255,.98),rgba(238,248,255,.95)),
    radial-gradient(circle at top right,rgba(29,155,240,.22),transparent 34%);
}
.bt-hero h1{
  margin:0 0 8px;
  font-size:clamp(2rem,4vw,3.2rem);
  line-height:1;
  font-weight:900;
}
.bt-hero p{
  max-width:760px;
  color:var(--bt-muted);
  font-size:1.05rem;
  line-height:1.6;
  margin:0;
}
.bt-category-strip{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:2px 0 18px;
}
.bt-cat-pill{
  white-space:nowrap;
  padding:9px 14px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--bt-border);
  box-shadow:0 6px 16px rgba(15,40,60,.05);
  color:#334155;
  font-weight:800;
  font-size:.9rem;
}
.bt-cat-pill:hover{background:#e8f5fe;color:var(--bt-primary)}
.bt-posts{
  display:flex;
  flex-direction:column;
  gap:20px;
}
.bt-card{transition:.2s}
.bt-card:hover{background:#fbfdff;transform:translateY(-2px)}
.bt-card-inner{
  display:grid;
  grid-template-columns:230px 1fr;
  gap:0;
}
.bt-card-media{
  min-height:210px;
  background:#e2edf5;
}
.bt-card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.bt-card-content{padding:20px}
.bt-meta{
  display:flex;
  gap:9px 14px;
  flex-wrap:wrap;
  color:var(--bt-muted);
  font-size:.84rem;
  font-weight:700;
  margin-bottom:8px;
}
.bt-meta span{display:inline-flex;gap:5px;align-items:center}
.bt-card h2{
  font-size:1.42rem;
  line-height:1.16;
  margin:0 0 8px;
  font-weight:900;
}
.bt-card h2 a{color:var(--bt-text)}
.bt-card p{
  margin:0;
  color:#32475a;
  line-height:1.58;
}
.bt-tags{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:14px;
}
.bt-tag{
  font-size:.8rem;
  padding:7px 10px;
  background:#f1f7fb;
  border-radius:999px;
  color:#475569;
  font-weight:800;
}
.bt-readmore{
  display:inline-flex;
  gap:8px;
  align-items:center;
  margin-top:14px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--bt-primary),var(--bt-primary-dark));
  color:#fff!important;
  padding:9px 16px;
  font-weight:900;
  box-shadow:0 8px 20px rgba(29,155,240,.24);
}
.bt-card-video{
  position:relative;
  width:100%;
  height:100%;
  min-height:210px;
  background:#15202b;
  overflow:hidden;
}
.bt-card-video iframe,
.bt-card-video video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  object-fit:cover;
}
.bt-loader{
  text-align:center;
  padding:26px;
  color:var(--bt-primary);
  font-weight:900;
}
.bt-load-more{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:0;
  border-radius:999px;
  background:linear-gradient(135deg,var(--bt-primary),var(--bt-primary-dark));
  color:#fff;
  padding:12px 22px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(29,155,240,.24);
}

.bt-single-cover img{
  width:100%;
  max-height:480px;
  object-fit:cover;
  display:block;
}
.bt-single-body{padding:28px}
.bt-single h1{
  font-size:clamp(2rem,4vw,3.4rem);
  line-height:1;
  margin:0 0 14px;
  font-weight:900;
}
.bt-content{
  font-size:1.05rem;
  line-height:1.78;
  color:#243244;
}
.bt-content h2{font-size:1.8rem;margin-top:32px}
.bt-content h3{font-size:1.35rem;margin-top:26px}
.bt-content pre{
  background:#15202b;
  color:#e5e7eb;
  padding:18px;
  border-radius:18px;
  overflow:auto;
}
.bt-content code{
  background:#eef6ff;
  color:#0f5c96;
  padding:2px 6px;
  border-radius:8px;
}
.bt-content pre code{background:transparent;color:inherit;padding:0}
.gallery{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.gallery-item{float:none!important;width:auto!important;margin:0!important}
.gallery img{border:0!important;border-radius:18px!important;box-shadow:0 10px 22px rgba(15,40,60,.08)}
.bt-lightbox{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(2,6,23,.86);
  z-index:99999;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.bt-lightbox.active{display:flex}
.bt-lightbox img{max-width:min(1100px,96vw);max-height:90vh;border-radius:18px;box-shadow:0 30px 90px rgba(0,0,0,.35)}
.bt-lightbox-close{position:absolute;top:18px;right:22px;color:#fff;background:rgba(255,255,255,.12);border:0;border-radius:999px;width:44px;height:44px;font-size:22px;cursor:pointer}
.bt-video-wrap{position:relative;aspect-ratio:16/9;background:#15202b;border-radius:18px;overflow:hidden;margin:20px 0}
.bt-video-wrap iframe,
.bt-video-wrap video{position:absolute;inset:0;width:100%;height:100%;border:0}

.bt-floating-footer-toggle{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:99997;
  min-width:130px;
  height:52px;
  border:0;
  border-radius:999px;
  background:linear-gradient(135deg,var(--bt-primary),var(--bt-primary-dark));
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  font-weight:900;
  box-shadow:0 14px 34px rgba(29,155,240,.32);
  cursor:pointer;
  transition:.2s;
}
.bt-floating-footer-toggle:hover,
.bt-floating-footer-toggle[aria-expanded="true"]{
  transform:translateY(-2px);
  box-shadow:0 18px 42px rgba(29,155,240,.38);
}
.bt-floating-footer-toggle i{font-size:19px}
.bt-floating-footer{
  position:fixed;
  right:18px;
  bottom:86px;
  width:430px;
  max-width:calc(100% - 30px);
  max-height:calc(100vh - 118px);
  overflow:auto;
  z-index:99997;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(18px);
  border:1px solid var(--bt-border);
  border-radius:26px;
  box-shadow:0 24px 65px rgba(0,0,0,.18);
  padding:18px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(12px) scale(.98);
  transition:.22s ease;
}
.bt-floating-footer.show{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}
.bt-floating-footer-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.bt-footer-kicker{
  display:block;
  color:var(--bt-primary);
  font-size:.76rem;
  font-weight:900;
  text-transform:uppercase;
  margin-bottom:5px;
}
.bt-floating-footer h3{
  margin:0;
  font-size:1.35rem;
  line-height:1.1;
  font-weight:900;
  color:var(--bt-text);
}
.bt-floating-footer-close{
  width:38px;
  height:38px;
  border:0;
  border-radius:50%;
  background:var(--bt-soft);
  color:#445461;
  display:grid;
  place-items:center;
  cursor:pointer;
}
.bt-floating-footer-close:hover{
  background:#dff0fb;
  color:var(--bt-primary);
}
.bt-floating-footer-text{
  margin:12px 0 16px;
  color:var(--bt-muted);
  line-height:1.5;
}
.bt-floating-footer-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:16px;
}
.bt-footer-primary-link,
.bt-footer-secondary-link{
  min-height:42px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 15px;
  font-weight:900;
}
.bt-footer-primary-link{
  background:linear-gradient(135deg,var(--bt-primary),var(--bt-primary-dark));
  color:#fff!important;
  box-shadow:0 8px 20px rgba(29,155,240,.24);
}
.bt-footer-secondary-link{
  background:var(--bt-soft);
  color:#445461;
}
.bt-footer-secondary-link:hover{
  background:#dff0fb;
  color:var(--bt-primary);
}
.bt-floating-footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:12px;
}
.bt-floating-footer-grid section{
  background:#f5f9fc;
  border:1px solid #edf3f7;
  border-radius:20px;
  padding:14px;
}
.bt-floating-footer-grid h4,
.bt-footer-widget h3{
  margin:0 0 10px;
  font-size:.95rem;
  font-weight:900;
  color:var(--bt-text);
}
.bt-floating-footer-grid a,
.bt-footer-widget a{
  display:flex;
  color:#445461;
  font-weight:800;
  padding:7px 0;
}
.bt-floating-footer-grid a:hover,
.bt-footer-widget a:hover{
  color:var(--bt-primary);
}
.bt-floating-footer-grid ul{
  list-style:none;
  margin:0;
  padding:0;
}
.bt-footer-widget{
  margin:0;
  padding:0;
}
.bt-footer-widget p{
  margin:0 0 8px;
}
.bt-footer-socials{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--bt-border);
}
.bt-footer-socials a{
  width:40px;
  height:40px;
  border-radius:15px;
  display:grid;
  place-items:center;
  background:var(--bt-soft);
  color:#445461;
  font-size:18px;
}
.bt-footer-socials a:hover{
  color:#fff;
  background:linear-gradient(135deg,var(--bt-primary),var(--bt-primary-dark));
  box-shadow:0 8px 18px rgba(29,155,240,.25);
}
.bt-mobile-nav{
  display:none;
  position:fixed;
  left:12px;
  right:12px;
  bottom:12px;
  height:66px;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(16px);
  border:1px solid var(--bt-border);
  border-radius:24px;
  box-shadow:0 15px 40px rgba(0,0,0,.18);
  z-index:99998;
  align-items:center;
  justify-content:space-around;
  padding:8px;
}
.bt-mobile-nav ul{
  width:100%;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:4px;
  list-style:none;
  margin:0;
  padding:0;
}
.bt-mobile-nav a{
  width:48px;
  height:48px;
  margin:auto;
  border-radius:17px;
  display:grid;
  place-items:center;
  text-decoration:none;
  color:#5e6b76;
  font-size:0;
  transition:.2s;
}
.bt-mobile-nav i{font-size:22px}
.bt-mobile-nav a:hover,
.bt-mobile-nav .current-menu-item>a{
  color:#fff;
  background:linear-gradient(135deg,var(--bt-primary),var(--bt-primary-dark));
  box-shadow:0 8px 18px rgba(29,155,240,.25);
}
.nav-links{display:flex;gap:10px;justify-content:center;margin-top:18px}
.nav-links a,
.nav-links span{padding:9px 13px;border-radius:14px;background:#fff;border:1px solid var(--bt-border);font-weight:800}
.bt-ad{
  background:#fff;
  border:1px dashed var(--bt-border);
  border-radius:22px;
  padding:14px;
  margin:18px 0;
  box-shadow:0 8px 22px rgba(15,40,60,.045);
}
.bt-ad-label{
  display:block;
  margin-bottom:8px;
  color:var(--bt-muted);
  font-size:.76rem;
  font-weight:900;
  text-transform:uppercase;
}

@media(max-width:1080px){
  .bt-container,
  .bt-layout-right{grid-template-columns:1fr}
  .bt-sidebar{position:static;order:2}
  .bt-main-menu{display:none}
  .bt-header-inner{min-height:60px;padding:8px 12px}
  .bt-brand{order:1;flex:0 0 auto}
  .bt-header-tools{order:2;flex:1;min-width:0}
  .bt-search{flex:1;width:auto;min-width:0}
}
@media(max-width:720px){
  body{padding-bottom:88px}
  .bt-brand span:last-child{display:none}
  .bt-logo{width:50px;height:50px}
  .bt-header-cta{display:none}
  .bt-menu-toggle{width:43px;height:43px}
  .bt-quick-menu{
    top:76px;
    left:10px;
    right:10px;
    width:auto;
    border-radius:22px;
  }
  .bt-quick-grid{grid-template-columns:1fr}
  .bt-container{padding:14px 12px 90px}
  .bt-widget,
  .widget,
  .bt-hero,
  .bt-card,
  .bt-single{border-radius:22px}
  .bt-card-inner{grid-template-columns:1fr}
  .bt-card-media{min-height:230px}
  .bt-card-video{min-height:230px;aspect-ratio:16/9}
  .bt-card-content{padding:17px}
  .bt-single-body{padding:20px}
  .bt-floating-footer-toggle{
    right:18px;
    bottom:88px;
    min-width:52px;
    width:52px;
  }
  .bt-floating-footer-toggle span{display:none}
  .bt-floating-footer{
    left:10px;
    right:10px;
    bottom:152px;
    width:auto;
    max-width:none;
    max-height:calc(100vh - 176px);
    border-radius:22px;
  }
  .bt-floating-footer-grid{grid-template-columns:1fr}
  .bt-mobile-nav{display:flex}
}
@media(max-width:520px){
  .bt-search input{height:43px;padding:0 42px}
  .bt-card-media{min-height:210px}
  .bt-meta{font-size:.78rem}
  .bt-card h2{font-size:1.2rem}
  .bt-stats{font-size:13px}
}
