/* ── Vitalia Blog Styles ── */
:root {
  --bg:        #080c10;
  --bg2:       #0d1117;
  --bg3:       #111820;
  --border:    rgba(255,255,255,0.08);
  --border-hover: rgba(0,229,160,0.3);
  --accent:    #00e5a0;
  --accent2:   #00b87a;
  --accent-glow: rgba(0,229,160,0.15);
  --text:      #e8edf2;
  --muted:     #8e9fad;
  --white:     #ffffff;
  --radius:    14px;
  --font:      'Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ── Logo ── */
.nav__logo {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo-bio {
  color: var(--white);
  font-weight: 700;
}
.logo-prime {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.logo-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 3px;
  margin-bottom: 7px;
}

/* ── Blog Header & Hero ── */
.blog-hero {
  padding: 130px 0 60px;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0,229,160,0.08) 0%, transparent 60%),
              linear-gradient(to bottom, var(--bg) 0%, var(--bg2) 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.blog-hero__title {
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 18px;
}
.blog-hero__sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

/* ── Filter / Category Pills ── */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pill:hover, .pill.active {
  background: var(--bg3);
  color: var(--accent);
  border-color: rgba(0,229,160,0.4);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* ── Featured & Article Grid ── */
.blog-section {
  padding: 60px 0 100px;
}
.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 50px;
  transition: border-color 0.25s, transform 0.25s;
}
.featured-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.featured-card__img-wrap {
  width: 100%;
  height: 100%;
  min-height: 340px;
  background: #04070a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  border-right: 1px solid var(--border);
}
.featured-card__img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
}
.featured-card__body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 860px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-card__img-wrap {
    height: 260px;
    min-height: 260px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .featured-card__body {
    padding: 28px 24px;
  }
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.blog-card__img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  background: #04070a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  display: block;
}
.blog-card:hover .blog-card__img {
  transform: scale(1.03);
}
.blog-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(8,12,16,0.85);
  backdrop-filter: blur(8px);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0,229,160,0.3);
}
.blog-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-card__meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.blog-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.blog-card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 12px;
}
.blog-card__excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}
.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

/* ── Article Single View ── */
.article-header {
  padding: 130px 0 40px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0,229,160,0.06) 0%, transparent 60%);
}
.article-header__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.article-header__back:hover {
  color: var(--accent);
}
.article-header__title {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 20px;
  width: 100%;
}
.article-header__sub {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.6;
  width: 100%;
  margin-bottom: 24px;
}
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
  width: 100%;
}
.article-meta-bar .badge {
  margin-bottom: 0;
}

/* ── Article Content Area (1100px Estándar de la Web) ── */
.article-layout {
  display: block !important;
  grid-template-columns: none !important;
  padding: 40px 0 90px;
  width: 100% !important;
  max-width: 100% !important;
}

.article-main {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  color: var(--text);
  font-size: 18px;
  line-height: 1.85;
}
.article-main h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin: 40px 0 18px;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.article-main h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin: 32px 0 14px;
}
.article-main p {
  margin-bottom: 22px;
}
.article-main ul, .article-main ol {
  margin: 0 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-main li {
  line-height: 1.65;
}
.article-main blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  background: var(--bg2);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 30px 0;
  color: #cfd8e3;
  font-style: italic;
}

.article-hero-figure {
  width: 100%;
  margin-bottom: 36px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg2);
}
.article-hero-figure img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.article-hero-figure img:hover {
  filter: brightness(1.06);
}
.article-hero-figure figcaption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--muted);
  background: var(--bg3);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.article-hero-figure figcaption::after {
  content: "🔍 Clic para ampliar";
  font-size: 11px;
  color: var(--accent);
  opacity: 0.85;
}

.article-figure-inline {
  margin: 36px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg2);
}
.article-figure-inline img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.article-figure-inline img:hover {
  filter: brightness(1.06);
}
.article-figure-inline figcaption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--muted);
  background: var(--bg3);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.article-figure-inline figcaption::after {
  content: "🔍 Clic para ampliar";
  font-size: 11px;
  color: var(--accent);
  opacity: 0.85;
}

/* ── Visor de Zoom Flotante Puro y Ultra-Robusto ── */
.img-zoom-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
  background: rgba(4, 7, 10, 0.95) !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  cursor: zoom-out !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  transform: none !important;
  -webkit-transform: none !important;
  contain: none !important;
}
.img-zoom-modal.active {
  display: flex !important;
}
.img-zoom-modal img {
  max-width: 92vw !important;
  max-height: 88vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95) !important;
  background: #000 !important;
  display: block !important;
  margin: auto !important;
  transform: none !important;
  -webkit-transform: none !important;
}

/* Callout Box */
.callout-box {
  background: rgba(0,229,160,0.04);
  border: 1px solid rgba(0,229,160,0.25);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}
.callout-box__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ── Creator Kit / Video Script Panel (Oculto al público general) ── */
.creator-kit {
  display: none;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 48px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  animation: fadeIn 0.3s ease;
}
body.creator-mode-active .creator-kit {
  display: block;
}
.creator-mode-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(8,12,16,0.92);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0,229,160,0.2);
}
body.creator-mode-active .creator-mode-indicator {
  display: flex;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.creator-kit__header {
  padding: 18px 24px;
  background: linear-gradient(90deg, rgba(0,229,160,0.12), rgba(0,184,122,0.04));
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.creator-kit__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.creator-kit__tabs {
  display: flex;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.creator-tab-btn {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.creator-tab-btn:hover {
  color: var(--white);
}
.creator-tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(0,229,160,0.04);
}
.creator-tab-pane {
  display: none;
  padding: 24px;
}
.creator-tab-pane.active {
  display: block;
}

.script-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: #d1dbe5;
  white-space: pre-wrap;
  position: relative;
}
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}
.copy-btn:hover {
  color: var(--white);
  border-color: var(--accent);
}

/* ── Bottom Article CTA Banner ── */
.article-bottom-cta {
  margin: 50px 0 20px;
  background: linear-gradient(135deg, rgba(0, 229, 160, 0.09) 0%, var(--bg2) 100%);
  border: 1px solid rgba(0, 229, 160, 0.35);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}
.article-bottom-cta__icon {
  font-size: 44px;
  flex-shrink: 0;
}
.article-bottom-cta__content {
  flex: 1;
}
.article-bottom-cta__content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.article-bottom-cta__content p {
  font-size: 15px;
  color: #cfdbe6;
  line-height: 1.6;
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .article-bottom-cta {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }
}
