/* ============================================
   blog-post.css — Artículo dark edition
   ============================================ */

:root {
  --bp-bg:    #07060f;
  --bp-card:  rgba(255,255,255,0.03);
  --bp-border: rgba(255,255,255,0.07);
  --bp-muted: rgba(255,255,255,0.35);
}

/* ══ HERO ══ */
.bp-hero {
  position: relative;
  height: 75vh;
  min-height: 580px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background: var(--bp-bg);
}
.bp-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45) saturate(0.7);
  transform: scale(1.04);
}
.bp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(7,6,15,1) 0%,
    rgba(7,6,15,0.6) 50%,
    rgba(7,6,15,0.1) 100%
  );
}

/* Glow decorativo detrás del título */
.bp-hero::after {
  content: '';
  position: absolute;
  left: -10%;
  top: 30%;
  width: 60%;
  height: 50%;
  background: radial-gradient(ellipse at center,
    rgba(236,0,140,0.12) 0%,
    transparent 65%);
  pointer-events: none;
}

.bp-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: clamp(140px,16vw,200px);
  padding-bottom: clamp(64px,8vw,100px);
}

/* Contenido hero */
.bp-hero-content { max-width: 900px; }

.bp-hero-content h1 {
  font-family: var(--mono);
  font-size: clamp(28px,3.8vw,54px);
  font-weight: 800;
  color: #fff;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
}
.bp-hero-content h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent) 0%, #ff6ec7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bp-hero-content p {
  font-size: clamp(15px,1.5vw,18px);
  color: rgba(255,255,255,0.42);
  line-height: 1.8;
  max-width: 58ch;
  margin: 0;
}

/* Meta */
.bp-hero-meta {
  border-top: 1px solid var(--bp-border);
  padding-top: 28px;
}
.bp-author-date {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bp-muted);
}

/* ══ TICKER / TAGS BAR ══ */
.bp-ticker {
  background: rgba(255,255,255,0.025);
  border-top: 1px solid var(--bp-border);
  border-bottom: 1px solid var(--bp-border);
  padding: 14px 0;
  overflow: hidden;
}
.bp-ticker-inner {
  display: flex;
  gap: 48px;
  animation: bp-scroll 22s linear infinite;
  width: max-content;
}
.bp-ticker-item {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bp-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 20px;
}
.bp-ticker-item::after {
  content: '·';
  color: var(--accent);
}
@keyframes bp-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══ CARDS DESTACADAS ══ */
.bp-cards-section {
  background: var(--bp-bg);
  padding: clamp(64px,8vw,100px) 0;
}
.bp-cards-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: var(--bp-border);
  border: 1px solid var(--bp-border);
}
.bp-feat-card {
  background: var(--bp-bg);
  padding: clamp(28px,3.5vw,44px) clamp(22px,2.8vw,36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background .3s;
  position: relative;
  overflow: hidden;
}
.bp-feat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 20%,
    rgba(236,0,140,0.07) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s;
}
.bp-feat-card:hover { background: rgba(255,255,255,0.03); }
.bp-feat-card:hover::before { opacity: 1; }


.bp-feat-num {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.15);
}

.bp-feat-card h3 {
  font-family: var(--mono);
  font-size: clamp(14px,1.3vw,17px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}
.bp-feat-card p {
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255,255,255,0.38);
  margin: 0;
  flex: 1;
}

/* ══ CUERPO PRINCIPAL ══ */
.bp-body-section {
  background: var(--bp-bg);
  padding: clamp(64px,8vw,112px) 0;
  border-top: 1px solid var(--bp-border);
  border-bottom: 1px solid var(--bp-border);
}
.bp-body-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(48px,6vw,96px);
  align-items: start;
}

/* Sidebar */
.bp-sidebar-sticky {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.bp-sidebar-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bp-muted);
  display: block;
  margin-bottom: 12px;
}
.bp-toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bp-toc-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.28);
  text-decoration: none;
  padding: 7px 0 7px 14px;
  border-left: 1px solid var(--bp-border);
  transition: color .2s, border-color .2s;
  line-height: 1.4;
}
.bp-toc-link:hover,
.bp-toc-link.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
}

.bp-share-links {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.bp-share-links a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--bp-border);
  color: var(--bp-muted);
  transition: color .2s, border-color .2s;
}
.bp-share-links a:hover {
  color: var(--accent);
  border-color: rgba(236,0,140,0.35);
}

/* Contenido */
.bp-content { max-width: 720px; }

.bp-lead {
  font-size: clamp(17px,1.6vw,21px);
  line-height: 1.8;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  margin: 0 0 32px;
}
.bp-lead em { color: var(--accent); font-style: normal; }

.bp-content p {
  font-size: 16px;
  line-height: 1.95;
  color: rgba(255,255,255,0.45);
  margin: 0 0 22px;
}
.bp-content h2 {
  font-family: var(--mono);
  font-size: clamp(20px,2vw,28px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 56px 0 20px;
  padding-top: 56px;
  border-top: 1px solid var(--bp-border);
}
.bp-content strong { color: rgba(255,255,255,0.85); font-weight: 600; }
.bp-content section:first-child h2 { margin-top: 0; padding-top: 0; border-top: none; }

/* Pullquote */
.bp-pullquote {
  margin: 44px 0;
  padding: 36px 40px;
  border-left: 2px solid var(--accent);
  background: rgba(236,0,140,0.04);
  position: relative;
}
.bp-pullquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 32px;
  font-family: var(--mono);
  font-size: 80px;
  font-weight: 800;
  color: rgba(236,0,140,0.15);
  line-height: 1;
}
.bp-pullquote blockquote {
  font-family: var(--mono);
  font-size: clamp(15px,1.4vw,19px);
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  margin: 0;
  letter-spacing: -0.015em;
  position: relative;
  z-index: 1;
}

