/* ============================================================
   AC Logistics — Blog (se carga encima de product.css)
   ============================================================ */

::selection { background: rgba(60, 197, 218, 0.35); color: #eaf3fb; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* film grain, igual que el home */
body.blog::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.btn::after {
  content: '→';
  display: inline-block;
  margin-left: 2px;
  transition: transform 0.25s ease;
}
.btn:hover::after { transform: translateX(4px); }
.btn--ghost::after { color: var(--cyan); }
.btop__cta::after, .lang-toggle button::after { content: none; }

a.ptop__product { transition: color 0.2s ease; }
a.ptop__product:hover { color: var(--cyan); }
@media (max-width: 720px) {
  .btop__cta { display: none; }
}

/* ---------- Hero ---------- */
.bhero { padding: 96px 0 40px; }
.bhero__title { max-width: 900px; font-size: clamp(40px, 6.4vw, 84px); line-height: 0.98; }
.bhero .phero__sub { max-width: 560px; margin-bottom: 0; }
.bhero--404 { padding: 120px 0 140px; }
.bhero--404 .phero__sub { margin-bottom: 32px; }

/* ---------- Meta (fecha · minutos) ---------- */
.bcard__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.bcard__meta i, .bpost__meta i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.8;
  flex: none;
}

/* ---------- Covers ---------- */
.bcard__cover, .bfeat__cover {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 80% 0%, rgba(60, 197, 218, 0.22), transparent 55%),
    radial-gradient(70% 100% at 10% 100%, rgba(43, 143, 212, 0.22), transparent 60%),
    linear-gradient(160deg, #0a1a30, #060f1e);
}
.bcard__cover img, .bfeat__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s ease;
}
.bcard__cover--empty::before, .bfeat__cover--empty::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(80, 160, 220, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 160, 220, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent);
}
.bcard__cover--empty img, .bfeat__cover--empty img {
  position: absolute;
  left: 50%; top: 50%;
  width: 22%; height: auto;
  transform: translate(-50%, -50%);
  object-fit: contain;
  opacity: 0.22;
  filter: drop-shadow(0 6px 30px rgba(60, 197, 218, 0.35));
}

