/* =========================================================
   Javier Martínez Daza · Valledupar a otro nivel
   ========================================================= */
:root {
  --navy: #002e66;
  --navy-700: #0a3b7c;
  --navy-900: #0e2340;
  --deep: #00106e;
  --sky: #00a9e1;
  --sky-300: #6cc4f5;
  --ink: #2a3a52;
  --muted: #6b7a90;
  --mist: #f1f3f6;
  --line: #dddddb;
  --white: #fff;
  --radius: 22px;
  --shadow: 0 18px 50px -18px rgba(0, 32, 90, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cond: 'Barlow Condensed', 'Poppins', sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1180px, 100% - var(--gutter) * 2); margin-inline: auto; }

.kicker {
  margin: 0;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--sky);
  font-size: clamp(.78rem, 1.6vw, 1.35rem);
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  border: 0; border-radius: 999px;
  padding: .85em 1.7em;
  font-weight: 500; font-size: .95rem; text-decoration: none;
  background: var(--navy); color: #fff;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s;
  box-shadow: 0 10px 24px -12px rgba(0, 46, 102, .7);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(0, 46, 102, .8); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 1.1em; height: 1.1em; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--sky { background: var(--sky); box-shadow: 0 10px 28px -10px rgba(0, 169, 225, .8); }
.btn--ghost { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .3); box-shadow: none; backdrop-filter: blur(6px); }

/* ---------- navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  color: #fff;
  transition: background .4s, padding .4s, box-shadow .4s;
}
.nav.is-scrolled {
  background: rgba(0, 24, 80, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding-block: 9px;
  box-shadow: 0 8px 30px -14px rgba(0, 10, 40, .6);
}
.brand { text-decoration: none; font-weight: 300; font-size: clamp(1.02rem, 1.8vw, 1.6rem); letter-spacing: -.01em; white-space: nowrap; }
.brand b { font-weight: 800; }
.pill {
  position: relative; display: flex; gap: 2px;
  padding: 5px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px);
}
.pill a {
  position: relative; z-index: 1;
  padding: .55em 1.15em; border-radius: 999px;
  font-size: .84rem; text-decoration: none; white-space: nowrap;
  transition: color .35s;
}
.pill a.is-active { color: var(--navy-900); font-weight: 500; }
.pill-ind {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0;
  background: #fff; border-radius: 999px;
  transition: transform .5s var(--ease), width .5s var(--ease);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}
.burger { display: none; }

@media (max-width: 860px) {
  .pill {
    position: fixed; top: 64px; right: var(--gutter); left: var(--gutter);
    flex-direction: column; gap: 4px; padding: 8px;
    border-radius: 20px;
    background: rgba(0, 24, 80, .94);
    border-color: rgba(255, 255, 255, .15);
    backdrop-filter: blur(16px);
    opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none;
    transition: opacity .3s, transform .4s var(--ease);
  }
  .pill.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .pill a { padding: .85em 1.1em; font-size: 1rem; }
  .pill a.is-active { background: #fff; }
  .pill-ind { display: none; }
  .burger {
    display: grid; place-items: center;
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08);
    color: #fff; backdrop-filter: blur(8px);
  }
  .burger span, .burger span::before, .burger span::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
    position: relative; transition: transform .35s var(--ease), background .2s;
  }
  .burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
  .burger span::before { top: -6px; }
  .burger span::after { top: 6px; }
  .burger[aria-expanded="true"] span { background: transparent; }
  .burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero { position: relative; background: #fff; }
.stage {
  position: relative; overflow: hidden;
  width: 100%; aspect-ratio: 1.6; max-height: max(86svh, 44vw); min-height: 420px;
  background: linear-gradient(90deg, #000475 0%, #002e74 50%, #003981 100%);
}
.stage-inner {
  position: absolute; left: 50%;
  /* en pantallas anchas y bajas recorta solo un poco arriba y el resto abajo, para no cortar la cabeza */
  top: clamp(-4vw, calc(max(86svh, 44vw) - 62.5vw), 0px);
  width: 100%; aspect-ratio: 1.6;
  transform: translateX(-50%);
}
.layer { position: absolute; will-change: transform; user-select: none; -webkit-user-drag: none; }
.l-bg  { left: 0; top: 11.11%; width: 100%; height: 88.89%; object-fit: cover;
         -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%); mask-image: linear-gradient(to bottom, transparent 0, #000 7%); }
.l-acc { left: 56.94%; top: 26.89%; width: 47.5%; height: 75.67%; }
.l-per { left: 6.667%; top: 9.33%; width: 104.375%; height: 94%; }
.l-fade { position: absolute; inset: auto 0 -1px 0; height: 34%; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, .75) 45%, #fff 78%); pointer-events: none; }
.l-shine {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(40% 50% at var(--mx, 50%) var(--my, 40%), rgba(255, 255, 255, .5), transparent 70%);
  transition: opacity .6s; opacity: .8;
}
.hero-copy { position: relative; z-index: 2; text-align: center; margin-top: -7%; padding-bottom: clamp(18px, 3vw, 40px); }
.hero h1 {
  margin: .15em 0 .3em;
  font-weight: 800; color: var(--navy);
  font-size: clamp(2.2rem, 6.6vw, 6.4rem);
  line-height: 1.02; letter-spacing: -.025em;
}
.hero h1 .w { display: inline-block; }
.tricolor { display: flex; width: min(560px, 62%); height: 5px; margin: 0 auto; border-radius: 3px; overflow: hidden; }
.tricolor i { flex: 1; transform-origin: left; }
.tricolor i:nth-child(1) { background: var(--sky); }
.tricolor i:nth-child(2) { background: var(--line); }
.tricolor i:nth-child(3) { background: var(--navy); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 14px; translate: -50% 0; z-index: 3;
  width: 26px; height: 40px; border-radius: 14px; border: 2px solid rgba(0, 46, 102, .35);
  display: none;
}
.scroll-cue::after { content: ''; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--navy); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 860px) {
  .stage { aspect-ratio: auto; height: calc(150vw / 1.6); max-height: none; }
  .stage-inner { width: 150vw; top: 0; }
  .hero-copy { margin-top: -15vw; }
  .hero h1 .w { display: block; }
  .tricolor { width: 70%; height: 4px; }
}

