/* ═══ PLANETA VIRAL — CSS Global v2 ═══ */

/* ─── Tipografía ─── */
body { font-family: 'Inter', sans-serif !important; background: #0a0e1a !important; color: #e0e4ef !important; }
h1, h2, h3, h4, .entry-title, .pv-slide__title, .pv-card__title, .pv-section__title {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

/* ─── Header ─── */
header#header, header#header [data-row] {
  background: rgba(10,14,26,0.95) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,229,255,0.2);
}
header#header .menu > li > a {
  color: #c9d1e0 !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
header#header .menu > li > a:hover { color: #00e5ff !important; }

/* Logo */
.site-logo-container img, .custom-logo, header#header img.custom-logo {
  max-height: 55px !important;
  height: 55px !important;
  width: auto !important;
}
/* Ocultar título de texto cuando hay logo */
.site-title, .site-description,
span.site-title,
header .site-title,
header#header .site-title,
header#header span.site-title a {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  font-size: 0 !important;
  line-height: 0 !important;
  position: absolute !important;
  clip: rect(0,0,0,0) !important;
}

/* ─── Titulares de posts ─── */
.entry-title { font-size: 36px !important; line-height: 1.15 !important; }
.entry-title a { color: #fff !important; text-decoration: none; }
.entry-title a:hover { color: #00e5ff !important; }

/* ─── Contenido de posts ─── */
.entry-content, .entry-content p, .entry-content li {
  color: #dde3ee !important;
  font-size: 17px;
  line-height: 1.8;
}
.entry-content h2, .entry-content h3 {
  color: #00e5ff !important;
  font-size: 24px !important;
  margin-top: 36px;
}
.entry-content a { color: #ff2ec4 !important; text-decoration: underline; }
.entry-content strong { color: #fff; }
.entry-content blockquote {
  border-left: 3px solid #00e5ff;
  background: rgba(0,229,255,0.06);
  padding: 16px 24px;
  border-radius: 0 10px 10px 0;
  color: #c9d1e0;
  font-style: italic;
}

/* ─── Categorías como badges ─── */
.ct-post-category a, .entry-meta [class*="categor"] a {
  background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(255,46,196,0.12)) !important;
  border: 1px solid rgba(0,229,255,0.35);
  color: #00e5ff !important;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Inter', sans-serif !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}

/* ─── Tarjetas / archive — micro-interacción zoom ─── */
.ct-media-container { overflow: hidden; border-radius: 10px; }
.ct-media-container img {
  transition: transform 0.4s ease !important;
}
.ct-media-container:hover img,
article:hover .ct-media-container img {
  transform: scale(1.06);
}
.pv-card__img { transition: transform 0.4s ease; }
.pv-card:hover .pv-card__img { transform: scale(1.06); }

/* ─── Meta info ─── */
.entry-meta, .entry-meta a, .ct-meta-element { color: #8a94ab !important; font-size: 13px; }

/* ─── Sidebar (páginas interiores) ─── */
[data-sidebar] .ct-widget, .widget {
  background: #131829 !important;
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: 12px;
  padding: 20px !important;
}
.widget-title, [data-sidebar] h3 {
  color: #fff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  font-size: 16px;
  border-bottom: 2px solid #00e5ff;
  padding-bottom: 8px;
  text-transform: uppercase;
}
.widget a { color: #9aa3b8 !important; text-decoration: none; }
.widget a:hover { color: #00e5ff !important; }

/* ─── Footer ─── */
footer.ct-footer, footer.ct-footer [data-row] {
  background: #060911 !important;
  border-top: 1px solid rgba(0,229,255,0.15);
}
footer.ct-footer, footer.ct-footer a { color: #6b7590 !important; }

/* ─── Caja de autor Luna Rivera ─── */
.pv-author-box {
  display: flex;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, rgba(0,229,255,0.06), rgba(255,46,196,0.06));
  border: 1px solid rgba(0,229,255,0.25);
  border-radius: 16px;
  padding: 28px;
  margin-top: 44px;
}
.pv-author-box__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #00e5ff;
  object-fit: cover;
  flex-shrink: 0;
}
.pv-author-box__info h4 {
  margin: 0 0 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}
.pv-author-box__info p {
  margin: 0 0 12px;
  color: #9aa3b8;
  font-size: 14px;
  line-height: 1.5;
}
.pv-author-box__links { display: flex; gap: 10px; }
.pv-author-box__links a {
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.3);
  color: #00e5ff !important;
  padding: 6px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.pv-author-box__links a:hover { background: #00e5ff; color: #0a0e1a !important; }

/* ─── Paginación ─── */
.ct-pagination .page-numbers {
  background: #131829;
  color: #c9d1e0 !important;
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 8px;
}
.ct-pagination .page-numbers.current {
  background: linear-gradient(135deg, #00e5ff, #8b5cf6);
  color: #0a0e1a !important;
  font-weight: 800;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0e1a; }
::-webkit-scrollbar-thumb { background: linear-gradient(#00e5ff, #8b5cf6); border-radius: 4px; }

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .entry-title { font-size: 26px !important; }
  .pv-author-box { flex-direction: column; text-align: center; }
  .pv-author-box__links { justify-content: center; }
}

/* ═══ ARCHIVE / CATEGORY PAGES ═══ */

/* Badges de categoría visibles sobre fondo oscuro */
article .ct-post-category, 
article .entry-meta [class*="categor"] a,
.ct-archive-posts .ct-post-category a {
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(255,46,196,0.15)) !important;
  border: 1px solid rgba(0,229,255,0.35) !important;
  color: #00e5ff !important;
  padding: 3px 10px !important;
  border-radius: 20px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
}

/* Fondo de tarjetas en archive */
article[class*="post"], .entry-card {
  background: #131829 !important;
  border: 1px solid rgba(139,92,246,0.15) !important;
  border-radius: 12px !important;
  overflow: hidden;
}
article[class*="post"]:hover {
  border-color: rgba(0,229,255,0.4) !important;
  box-shadow: 0 6px 24px rgba(0,229,255,0.1);
}

/* Títulos en archive */
article .entry-title a {
  color: #fff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
}
article .entry-title a:hover { color: #00e5ff !important; }

/* Excerpts en archive */
article .entry-excerpt, article .entry-content p {
  color: #9aa3b8 !important;
}

/* Meta en archive */
article .entry-meta, article .entry-meta a {
  color: #6b7590 !important;
}

/* Título de categoría */
.ct-archive-title, .archive .page-title, .category .page-title {
  color: #fff !important;
  font-family: 'Montserrat', sans-serif !important;
}

/* ═══ BLOQUES PRE/CODE — Prompts y código ═══ */
.entry-content pre, .entry-content code {
  background: #1a2035 !important;
  color: #e0e4ef !important;
  border: 1px solid rgba(0,229,255,0.2) !important;
  border-left: 4px solid #00e5ff !important;
  border-radius: 8px !important;
  padding: 20px 24px !important;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  overflow-x: auto;
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
}

/* Scrollbar en bloques de código */
.entry-content pre::-webkit-scrollbar { height: 6px; }
.entry-content pre::-webkit-scrollbar-thumb { background: #00e5ff; border-radius: 3px; }

/* ═══ POSTS DE PROMPTS — estilo mejorado ═══ */

/* Metadata del prompt (Cat/Modelo) */
.entry-content em {
  color: #8a94ab !important;
  font-size: 14px;
}

/* Título h2 "Prompt" */
.entry-content h2 {
  color: #00e5ff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  font-size: 22px !important;
  margin-top: 32px !important;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(0,229,255,0.2);
}

/* Botón copiar (si lo añadimos luego) */
.pv-copy-btn {
  background: rgba(0,229,255,0.15);
  border: 1px solid rgba(0,229,255,0.4);
  color: #00e5ff;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}
.pv-copy-btn:hover { background: #00e5ff; color: #0a0e1a; }
.entry-content pre { position: relative !important; padding-top: 48px !important; }

/* ═══ FIX GLOBAL: inputs y formularios ═══ */
input, textarea, select {
  background: #1a2035 !important;
  color: #e0e4ef !important;
  border: 1px solid rgba(139,92,246,0.25) !important;
  border-radius: 8px !important;
}
input:focus, textarea:focus {
  border-color: #00e5ff !important;
  outline: none !important;
}

/* Botón de búsqueda y submit */
input[type="submit"], button[type="submit"] {
  background: linear-gradient(135deg, #00e5ff, #8b5cf6) !important;
  color: #0a0e1a !important;
  font-weight: 700 !important;
  border: none !important;
  padding: 10px 24px !important;
  cursor: pointer;
}

/* ═══ PAGINACIÓN en archives ═══ */
nav.pagination, .ct-pagination {
  margin-top: 32px;
}
.ct-pagination .page-numbers {
  background: #131829 !important;
  color: #c9d1e0 !important;
  border: 1px solid rgba(139,92,246,0.25) !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
}
.ct-pagination .page-numbers.current {
  background: linear-gradient(135deg, #00e5ff, #8b5cf6) !important;
  color: #0a0e1a !important;
  font-weight: 800 !important;
}

/* Título del post individual */
.single .entry-title, .single h1.entry-title, h1.entry-title,
h1.page-title, .single h1.page-title, .page-title {
  color: #fff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
}

/* ═══ FOOTER ═══ */
footer .ct-footer, footer[data-row], .site-footer {
  background: #060911 !important;
  border-top: 1px solid rgba(0,229,255,0.15) !important;
}
footer, footer a, footer p, .site-footer, .site-footer a {
  color: #6b7590 !important;
}
/* Ocultar créditos del tema original y reemplazar */
.flavor-flavor, .flavor a[href*="afthemes"], .flavor a[href*="flavor"] {
  display: none !important;
}
