/* =====================================================================
   NUEVA GENERACIÓN — Sistema de diseño (moderno · corporativo · claro)
   Paleta oficial como acentos · Poppins central · Lora para lectura.
   ===================================================================== */

/* ------------------------------ TOKENS ------------------------------ */
:root {
  /* Paleta oficial */
  --navy:    #080838;
  --navy-2:  #14143f;
  --azul:    #2563EB;
  --celeste: #6EC1E4;
  --celeste-d: #2596be;
  --violeta: #7C3AED;
  --purpura: #9333EA;
  --naranja: #F97316;
  --amarillo:#FBBF24;
  --verde:   #10B981;
  --rosa:    #BE3FA0;

  /* Roles (tema claro) */
  --bg:       #FFFFFF;
  --bg-soft:  #F5F7FC;
  --bg-tint:  #EEF2FB;
  --surface:  #FFFFFF;
  --ink:      #0c0c34;   /* títulos */
  --ink-body: #2b3052;   /* texto */
  --ink-soft: #595f80;   /* secundario */
  --ink-mute: #8a90ad;   /* terciario */
  --line:     #e7eaf3;
  --line-2:   #d8dcea;

  /* Marca */
  --brand:    var(--violeta);
  --brand-d:  #6a2bd0;
  --grad-brand: linear-gradient(90deg, var(--celeste), var(--violeta) 55%, var(--purpura));

  /* Tipografía */
  --font-sans: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-serif:'Lora', Georgia, 'Times New Roman', serif;

  /* Radios */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;

  /* Sombras suaves */
  --sh-xs: 0 1px 2px rgba(12,12,52,.05);
  --sh-sm: 0 1px 3px rgba(12,12,52,.06), 0 1px 2px rgba(12,12,52,.04);
  --sh-md: 0 8px 26px rgba(12,12,52,.08);
  --sh-lg: 0 20px 50px rgba(12,12,52,.12);

  /* Layout */
  --maxw: 1180px;
  --maxw-narrow: 720px;
  --nav-h: 72px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ------------------------------ RESET ------------------------------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,svg,video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
input,textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--violeta); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(124,58,237,.16); }

/* ------------------------------ TIPOGRAFÍA ------------------------- */
h1,h2,h3,h4 { font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.display { font-size: clamp(2.4rem,5.2vw,4rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
.h-section { font-size: clamp(1.8rem,3.4vw,2.7rem); font-weight: 700; letter-spacing: -.03em; }
.lead { font-size: clamp(1.05rem,1.5vw,1.25rem); color: var(--ink-soft); line-height: 1.6; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--violeta);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--violeta); }
.eyebrow.center::before { display: none; }
.gradient-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------ LAYOUT ----------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px,5vw,40px); }
.section { padding-block: clamp(56px,8vw,104px); position: relative; }
.section--tight { padding-block: clamp(40px,5vw,68px); }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }
.center { text-align: center; }
.narrow { max-width: var(--maxw-narrow); margin-inline: auto; }
.grid { display: grid; gap: clamp(18px,2.2vw,28px); }
.cols-2 { grid-template-columns: repeat(2,1fr); }
.cols-3 { grid-template-columns: repeat(3,1fr); }
.cols-4 { grid-template-columns: repeat(4,1fr); }
.section-head { max-width: 720px; margin-bottom: clamp(30px,4vw,50px); }
.section-head.center { margin-inline: auto; }
.section-head .lead { margin-top: 14px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(26px,3vw,40px); }