/* intro */
.js .l-bg { opacity: 0; transform: scale(1.08); }
.js .l-acc { opacity: 0; }
.js .l-per { opacity: 0; }
.js .hero-copy .kicker, .js .hero h1 .w { opacity: 0; transform: translateY(24px); }
.js .tricolor i { transform: scaleX(0); }
.ready .l-bg { opacity: 1; transform: scale(1); transition: opacity 1.2s ease, transform 2.2s var(--ease); }
.ready .l-acc { opacity: 1; transition: opacity 1s .45s ease; }
.ready .l-per { opacity: 1; transition: opacity 1s .2s ease; }
.ready .hero-copy .kicker, .ready .hero h1 .w { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.ready .hero-copy .kicker { transition-delay: .55s; }
.ready .hero h1 .w:nth-child(1) { transition-delay: .7s; }
.ready .hero h1 .w:nth-child(2) { transition-delay: .82s; }
.ready .tricolor i { transform: scaleX(1); transition: transform .8s var(--ease); }
.ready .tricolor i:nth-child(1) { transition-delay: 1s; }
.ready .tricolor i:nth-child(2) { transition-delay: 1.12s; }
.ready .tricolor i:nth-child(3) { transition-delay: 1.24s; }

/* reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- quién es ---------- */
.about { position: relative; padding-top: clamp(10px, 2vw, 30px); overflow-x: clip; }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(20px, 4vw, 60px); align-items: center; }
.about-photo { position: relative; align-self: end; height: clamp(300px, 46vw, 600px); }
.about-photo::before {
  content: ''; position: absolute; inset: 18% -10% -5% -25%;
  background: radial-gradient(closest-side, rgba(0, 169, 225, .55), rgba(108, 196, 245, .25) 55%, transparent 100%);
  filter: blur(10px);
}
.about-photo img { position: relative; height: 100%; width: auto; margin-inline: auto; object-fit: contain; object-position: bottom; }
.about-text { padding-bottom: clamp(30px, 6vw, 90px); max-width: 600px; }
.about-text h2 { margin: .25em 0 .5em; color: var(--navy); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em; }
.about-text p { margin: 0 0 1em; font-weight: 300; font-size: clamp(.95rem, 1.35vw, 1.2rem); line-height: 1.55; }
.more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.more > div { overflow: hidden; }
.more.open { grid-template-rows: 1fr; }
.more-toggle svg { transition: transform .4s var(--ease); }
.more-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.more-toggle:hover svg { transform: none; }
.more-toggle[aria-expanded="true"]:hover svg { transform: rotate(180deg); }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr 40%; gap: 6px 14px; align-items: end; }
  .about-photo { grid-column: 2; grid-row: 1; height: 230px; }
  .about-head { grid-column: 1; grid-row: 1; align-self: center; }
  .about-text { grid-column: 1 / -1; padding-bottom: 28px; }
  .about-photo::before { inset: 20% -30% 0 -20%; }
}
@media (max-width: 860px) {
  .about-copy { display: contents; }
  .about-head h2 { margin-bottom: 0; }
}
@media (min-width: 861px) {
  .about-copy { padding-bottom: calc(clamp(20px, 8vw, 120px) + 34px); } /* deja libre el espacio que cubre la tarjeta de abajo */
  .about-text { padding-bottom: 0; }
}

