/* ELIMINAR BARRA DE WORDPRESS STUDIO */
#wpadminbar { display: none !important; }
html { margin-top: 0px !important; padding-top: 0px !important; }

/* ============================================================
   CSS VARIABLES & RESET
   ============================================================ */
:root {
  --bg:          #0a0a0b;
  --bg2:         #111114;
  --bg3:         #18181c;
  --border:      rgba(255,255,255,0.07);
  --text:        #e8e8ec;
  --text-muted:  #7a7a88;
  --accent:      #00e5ff;
  --accent2:     #ff3d6b;
  --accent3:     #a78bfa;
  --yellow:      #fbbf24;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', monospace;
  --radius:      8px;
  --shadow:      0 4px 32px rgba(0,0,0,0.5);
  --transition:  0.25s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ============================================================
   HEADER & NAV
   ============================================================ */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,11,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  width: 100%; box-sizing: border-box;
}
.header-inner {
  max-width: 960px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 16px; height: 54px;
}
.logo {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 900;
  letter-spacing: -0.03em; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.logo span { color: var(--accent2); -webkit-text-fill-color: var(--accent2); }

nav {
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto; flex: 1; scrollbar-width: none;
}
nav::-webkit-scrollbar { display: none; }
nav a {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 5px 8px; border-radius: 4px;
  color: var(--text-muted); white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
nav a:hover, nav a.active { color: var(--text); background: var(--bg3); }
nav a[data-cat]::before {
  content: ''; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; margin-right: 6px; background: currentColor; opacity: 0.6;
}
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn-subscribe {
  background: var(--accent); color: #000; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; padding: 8px 16px;
  border-radius: 4px; transition: opacity var(--transition); border: none; cursor: pointer;
}
.btn-subscribe:hover { opacity: 0.85; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 1px; transition: transform var(--transition), opacity var(--transition); }

/* ============================================================
   TICKER / BREAKING NEWS
   ============================================================ */
.ticker-bar {
  background: var(--accent2); color: #fff; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; overflow: hidden; height: 28px;
  display: flex; align-items: center; width: 100%; box-sizing: border-box;
}
.ticker-label {
  background: rgba(0,0,0,0.3); padding: 0 16px; height: 100%;
  display: flex; align-items: center; white-space: nowrap;
  text-transform: uppercase; flex-shrink: 0;
}
.ticker-track { display: flex; animation: ticker 40s linear infinite; white-space: nowrap; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { padding: 0 40px; opacity: 0.9; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   LAYOUT
   ============================================================ */
#app { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 2px; margin: 20px 0; border-radius: var(--radius); overflow: hidden;
}
.hero-main { position: relative; cursor: pointer; overflow: hidden; min-height: 360px; }
.hero-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.hero-main:hover img { transform: scale(1.03); }
.hero-main-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}
.hero-main-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; }
.category-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; padding: 4px 10px;
  border-radius: 3px; margin-bottom: 12px;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 900; line-height: 1.15; margin-bottom: 12px; letter-spacing: -0.02em;
}
.hero-meta { display: flex; align-items: center; gap: 16px; font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.hero-meta .author { color: var(--accent); font-weight: 600; }
.hero-stack { display: flex; flex-direction: column; gap: 2px; }
.hero-card {
  background: var(--bg2); padding: 14px; display: flex; gap: 10px;
  cursor: pointer; transition: background var(--transition); flex: 1;
}
.hero-card:hover { background: var(--bg3); }
.hero-card-img { width: 72px; height: 56px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.hero-card-body { flex: 1; min-width: 0; }
.hero-card-title {
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 700;
  line-height: 1.3; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-card-meta { font-size: 0.7rem; color: var(--text-muted); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.section-title {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ''; width: 4px; height: 22px; background: var(--accent);
  border-radius: 2px; flex-shrink: 0;
}
.see-all {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent);
  cursor: pointer; transition: opacity var(--transition);
}
.see-all:hover { opacity: 0.7; }

/* ============================================================
   MAIN CONTENT + SIDEBAR LAYOUT
   ============================================================ */
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; margin: 40px 0; }

/* ============================================================
   ARTICLE GRID
   ============================================================ */
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.article-card {
  background: var(--bg2); border-radius: var(--radius); overflow: hidden;
  cursor: pointer; transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(0,229,255,0.15); }
.article-card-img-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.article-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.article-card:hover .article-card-img-wrap img { transform: scale(1.06); }
.article-card-body { padding: 16px; }
.article-card-title {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  line-height: 1.35; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--transition);
}
.article-card:hover .article-card-title { color: var(--accent); }
.article-card-desc {
  font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.72rem; color: var(--text-muted);
  border-top: 1px solid var(--border); padding-top: 10px;
}
.article-card-footer .author { color: var(--text); font-weight: 500; }
.read-time { display: flex; align-items: center; gap: 4px; }

/* ============================================================
   AD CONTAINERS
   ============================================================ */
.ad-container {
  background: var(--bg2); border: 1px dashed rgba(255,255,255,0.12);
  border-radius: var(--radius); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 16px;
  color: var(--text-muted); font-size: 0.7rem; font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.08em; gap: 6px;
}
.ad-container-inline { min-height: 90px; margin: 24px 0; }
.ad-container-sidebar { min-height: 250px; width: 100%; }
.ad-container-large { min-height: 280px; margin: 32px 0; }
.ad-container::before { content: '📢'; font-size: 1.2rem; }
.ad-label { font-size: 0.6rem; opacity: 0.5; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-widget { background: var(--bg2); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.sidebar-widget-header {
  padding: 14px 18px; background: var(--bg3); border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent);
  display: flex; align-items: center; gap: 8px;
}
.sidebar-widget-header::before { content: '▶'; font-size: 0.5rem; }
.popular-list { padding: 8px 0; }
.popular-item {
  display: flex; gap: 12px; padding: 10px 18px; cursor: pointer;
  transition: background var(--transition); align-items: flex-start;
}
.popular-item:hover { background: var(--bg3); }
.popular-num { font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700; color: var(--accent2); width: 18px; flex-shrink: 0; margin-top: 2px; }
.popular-title {
  font-size: 0.82rem; font-weight: 500; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-list { padding: 12px 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pill {
  font-size: 0.72rem; font-weight: 600; padding: 5px 12px;
  border-radius: 20px; cursor: pointer; transition: all var(--transition); border: 1px solid transparent;
}

/* ============================================================
   ARTICLE VIEW / SINGLE ARTICLE PAGE
   ============================================================ */
.article-hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }
.article-hero img { width: 100%; height: clamp(200px, 40vw, 480px); object-fit: cover; }
.article-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%); }
.article-hero-meta { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px; }
.article-title {
  font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 900; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 14px;
}
.article-byline {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 0.78rem; color: rgba(255,255,255,0.65);
}
.article-byline .author { color: var(--accent); font-weight: 600; }
.article-body { font-size: 1.05rem; line-height: 1.85; color: rgba(232,232,236,0.9); }
.article-body h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin: 2em 0 0.6em; color: var(--text); letter-spacing: -0.02em; }
.article-body h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin: 1.5em 0 0.5em; color: var(--text); }
.article-body p { margin-bottom: 1.4em; }
.article-body ul, .article-body ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.article-body li { margin-bottom: 0.5em; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote {
  border-left: 3px solid var(--accent); padding: 16px 24px; margin: 2em 0;
  background: var(--bg2); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--text-muted); font-size: 1.05rem;
}
.article-body code { background: var(--bg3); color: var(--accent); font-family: var(--font-mono); font-size: 0.88em; padding: 2px 6px; border-radius: 3px; }