/* ------------------------------ NAVBAR ----------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px) saturate(140%); border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--sh-sm); }
.nav__inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px,5vw,40px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 15px; border-radius: var(--r-pill);
  font-size: .94rem; font-weight: 500; color: var(--ink-soft); transition: color .2s, background .2s; white-space: nowrap;
}
.nav__link:hover { color: var(--ink); background: var(--bg-soft); }
.nav__link.active { color: var(--violeta); }
.nav__dd { position: relative; display: inline-flex; align-items: center; }
.nav__dd-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 240px; padding: 8px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line);
  box-shadow: var(--sh-md); opacity: 0; visibility: hidden; transition: all .2s var(--ease);
}
.nav__dd:hover .nav__dd-menu, .nav__dd:focus-within .nav__dd-menu { opacity: 1; visibility: visible; transform: translateX(-50%); }
.nav__dd-item { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 9px; transition: background .18s; }
.nav__dd-item:hover { background: var(--bg-soft); }
.nav__dd-item .ic { color: var(--violeta); margin-top: 2px; flex: none; }
.nav__dd-item b { display: block; font-size: .9rem; color: var(--ink); font-weight: 600; }
.nav__dd-item span { font-size: .78rem; color: var(--ink-mute); }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 38px; height: 38px; flex: none; border-radius: 10px; }
.logo__txt { display: flex; flex-direction: column; line-height: 1; }
.logo__txt b { font-size: 1rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.logo__txt small { font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--violeta); margin-top: 3px; }

.nav__burger { display: none; width: 42px; height: 42px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); }
.nav__burger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav.open .nav__burger span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav.open .nav__burger span:nth-child(2){ opacity: 0; }
.nav.open .nav__burger span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------ BUTTONS ---------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: var(--r-pill);
  font-weight: 600; font-size: .94rem; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--violeta); color: #fff; box-shadow: 0 6px 16px rgba(124,58,237,.22); }
.btn--primary:hover { background: var(--brand-d); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(124,58,237,.28); }
.btn--accent { background: var(--naranja); color: #fff; box-shadow: 0 6px 16px rgba(249,115,22,.22); }
.btn--accent:hover { transform: translateY(-2px); filter: brightness(1.03); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); background: #15154a; }
.btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--violeta); color: var(--violeta); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--violeta); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn--sm { height: 38px; padding: 0 15px; font-size: .85rem; }
.btn--lg { height: 54px; padding: 0 28px; font-size: 1.02rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------ BADGES / CHIPS --------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 600; letter-spacing: .02em; background: var(--bg-tint); color: var(--violeta);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--live { color: #fff; background: var(--verde); }
.badge--live .dot { background: #fff; animation: pulse 1.4s infinite; }
.badge--soon { color: #7a4a00; background: #FEF0CE; }
.badge--open { color: #06506a; background: #d9f1fa; }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(255,255,255,.6);} 50%{ box-shadow: 0 0 0 5px rgba(255,255,255,0);} }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  height: 38px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: var(--r-pill);
  font-size: .85rem; font-weight: 500; background: #fff; border: 1px solid var(--line-2); color: var(--ink-soft);
  transition: all .18s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--violeta); }
.chip.active { background: var(--violeta); border-color: var(--violeta); color: #fff; }

/* ------------------------------ CARDS / FEATURES ------------------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(22px,2.4vw,28px);
  box-shadow: var(--sh-sm); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--line-2); }
.card--flat { box-shadow: none; }
.card--flat:hover { transform: none; box-shadow: var(--sh-sm); }
.card__icon {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--violeta); margin-bottom: 16px;
}
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .95rem; }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--violeta); font-weight: 600; font-size: .9rem; }
.link-more svg { transition: transform .2s; }
.link-more:hover svg { transform: translateX(4px); }

/* ------------------------------ HERO ------------------------------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(40px,7vw,84px)); padding-bottom: clamp(48px,7vw,96px); background: var(--bg-tint); overflow: hidden; }
.hero::after { content:""; position:absolute; left:0; right:0; bottom:0; height:1px; background: var(--line); }
.hero__accent { position: absolute; top: -120px; right: -80px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.10), transparent 68%); pointer-events: none; }
.hero__accent.two { top: auto; bottom: -160px; right: auto; left: -120px; width: 380px; height: 380px; background: radial-gradient(circle, rgba(110,193,228,.16), transparent 68%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px,5vw,60px); align-items: center; }
.hero h1 { margin-bottom: 20px; color: var(--ink); }
.hero .lead { max-width: 54ch; }
.hero__cta { margin-top: 30px; }
.hero__meta { margin-top: 34px; display: flex; gap: 30px; flex-wrap: wrap; }
.hero__meta .stat b { display: block; font-size: 1.7rem; font-weight: 700; color: var(--ink); }
.hero__meta .stat span { font-size: .82rem; color: var(--ink-mute); }

/* ------------------------------ REVEAL ----------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1{transition-delay:.06s}.reveal.d2{transition-delay:.12s}.reveal.d3{transition-delay:.18s}
.reveal.d4{transition-delay:.24s}.reveal.d5{transition-delay:.30s}.reveal.d6{transition-delay:.36s}

/* ------------------------------ VERSE ------------------------------ */
.verse {
  position: relative; padding: 20px 24px; border-radius: var(--r-md);
  background: var(--bg-soft); border-left: 3px solid var(--celeste-d);
  font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: var(--ink-body);
}
.verse cite { display: block; margin-top: 10px; font-style: normal; font-family: var(--font-sans); font-size: .8rem; font-weight: 600; color: var(--violeta); letter-spacing: .02em; }

