/* ==========================================================================
   Primible — Blog («Blog Primible»), artículo y página Nosotros
   ========================================================================== */

/* ---------- Botones compartidos ---------- */
.about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-position .5s ease, border-color .2s ease, transform .2s ease;
}
html.primible-brand-ui .about-btn { display: inline-flex !important; flex-direction: row !important; align-items: center !important; }
.about-btn:hover { transform: translateY(-1px); }
.about-btn--primary { border: 0; background: linear-gradient(90deg, #8d0dcc, #b114ff 55%, #c547ff); background-size: 200% 100%; box-shadow: 0 16px 36px -16px rgba(177, 20, 255, .9); }
.about-btn--primary:hover { background-position: 100% 0; }
.about-btn--ghost { border-color: rgba(255, 255, 255, .22); }
.about-btn--ghost:hover { border-color: #fff; }

/* ---------- Tarjeta de artículo ---------- */
/* El tema da relleno y fondo a todos los <article>: aquí no aplica */
html.primible-brand-ui article.bcard,
html article.bcard { margin: 0 !important; padding: 0 !important; }
.bcard {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
  background: #2a2a2d;
  transition: border-color .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
.bcard:hover { border-color: rgba(214, 107, 255, .45); box-shadow: 0 30px 60px -30px rgba(177, 20, 255, .55); transform: translateY(-4px); }
.bcard__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(70% 70% at 50% 60%, rgba(177, 20, 255, .25), transparent 70%), #232325; }
.bcard__media img { width: 100% !important; height: 100% !important; object-fit: cover; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.bcard:hover .bcard__media img { transform: scale(1.06); }
.bcard__ph { display: grid; place-items: center; height: 100%; color: rgba(214, 107, 255, .55); }
.bcard__cat {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 20, 22, .72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.bcard__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.bcard__meta { color: rgba(255, 255, 255, .5); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
html .bcard .bcard__title { margin: 0 !important; color: #fff !important; font-size: 19px !important; font-weight: 600 !important; line-height: 1.25 !important; letter-spacing: -.01em; }
.bcard__title a { color: inherit !important; text-decoration: none !important; }
.bcard__title a::after { position: absolute; inset: 0; z-index: 1; content: ""; }  /* toda la tarjeta es clicable */
.bcard__excerpt { display: -webkit-box; flex: 1; margin: 0 !important; overflow: hidden; color: rgba(255, 255, 255, .65); font-size: 14.5px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.bcard__go { margin-top: 4px; color: #d66bff; font-size: 14px; font-weight: 600; }
.bcard__go span { display: inline-block; transition: transform .25s ease; }
.bcard:hover .bcard__go span { transform: translateX(4px); }

/* Destacado: horizontal y grande */
.bcard--featured { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); margin-bottom: 18px; }
.bcard--featured .bcard__media { aspect-ratio: auto; min-height: 360px; }
.bcard--featured .bcard__body { justify-content: center; gap: 14px; padding: clamp(24px, 4vw, 52px); }
html .bcard--featured .bcard__title { font-size: clamp(24px, 2.4vw, 36px) !important; line-height: 1.12 !important; letter-spacing: -.025em; }
.bcard--featured .bcard__excerpt { flex: 0; font-size: 16px; -webkit-line-clamp: 4; }
.bcard--featured::before {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: #b114ff;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  content: "LO ÚLTIMO";
}

/* ---------- Listado del blog ---------- */
.blog-head { padding: clamp(28px, 5vw, 64px) 0 clamp(18px, 3vw, 32px); }
.blog-head .shop-crumbs { margin-bottom: 22px; }
html .blog .blog-head__title { max-width: 18ch; margin: 12px 0 14px !important; color: #fff !important; font-size: clamp(36px, 4.6vw, 68px) !important; font-weight: 600 !important; line-height: 1 !important; letter-spacing: -.035em !important; text-wrap: balance; }
.blog .blog-head__lead { max-width: 60ch; margin: 0 0 26px !important; color: rgba(255, 255, 255, .72); font-size: clamp(15.5px, 1.2vw, 18px); line-height: 1.6; }

.bchips { display: flex; flex-wrap: wrap; gap: 8px; }
.bchip { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1.5px solid rgba(255, 255, 255, .14); border-radius: 999px; color: rgba(255, 255, 255, .8) !important; font-size: 14px; font-weight: 600; text-decoration: none !important; transition: border-color .2s ease, background-color .2s ease; }
.bchip:hover { border-color: rgba(214, 107, 255, .6); color: #fff !important; }
.bchip.is-on { border-color: #b114ff; background: #b114ff; color: #fff !important; }

.blog-list { padding: 8px 0 clamp(56px, 7vw, 100px); }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.blog-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.blog-pages .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; color: #fff !important; font-weight: 600; text-decoration: none !important; }
.blog-pages .page-numbers.current { border-color: #b114ff; background: #b114ff; }
.blog-pages a.page-numbers:hover { border-color: #d66bff; }

.blog-empty { display: grid; justify-items: center; gap: 12px; max-width: 560px; margin: 20px auto 0; padding: 48px 28px; border: 1px dashed rgba(214, 107, 255, .35); border-radius: 28px; text-align: center; }
.blog-empty__icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; background: rgba(177, 20, 255, .15); color: #d66bff; }
html .blog-empty h2 { margin: 6px 0 0 !important; color: #fff !important; font-size: 24px !important; }
.blog-empty p { margin: 0 0 10px !important; color: rgba(255, 255, 255, .7); }

/* ---------- Sección del home ---------- */
.blog-home { padding: clamp(56px, 8vw, 110px) 0; }
.blog-home__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(24px, 3vw, 40px); }
.blog-home__head .sec-title { margin-bottom: 0 !important; }
.blog-more { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border: 1.5px solid rgba(255, 255, 255, .2); border-radius: 999px; color: #fff !important; font-weight: 600; text-decoration: none !important; transition: border-color .2s ease; }
.blog-more:hover { border-color: #d66bff; }

/* ---------- Artículo ---------- */
.post-head { padding: clamp(28px, 5vw, 64px) 0 clamp(20px, 3vw, 36px); }
.post-head__inner { max-width: 900px; }
.post-head .shop-crumbs { margin-bottom: 26px; }
.post-head__cat { display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px; background: rgba(177, 20, 255, .2); color: #e3b3ff !important; font-size: 13px; font-weight: 600; text-decoration: none !important; }
html .post .post-head__title { margin: 0 0 16px !important; color: #fff !important; font-size: clamp(32px, 4.2vw, 60px) !important; font-weight: 600 !important; line-height: 1.04 !important; letter-spacing: -.035em !important; text-wrap: balance; }
.post .post-head__lead { margin: 0 0 22px !important; color: rgba(255, 255, 255, .75); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; }
.post-head__meta { display: flex; align-items: center; gap: 12px; }
.post-head__avatar { width: 44px; height: 44px; border: 2px solid #b114ff; border-radius: 50%; }
.post-head__meta > span { display: grid; gap: 2px; color: rgba(255, 255, 255, .55); font-size: 12.5px; }
.post-head__meta strong { color: #fff; font-size: 15px; }

.post-cover { margin: 0 auto clamp(28px, 4vw, 48px); }
.post-cover img { width: 100% !important; max-height: 640px; border-radius: 28px; object-fit: cover; }
.post-cover figcaption { margin-top: 10px; color: rgba(255, 255, 255, .5); font-size: 13px; text-align: center; }

.post-body { display: grid; grid-template-columns: 64px minmax(0, 720px); justify-content: center; gap: 32px; }
.post-share { position: sticky; top: 120px; display: grid; align-self: start; justify-items: center; gap: 10px; }
.post-share > span { color: rgba(255, 255, 255, .4); font-size: 10px; letter-spacing: .14em; writing-mode: vertical-rl; transform: rotate(180deg); }
.post-share a,
.post-share button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; background: transparent; color: #fff !important; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.post-share a:hover,
.post-share button:hover,
.post-share button.is-ok { border-color: #b114ff; background: #b114ff; }

/* Tipografía de lectura */
.post-content { color: rgba(255, 255, 255, .82); font-size: 18px; line-height: 1.75; }
.post-content > * { margin-top: 0 !important; margin-bottom: 1.25em !important; }
html .post-content :is(h2, h3, h4) { margin-top: 1.8em !important; margin-bottom: .6em !important; color: #fff !important; font-weight: 600 !important; letter-spacing: -.02em; line-height: 1.2 !important; }
html .post-content h2 { font-size: clamp(26px, 2.4vw, 34px) !important; }
html .post-content h3 { font-size: clamp(21px, 1.8vw, 25px) !important; }
.post-content a { color: #d66bff !important; text-decoration: underline !important; text-decoration-color: rgba(214, 107, 255, .45) !important; text-underline-offset: 3px; }
.post-content strong { color: #fff; }
.post-content :is(ul, ol) { padding-left: 1.3em !important; }
.post-content li { margin-bottom: .45em; }
.post-content li::marker { color: #b114ff; }
.post-content blockquote { margin-left: 0 !important; padding: 6px 0 6px 22px !important; border-left: 3px solid #b114ff !important; color: #fff; font-size: 21px; font-style: normal; }
.post-content :is(img, figure img, video) { max-width: 100%; height: auto; border-radius: 20px; }
.post-content figure { margin-right: 0 !important; margin-left: 0 !important; }
.post-content figcaption { margin-top: 8px; color: rgba(255, 255, 255, .5); font-size: 14px; text-align: center; }
.post-content .wp-block-gallery { gap: 10px !important; }
.post-content code { padding: 2px 6px; border-radius: 6px; background: #2a2a2d; font-size: .9em; }
.post-content hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.post-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 20px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.post-tags a { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; color: rgba(255, 255, 255, .75) !important; font-size: 13px; text-decoration: none !important; }

.post-cta { margin-top: clamp(36px, 5vw, 60px); }
.post-cta__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(214, 107, 255, .3);
  border-radius: 28px;
  background: radial-gradient(80% 120% at 100% 0%, rgba(177, 20, 255, .3), transparent 60%), #2a2730;
}
html .post-cta__card h2 { margin: 8px 0 6px !important; color: #fff !important; font-size: clamp(22px, 2.2vw, 30px) !important; font-weight: 600 !important; }
.post-cta__card p { max-width: 46ch; margin: 0 !important; color: rgba(255, 255, 255, .72); }

.post-related { padding: clamp(56px, 7vw, 100px) 0; }
.post-related__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.post-related__head .sec-title { margin-bottom: 0 !important; }

/* ---------- Nosotros ---------- */
.about-hero { padding: clamp(32px, 6vw, 90px) 0 clamp(40px, 6vw, 80px); }
.about-hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
html .about .about-hero__title { margin: 14px 0 18px !important; color: #fff !important; font-size: clamp(36px, 4.4vw, 66px) !important; font-weight: 600 !important; line-height: 1.02 !important; letter-spacing: -.035em !important; text-wrap: balance; }
.about .about-hero__lead { max-width: 52ch; margin: 0 0 28px !important; color: rgba(255, 255, 255, .75); font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.6; }
.about-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.about-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-mosaic__item { overflow: hidden; aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, .1); border-radius: 24px; background: #2a2a2d; animation: aboutFloat 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.5s); }
.about-mosaic { padding-bottom: 32px; }
.about-mosaic__item:nth-child(even) { transform: translateY(32px); }  /* columna derecha, desfasada */
.about-mosaic__item img { width: 100% !important; height: 100% !important; object-fit: cover; }
@keyframes aboutFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.about-section { padding: clamp(48px, 7vw, 100px) 0; }
.about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(24px, 3vw, 40px); }
.about-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 24px; background: #2a2a2d; color: #fff !important; text-decoration: none !important; transition: border-color .3s ease, transform .3s ease; }
.about-card:hover { border-color: rgba(214, 107, 255, .5); transform: translateY(-3px); }
.about-card__n { color: #d66bff; font-size: 13px; letter-spacing: .1em; }
html .about-card h3 { margin: 0 !important; color: #fff !important; font-size: 21px !important; font-weight: 600 !important; }
.about-card p { flex: 1; margin: 0 !important; color: rgba(255, 255, 255, .65); line-height: 1.55; }
.about-card__go { color: #d66bff; font-weight: 600; }

.about-values { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.about-values__list { display: grid; gap: 12px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.about-values__list li { display: grid; gap: 4px; margin: 0 !important; padding: 22px 24px; border: 1px solid rgba(255, 255, 255, .08); border-left: 3px solid #b114ff; border-radius: 18px; background: #2a2a2d; }
.about-values__list strong { color: #fff; font-size: 17px; }
.about-values__list span { color: rgba(255, 255, 255, .68); line-height: 1.55; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .bcard--featured { grid-template-columns: 1fr; }
  .bcard--featured .bcard__media { min-height: 0; aspect-ratio: 16 / 10; }
  .post-body { grid-template-columns: minmax(0, 1fr); }
  .post-share { position: static; display: flex; justify-content: flex-start; order: 2; }
  .post-share > span { writing-mode: initial; transform: none; }
  .about-hero__inner, .about-values { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-content { font-size: 17px; }
  .about-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .about-mosaic__item { animation: none; }
}

/* Destacado: la foto llena su columna sin estirar la tarjeta, y se ve el resumen */
.bcard--featured .bcard__media { min-height: 380px; }
.bcard--featured .bcard__media img { position: absolute; inset: 0; }
.bcard--featured .bcard__excerpt { flex: none; }
html article.bcard--featured { margin-bottom: 18px !important; }
@media (max-width: 900px) { .bcard--featured .bcard__media { min-height: 0; } }

/* El tema da panel gris a todos los <article>: el artículo del blog va sin marco */
html.primible-brand-ui article.post-article,
html article.post-article { margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
html .post-head__meta > span { display: grid !important; justify-items: start; gap: 2px; text-align: left; }
.post-head__avatar { flex: none; object-fit: cover; background: #232325; }
html .post-content ul { list-style: disc !important; }
html .post-content ol { list-style: decimal !important; }
html .post-content li { display: list-item !important; color: rgba(255, 255, 255, .82); font-size: inherit !important; }
html .post-head__meta { justify-content: flex-start !important; }
html .post-head__meta > * { margin: 0 !important; }

/* ==========================================================================
   v2 — Más aire, imágenes y movimiento (mismo lenguaje del home)
   ========================================================================== */

/* ---------- Separación entre tarjetas ---------- */
.blog-grid { gap: clamp(22px, 2.4vw, 34px) !important; }
html article.bcard--featured { margin-bottom: clamp(28px, 3vw, 40px) !important; }
.blog-list { padding-top: clamp(20px, 3vw, 40px); }
.bcard__body { padding: 22px 24px 26px; }

/* Brillo que cruza la foto al pasar el mouse */
.bcard__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .18) 48%, transparent 66%);
  content: "";
  transform: translateX(-120%);
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}
.bcard:hover .bcard__media::after { transform: translateX(120%); }

/* ---------- Encabezados con boquilla, brillos y collage ---------- */
.blog-head,
.post-head {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.blog-head .inner-hero__extruder,
.post-head .inner-hero__extruder {
  top: clamp(40px, 5vw, 80px);
  left: max(70px, calc(50% - 650px));
  width: clamp(250px, 19vw, 320px);
  opacity: .06;
}
.blog-head .primible-hero-filament,
.post-head .primible-hero-filament { z-index: 1; }
.blog-head__inner,
.post-head__inner { position: relative; z-index: 2; }

/* El filamento pasa por detrás de las tarjetas y del texto */
body:is(.blog, .single-post, .category) .site-main > section,
body:is(.blog, .single-post, .category) .post-cover,
body:is(.blog, .single-post, .category) .post-body,
body:is(.blog, .single-post, .category) .post-cta { position: relative; z-index: 2; }

.blog-head__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.blog-head { padding-bottom: clamp(40px, 6vw, 80px); }

.blog-collage { position: relative; height: clamp(320px, 30vw, 440px); }
.blog-collage__item {
  position: absolute;
  display: block;
  width: 58%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  background: #2a2a2d;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .9);
  animation: blogIn .9s cubic-bezier(.2, .8, .2, 1) both, blogFloat 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * .15s), calc(var(--i) * -2.3s);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.blog-collage__item:nth-child(1) { top: 4%; left: 0; z-index: 2; rotate: -7deg; }
.blog-collage__item:nth-child(2) { top: 0; right: 0; z-index: 1; width: 50%; rotate: 6deg; }
.blog-collage__item:nth-child(3) { bottom: -4%; left: 30%; z-index: 3; width: 46%; rotate: -2deg; border-color: rgba(214, 107, 255, .5); }
.blog-collage__item:hover { z-index: 5; scale: 1.04; }
.blog-collage__item img { width: 100% !important; height: 100% !important; object-fit: cover; }
.blog-collage__tag { position: absolute; bottom: 12px; left: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(20, 20, 22, .75); color: #fff; font-size: 11.5px; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.blog-collage__spark { position: absolute; top: 40%; left: 40%; z-index: 0; width: 70%; height: 70%; border-radius: 50%; background: radial-gradient(circle, rgba(177, 20, 255, .35), transparent 65%); filter: blur(30px); transform: translate(-50%, -50%); animation: blogGlow 6s ease-in-out infinite; }
@keyframes blogIn { from { opacity: 0; transform: translateY(40px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes blogFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes blogGlow { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }

/* Título y chips con entrada suave */
.blog-head__copy > *,
.post-head__inner > * { animation: blogUp .7s cubic-bezier(.2, .8, .2, 1) both; }
.blog-head__copy > *:nth-child(2), .post-head__inner > *:nth-child(2) { animation-delay: .06s; }
.blog-head__copy > *:nth-child(3), .post-head__inner > *:nth-child(3) { animation-delay: .12s; }
.blog-head__copy > *:nth-child(4), .post-head__inner > *:nth-child(4) { animation-delay: .18s; }
.blog-head__copy > *:nth-child(5), .post-head__inner > *:nth-child(5) { animation-delay: .24s; }
.blog-head__copy > *:nth-child(6), .post-head__inner > *:nth-child(6) { animation-delay: .3s; }
@keyframes blogUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Aparición escalonada al hacer scroll (blog.js) ---------- */
.bup { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--bup-d, 0ms); }
.bup.is-in { opacity: 1; transform: none; }
.post-cover.bup { transform: translateY(30px) scale(.97); }
.post-cover.bup.is-in { transform: none; }

/* ---------- Artículo ordenado en 3 columnas ---------- */
.post-progress { position: fixed; top: 0; right: 0; left: 0; z-index: 100000; height: 3px; pointer-events: none; }
.post-progress span { display: block; height: 100%; background: linear-gradient(90deg, #8d0dcc, #d66bff); transform: scaleX(0); transform-origin: left; }

.post-head { padding-bottom: clamp(30px, 4vw, 52px); }
.post-head__inner { max-width: 980px; }
.post-cover { margin-top: clamp(28px, 4vw, 48px); }

.post-body { grid-template-columns: 64px minmax(0, 720px) 220px; gap: clamp(28px, 3vw, 48px); }
.post-toc { position: sticky; top: 120px; display: grid; align-self: start; gap: 12px; padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .1); }
.post-toc[hidden] { display: none; }
.post-toc > span { color: rgba(255, 255, 255, .45); font-size: 10.5px; letter-spacing: .14em; }
.post-toc ol { display: grid; gap: 10px; margin: 0 !important; padding: 0 !important; list-style: none !important; counter-reset: toc; }
.post-toc li { margin: 0 !important; counter-increment: toc; }
.post-toc a { position: relative; display: block; color: rgba(255, 255, 255, .6) !important; font-size: 13.5px; line-height: 1.4; text-decoration: none !important; transition: color .2s ease; }
.post-toc a::before { margin-right: 8px; color: rgba(214, 107, 255, .6); content: counter(toc, decimal-leading-zero); font-family: "IBM Plex Mono", monospace; font-size: 11px; }
.post-toc a:hover { color: #fff !important; }
.post-toc a.is-on { color: #fff !important; }
.post-toc a.is-on::after { position: absolute; top: 2px; bottom: 2px; left: -20px; width: 3px; border-radius: 3px; background: #b114ff; content: ""; }

/* Subtítulos con acento y separación clara entre secciones */
html .post-content h2 { position: relative; padding-top: 18px; scroll-margin-top: 120px; }
html .post-content h2::before { position: absolute; top: 0; left: 0; width: 44px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #8d0dcc, #d66bff); content: ""; }
.post-content > p:first-child { color: #fff; font-size: 1.12em; }

/* Llamado a la acción con borde animado */
.post-cta__card { position: relative; overflow: hidden; isolation: isolate; }
.post-cta__card::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from var(--cta-a, 0deg), transparent 0 60%, rgba(214, 107, 255, .7) 75%, transparent 90%);
  content: "";
  animation: ctaSpin 6s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}
@property --cta-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ctaSpin { to { --cta-a: 360deg; } }

@media (max-width: 1200px) {
  .post-body { grid-template-columns: 64px minmax(0, 720px); }
  .post-toc { display: none !important; }
}
@media (max-width: 900px) {
  .blog-head__inner { grid-template-columns: 1fr; }
  .blog-collage { height: 280px; max-width: 460px; }
  .post-body { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .blog-collage__item, .blog-collage__spark, .blog-head__copy > *, .post-head__inner > *, .post-cta__card::before { animation: none; }
  .bup { opacity: 1; transform: none; }
}

/* Boquilla: igual de sutil que en el home y completa a la vista */
html .blog-head .inner-hero__extruder,
html .post-head .inner-hero__extruder { left: max(150px, calc(50% - 560px)); opacity: .08 !important; }
html.primible-brand-ui article.bcard--featured { margin-bottom: clamp(28px, 3vw, 40px) !important; }
@media (max-width: 900px) {
  html .blog-head .inner-hero__extruder,
  html .post-head .inner-hero__extruder { left: 70%; width: 200px; opacity: .06 !important; }
}
/* Sin índice (menos de 2 subtítulos): el texto queda centrado */
@media (min-width: 1201px) {
  .post-body:has(.post-toc[hidden]) { grid-template-columns: 64px minmax(0, 720px) 64px; }
}

/* ==========================================================================
   Información del servicio (/impresion-3d-a-pedido/) e historia (Nosotros)
   ========================================================================== */
.svc, .about-story { color: #fff; }
.svc-section { position: relative; z-index: 2; padding: clamp(48px, 7vw, 96px) 0; }
.svc .svc-lead { max-width: 52ch; margin: 0 0 24px !important; color: rgba(255, 255, 255, .72); font-size: 16.5px; line-height: 1.6; }

.svc-prices { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.svc-table { width: 100%; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; border-collapse: separate; border-spacing: 0; background: #2a2a2d; }
.svc-table thead th { padding: 14px 20px; background: rgba(177, 20, 255, .16); color: #e3b3ff; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.svc-table tbody th, .svc-table td { padding: 16px 20px; border-top: 1px solid rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .85); font-size: 15px; font-weight: 400; text-align: left; vertical-align: top; }
.svc-table td { color: #fff; font-weight: 700; white-space: nowrap; }
.svc-table tbody tr { transition: background-color .2s ease; }
.svc-table tbody tr:hover { background: rgba(255, 255, 255, .03); }

.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); margin-top: clamp(24px, 3vw, 40px); }
.svc-card { padding: 26px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; background: #2a2a2d; transition: border-color .3s ease, transform .3s ease; }
.svc-card:hover { border-color: rgba(214, 107, 255, .45); transform: translateY(-3px); }
.svc-card__n { color: #d66bff; font-size: 13px; letter-spacing: .1em; }
html .svc-card h3 { margin: 12px 0 8px !important; color: #fff !important; font-size: 18px !important; font-weight: 600 !important; }
.svc-card p { margin: 0 !important; color: rgba(255, 255, 255, .65); line-height: 1.55; }

.svc-mat, .svc-faq { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.svc-mat__list { display: grid; gap: 12px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.svc-mat__list li { display: grid; gap: 4px; margin: 0 !important; padding: 20px 22px; border: 1px solid rgba(255, 255, 255, .08); border-left: 3px solid #b114ff; border-radius: 18px; background: #2a2a2d; }
.svc-mat__list strong { color: #fff; font-size: 17px; }
.svc-mat__list span { color: rgba(255, 255, 255, .68); line-height: 1.5; }

.about-story__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.about-story__text p { margin: 0 0 16px !important; color: rgba(255, 255, 255, .78); font-size: 17px; line-height: 1.7; }
.about-story__text strong { color: #fff; }
.about-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0 !important; padding: 0 !important; list-style: none !important; }
.about-facts li { display: grid; gap: 4px; margin: 0 !important; padding: 18px; border: 1px solid rgba(214, 107, 255, .25); border-radius: 18px; background: rgba(177, 20, 255, .08); }
.about-facts strong { color: #fff; font-size: 22px; letter-spacing: -.02em; }
.about-facts span { color: rgba(255, 255, 255, .6); font-size: 13px; }

@media (max-width: 1024px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .svc-prices, .svc-mat, .svc-faq, .about-story__inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .svc-grid, .about-facts { grid-template-columns: 1fr; }
  .svc-table td { white-space: normal; }
}
.svc .emp-faq__item p { margin: 0 !important; padding: 0 22px 20px; color: rgba(255, 255, 255, .7); font-size: 15px; line-height: 1.6; }