/* ---------- junto es mejor ---------- */
.together { position: relative; z-index: 3; margin-top: clamp(-120px, -8vw, -20px); }
.together-card {
  background: var(--mist); border-radius: clamp(26px, 4vw, 44px);
  padding: clamp(22px, 4vw, 52px) clamp(14px, 5vw, 70px) clamp(22px, 4vw, 54px);
  box-shadow: 0 -20px 50px -40px rgba(0, 46, 102, .5);
}
.script-title { display: block; width: min(420px, 78%); margin: 0 auto clamp(16px, 3vw, 34px); color: var(--navy); }
.script-title svg { width: 100%; height: auto; display: block; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 22px); }
.g-item {
  position: relative; overflow: hidden; border: 0; padding: 0;
  border-radius: 20px; aspect-ratio: 488 / 771; background: #dfe6ee;
  box-shadow: 0 14px 30px -18px rgba(0, 30, 80, .55);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.g-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 20, 60, .55), transparent 45%);
  opacity: 0; transition: opacity .5s;
}
.g-zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 1;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .9); color: var(--navy);
  transform: scale(.6); opacity: 0; transition: transform .45s var(--ease), opacity .3s;
}
.g-zoom svg { width: 18px; height: 18px; }
@media (hover: hover) {
  .g-item:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 26px 40px -20px rgba(0, 30, 80, .6); }
  .g-item:nth-child(2):hover { transform: translateY(-6px) rotate(.6deg); }
  .g-item:hover img { transform: scale(1.06); }
  .g-item:hover::after { opacity: 1; }
  .g-item:hover .g-zoom { transform: scale(1); opacity: 1; }
}
.dots { display: none; justify-content: center; gap: 6px; margin-top: 14px; }
.dots i { width: 7px; height: 7px; border-radius: 9px; background: #c5d0dd; transition: width .35s var(--ease), background .3s; }
.dots i.on { width: 22px; background: var(--navy); }

@media (max-width: 700px) {
  .together { margin-top: 0; }
  .together-card { border-radius: 28px; padding-inline: 0; }
  .gallery {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 4px 18px 10px; gap: 12px; scrollbar-width: none;
    scroll-padding-inline: 18px;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .g-item { flex: 0 0 56%; scroll-snap-align: start; }
  .g-zoom { opacity: 1; transform: scale(.85); }
  .dots { display: flex; }
}

/* ---------- prensa ---------- */
.press {
  position: relative; color: #fff;
  background: #00104b url('/img/prensa-bg.webp') center bottom / cover no-repeat;
  padding: clamp(110px, 12vw, 170px) 0 clamp(60px, 9vw, 130px);
  margin-top: clamp(-80px, -6vw, -40px);
  overflow: hidden;
}
.press-inner { width: min(680px, 100% - var(--gutter) * 2); margin-inline: auto; position: relative; }
.press-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.press h2 { margin: 0; color: var(--line); font-weight: 800; font-size: clamp(2.6rem, 6.5vw, 5.9rem); line-height: 1; letter-spacing: -.02em; }
.press-count { font-size: .82rem; color: rgba(255, 255, 255, .7); padding-bottom: .6em; white-space: nowrap; }
.press-rule { position: relative; height: 3px; margin: 14px 0 18px; background: rgba(255, 255, 255, .18); border-radius: 3px; overflow: hidden; }
.press-rule::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 26%; background: #fff; border-radius: 3px; animation: rule 3.2s var(--ease) infinite alternate; }
@keyframes rule { to { left: 74%; } }
.press-cta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- cuenta regresiva ---------- */
.countdown {
  position: relative; text-align: center; overflow: hidden;
  padding: clamp(40px, 6vw, 76px) 0 clamp(44px, 6vw, 80px);
  background:
    radial-gradient(60% 55% at 50% 105%, rgba(0, 120, 200, .55), transparent 70%),
    radial-gradient(40% 70% at 15% 30%, rgba(108, 196, 245, .35), transparent 70%),
    linear-gradient(180deg, #eef3f8, #d9e9f5);
}
.countdown .kicker { color: var(--navy); font-size: clamp(.78rem, 1.5vw, 1.25rem); }
.cd-title {
  margin: .1em 0 .55em; font-family: var(--cond); font-style: italic; text-transform: uppercase;
  color: var(--navy); font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1; font-weight: 300; letter-spacing: -.01em;
}
.cd-title b { font-weight: 700; }
.cd-title { margin-bottom: .05em; }
.cd-sub {
  margin: 0 0 clamp(18px, 3vw, 34px); font-family: var(--cond); font-style: italic; font-weight: 300;
  text-transform: uppercase; color: var(--navy); font-size: clamp(1.25rem, 3.2vw, 2.4rem); line-height: 1.1;
}
.cd-sub b { font-weight: 700; }
.cd-grid { display: flex; justify-content: center; gap: clamp(8px, 2vw, 22px); }
.cd-box {
  width: clamp(72px, 15vw, 196px);
  padding: clamp(10px, 2vw, 22px) 4px clamp(10px, 1.6vw, 18px);
  border-radius: clamp(14px, 2vw, 20px);
  background: rgba(255, 255, 255, .45);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 20px 40px -24px rgba(0, 46, 102, .5), inset 0 1px 0 rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.cd-num {
  display: block; height: 1em; overflow: hidden; position: relative;
  font-family: var(--cond); font-weight: 400; color: var(--navy);
  font-size: clamp(2.3rem, 8.4vw, 7.2rem); line-height: 1; font-variant-numeric: tabular-nums;
}
.cd-num span { display: block; }
.cd-num.tick span { animation: tick .5s var(--ease); }
@keyframes tick { from { transform: translateY(-60%); opacity: 0; } to { transform: none; opacity: 1; } }
.cd-lab { display: block; margin-top: clamp(6px, 1.2vw, 14px); font-size: clamp(.55rem, 1vw, .72rem); font-weight: 500; letter-spacing: .28em; color: var(--navy-900); }
.cd-done { font-family: var(--cond); font-style: italic; font-weight: 700; color: var(--navy); font-size: clamp(2rem, 6vw, 4rem); }

/* ---------- footer ---------- */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .8); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: clamp(28px, 4vw, 44px) 0; }
.footer .brand { color: #fff; font-size: 1.25rem; }
.footer small { display: block; font-size: .78rem; color: rgba(255, 255, 255, .55); margin-top: 2px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
  transition: background .3s, transform .35s var(--ease), color .3s;
}
.socials a:hover { background: var(--sky); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.tri-bar { display: flex; height: 8px; }
.tri-bar i { flex: 1; }
.tri-bar i:nth-child(1) { background: var(--sky); }
.tri-bar i:nth-child(2) { background: var(--line); }
.tri-bar i:nth-child(3) { background: var(--navy); }
@media (max-width: 600px) {
  .footer-inner { flex-direction: column; text-align: center; padding: 26px 0 22px; gap: 14px; }
  .socials { justify-content: center; }
}

/* =========================================================
   Publicaciones (compartido: landing, /prensa, /admin)
   ========================================================= */
.post {
  position: relative; background: #fff; color: var(--ink);
  border-radius: 20px; padding: 16px 16px 10px;
  box-shadow: 0 20px 50px -26px rgba(0, 20, 70, .45);
  border: 1px solid rgba(0, 46, 102, .07);
  text-align: left;
}
.post-head { display: flex; align-items: center; gap: 10px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: #dfeefa; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0, 169, 225, .35); }
.post-who { min-width: 0; line-height: 1.25; flex: 1; }
.post-name { font-weight: 600; font-size: .95rem; color: var(--navy-900); display: flex; align-items: center; gap: 6px; }
.post-meta { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-meta a { text-decoration: none; }
.post-meta a:hover { text-decoration: underline; }
.pin-badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 600;
  color: var(--navy); background: #e3f3fc; padding: 3px 8px; border-radius: 999px; letter-spacing: .02em;
}
.pin-badge svg { width: 11px; height: 11px; }
.post-text { margin: 12px 2px 4px; font-size: .96rem; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.post-text a { color: var(--sky); text-decoration: none; font-weight: 500; }
.post-text a:hover { text-decoration: underline; }
.post-text .tag { color: var(--sky); font-weight: 500; }
.post-text.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { border: 0; background: none; padding: 0; margin: 0 2px; color: var(--sky); font-weight: 600; font-size: .9rem; }
.post-media { margin-top: 12px; display: grid; gap: 4px; border-radius: 16px; overflow: hidden; }
.post-media button { border: 0; padding: 0; position: relative; background: #e9eef4; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.post-media button:hover img { transform: scale(1.03); }
.post-media.n1 button { max-height: 540px; }
.post-media.n1 img { max-height: 540px; }
.post-media.n2 { grid-template-columns: 1fr 1fr; aspect-ratio: 16 / 10; }
.post-media.n3 { grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 11; }
.post-media.n3 button:first-child { grid-row: span 2; }
.post-media.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 11; }
.more-count { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 20, 60, .55); color: #fff; font-size: 1.6rem; font-weight: 600; }
.post-embed { margin-top: 12px; }
.post-embed iframe { width: 100%; border: 0; border-radius: 14px; display: block; background: #eef2f6; }
.post-embed .twitter-tweet, .post-embed .instagram-media, .post-embed .tiktok-embed { margin: 0 auto !important; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .3s, transform .6s var(--ease); }
.yt:hover img { opacity: 1; transform: scale(1.03); }
.yt .play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; border-radius: 14px; background: #f00; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .4); }
.yt .play::before { content: ''; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 4px; }
.link-card {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  margin-top: 10px; padding: 10px 12px; border-radius: 14px;
  border: 1px solid #e3e8ef; background: #f7f9fc; transition: background .25s, border-color .25s;
}
.link-card:hover { background: #eef5fb; border-color: #cfe3f3; }
.link-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: #fff; }
.link-ico svg { width: 17px; height: 17px; }
.link-txt { min-width: 0; line-height: 1.3; }
.link-txt b { display: block; font-size: .85rem; color: var(--navy-900); font-weight: 600; }
.link-txt span { display: block; font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 6px; border-top: 1px solid #edf1f5; }
.act {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: none;
  color: var(--muted); font-size: .8rem; padding: 8px 10px; border-radius: 999px; text-decoration: none;
  transition: background .2s, color .2s;
}
.act:hover { background: #eef5fb; color: var(--navy); }
.act svg { width: 17px; height: 17px; }

.skeleton { background: linear-gradient(90deg, #eef2f6 25%, #f7f9fb 50%, #eef2f6 75%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }
.post.is-loading .skeleton { height: 12px; margin: 10px 0; }

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(2, 10, 30, .92); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.lb.open { opacity: 1; pointer-events: auto; }
.lb-track { display: flex; width: 100%; height: 100%; transition: transform .45s var(--ease); touch-action: pan-y; }
.lb-slide { flex: 0 0 100%; display: grid; place-items: center; padding: 60px 12px; }
.lb-slide img { max-width: 100%; max-height: 100%; border-radius: 12px; object-fit: contain; box-shadow: 0 30px 80px -20px #000; }
.lb-btn {
  position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0;
  display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .12);
  transition: background .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; translate: 0 -50%; }
.lb-next { right: 14px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; top: 24px; left: 50%; translate: -50% 0; color: rgba(255, 255, 255, .75); font-size: .85rem; letter-spacing: .1em; }
@media (max-width: 600px) { .lb-prev, .lb-next { display: none; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 120; translate: -50% 20px;
  background: var(--navy-900); color: #fff; padding: 11px 18px; border-radius: 999px;
  font-size: .88rem; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
  opacity: 0; transition: opacity .3s, translate .4s var(--ease); pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; translate: -50% 0; }
.toast.err { background: #b3261e; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