/* ------------------------------ STATS / TILES ---------------------- */
.stat-tile { padding: 22px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); text-align: center; box-shadow: var(--sh-xs); }
.stat-tile b { font-size: 2rem; font-weight: 700; display: block; color: var(--ink); }
.stat-tile span { font-size: .82rem; color: var(--ink-mute); }

/* ------------------------------ POST / MEDIA CARD ------------------ */
.post {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--line-2); }
.post__cover { aspect-ratio: 16/10; position: relative; display: grid; place-items: center; overflow: hidden; background: var(--bg-soft); }
.post__cover img { width: 100%; height: 100%; object-fit: cover; }
.post__cover .ph { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; }
.post__cover .ph .ic { opacity: .9; }
.post__cat { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 11px; border-radius: var(--r-pill); font-size: .7rem; font-weight: 600; color: #fff; }
.post__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.post__body h3 { font-size: 1.1rem; line-height: 1.3; margin-bottom: 9px; color: var(--ink); transition: color .2s; }
.post:hover .post__body h3 { color: var(--violeta); }
.post__excerpt { font-size: .9rem; color: var(--ink-soft); flex: 1; }
.post__meta { display: flex; align-items: center; gap: 8px; font-size: .76rem; color: var(--ink-mute); margin-top: 16px; }
.post__meta .av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .66rem; font-weight: 700; color: #fff; flex: none; }
.post--row { flex-direction: row; }
.post--row .post__cover { width: 42%; aspect-ratio: auto; flex: none; }
.post--row .post__body { padding: 20px 22px; }
@media (max-width: 560px){ .post--row { flex-direction: column; } .post--row .post__cover { width: 100%; aspect-ratio: 16/9; } }

/* duotono de portada por defecto (cuando no hay imagen) */
.ph-grad { background-image: linear-gradient(135deg, var(--c1,#7C3AED), var(--c2,#2563EB)); }

/* ====================================================================
   EDITORIAL / REVISTA
   ==================================================================== */
.mag-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.search { position: relative; min-width: 260px; flex: 1; max-width: 420px; }
.search input { width: 100%; height: 44px; padding: 0 16px 0 42px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: #fff; font-size: .92rem; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.search input:focus { outline: none; border-color: var(--violeta); box-shadow: 0 0 0 4px rgba(124,58,237,.1); }
.search input::placeholder { color: var(--ink-mute); }
.search .ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-mute); }

/* hero revista: 1 grande + lista */
.mag-hero { display: grid; grid-template-columns: 1.4fr .85fr; gap: 26px; align-items: stretch; }
.mag-feat { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; color: #fff; padding: 34px; box-shadow: var(--sh-sm); }
.mag-feat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.mag-feat::after { content:""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,40,.05) 30%, rgba(8,8,40,.86)); z-index: 1; }
.mag-feat > * { position: relative; z-index: 2; }
.mag-feat h2 { color: #fff; font-size: clamp(1.5rem,2.4vw,2.2rem); max-width: 20ch; margin: 12px 0 10px; }
.mag-feat p { color: rgba(255,255,255,.86); max-width: 46ch; font-size: .96rem; }
.mag-feat .post__cat { position: static; display: inline-block; }
.mag-feat .meta { margin-top: 14px; font-size: .8rem; color: rgba(255,255,255,.82); display: flex; gap: 10px; align-items: center; }
.mag-side { display: grid; gap: 16px; }
.mag-mini { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; box-shadow: var(--sh-xs); transition: box-shadow .2s, transform .2s; }
.mag-mini:hover { box-shadow: var(--sh-sm); transform: translateY(-2px); }
.mag-mini__cover { aspect-ratio: 1; border-radius: 9px; overflow: hidden; display: grid; place-items: center; color: #fff; }
.mag-mini__cover img { width: 100%; height: 100%; object-fit: cover; }
.mag-mini h4 { font-size: .92rem; line-height: 1.3; margin-bottom: 5px; color: var(--ink); }
.mag-mini .m { font-size: .72rem; color: var(--ink-mute); }
.mag-mini .c { font-size: .72rem; font-weight: 600; }

/* layout principal con sidebar */
.mag-layout { display: grid; grid-template-columns: 1fr 320px; gap: 42px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--nav-h) + 18px); display: grid; gap: 22px; }
.side-box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background: #fff; box-shadow: var(--sh-xs); }
.side-box h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-mute); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.pop-list a { display: flex; gap: 13px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.pop-list a:first-child { border-top: none; padding-top: 0; }
.pop-list a:hover h5 { color: var(--violeta); }
.pop-list .rk { font-size: 1.3rem; font-weight: 700; color: var(--line-2); line-height: 1; min-width: 24px; }
.pop-list h5 { font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.32; margin-bottom: 4px; }
.pop-list .m { font-size: .73rem; color: var(--ink-mute); }
.side-cats { display: flex; flex-direction: column; gap: 2px; }
.side-cats a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 9px; font-size: .9rem; font-weight: 500; color: var(--ink-body); transition: background .18s; }
.side-cats a:hover { background: var(--bg-soft); }
.side-cats .dot { width: 9px; height: 9px; border-radius: 50%; }
.side-cats .n { font-size: .76rem; color: var(--ink-mute); }
.news-box { border-radius: var(--r-lg); padding: 24px; background: var(--navy); color: #fff; }
.news-box h4 { color: rgba(255,255,255,.7); }
.news-box p { font-size: .88rem; color: rgba(255,255,255,.8); margin: 8px 0 16px; }
.news-box .nf { display: flex; gap: 8px; }
.news-box input { flex: 1; height: 42px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: #fff; font-size: .88rem; }
.news-box input::placeholder { color: rgba(255,255,255,.55); }

/* paginación */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pager button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: .9rem; color: var(--ink-soft); transition: all .18s; }
.pager button:hover { border-color: var(--violeta); color: var(--violeta); }
.pager button.active { background: var(--violeta); border-color: var(--violeta); color: #fff; }
.pager button[disabled] { opacity: .4; cursor: not-allowed; }

/* podcast */
.pod { display: flex; gap: 16px; align-items: center; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-xs); transition: box-shadow .2s, transform .2s; }
.pod:hover { box-shadow: var(--sh-sm); transform: translateY(-2px); }
.pod__art { width: 64px; height: 64px; border-radius: 12px; flex: none; display: grid; place-items: center; color: #fff; }
.pod__main { flex: 1; min-width: 0; }
.pod__main .ep { font-size: .72rem; font-weight: 600; color: var(--violeta); }
.pod__main h4 { font-size: 1rem; margin: 3px 0 4px; color: var(--ink); }
.pod__main p { font-size: .82rem; color: var(--ink-mute); }
.pod__play { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-tint); color: var(--violeta); display: grid; place-items: center; flex: none; transition: background .2s, color .2s; }
.pod:hover .pod__play { background: var(--violeta); color: #fff; }

/* video / youtube */
.vid { border-radius: var(--r-md); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.vid:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.vid__thumb { aspect-ratio: 16/9; position: relative; display: grid; place-items: center; color: #fff; }
.vid__thumb img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.vid__thumb .play { position: relative; z-index: 2; width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--violeta); display: grid; place-items: center; box-shadow: var(--sh-md); transition: transform .2s; }
.vid:hover .vid__thumb .play { transform: scale(1.08); }
.vid__body { padding: 14px 16px 18px; }
.vid__body h4 { font-size: .98rem; color: var(--ink); line-height: 1.3; }
.vid__body .m { font-size: .76rem; color: var(--ink-mute); margin-top: 6px; }

/* ------------------------------ LECTOR (artículo) ------------------ */
.reader { max-width: 760px; margin-inline: auto; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-mute); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--violeta); }
.reader__head { margin-bottom: 30px; }
.reader__head .cat { font-weight: 600; font-size: .82rem; letter-spacing: .02em; text-transform: uppercase; }
.reader__head h1 { font-size: clamp(2rem,3.6vw,3rem); margin: 12px 0 16px; letter-spacing: -.025em; }
.reader__deck { font-size: 1.2rem; color: var(--ink-soft); line-height: 1.55; font-weight: 400; }
.reader__byline { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.reader__byline .av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; }
.reader__byline b { font-size: .95rem; color: var(--ink); }
.reader__byline .m { font-size: .8rem; color: var(--ink-mute); }
.reader__byline .share { margin-left: auto; display: flex; gap: 8px; }
.reader__byline .share a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink-soft); transition: all .2s; }
.reader__byline .share a:hover { border-color: var(--violeta); color: var(--violeta); }
.reader__cover { aspect-ratio: 21/9; border-radius: var(--r-lg); margin: 30px 0 36px; overflow: hidden; display: grid; place-items: center; color: #fff; box-shadow: var(--sh-sm); }
.reader__cover img { width: 100%; height: 100%; object-fit: cover; }
.reader__body { font-family: var(--font-serif); font-size: 1.16rem; line-height: 1.85; color: #2a2f50; }
.reader__body p { margin-bottom: 1.4em; }
.reader__body h2 { font-family: var(--font-sans); font-size: 1.55rem; margin: 1.5em 0 .5em; letter-spacing: -.02em; color: var(--ink); }
.reader__body h3 { font-family: var(--font-sans); font-size: 1.25rem; margin: 1.3em 0 .4em; color: var(--ink); }
.reader__body strong { color: var(--ink); font-weight: 600; }
.reader__body .verse { font-size: 1.1rem; margin: 1.5em 0; }
.reader__body .drop::first-letter { font-size: 3.2em; font-weight: 700; float: left; line-height: .78; padding: 6px 12px 0 0; color: var(--violeta); font-family: var(--font-sans); }
.reader__body ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1.4em; }
.reader__body ol { list-style: decimal; padding-left: 1.4em; margin: 0 0 1.4em; }
.reader__body li { margin-bottom: .45em; }
.reader__body img { width: 100%; border-radius: var(--r-md); margin: 1.6em 0; }
.reader__body .pull { font-family: var(--font-sans); font-weight: 600; font-size: 1.4rem; line-height: 1.4; color: var(--ink); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); padding: .65em 0; margin: 1.5em 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0; }
.tags a { padding: 6px 13px; border-radius: var(--r-pill); background: var(--bg-soft); border: 1px solid var(--line); font-size: .8rem; color: var(--ink-soft); transition: all .18s; }
.tags a:hover { border-color: var(--violeta); color: var(--violeta); }
.author-box { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: var(--r-lg); background: var(--bg-soft); border: 1px solid var(--line); }
.author-box .av { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 1.1rem; flex: none; }
.author-box b { font-size: 1rem; color: var(--ink); }
.author-box .role { font-size: .8rem; color: var(--violeta); font-weight: 600; }
.author-box p { font-size: .9rem; color: var(--ink-soft); margin-top: 6px; }

