/* ==========================================================================
   LBtecno Blog & Digital Store - Estilos Luminous Professional
   Basado en la guía de diseño ejemplo/DESIGN.md y ejemplo/code.html
   ========================================================================== */

:root {
  --bg-main: #f7f9fb;
  --bg-surface: #ffffff;
  --bg-surface-low: #f2f4f6;
  --bg-surface-container: #eceef0;
  --bg-secondary-container: #d0e1fb;
  --on-secondary-container: #54647a;

  --primary: #004ac6;
  --primary-hover: #003ea8;
  --primary-container: #2563eb;

  --text-bright: #191c1e;
  --text-dim: #505f76;
  --on-surface-variant: #434655;

  --border-color: #eceef0;
  --border-variant: rgba(195, 198, 215, 0.4);
  --error: #ba1a1a;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 0.25rem;
  /* 4px */
  --radius-lg: 0.5rem;
  /* 8px */
  --radius-xl: 0.75rem;
  /* 12px */
}

body {
  background-color: var(--bg-main);
  color: var(--text-bright);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Header & Navbar Luminous Professional
   -------------------------------------------------------------------------- */
.lb-navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.brand-logo {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.06);
}

.hero-logo-img {
  height: 72px;
  width: auto;
  display: inline-block;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.hero-logo-img:hover {
  transform: scale(1.05);
}

.modal-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.brand-badge {
  background: var(--bg-secondary-container);
  color: var(--primary);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Badges & Secondary Container Utilities */
.bg-secondary-container {
  background-color: var(--bg-secondary-container) !important;
}

.text-on-secondary-container {
  color: var(--on-secondary-container) !important;
}

/* Post Modal Tags */
#modalPostTags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

#modalPostTags .badge {
  background-color: var(--bg-secondary-container) !important;
  color: var(--primary) !important;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 50rem;
  border: 1px solid rgba(0, 74, 198, 0.18);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

#modalPostTags .badge:hover {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 74, 198, 0.2);
}

/* --------------------------------------------------------------------------
   Hero Section & Buscador
   -------------------------------------------------------------------------- */
.lb-hero {
  padding: 3.5rem 0 2rem 0;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-bright);
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  color: var(--text-dim);
  font-size: 1.125rem;
  max-width: 650px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

.search-box-wrapper {
  max-width: 650px;
  margin: 0 auto;
  position: relative;
}

.search-input {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-bright) !important;
  border-radius: var(--radius-xl) !important;
  padding: 1rem 1.25rem 1rem 3.25rem !important;
  font-size: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 20px rgba(0, 83, 219, 0.1) !important;
  outline: none;
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 1.25rem;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Filtros por Categoría (Chips)
   -------------------------------------------------------------------------- */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.btn-filter {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--on-surface-variant);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-filter:hover {
  background: var(--bg-surface-low);
  color: var(--text-bright);
}

.btn-filter.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 74, 198, 0.2);
}

/* --------------------------------------------------------------------------
   Tarjetas Luminous Glass Card & Grid
   -------------------------------------------------------------------------- */
.glass-card,
.lb-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.lb-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.lb-card:hover .card-title {
  color: var(--primary);
}

.card-media-wrapper {
  position: relative;
  width: 100%;
  height: 210px;
  background-color: #000000;
  overflow: hidden;
}

.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.lb-card:hover .card-img-top {
  transform: scale(1.05);
}

.card-media-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: var(--text-bright);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.card-body-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.category-tag {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.35;
  color: var(--text-bright);
  transition: color 0.25s ease;
}

.card-text {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.meta-chip {
  background: var(--bg-surface-low);
  border: 1px solid var(--border-color);
  color: var(--text-bright);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-footer-action {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn-lb-primary {
  background: var(--primary);
  color: #ffffff !important;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-lg);
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
}

.btn-lb-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(0, 74, 198, 0.25);
}

.btn-lb-outline {
  background: var(--bg-surface-container);
  color: var(--text-bright);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
}

.btn-lb-outline:hover {
  background: var(--bg-surface-low);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lb-success {
  background: #16a34a;
  color: #ffffff !important;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-lg);
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
}

.btn-lb-success:hover {
  background: #15803d;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

/* --------------------------------------------------------------------------
   Modal Luminous
   -------------------------------------------------------------------------- */
.modal-content.lb-modal-theme {
  background-color: var(--bg-surface);
  color: var(--text-bright);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
}

.modal-body {
  padding: 1.5rem;
}

/* --------------------------------------------------------------------------
   Bloque de Código (Consola Oscura Elegante)
   -------------------------------------------------------------------------- */
.code-block-container {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-lg);
  margin: 1.25rem 0;
  overflow: hidden;
}

.code-block-header {
  background: #1e293b;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #94a3b8;
  border-bottom: 1px solid #334155;
}

.code-block-header .btn-copy {
  background: transparent;
  border: none;
  color: #38bdf8;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.code-block-body pre {
  margin: 0;
  padding: 1rem;
  font-family: 'Fira Code', Consolas, Monaco, monospace;
  font-size: 0.875rem;
  color: #38ef7d;
  overflow-x: auto;
}

/* --------------------------------------------------------------------------
   Sección de Contacto & Footer
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.contact-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.contact-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-secondary-container);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem auto;
}

footer {
  background: var(--bg-surface);
  color: var(--text-dim);
  padding: 2.5rem 0;
  font-size: 0.875rem;
  border-top: 1px solid var(--border-color);
}

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-dim);
}

.empty-state i {
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.6;
  margin-bottom: 1rem;
}