/* ---------- Destacada ---------- */
.bfeat { padding: 40px 0 24px; }
.bfeat__card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(13, 30, 56, 0.7), rgba(4, 11, 24, 0.35));
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.bfeat__card::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.bfeat__card:hover { border-color: rgba(60, 197, 218, 0.45); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 40px rgba(60, 197, 218, 0.07); }
.bfeat__card:hover::after { opacity: 1; }
.bfeat__card:hover .bfeat__cover:not(.bfeat__cover--empty) img { transform: scale(1.04); }
.bfeat__cover { min-height: 380px; }
.bfeat__body {
  padding: 44px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.bfeat__tag {
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(60, 197, 218, 0.35);
  background: rgba(60, 197, 218, 0.08);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}
.bfeat__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.bfeat__excerpt { color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.bfeat__more {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.bfeat__more span[aria-hidden] { display: inline-block; transition: transform 0.25s ease; }
.bfeat__card:hover .bfeat__more span[aria-hidden] { transform: translateX(5px); }
@media (max-width: 900px) {
  .bfeat__card { grid-template-columns: 1fr; }
  .bfeat__cover { min-height: 0; aspect-ratio: 16 / 9; }
  .bfeat__body { padding: 28px 24px 30px; }
}

/* ---------- Rejilla ---------- */
.bgrid { padding: 40px 0 24px; }
.bgrid__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.bgrid__head .bgrid__label { margin-bottom: 0; }
.bgrid__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
}
.bgrid__label::before {
  content: '';
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  flex: none;
}
.bgrid__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 1020px) { .bgrid__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .bgrid__list { grid-template-columns: 1fr; } }

.bcard__link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.bcard__link::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.bcard__link:hover {
  transform: translateY(-6px);
  border-color: rgba(60, 197, 218, 0.45);
  background: rgba(17, 40, 72, 0.7);
  box-shadow: 0 18px 50px rgba(2, 10, 20, 0.5), 0 0 30px rgba(60, 197, 218, 0.07);
}
.bcard__link:hover::after { opacity: 1; }
.bcard__link:hover .bcard__cover:not(.bcard__cover--empty) img { transform: scale(1.05); }
.bcard__cover { aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line); }
.bcard__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px 24px;
}
.bcard__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.bcard__excerpt {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bcard__more {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.bcard__more::after { content: '→'; display: inline-block; margin-left: 6px; transition: transform 0.25s ease; }
.bcard__link:hover .bcard__more::after { transform: translateX(4px); }

/* ---------- Paginación ---------- */
.bpager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 26px 0 10px;
}
.bpager > :last-child { justify-self: end; }
.bpager__prev::after { content: none; }
.bpager__prev::before { content: '←'; color: var(--cyan); }
.bpager__count {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* ---------- Estado vacío ---------- */
.bempty { padding: 30px 0 30px; }
.bempty__box {
  text-align: center;
  padding: 70px 30px;
  border-radius: var(--radius);
  border: 1px dashed rgba(60, 197, 218, 0.3);
  background: radial-gradient(60% 90% at 50% 0%, rgba(60, 197, 218, 0.1), transparent 70%), rgba(7, 18, 38, 0.5);
}
.bempty__box img { width: 72px; margin: 0 auto 26px; opacity: 0.85; filter: drop-shadow(0 6px 30px rgba(60, 197, 218, 0.35)); }
.bempty__box h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 32px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.bempty__box p { color: var(--muted); max-width: 440px; margin: 0 auto 28px; }

/* ---------- Artículo ---------- */
.bpreview {
  position: sticky;
  top: 65px;
  z-index: 30;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 11px 20px;
  background: rgba(255, 196, 77, 0.12);
  border-bottom: 1px solid rgba(255, 196, 77, 0.35);
  color: #ffd27a;
  font-size: 13px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.bpreview a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.bpost__head { max-width: 900px; padding-top: 88px; padding-bottom: 40px; }
.bpost__meta { flex-wrap: wrap; }
.bpost__meta i { margin: 0 2px; }
.bpost__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 24px;
  overflow-wrap: break-word;
}
.bpost__lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 30px;
}
.bpost__byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.bpost__byline strong { display: block; font-family: var(--font-display); font-size: 14.5px; font-weight: 600; }
.bpost__byline small { display: block; font-size: 12.5px; color: var(--muted); }
.bpost__avatar {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(60, 197, 218, 0.35);
  background: radial-gradient(circle at 30% 20%, rgba(60, 197, 218, 0.3), rgba(7, 18, 38, 0.9));
  flex: none;
}
.bpost__avatar img { width: 24px; }

.bpost__cover {
  position: relative;
  margin: 0 auto;
  max-width: 1180px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 60px rgba(60, 197, 218, 0.06);
}
.bpost__cover img { width: 100%; max-height: 640px; object-fit: cover; }

.bpost__body {
  width: min(740px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 40px;
  font-size: 17.5px;
  line-height: 1.8;
  color: #c9d9e7;
}
.bpost__body > p { margin: 0 0 1.35em; }
.bpost__body > p:first-child::first-letter {
  float: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.6em;
  line-height: 0.82;
  margin: 0.08em 0.1em 0 0;
  color: var(--cyan);
}
.bpost__body strong { color: var(--text); font-weight: 600; }
.bpost__body em { font-style: italic; }
.bpost__body a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(60, 197, 218, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}
.bpost__body a:hover { text-decoration-color: var(--cyan); }
.bpost__body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--text);
  margin: 2.1em 0 0.7em;
  scroll-margin-top: 90px;
}
.bpost__body h2::before {
  content: '';
  display: block;
  width: 34px; height: 2px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.bpost__body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.3;
  color: var(--text);
  margin: 1.8em 0 0.6em;
  scroll-margin-top: 90px;
}
.bpost__body > :first-child { margin-top: 0; }

.bpost__figure { margin: 2.2em 0; }
.bpost__figure img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.bpost__figure--wide {
  width: min(1100px, calc(100vw - 48px));
  margin-left: 50%;
  transform: translateX(-50%);
}
.bpost__figure figcaption {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}
.bpost__figure--wide figcaption { width: min(740px, 100%); margin-inline: auto; }
.bpost__figure figcaption::before {
  content: '';
  width: 18px; height: 1px;
  margin-top: 0.8em;
  background: var(--cyan);
  flex: none;
}

.bpost__share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.bpost__share > span {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 6px;
}
.bpost__share a, .bpost__share button {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cyan-soft);
  color: var(--cyan);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.bpost__share a:hover, .bpost__share button:hover {
  border-color: rgba(60, 197, 218, 0.55);
  background: rgba(60, 197, 218, 0.2);
  transform: translateY(-2px);
}
.bpost__share svg { width: 17px; height: 17px; }
.bpost__copy em {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 4px);
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--cyan);
  color: #04121f;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.bpost__copy.is-copied em { opacity: 1; transform: translate(-50%, 0); }

.bgrid--more { padding-top: 56px; border-top: 1px solid var(--line); }

@media (max-width: 720px) {
  .bhero { padding: 64px 0 24px; }
  .bpost__head { padding-top: 56px; }
  .bpost__body { font-size: 16.5px; padding-top: 44px; }
  .bpreview { top: 61px; }
}