/* ====================================================================
   ÁRBOL / ESQUEMA DEL MINISTERIO
   ==================================================================== */
.tree { display: grid; gap: 0; justify-items: center; }
.tree__canopy { margin-bottom: 4px; }
.tier {
  width: 100%; max-width: 940px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: #fff; box-shadow: var(--sh-sm); padding: clamp(18px,2.2vw,26px); position: relative;
}
.tier__label { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--violeta); }
.tier__label .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-tint); }
.tier h3 { font-size: 1.2rem; margin: 8px 0 4px; }
.tier > p { color: var(--ink-soft); font-size: .92rem; }
.tier__items { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.tier__items span { padding: 7px 14px; border-radius: var(--r-pill); background: var(--bg-soft); border: 1px solid var(--line); font-size: .85rem; color: var(--ink-body); font-weight: 500; }
.tier--trunk { max-width: 640px; background: var(--navy); border-color: var(--navy); color: #fff; text-align: center; }
.tier--trunk .tier__label { color: var(--celeste); }
.tier--trunk .tier__label .ic { background: rgba(255,255,255,.12); }
.tier--trunk h3 { color: #fff; font-size: 1.5rem; }
.tier--trunk > p { color: rgba(255,255,255,.82); }
.tier--roots { max-width: 560px; background: var(--bg-soft); }
.tier--apex { max-width: 600px; background: var(--grad-brand); border: none; color: #fff; text-align: center; }
.tier--apex .tier__label { color: rgba(255,255,255,.92); }
.tier--apex .tier__label .ic { background: rgba(255,255,255,.18); }
.tier--apex h3 { color: #fff; font-size: 1.45rem; }
.tier--apex > p { color: rgba(255,255,255,.9); }
.tree__link { width: 2px; height: 34px; background: linear-gradient(var(--celeste-d), var(--violeta)); margin: 8px 0; border-radius: 2px; }
.tree-note { text-align: center; color: var(--ink-mute); font-size: .82rem; margin-top: 16px; }

/* valores */
.value { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; box-shadow: var(--sh-xs); transition: transform .2s var(--ease), box-shadow .2s; }
.value:hover { transform: translateY(-3px); box-shadow: var(--sh-sm); }
.value__num { font-size: 1.35rem; font-weight: 700; line-height: 1; min-width: 38px; color: var(--violeta); }
.value h4 { font-size: 1.05rem; margin-bottom: 4px; }
.value p { font-size: .88rem; color: var(--ink-soft); }

/* acordeón */
.acc { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; box-shadow: var(--sh-xs); }
.acc + .acc { margin-top: 10px; }
.acc__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; text-align: left; font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.acc__head .ix { font-size: .78rem; color: var(--violeta); font-weight: 700; letter-spacing: .08em; }
.acc__plus { width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--bg-soft); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s, color .3s; color: var(--violeta); font-size: 1.1rem; }
.acc.open .acc__plus { transform: rotate(135deg); background: var(--violeta); color: #fff; }
.acc__body { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.acc__body-inner { padding: 0 22px 20px; color: var(--ink-soft); font-size: .94rem; }
.acc__body-inner .refs { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.acc__body-inner .refs span { font-size: .74rem; padding: 4px 10px; border-radius: var(--r-pill); background: var(--bg-soft); color: var(--violeta); border: 1px solid var(--line); }

/* ------------------------------ ACTIVIDADES ------------------------ */
.act { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.act__ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; }
.act__main h3 { font-size: 1.1rem; margin-bottom: 4px; }
.act__main p { font-size: .9rem; color: var(--ink-soft); }
.act__main .when { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--violeta); font-weight: 600; margin-top: 8px; }
@media (max-width: 640px){ .act { grid-template-columns: auto 1fr; } .act__cta { grid-column: 1/-1; } }

/* serie expand */
.serie { overflow: hidden; padding: 0; }
.serie__head { display: grid; grid-template-columns: 150px 1fr; gap: 0; cursor: pointer; }
.serie__cover { aspect-ratio: 1; display: grid; place-items: center; color: #fff; font-family: var(--font-serif); font-size: 2rem; font-weight: 700; }
.serie__intro { padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; }
.serie__intro h3 { font-size: 1.25rem; margin-bottom: 5px; }
.serie__intro p { font-size: .9rem; color: var(--ink-soft); }
.serie__intro .meta { margin-top: 10px; display: flex; gap: 12px; font-size: .78rem; color: var(--ink-mute); }
.serie__parts { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.serie.open .serie__parts { border-top: 1px solid var(--line); }
.serie__part { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 15px 24px; border-top: 1px solid var(--line); transition: background .18s; }
.serie__part:first-child { border-top: none; }
.serie__part:hover { background: var(--bg-soft); }
.serie__part .pn { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-tint); color: var(--violeta); font-weight: 700; font-size: .82rem; flex: none; }
.serie__part b { font-size: .96rem; font-weight: 600; color: var(--ink); }
.serie__part span { font-size: .83rem; color: var(--ink-mute); }
@media (max-width: 600px){ .serie__head { grid-template-columns: 1fr; } .serie__cover { aspect-ratio: 16/7; } }

/* serie-card (serie → módulos → títulos) */
.serie-card__head { display: grid; grid-template-columns: 150px 1fr; gap: 0; }
.serie-card__cover { aspect-ratio: 1; display: grid; place-items: center; color: #fff; font-family: var(--font-serif); font-size: 2rem; font-weight: 700; }
.serie-card__intro { padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; }
.serie-card__intro h3 { font-size: 1.25rem; margin-bottom: 5px; }
.serie-card__intro p { font-size: .9rem; color: var(--ink-soft); }
.serie-card__intro .meta { margin-top: 10px; display: flex; gap: 12px; font-size: .78rem; color: var(--ink-mute); }
.serie-card__modulos { border-top: 1px solid var(--line); }
@media (max-width: 600px){ .serie-card__head { grid-template-columns: 1fr; } .serie-card__cover { aspect-ratio: 16/7; } }

.modulo { border-top: 1px solid var(--line); }
.modulo:first-child { border-top: none; }
.modulo__head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 24px; text-align: left; background: none; transition: background .18s; }
.modulo__head:hover { background: var(--bg-soft); }
.modulo__n { width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--bg-tint); color: var(--violeta); font-weight: 700; }
.modulo__txt { flex: 1; min-width: 0; }
.modulo__txt b { display: block; font-size: 1rem; color: var(--ink); }
.modulo__txt span { font-size: .85rem; color: var(--ink-mute); }
.modulo__meta { display: flex; align-items: center; gap: 10px; flex: none; }
.modulo__chev { color: var(--violeta); display: grid; transition: transform .3s var(--ease); }
.modulo.open .modulo__chev { transform: rotate(90deg); }
.modulo__titulos { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); background: var(--bg-soft); }
.modulo__titulo { display: flex; align-items: center; gap: 13px; padding: 14px 24px 14px 30px; border-top: 1px solid var(--line); transition: background .18s; }
.modulo__titulo:hover { background: #fff; }
.modulo__titulo .pn { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--violeta); font-weight: 700; font-size: .8rem; }
.modulo__titulo b { flex: 1; font-size: .96rem; font-weight: 500; color: var(--ink); }
.modulo--soon { display: flex; align-items: center; gap: 14px; padding: 16px 24px; opacity: .72; }
.modulo--soon .modulo__txt b { color: var(--ink-soft); }

/* página de estudio */
.estudio__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 4px; }
.estudio__nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.estudio__navlink { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); max-width: 48%; }
.estudio__navlink.right { margin-left: auto; text-align: right; }
.estudio__navlink small { display: block; font-size: .72rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .06em; }
.estudio__navlink b { font-size: .92rem; color: var(--ink); font-weight: 600; }
.estudio__navlink:hover b { color: var(--violeta); }
.estudio__print-head { display: none; }

@media print {
  .nav, .footer, .estudio__actions, .estudio__nav, .breadcrumb, .hero__accent { display: none !important; }
  body { background: #fff; }
  main { padding-top: 0 !important; }
  .reader, .reader__body { max-width: none; color: #111; }
  .reader__head h1, .reader__body h2, .reader__body h3 { color: #000; }
  .reader__body strong { color: #000; }
  .reader__head .cat { color: #444 !important; }
  .verse { background: #f4f4f7 !important; border-left: 3px solid #888; color: #222; }
  .verse cite { color: #555; }
  .estudio__print-head { display: block !important; font-size: 11px; color: #555; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid #ddd; }
  a { color: #000; text-decoration: none; }
}

/* ------------------------------ CTA / FOOTER ----------------------- */
.cta { border-radius: var(--r-xl); padding: clamp(36px,5vw,64px); text-align: center; position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.cta::before { content:""; position:absolute; top:-40%; left:50%; transform: translateX(-50%); width: 70%; height: 200%; background: radial-gradient(closest-side, rgba(124,58,237,.5), transparent 70%); opacity: .5; }
.cta > * { position: relative; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.85); }
.cta--soft { background: var(--bg-tint); color: var(--ink); }
.cta--soft::before { display: none; }
.cta--soft h2 { color: var(--ink); }
.cta--soft p { color: var(--ink-soft); }

/* ---------------- IMÁGENES DE FONDO (hero foto + bandas) ---------- */
.hero.has-bg { background: var(--navy); background-size: cover; background-position: center; }
.hero.has-bg::after { display: none; }
.hero.has-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,40,.5), rgba(8,8,40,.72)); z-index: 0; }
.hero.has-bg .container { position: relative; z-index: 1; }
.hero.has-bg .hero__accent { display: none; }
.hero.has-bg h1, .hero.has-bg .display { color: #fff; }
.hero.has-bg .lead { color: rgba(255,255,255,.9); }
.hero.has-bg .eyebrow, .hero.has-bg .eyebrow.center { color: var(--celeste); }
.hero.has-bg .eyebrow::before { background: var(--celeste); }
.hero.has-bg .hero__meta .stat b { color: #fff; }
.hero.has-bg .hero__meta .stat span { color: rgba(255,255,255,.75); }
.hero.has-bg .btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.hero.has-bg .btn--ghost:hover { background: rgba(255,255,255,.2); border-color: #fff; color: #fff; }

.imgband { position: relative; padding-block: clamp(60px,8vw,112px); background: var(--navy); background-size: cover; background-position: center; color: #fff; overflow: hidden; }
.imgband::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(8,8,40,.84), rgba(124,58,237,.6)); }
.imgband > .container { position: relative; z-index: 1; }
.imgband h2 { color: #fff; }
.imgband p { color: rgba(255,255,255,.92); }
.imgband .eyebrow { color: var(--celeste); }
.imgband .quote-serif { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.4rem,3vw,2.1rem); line-height: 1.45; color: #fff; }
.imgband .quote-cite { margin-top: 14px; color: var(--celeste); font-weight: 600; letter-spacing: .04em; }

/* CTA con foto de fondo */
.cta.has-bg { background-size: cover; background-position: center; }
.cta.has-bg::before { background: linear-gradient(135deg, rgba(8,8,40,.85), rgba(124,58,237,.66)); opacity: 1; top: 0; left: 0; transform: none; width: 100%; height: 100%; }

.empty-note { padding: 40px; text-align: center; color: var(--ink-mute); border: 1px dashed var(--line-2); border-radius: var(--r-md); grid-column: 1/-1; }

.footer { background: var(--navy); color: rgba(255,255,255,.7); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-block: clamp(48px,6vw,72px); }
.footer .logo__txt b { color: #fff; }
.footer p { color: rgba(255,255,255,.62); font-size: .9rem; max-width: 34ch; margin-top: 16px; }
.footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.55); margin-bottom: 16px; }
.footer a.fl { display: block; padding: 6px 0; color: rgba(255,255,255,.68); font-size: .92rem; transition: color .2s, transform .2s; }
.footer a.fl:hover { color: #fff; transform: translateX(3px); }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.soc { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); transition: all .22s var(--ease); }
.soc:hover { color: #fff; background: var(--violeta); transform: translateY(-3px); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.5); font-size: .84rem; }

/* ------------------------------ RESPONSIVE ------------------------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .mag-hero { grid-template-columns: 1fr; }
  .mag-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cols-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 16px clamp(20px,5vw,40px) 26px; background: #fff; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .4s var(--ease); box-shadow: var(--sh-lg);
  }
  .nav.open .nav__links { transform: none; }
  .nav__link { height: 48px; padding: 0 14px; font-size: 1.02rem; }
  .nav__dd { display: block; }
  .nav__dd-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--bg-soft); margin-top: 4px; min-width: 0; }
  .nav__cta { margin-top: 8px; height: 48px; }
  .nav__burger { display: block; }
}
@media (max-width: 680px) {
  .cols-2,.cols-3,.cols-4 { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__meta { gap: 20px; }
}

@media (max-width: 820px) {
  .arbol-teaser { grid-template-columns: 1fr !important; }
  #fe-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 760px) {
  #home-serie > .card { grid-template-columns: 1fr !important; }
}

/* ---- mobile / overflow ---- */
html { overflow-x: hidden; }
@media (max-width: 700px) {
  .mag-bar { gap: 12px; }
  .search { min-width: 0; max-width: 100%; }
  .mag-feat { min-height: 300px; padding: 22px; }
  .mag-feat h2 { font-size: 1.4rem; }
  .reader__byline { flex-wrap: wrap; }
  .reader__byline .share { margin-left: 0; }
  .cat-list .m { display: none; }
}

/* ---- podcast destacado ---- */
.pod-feat { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 230px; display: flex; align-items: flex-end; padding: 30px; color: #fff; background: #2b3048; background-size: cover; background-position: center; margin-bottom: 18px; box-shadow: var(--sh-sm); }
.pod-feat::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(20,22,40,.9), rgba(44,48,74,.55)); }
.pod-feat > * { position: relative; z-index: 1; }
.pod-feat .k { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--celeste); }
.pod-feat h3 { color: #fff; font-size: clamp(1.3rem,2.4vw,1.9rem); margin: 8px 0 6px; max-width: 22ch; }
.pod-feat p { color: rgba(255,255,255,.85); max-width: 52ch; }
.pod-feat .play { margin-top: 16px; display: inline-flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; }
.pod-feat .play span { width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--violeta); display: grid; place-items: center; flex: none; }

/* ---- por categoría (encabezado + listado) ---- */
.cat-block + .cat-block { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 26px; }
.cat-block__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.cat-block__head h3 { font-size: 1.25rem; display: inline-flex; align-items: center; gap: 10px; }
.cat-block__head .dot { width: 12px; height: 12px; border-radius: 50%; }
.cat-list a { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.cat-list a:first-child { border-top: none; }
.cat-list a:hover h4 { color: var(--violeta); }
.cat-list h4 { flex: 1; font-size: 1.02rem; font-weight: 500; color: var(--ink); }
.cat-list .m { font-size: .78rem; color: var(--ink-mute); white-space: nowrap; }
.cat-list .num { font-family: var(--font-serif); font-size: 1.1rem; color: var(--line-2); font-weight: 700; min-width: 20px; }

/* ---- Instagram (inicio) ---- */
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 860px){ .ig-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 560px){ .ig-grid { grid-template-columns: repeat(2,1fr); } }
.ig-tile { aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; position: relative; display: block; background: var(--bg-soft); }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.ig-tile:hover img { transform: scale(1.06); }
.ig-tile .ig-ic { position: absolute; top: 10px; right: 10px; color: #fff; opacity: 0; transition: opacity .2s; filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)); }
.ig-tile:hover .ig-ic { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