/* ══ POR QUÉ IMPORTA ══ */
.bp-why {
  background: var(--bp-bg);
  padding: clamp(72px,9vw,112px) 0;
  border-top: 1px solid var(--bp-border);
  overflow: hidden; /* contiene el glow del grid para evitar scroll horizontal */
}
.bp-why-head {
  margin-bottom: clamp(40px,5vw,64px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bp-why-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.bp-why-head h2 {
  font-family: var(--mono);
  font-size: clamp(26px,3.5vw,48px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0;
}
.bp-why-head h2 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent) 0%, #ff6ec7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bp-why-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: var(--bp-border);
  border: 1px solid var(--bp-border);
  position: relative; /* needed for SVG arc overlay */
}
.bp-why-item {
  background: var(--bp-bg);
  padding: clamp(32px,4vw,52px) clamp(24px,3vw,40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background .25s;
  position: relative;
  overflow: visible; /* allows border-glow to extend beyond edges */
}
.bp-why-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.bp-why-item:hover { background: rgba(255,255,255,0.025); }
.bp-why-item:hover::after { transform: scaleX(1); }

.bp-why-item h3 {
  font-family: var(--mono);
  font-size: clamp(15px,1.4vw,18px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}
.bp-why-item p {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255,255,255,0.38);
  margin: 0;
}

/* ══ IMAGEN SEPARADORA ══ */
.bp-fullimg {
  height: clamp(260px,35vw,500px);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.45) saturate(0.6);
  position: relative;
}
.bp-fullimg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7,6,15,0.6) 0%,
    transparent 50%,
    rgba(7,6,15,0.6) 100%
  );
}

/* ══ ARTÍCULOS RELACIONADOS ══ */
.bp-related {
  background: var(--bp-bg);
  padding: clamp(72px,9vw,112px) 0;
  border-top: 1px solid var(--bp-border);
}
.bp-related-head {
  margin-bottom: clamp(40px,5vw,64px);
}
.bp-related-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.bp-related-tag::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
}
.bp-related-head h2 {
  font-family: var(--mono);
  font-size: clamp(26px,3.5vw,44px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0;
}
.bp-related-head h2 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent) 0%, #ff6ec7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bp-related-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: var(--bp-border);
  border: 1px solid var(--bp-border);
}
.bp-rcard {
  background: var(--bp-bg);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  overflow: hidden;
  transition: background .25s;
}
.bp-rcard:hover { background: rgba(255,255,255,0.025); }

.bp-rcard-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.bp-rcard-img-inner {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5) saturate(0.6);
  transform: scale(1.03);
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1), filter .4s;
}
.bp-rcard:hover .bp-rcard-img-inner {
  transform: scale(1.09);
  filter: brightness(0.35) saturate(0.5);
}
.bp-rcard-cat {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 5px 12px;
}
.bp-rcard-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.bp-rcard-date {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.bp-rcard-body h3 {
  font-family: var(--mono);
  font-size: clamp(14px,1.3vw,17px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
  transition: color .25s;
  flex: 1;
}
.bp-rcard:hover h3 { color: var(--accent); }
.bp-rcard-link {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  transition: letter-spacing .25s;
}
.bp-rcard:hover .bp-rcard-link { letter-spacing: 0.2em; }

/* ══ CARD SHATTER ══ */
.bp-feat-card.bp-shattering > *:not(.bp-fragment) {
  opacity: 0 !important;
  transition: opacity .15s ease !important;
}
.bp-feat-card.bp-reformed > *:not(.bp-fragment) {
  opacity: 1 !important;
  transition: opacity .3s ease .1s !important;
}
.bp-fragment {
  position: fixed;
  pointer-events: none;
  z-index: 9000;
  will-change: transform, opacity;
  background: rgba(28, 24, 44, 0.97);
  border: 1px solid rgba(236,0,140,0.2);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* ══ ARTICLE CONTENT: h2 láser + pullquote frame ══ */
.bp-content h2 { position: relative; }

.bp-h2-laser {
  position: absolute;
  top: -1px; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, #ec008c 0%, #ff6ec7 65%, transparent 100%);
  box-shadow: 0 0 8px #ec008c, 0 0 22px rgba(236,0,140,0.35);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  z-index: 2;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 700px) {
  .bp-hero { height: auto; min-height: 75vh; }
  .bp-cards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .bp-body-inner { grid-template-columns: 1fr; }
  .bp-sidebar { display: none; }
  .bp-related-grid { grid-template-columns: 1fr; }
  .bp-fullimg { background-attachment: scroll; }
  .bp-why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bp-why-grid { grid-template-columns: 1fr; }
  .bp-related-grid { grid-template-columns: 1fr; }
}