/* Related articles */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  background: var(--bg2); border-radius: var(--radius); overflow: hidden;
  cursor: pointer; border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition);
}
.related-card:hover { transform: translateY(-3px); border-color: rgba(0,229,255,0.2); }
.related-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.related-card-body { padding: 14px; }
.related-card-title {
  font-family: var(--font-display); font-size: 0.88rem; font-weight: 700; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Back button */
.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted);
  cursor: pointer; padding: 10px 0; margin-bottom: 24px;
  transition: color var(--transition); background: none; border: none;
}
.back-btn:hover { color: var(--accent); }
.back-btn::before { content: '←'; font-size: 1em; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--bg2); border-top: 1px solid var(--border); margin-top: 64px; }
.footer-inner { max-width: 960px; margin: 0 auto; padding: 36px 16px 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { font-size: 1.4rem; margin-bottom: 12px; display: inline-block; }
.footer-brand p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li a, .footer-col li span { font-size: 0.84rem; color: var(--text-muted); cursor: pointer; transition: color var(--transition); }
.footer-col li a:hover, .footer-col li span:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); flex-wrap: wrap; gap: 12px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--text-muted); cursor: pointer; transition: color var(--transition); }
.footer-legal a:hover { color: var(--text); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted);
  margin-bottom: 24px; flex-wrap: wrap;
}
.breadcrumb a, .breadcrumb .crumb { cursor: pointer; transition: color var(--transition); }
.breadcrumb a:hover, .breadcrumb .crumb:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.3; }
.breadcrumb .current { color: var(--text); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.5s ease both; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.live-dot { width: 7px; height: 7px; background: var(--accent2); border-radius: 50%; animation: pulse-dot 1.4s ease-in-out infinite; }

/* ============================================================
   CATEGORY COLORS
   ============================================================ */
[data-cat="IA"]           { color: #a78bfa; border-color: rgba(167,139,250,0.3); background: rgba(167,139,250,0.1); }
[data-cat="Tecnología"]   { color: #00e5ff; border-color: rgba(0,229,255,0.3);   background: rgba(0,229,255,0.1); }
[data-cat="Marketing"]    { color: #fbbf24; border-color: rgba(251,191,36,0.3);  background: rgba(251,191,36,0.1); }
[data-cat="Dinero"]       { color: #34d399; border-color: rgba(52,211,153,0.3);  background: rgba(52,211,153,0.1); }
[data-cat="Apps"]         { color: #f97316; border-color: rgba(249,115,22,0.3);  background: rgba(249,115,22,0.1); }
[data-cat="Gadgets"]      { color: #ff3d6b; border-color: rgba(255,61,107,0.3);  background: rgba(255,61,107,0.1); }
[data-cat="Productividad"]{ color: #60a5fa; border-color: rgba(96,165,250,0.3); background: rgba(96,165,250,0.1); }

.cat-badge[data-cat="IA"]           { background: rgba(167,139,250,0.2); color: #a78bfa; }
.cat-badge[data-cat="Tecnología"]   { background: rgba(0,229,255,0.15);  color: #00e5ff; }
.cat-badge[data-cat="Marketing"]    { background: rgba(251,191,36,0.2);  color: #fbbf24; }
.cat-badge[data-cat="Dinero"]       { background: rgba(52,211,153,0.2);  color: #34d399; }
.cat-badge[data-cat="Apps"]         { background: rgba(249,115,22,0.2);  color: #f97316; }
.cat-badge[data-cat="Gadgets"]      { background: rgba(255,61,107,0.2);  color: #ff3d6b; }
.cat-badge[data-cat="Productividad"]{ background: rgba(96,165,250,0.2);  color: #60a5fa; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-stack { flex-direction: row; }
  .hero-card { flex: 1; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: flex; }
  .hero-stack { flex-direction: column; }
  .article-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 480px) {
  .header-inner { gap: 16px; }
  .logo { font-size: 1.3rem; }
  #app { padding: 0 16px; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; top: 64px; left: 0; right: 0;
  background: rgba(10,10,11,0.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 16px 24px;
  display: none; flex-direction: column; gap: 4px; z-index: 99;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { display: block; padding: 10px 12px; font-size: 0.9rem; font-weight: 500; color: var(--text-muted); border-radius: 6px; cursor: pointer; transition: all var(--transition); }
.mobile-nav a:hover { color: var(--text); background: var(--bg2); }

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px; background: var(--accent); color: #000;
  font-size: 0.8rem; font-weight: 700; padding: 12px 20px; border-radius: 6px;
  z-index: 9999; transform: translateY(80px); opacity: 0; transition: all 0.3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ============================================================
   PRELOADER — Pantalla de carga con logotipo
   ============================================================ */

/* Capa que cubre toda la pantalla */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);                      /* #0a0a0b — fondo base de la web */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Transición de salida */
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estado oculto: se aplica desde JS con .preloader-hidden */
#preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Grid de puntos de fondo — efecto tech sutil */
.preloader-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(0,229,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: preloader-grid-drift 8s linear infinite;
}
@keyframes preloader-grid-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

/* Contenedor central */
.preloader-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: preloader-enter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes preloader-enter {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* Resplandor detrás del logo */
.preloader-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 260px;
  transform: translate(-50%, -60%);
  background: radial-gradient(circle, rgba(0,229,255,0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: preloader-glow-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes preloader-glow-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -60%) scale(1);    }
  50%       { opacity: 1;   transform: translate(-50%, -60%) scale(1.15); }
}

/* Logo principal */
.preloader-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  /* Pulsación ligera */
  animation: preloader-logo-pulse 2.4s ease-in-out infinite;
  /* Brillo acorde a la paleta cyan de la web */
  filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.25))
          drop-shadow(0 0 6px rgba(167, 139, 250, 0.15));
}
@keyframes preloader-logo-pulse {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 20px rgba(0,229,255,0.25)) drop-shadow(0 0 6px rgba(167,139,250,0.15)); }
  50%       { transform: scale(1.04); filter: drop-shadow(0 0 30px rgba(0,229,255,0.45)) drop-shadow(0 0 12px rgba(167,139,250,0.3));  }
}

/* Subtítulo debajo del logo */
.preloader-tagline {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
  opacity: 0;
  animation: preloader-tagline-in 0.6s ease 0.3s forwards;
}
@keyframes preloader-tagline-in {
  to { opacity: 1; }
}

/* Barra de progreso */
.preloader-bar {
  width: 140px;
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  border-radius: 2px;
  animation: preloader-progress 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes preloader-progress {
  0%   { width: 0%;   }
  50%  { width: 70%;  }
  80%  { width: 88%;  }
  100% { width: 100%; }
}
/* ============================================================
   FIN PRELOADER
   ============================================================ */
