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

/* ------------------------------ TOKENS ------------------------------ */
:root {
  color-scheme: light;   /* el sitio es SOLO claro: evita que el modo oscuro del teléfono invierta los fondos a negro */
  /* 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;

  /* Espaciado — escala nombrada en base 4/8px, para usar en gaps, paddings y márgenes puntuales */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;

  /* Espaciado entre secciones (usado por .section / .section--tight más abajo).
     Es un token FUNCIONAL: admin.html → Ajustes → "Espaciado y bordes" lo puede
     sobreescribir en runtime (ver applyTheme() en main.js) sin tocar este archivo. */
  --space-section: clamp(56px,8vw,104px);
  --space-section-tight: clamp(40px,5vw,68px);

  /* Breakpoints en uso hoy en @media (referencia, NO editable en runtime: CSS no
     permite variables dentro de @media). Agrupados de los valores reales del archivo:
     · móvil chico        ~480–560px  (480, 520, 560)
     · móvil / tablet chico ~600–700px (600, 640, 680, 700)
     · tablet              ~760–860px  (760, 820, 860)
     · escritorio angosto   ~960px     (960) */

  /* 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: var(--space-section); position: relative; }
.section--tight { padding-block: var(--space-section-tight); }
.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,.96);
  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(12px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.reveal.in, .no-anim .reveal { opacity: 1; transform: none; }
.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; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; background: var(--bg-soft); color: var(--c, #7C3AED); }
.ph svg { width: 36px; height: 36px; opacity: .42; }
.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; flex-wrap: wrap; align-items: center; gap: 6px 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; flex-wrap: wrap; gap: 8px; }
.news-box input { flex: 1; min-width: 0; 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: 820px; 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: 16/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__dl { margin: -14px 0 30px; }
.reader__body { font-family: var(--font-serif); font-size: 1.22rem; line-height: 1.85; color: #2a2f50; }
.reader__body p { margin-bottom: 1.45em; }
.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; }
.reader__body .orn { text-align: center; color: var(--violeta); font-size: 1.3rem; letter-spacing: .4em; margin: 2.4em 0 2.2em; opacity: .6; line-height: 1; user-select: none; }
.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__titulo--soon { cursor: default; }
.modulo__titulo--soon:hover { background: transparent; }
.modulo__titulo--soon b { color: var(--ink-mute); }
.modulo__titulo--soon .pn { color: var(--ink-mute); }
.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, body { overflow-x: hidden; max-width: 100%; }
body { overflow-wrap: break-word; }
/* editorial estilo revista: contenido más ancho */
#ed-list .container { max-width: 1340px; }
/* que bylines/títulos no ensanchen los grids más allá del viewport (mobile) */
.grid > *, .mag-layout > *, .mag-side > *, .mag-mini > *, .pop-list a > div { min-width: 0; }
@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; }
}

/* ============== SECCIONES (páginas nuevas / bloques de inicio) ====== */
.sec { padding: clamp(40px,6vw,72px) 0; }
.sec + .sec { padding-top: 0; }
.sec-h { font-size: clamp(1.5rem,3vw,2.1rem); letter-spacing: -.02em; margin-bottom: 18px; color: var(--ink); }
.sec-body { font-size: 1.08rem; line-height: 1.8; color: var(--ink-body); }
.sec-body.is-serif { font-family: var(--font-serif); font-size: 1.18rem; }
.sec-body p { margin-bottom: 1.1em; }
.sec-body strong { color: var(--ink); font-weight: 600; }
/* hero */
.sec-hero { padding: clamp(60px,9vw,120px) 0; text-align: center; }
.sec-hero.has-bg { color: #fff; }
.sec-hero.has-bg .eyebrow { color: rgba(255,255,255,.85); }
.sec-hero__in { max-width: 760px; margin-inline: auto; }
.sec-hero h1 { font-size: clamp(2rem,5vw,3.4rem); letter-spacing: -.03em; margin: 12px 0 14px; }
.sec-hero__sub { font-size: clamp(1.05rem,2vw,1.3rem); color: var(--ink-soft); }
.sec-hero.has-bg .sec-hero__sub { color: rgba(255,255,255,.9); }
.sec-hero__cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
/* banda con fondo */
.sec-banda { padding: clamp(48px,7vw,90px) 0; color: #fff; text-align: center; }
.sec-banda__in { max-width: 720px; margin-inline: auto; }
.sec-banda h2 { font-size: clamp(1.6rem,3.4vw,2.4rem); color: #fff; letter-spacing: -.02em; margin-bottom: 12px; }
.sec-banda p { color: rgba(255,255,255,.9); font-size: 1.1rem; }
.sec-banda__cta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
/* imagen */
.sec-img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.sec-cap { text-align: center; color: var(--ink-mute); font-size: .88rem; margin-top: 10px; }
/* galería de fotos */
.sec-galeria .sec-h { text-align: center; }
.sec-gal__item { display: block; }
.sec-gal__item a { display: block; }
.sec-gal__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sh-xs); display: block; transition: opacity .2s var(--ease); }
.sec-gal__item:hover img { opacity: .9; }
.sec-gal__cap { text-align: center; color: var(--ink-mute); font-size: .85rem; margin-top: 8px; }
/* imagen + texto */
.sec-it { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,52px); align-items: center; }
.sec-imgtexto.is-rev .sec-it { direction: rtl; } .sec-imgtexto.is-rev .sec-it > * { direction: ltr; }
.sec-it__img img, .sec-it__ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.sec-it__ph { background: var(--bg-tint); }
.sec-it__cta { margin-top: 18px; }
@media (max-width: 760px){ .sec-it { grid-template-columns: 1fr; } .sec-imgtexto.is-rev .sec-it { direction: ltr; } }
/* cita */
.sec-cita .verse { font-size: 1.3rem; }
/* botones */
.sec-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
/* separador */
.sec-sep { width: 100%; }
/* preguntas frecuentes — <details>/<summary> nativos, sin JS */
.sec-faq .sec-h { text-align: center; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.faq-item + .faq-item { margin-top: 10px; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 46px 16px 20px; font-weight: 600; color: var(--ink); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--ink-mute); border-bottom: 2px solid var(--ink-mute);
  transform: translateY(-65%) rotate(45deg); transition: transform .2s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-35%) rotate(-135deg); }
.faq-item__resp { padding: 0 20px 18px; color: var(--ink-body); line-height: 1.7; }
.faq-item__resp p { margin-bottom: .9em; }
.faq-item__resp p:last-child { margin-bottom: 0; }
/* grilla de tarjetas */
.sec-columnas .sec-h { text-align: center; }
.sec-columnas__grid { display: grid; grid-template-columns: repeat(var(--cols,3), 1fr); gap: 20px; margin-top: 8px; }
@media (max-width: 760px) { .sec-columnas__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .sec-columnas__grid { grid-template-columns: 1fr; } }
.sec-col {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 22px; box-shadow: var(--sh-xs); text-decoration: none; color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
a.sec-col:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--line-2); }
.sec-col__icon { font-size: 2rem; line-height: 1; margin-bottom: 12px; }
.sec-col__h { font-size: 1.05rem; color: var(--ink); margin-bottom: 8px; }
.sec-col__txt { font-size: .92rem; color: var(--ink-soft); line-height: 1.6; }
/* contenido dinámico (últimas publicaciones, se arma solo con NG_ARTICULOS/NG_ACTIVIDADES) */
.sec-grilla-dinamica .sec-h { text-align: center; }
.sec-grilla-dinamica__empty { text-align: center; color: var(--ink-mute); padding: 30px 0; }
.sec-grilla-dinamica__cta { margin-top: 22px; text-align: center; }
.sec-gd__meta { color: var(--ink-mute); font-size: .82rem; margin-top: 4px; }
/* testimonios */
.sec-testimonios .sec-h { text-align: center; }
.sec-test__card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 22px; box-shadow: var(--sh-xs); }
.sec-test__txt { color: var(--ink-body); font-size: .96rem; line-height: 1.7; flex: 1; margin: 0; }
.sec-test__txt::before { content: "“"; color: var(--violeta); font-weight: 700; }
.sec-test__txt::after { content: "”"; color: var(--violeta); font-weight: 700; }
.sec-test__who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.sec-test__av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: .82rem; flex: none; background: var(--violeta); }
.sec-test__who-txt { min-width: 0; display: flex; flex-direction: column; }
.sec-test__name { font-size: .92rem; color: var(--ink); font-weight: 600; }
.sec-test__role { font-size: .8rem; color: var(--ink-mute); }
/* números destacados */
.sec-estad__grid { text-align: center; }
.sec-estad__item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sec-estad__num { font-family: var(--font-sans); font-size: clamp(2rem,4vw,3rem); font-weight: 700; color: var(--ink); line-height: 1; }
.sec-estad__lbl { font-size: .88rem; color: var(--ink-mute); }
/* equipo / liderazgo */
.sec-equipo .sec-h { text-align: center; }
.sec-eq__card { display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 22px; box-shadow: var(--sh-xs); }
.sec-eq__av { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 1.3rem; margin-bottom: 14px; background: var(--violeta); }
.sec-eq__name { font-size: 1.02rem; color: var(--ink); font-weight: 600; }
.sec-eq__role { font-size: .82rem; color: var(--violeta); margin-top: 2px; }
.sec-eq__bio { font-size: .88rem; color: var(--ink-soft); margin-top: 10px; line-height: 1.6; }
/* línea de tiempo */
.sec-linea-tiempo .sec-h { text-align: center; }
.sec-lt { margin-top: 8px; }
.sec-lt__item { position: relative; padding: 0 0 28px 30px; border-left: 2px solid var(--line-2); }
.sec-lt__item:last-child { border-left-color: transparent; padding-bottom: 0; }
.sec-lt__dot { position: absolute; left: -6px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--violeta); box-shadow: 0 0 0 3px var(--bg); }
.sec-lt__etapa { display: block; color: var(--violeta); font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.sec-lt__txt { color: var(--ink-soft); font-size: .95rem; line-height: 1.65; margin: 0; }
@media (max-width: 520px) { .sec-lt__item { padding-left: 24px; } }
/* sumate / contacto */
.sec-contacto .sec-h { text-align: center; }
.sec-ct__txt { text-align: center; color: var(--ink-soft); margin: 0 0 8px; }
.sec-ct__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; margin-top: 18px; }
.sec-ct__card {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-xs);
  text-decoration: none; color: inherit; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.sec-ct__card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--line-2); }
.sec-ct__icon { font-size: 1.7rem; line-height: 1; }
.sec-ct__lbl { font-weight: 700; color: var(--ink); }
.sec-ct__cta { font-size: .85rem; color: var(--violeta); font-weight: 600; }
@media (max-width: 520px) { .sec-ct__grid { grid-template-columns: 1fr; } }
/* visibilidad por dispositivo: ng-bloques.js le agrega esta clase al elemento raíz de un
   bloque cuando en el editor (admin.html) se tilda "Ocultar en celular". 760px porque es el
   breakpoint que ya se usa para el resto de los bloques de sección (ver arriba en este mismo
   bloque de estilos, ej. .sec-it, .sec-columnas__grid). */
@media (max-width: 760px) { .oculto-movil { display: none !important; } }

/* ---- 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; }

/* ---- podcast destacado (estilo revista, claro) ---- */
.pod-hero { display: grid; grid-template-columns: minmax(170px,230px) 1fr; gap: clamp(22px,4vw,46px); align-items: center; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px,3.5vw,42px); margin-bottom: 22px; }
.pod-hero__art { aspect-ratio: 1; border-radius: var(--r-lg); background: linear-gradient(140deg, var(--violeta), var(--purpura)); display: grid; place-items: center; color: #fff; box-shadow: var(--sh-md); overflow: hidden; }
.pod-hero__art svg { width: 54px; height: 54px; }
.pod-hero__art img { width: 100%; height: 100%; object-fit: cover; }
.pod-hero__k { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--violeta); }
.pod-hero__body h3 { font-size: clamp(1.5rem,3vw,2.1rem); margin: 10px 0; color: var(--ink); }
.pod-hero__body p { color: var(--ink-soft); max-width: 56ch; }
.pod-hero__meta { font-size: .82rem; color: var(--ink-mute); margin-top: 12px; font-weight: 600; }
.pod-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (max-width: 600px){ .pod-hero { grid-template-columns: 1fr; } .pod-hero__art { max-width: 160px; } }

/* ---- notas de solo texto (mix con/sin foto, tipo revista) ---- */
.post--text .post__body { padding: 22px 24px 24px; }
.post__tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 9px; }
.post--text h3 { font-size: 1.16rem; }

/* ---- líneas divisorias estilo editorial / revista (solo editorial) ---- */
#ed-list .head-row { border-top: 1.5px solid var(--ink); padding-top: 18px; margin-top: 6px; }

/* ---- Instagram (inicio) ---- */
.ig-promo { display: flex; align-items: center; gap: clamp(18px,3vw,32px); padding: clamp(24px,3.4vw,40px);
  border-radius: var(--r-xl); text-decoration: none; color: #fff; box-shadow: var(--sh-sm);
  background: linear-gradient(120deg, #515BD4 0%, #7C3AED 38%, #BE3FA0 70%, #F77737 100%);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.ig-promo:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.ig-promo__ic { width: 64px; height: 64px; border-radius: 18px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.ig-promo__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ig-promo__txt small { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.ig-promo__txt b { font-size: clamp(1.25rem,2.4vw,1.7rem); font-weight: 700; line-height: 1.15; }
.ig-promo__txt > span { color: rgba(255,255,255,.92); font-size: .98rem; }
.ig-promo__btn { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: #fff; color: var(--violeta); font-weight: 600; }
@media (max-width: 640px){
  .ig-promo { flex-direction: column; text-align: center; }
  .ig-promo__txt { align-items: center; }
  .ig-promo__btn { width: 100%; justify-content: center; }
}

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

/* =====================================================================
   MI CAMINO — Espacio personal (Fase 1)
   ===================================================================== */

/* ---- Botón nav "Mi Camino" ---- */
.nav__mc {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .9rem; font-weight: 500; color: var(--ink-body);
  padding: 6px 10px; border-radius: var(--r-sm);
  transition: color .18s, background .18s;
  cursor: pointer; position: relative;
}
.nav__mc:hover { color: var(--violeta); background: var(--bg-tint); }
.nav__mc svg { flex: none; }
.nav__mc-dot {
  position: absolute; top: 4px; right: 4px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--violeta); border: 1.5px solid var(--bg);
  display: none;
}
.nav__mc-dot.visible { display: block; }

/* ---- Overlay ---- */
.mc-overlay {
  position: fixed; inset: 0; background: rgba(8,8,56,.38);
  z-index: 900; opacity: 0; pointer-events: none;
  transition: opacity .28s var(--ease);
}
.mc-overlay.open { opacity: 1; pointer-events: auto; }

/* ---- Drawer ---- */
.mc-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw); background: var(--bg);
  box-shadow: -8px 0 40px rgba(8,8,56,.14);
  z-index: 901; display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
  overflow: hidden;
}
.mc-drawer.open { transform: translateX(0); }

/* ---- Cabecera del drawer ---- */
.mc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 18px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.mc-head__title {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1rem; font-weight: 700; color: var(--ink);
}
.mc-head__title svg { color: var(--violeta); }
.mc-close {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-soft); transition: background .15s, color .15s;
}
.mc-close:hover { background: var(--bg-tint); color: var(--ink); }

/* ---- Cuerpo scrollable del drawer ---- */
.mc-body { flex: 1; overflow-y: auto; padding: 0 0 24px; }

/* ---- Secciones del drawer ---- */
.mc-section { padding: 20px 24px 0; }
.mc-section + .mc-section { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.mc-section__label {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 14px;
}

/* ---- Tarjeta "Continuar" ---- */
.mc-continuar {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 16px;
  text-decoration: none; color: inherit;
  transition: box-shadow .18s, border-color .18s;
}
.mc-continuar:hover { border-color: var(--violeta); box-shadow: var(--sh-sm); }
.mc-continuar__icon {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  background: linear-gradient(140deg, var(--celeste), var(--violeta));
  display: grid; place-items: center; color: #fff; flex: none;
}
.mc-continuar__txt { flex: 1; min-width: 0; }
.mc-continuar__tipo { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--violeta); }
.mc-continuar__titulo { font-size: .95rem; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-continuar__arr { color: var(--ink-mute); flex: none; }

/* ---- Lista de guardados / historial ---- */
.mc-list { display: flex; flex-direction: column; gap: 2px; }
.mc-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-sm);
  transition: background .15s;
}
.mc-item:hover { background: var(--bg-soft); }
.mc-item__tipo {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--violeta); flex: none; margin-top: 2px;
}
.mc-item__tipo.estudio { background: var(--celeste-d); }
.mc-item a {
  flex: 1; min-width: 0; font-size: .91rem; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-decoration: none;
}
.mc-item a:hover { color: var(--violeta); }
.mc-item__ts { font-size: .72rem; color: var(--ink-mute); white-space: nowrap; flex: none; }
.mc-item__rm {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink-mute); flex: none; opacity: 0; transition: opacity .15s, background .15s;
}
.mc-item:hover .mc-item__rm { opacity: 1; }
.mc-item__rm:hover { background: #fee2e2; color: #dc2626; }

/* ---- Serie en curso ---- */
.mc-serie {
  padding: 12px 14px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--bg-soft);
  margin-bottom: 8px;
}
.mc-serie__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.mc-serie__nombre { font-size: .93rem; font-weight: 600; color: var(--ink); }
.mc-serie__cuantos { font-size: .78rem; color: var(--ink-mute); white-space: nowrap; }
.mc-progress { width: 100%; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.mc-progress__bar { height: 100%; background: linear-gradient(90deg, var(--celeste), var(--violeta)); border-radius: 99px; transition: width .4s var(--ease); }
.mc-serie__continuar {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 600; color: var(--violeta);
  text-decoration: none;
}
.mc-serie__continuar:hover { text-decoration: underline; }

/* ---- Estado vacío ---- */
.mc-empty {
  text-align: center; padding: 20px 12px;
  color: var(--ink-mute); font-size: .88rem; line-height: 1.5;
}
.mc-empty svg { margin: 0 auto 10px; opacity: .35; display: block; }

/* ---- Pie del drawer (acciones) ---- */
.mc-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  flex: none; display: flex; gap: 10px; flex-wrap: wrap;
}
.mc-foot button {
  font-size: .78rem; color: var(--ink-soft); padding: 5px 10px;
  border-radius: var(--r-sm); border: 1px solid var(--line);
  background: none; cursor: pointer; transition: border-color .15s, color .15s;
}
.mc-foot button:hover { border-color: var(--ink-soft); color: var(--ink); }
.mc-foot button.danger:hover { border-color: #dc2626; color: #dc2626; }

/* ---- Botón Guardar (artículos y estudios) ---- */
.btn-guardar {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: var(--r-pill);
  font-size: .85rem; font-weight: 600;
  border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink-soft);
  cursor: pointer; transition: border-color .18s, color .18s, background .18s;
}
.btn-guardar:hover { border-color: var(--violeta); color: var(--violeta); }
.btn-guardar.guardado {
  background: rgba(124,58,237,.08);
  border-color: var(--violeta);
  color: var(--violeta);
}
.btn-guardar svg { flex: none; transition: fill .18s; }

/* ---- Progreso de capítulo (estudio) ---- */
.estudio-progreso {
  margin: 28px 0 0;
  padding: 20px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.estudio-progreso__txt { font-size: .9rem; color: var(--ink-soft); }
.estudio-progreso__txt strong { color: var(--ink); }
.btn-completar {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--r-pill);
  font-size: .88rem; font-weight: 600;
  border: none; cursor: pointer; transition: background .18s, color .18s;
  background: var(--violeta); color: #fff;
}
.btn-completar:hover { background: var(--brand-d); }
.btn-completar.completado { background: var(--verde); color: #fff; }
.btn-completar.completado:hover { background: #059669; }

/* ---- Indicador de capítulo en la lista de series ---- */
.cap-estado {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; flex: none;
  border: 2px solid var(--line); background: var(--bg);
  color: var(--ink-mute);
}
.cap-estado.completado { border-color: var(--verde); background: var(--verde); color: #fff; }
.cap-estado.en-curso { border-color: var(--violeta); color: var(--violeta); }

/* Barra de progreso de la serie (en series.html) */
.serie-progress-wrap { margin: 6px 0 16px; }
.serie-progress-label { font-size: .78rem; color: var(--ink-mute); margin-bottom: 6px; display: flex; justify-content: space-between; }
.serie-progress { width: 100%; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.serie-progress__bar { height: 100%; background: linear-gradient(90deg, var(--celeste), var(--violeta)); border-radius: 99px; transition: width .4s var(--ease); }

/* ---- Widget "Seguí donde quedaste" (inicio) ---- */
.widget-continuar {
  padding: clamp(22px,3.5vw,36px) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(36px,5vw,60px);
}
.widget-continuar__in {
  max-width: var(--maxw); margin-inline: auto;
  padding-inline: clamp(16px,4vw,40px);
  display: flex; align-items: center; gap: clamp(16px,3vw,32px); flex-wrap: wrap;
}
.widget-continuar__icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  background: linear-gradient(140deg, var(--celeste), var(--violeta));
  display: grid; place-items: center; color: #fff; flex: none;
}
.widget-continuar__txt { flex: 1; min-width: 0; }
.widget-continuar__label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--violeta); margin-bottom: 3px; }
.widget-continuar__titulo { font-size: 1.05rem; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.widget-continuar__tipo { font-size: .82rem; color: var(--ink-soft); margin-top: 2px; }
.widget-continuar__ctas { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; flex: none; }

/* ---- Recomendaciones (editorial) ---- */
.rec-section { margin-top: clamp(36px,5vw,56px); padding-top: 32px; border-top: 1px solid var(--line); }
.rec-section h3 { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin-bottom: 18px; }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

/* ======================================================================
   MI CAMINO — Página dashboard completa (mi-camino.html)
   ====================================================================== */

/* ---- Hero del dashboard — diseño completo ---- */
.mc-pg-hero {
  background: linear-gradient(150deg, #050518 0%, #0a0a2e 30%, #14103a 65%, #0d0a30 100%);
  color: #fff;
  padding: clamp(64px,9vw,112px) 0 clamp(52px,7vw,88px);
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}
/* Textura de puntos */
.mc-pg-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
/* Brillo ambiental inferior */
.mc-pg-hero::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0; height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.015));
  pointer-events: none;
}

/* Arte decorativo SVG posicionado a la derecha */
.mc-pg-hero__art {
  position: absolute;
  top: 0; right: 0;
  width: 58%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.mc-pg-hero__art svg {
  position: absolute;
  top: 50%; right: -2%;
  transform: translateY(-50%);
  width: 100%; height: auto;
  filter: blur(0px);
}

/* Layout del container */
.mc-pg-hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.mc-pg-hero__left { flex: 1; min-width: 280px; }

.mc-pg-hero__eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(167,139,250,.7);
  margin-bottom: 18px; display: flex; align-items: center; gap: 8px;
}

.mc-pg-hero__title {
  font-size: clamp(2.8rem,7vw,4.4rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
  color: #fff;
}
.mc-pg-hero__title span {
  background: linear-gradient(125deg, #c4b5fd 0%, #818cf8 40%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.mc-pg-hero__sub {
  font-size: 1rem; line-height: 1.75;
  color: rgba(255,255,255,.52);
  margin: 0 0 24px;
}

.mc-pg-hero__perfil { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mc-pg-hero__badge {
  display: inline-flex; align-items: center;
  background: rgba(167,139,250,.12); border: 1px solid rgba(167,139,250,.22);
  border-radius: var(--r-pill); padding: 5px 14px;
  font-size: .78rem; color: rgba(255,255,255,.85);
}
.mc-pg-hero__edit {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-pill); padding: 7px 18px;
  font-size: .8rem; color: rgba(255,255,255,.75);
  cursor: pointer; transition: all .2s;
}
.mc-pg-hero__edit:hover { background: rgba(167,139,250,.2); border-color: rgba(167,139,250,.4); color: #fff; }

/* Stats — panel integrado */
.mc-pg-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-width: 280px;
}
.mc-pg-stat {
  text-align: center;
  padding: 28px 20px;
  position: relative;
}
.mc-pg-stat + .mc-pg-stat::before {
  content: "";
  position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 1px; background: rgba(255,255,255,.1);
}
.mc-pg-stat__num {
  display: block;
  font-size: clamp(2rem,3.5vw,2.8rem); font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #c4b5fd, #60a5fa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.mc-pg-stat__label { font-size: .68rem; color: rgba(255,255,255,.45); line-height: 1.4; margin-top: 8px; }

/* ---- Franja de versículo ---- */
.mc-verse-strip {
  background: linear-gradient(90deg, #07071e 0%, #10103a 30%, #0e0e38 70%, #07071e 100%);
  border-top: 1px solid rgba(167,139,250,.12);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 28px 0;
}
.mc-verse-strip__inner {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap; text-align: center;
}
.mc-verse-strip__ico { color: rgba(167,139,250,.65); font-size: 1rem; flex-shrink: 0; }
.mc-verse-strip__texto {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(.92rem,1.5vw,1.05rem); color: rgba(255,255,255,.75);
  margin: 0; padding: 0; border: none; quotes: none;
  line-height: 1.6;
}
.mc-verse-strip__ref {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(167,139,250,.75);
  flex-shrink: 0; font-style: normal;
}

/* ---- Tabs ---- */
.mc-tabs {
  display: flex; gap: 4px;
  border-bottom: 2px solid var(--line);
  margin: 0 0 36px;
  padding-top: 32px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mc-tabs::-webkit-scrollbar { display: none; }
.mc-tab {
  padding: 12px 24px; font-size: .9rem; font-weight: 600;
  color: var(--ink-mute); border-radius: var(--r-sm) var(--r-sm) 0 0;
  border: none; background: none; cursor: pointer;
  border-bottom: 2.5px solid transparent; margin-bottom: -2px;
  transition: color .2s, border-color .2s, background .2s;
  white-space: nowrap; letter-spacing: .01em;
}
.mc-tab:hover { color: var(--ink); background: rgba(124,58,237,.04); }
.mc-tab.active { color: var(--violeta); border-bottom-color: var(--violeta); font-weight: 700; }

.mc-tabpanel { animation: fadeIn .2s ease; }
.mc-tabpanel.hidden { display: none; }
@keyframes fadeIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }

/* ---- Sección genérica del dashboard ---- */
.mc-ds { margin-bottom: 40px; }
.mc-ds__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 18px;
}
.mc-ds__title { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.mc-ds__action {
  font-size: .82rem; font-weight: 600; color: var(--violeta);
  background: none; border: none; cursor: pointer; padding: 0;
  text-decoration: none;
}
.mc-ds__action:hover { text-decoration: underline; }

/* ---- Tarjeta "Continuar" ---- */
.mc-continuar-card {
  display: flex; align-items: center; gap: 18px;
  background: var(--navy); border-radius: var(--r-lg);
  padding: 24px 28px; text-decoration: none; color: #fff;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 8px 30px rgba(8,8,56,.18);
}
.mc-continuar-card:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(8,8,56,.22); }
.mc-continuar-card__icon {
  width: 52px; height: 52px; border-radius: var(--r-md); flex: none;
  background: var(--grad-brand); display: grid; place-items: center; color: #fff;
}
.mc-continuar-card__txt { flex: 1; min-width: 0; }
.mc-continuar-card__tipo { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.6); margin-bottom: 4px; }
.mc-continuar-card__titulo { font-size: 1.05rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-continuar-card__ts { font-size: .8rem; color: rgba(255,255,255,.5); margin-top: 4px; }
.mc-continuar-card__arr { color: rgba(255,255,255,.5); flex: none; }

/* ---- Hitos del camino ---- */
.mc-hitos { display: flex; flex-direction: column; gap: 10px; }
.mc-hito {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: var(--r-md);
  background: var(--bg-soft); border: 1px solid var(--line);
}
.mc-hito__icon {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg,var(--celeste),var(--violeta));
  display: grid; place-items: center; font-size: 1.1rem;
}
.mc-hito__txt { flex: 1; }
.mc-hito__label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.mc-hito__ts { font-size: .75rem; color: var(--ink-mute); margin-top: 2px; }

/* ---- Para vos (recomendaciones en dashboard) ---- */
.mc-rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

/* ---- Biblioteca: guardados ---- */
.mc-filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.mc-filtro {
  padding: 5px 14px; border-radius: var(--r-pill);
  font-size: .82rem; font-weight: 500;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink-soft);
  cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.mc-filtro:hover, .mc-filtro.active { border-color: var(--violeta); color: var(--violeta); background: rgba(124,58,237,.06); }
.mc-guardados-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.mc-guardado-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); overflow: hidden;
  transition: box-shadow .18s, border-color .18s;
}
.mc-guardado-card:hover { box-shadow: var(--sh-md); border-color: var(--line-2); }
.mc-guardado-card__body { padding: 16px 18px; flex: 1; }
.mc-guardado-card__tipo { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--violeta); margin-bottom: 6px; }
.mc-guardado-card__titulo { font-size: .95rem; font-weight: 600; color: var(--ink); line-height: 1.35; text-decoration: none; }
.mc-guardado-card__titulo:hover { color: var(--violeta); }
.mc-guardado-card__ts { font-size: .72rem; color: var(--ink-mute); margin-top: 6px; }
.mc-guardado-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px; border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.mc-guardado-card__col { font-size: .75rem; color: var(--ink-mute); }
.mc-guardado-card__rm {
  font-size: .75rem; color: var(--ink-mute);
  background: none; border: none; cursor: pointer; padding: 0;
  transition: color .15s;
}
.mc-guardado-card__rm:hover { color: #dc2626; }

/* ---- Colecciones ---- */
.mc-cols-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 16px; }
.mc-col-card {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); padding: 18px 20px;
  transition: box-shadow .18s; cursor: pointer;
}
.mc-col-card:hover { box-shadow: var(--sh-md); }
.mc-col-card__emoji { font-size: 1.6rem; margin-bottom: 10px; }
.mc-col-card__nombre { font-size: .95rem; font-weight: 700; color: var(--ink); }
.mc-col-card__count { font-size: .78rem; color: var(--ink-mute); margin-top: 4px; }
.mc-col-card__actions { display: flex; gap: 8px; margin-top: 12px; }
.mc-col-card__btn {
  font-size: .75rem; padding: 3px 10px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: none; color: var(--ink-soft);
  cursor: pointer; transition: border-color .15s, color .15s;
}
.mc-col-card__btn:hover { border-color: var(--violeta); color: var(--violeta); }
.mc-col-card__btn.danger:hover { border-color: #dc2626; color: #dc2626; }
.mc-nueva-col {
  border: 1.5px dashed var(--line); border-radius: var(--r-lg);
  background: none; padding: 18px 20px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: .9rem; font-weight: 600; color: var(--ink-mute);
  cursor: pointer; transition: border-color .15s, color .15s;
}
.mc-nueva-col:hover { border-color: var(--violeta); color: var(--violeta); }

/* ---- Detalle de colección (modo expandido) ---- */
.mc-col-detalle { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 14px; }
.mc-col-detalle__head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.mc-col-detalle__volver { background: none; border: none; color: var(--violeta); cursor: pointer; font-size: .85rem; font-weight: 600; }
.mc-col-detalle__items { padding: 12px 16px; }

/* ---- Notas ---- */
.mc-notas-list { display: flex; flex-direction: column; gap: 10px; }
.mc-nota-card {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg-soft); padding: 14px 18px;
}
.mc-nota-card__titulo { font-size: .82rem; font-weight: 700; color: var(--violeta); margin-bottom: 6px; }
.mc-nota-card__texto { font-size: .88rem; color: var(--ink-body); line-height: 1.5; white-space: pre-wrap; }
.mc-nota-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.mc-nota-card__ts { font-size: .72rem; color: var(--ink-mute); }
.mc-nota-card__rm { font-size: .75rem; color: var(--ink-mute); background: none; border: none; cursor: pointer; padding: 0; }
.mc-nota-card__rm:hover { color: #dc2626; }

/* ---- Widget de notas inline (en artículos/estudios) ---- */
.ng-nota-widget { margin: 28px 0 0; }
.ng-nota-widget__toggle {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: var(--r-pill);
  font-size: .85rem; font-weight: 600;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink-soft);
  cursor: pointer; transition: border-color .18s, color .18s;
}
.ng-nota-widget__toggle:hover, .ng-nota-widget__toggle.has-nota { border-color: var(--violeta); color: var(--violeta); }
.ng-nota-widget__body { margin-top: 10px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }
.ng-nota-widget__textarea {
  width: 100%; min-height: 90px; resize: vertical;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 12px; font-size: .9rem; font-family: var(--font-sans);
  color: var(--ink); background: var(--bg); line-height: 1.5;
  transition: border-color .15s;
}
.ng-nota-widget__textarea:focus { outline: none; border-color: var(--violeta); }
.ng-nota-widget__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.ng-nota-widget__chars { font-size: .72rem; color: var(--ink-mute); }
.ng-nota-widget__saved { font-size: .78rem; color: var(--verde); font-weight: 600; }

/* ---- Progreso: anillos CSS ---- */
.mc-series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.mc-serie-card {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); padding: 20px 22px;
  display: flex; align-items: center; gap: 18px;
}
.mc-ring-wrap { flex: none; position: relative; }
.mc-ring {
  width: 72px; height: 72px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--violeta) calc(var(--pct,0) * 1%), var(--line) 0%);
  display: grid; place-items: center;
}
.mc-ring::after {
  content: ""; width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg); position: absolute;
}
.mc-ring__num {
  position: relative; z-index: 1;
  font-size: .88rem; font-weight: 800; color: var(--ink);
}
.mc-serie-card__txt { flex: 1; min-width: 0; }
.mc-serie-card__nombre { font-size: .95rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-serie-card__sub { font-size: .78rem; color: var(--ink-mute); margin-bottom: 10px; }
.mc-serie-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 600; color: var(--violeta); text-decoration: none;
}
.mc-serie-card__link:hover { text-decoration: underline; }

/* ---- Progreso: por categoría ---- */
.mc-cats { display: flex; flex-direction: column; gap: 12px; }
.mc-cat { }
.mc-cat__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.mc-cat__nombre { font-size: .88rem; font-weight: 600; color: var(--ink); }
.mc-cat__val { font-size: .78rem; color: var(--ink-mute); }
.mc-cat__bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.mc-cat__fill { height: 100%; border-radius: 99px; transition: width .5s var(--ease); }

/* ---- Calendario de actividad ---- */
.mc-calendar { }
.mc-calendar__title { font-size: .78rem; font-weight: 600; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.mc-calendar__grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 3px;
}
.mc-cal-dot {
  width: 100%; padding-top: 100%; border-radius: 3px;
  background: var(--line); position: relative;
  transition: background .15s;
}
.mc-cal-dot.active { background: var(--violeta); opacity: .75; }
.mc-cal-dot.hoy { background: var(--violeta); opacity: 1; box-shadow: 0 0 0 2px rgba(124,58,237,.3); }
.mc-cal-dot:hover::after {
  content: attr(data-fecha); position: absolute; bottom: 110%; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; font-size: .65rem; padding: 2px 6px; border-radius: 4px;
  white-space: nowrap; pointer-events: none;
}
.mc-calendar__nota { font-size: .75rem; color: var(--ink-mute); margin-top: 10px; }

/* ---- Historial completo ---- */
.mc-historial { display: flex; flex-direction: column; gap: 2px; }

/* ---- Rutas ---- */
.mc-rutas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.mc-ruta-card {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); padding: 22px 24px;
  transition: box-shadow .18s, border-color .18s;
}
.mc-ruta-card:hover { box-shadow: var(--sh-md); border-color: var(--line-2); }
.mc-ruta-card__emoji { font-size: 1.8rem; margin-bottom: 10px; }
.mc-ruta-card__nombre { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.mc-ruta-card__desc { font-size: .85rem; color: var(--ink-soft); line-height: 1.45; margin-bottom: 16px; }
.mc-ruta-card__prog { margin-bottom: 14px; }
.mc-ruta-card__prog-bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 5px; }
.mc-ruta-card__prog-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--celeste), var(--violeta)); transition: width .4s var(--ease); }
.mc-ruta-card__prog-label { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-mute); }
.mc-ruta-card__items { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.mc-ruta-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--r-sm);
  background: var(--bg-soft); border: 1px solid var(--line);
}
.mc-ruta-item__check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--bg); flex: none;
  display: grid; place-items: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.mc-ruta-item__check.done { border-color: var(--verde); background: var(--verde); }
.mc-ruta-item__check.done::after { content: "✓"; font-size: .65rem; color: #fff; font-weight: 700; }
.mc-ruta-item__titulo { flex: 1; font-size: .85rem; color: var(--ink); text-decoration: none; }
.mc-ruta-item__titulo:hover { color: var(--violeta); }
.mc-ruta-card__cta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mc-ruta-card__del { font-size: .78rem; color: var(--ink-mute); background: none; border: none; cursor: pointer; padding: 0; }
.mc-ruta-card__del:hover { color: #dc2626; }

/* ---- Nueva ruta (usuario) ---- */
.mc-nueva-ruta {
  border: 1.5px dashed var(--line); border-radius: var(--r-lg);
  background: none; padding: 22px 24px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: .9rem; font-weight: 600; color: var(--ink-mute);
  cursor: pointer; transition: border-color .15s, color .15s; width: 100%;
}
.mc-nueva-ruta:hover { border-color: var(--violeta); color: var(--violeta); }

/* ---- Modal de perfil ---- */
.mc-modal-overlay {
  position: fixed; inset: 0; background: rgba(8,8,56,.5);
  z-index: 800; display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.mc-modal-overlay.open { display: flex; }
.mc-modal {
  background: var(--bg); border-radius: var(--r-xl);
  width: 100%; max-width: 480px; max-height: 90vh;
  overflow-y: auto; box-shadow: var(--sh-lg);
  animation: slideUp .22s var(--ease);
}
@keyframes slideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }
.mc-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px 18px; border-bottom: 1px solid var(--line);
}
.mc-modal__title { font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.mc-modal__close { width: 32px; height: 32px; border-radius: 50%; border: none; background: none; color: var(--ink-soft); cursor: pointer; font-size: 1.1rem; display: grid; place-items: center; }
.mc-modal__close:hover { background: var(--bg-tint); color: var(--ink); }
.mc-modal__body { padding: 22px 26px 26px; }
.mc-modal__section + .mc-modal__section { margin-top: 24px; }
.mc-modal__label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); margin-bottom: 12px; }
.mc-check-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-check-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: var(--bg);
  font-size: .85rem; color: var(--ink-soft); cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  user-select: none;
}
.mc-check-pill input { display: none; }
.mc-check-pill.checked { border-color: var(--violeta); color: var(--violeta); background: rgba(124,58,237,.07); }
.mc-radio-list { display: flex; flex-direction: column; gap: 8px; }
.mc-radio-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--r-md);
  border: 1.5px solid var(--line); background: var(--bg);
  cursor: pointer; transition: border-color .15s;
  user-select: none;
}
.mc-radio-item input { display: none; }
.mc-radio-item.checked { border-color: var(--violeta); }
.mc-radio-item__dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--line); flex: none; transition: border-color .15s;
}
.mc-radio-item.checked .mc-radio-item__dot { border-color: var(--violeta); background: var(--violeta); }
.mc-radio-item__txt { font-size: .9rem; color: var(--ink); }
.mc-radio-item.checked .mc-radio-item__txt { font-weight: 600; color: var(--violeta); }
.mc-modal__foot { padding: 0 26px 26px; }

/* ---- Formulario nueva colección inline ---- */
.mc-nueva-col-form {
  display: flex; gap: 8px; align-items: center;
  padding: 12px 14px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--r-md);
  margin-bottom: 14px;
}
.mc-nueva-col-form input {
  flex: 1; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 7px 12px; font-size: .9rem; font-family: var(--font-sans);
  color: var(--ink); background: var(--bg); outline: none;
}
.mc-nueva-col-form input:focus { border-color: var(--violeta); }

/* ---- Empty state ---- */
.mc-empty-state {
  text-align: center; padding: 40px 24px;
  color: var(--ink-mute);
}
.mc-empty-state__icon { font-size: 2.5rem; margin-bottom: 14px; opacity: .5; }
.mc-empty-state__txt { font-size: .95rem; line-height: 1.6; }
.mc-empty-state__txt a { color: var(--violeta); }

/* ---- Acciones del dashboard (limpiar/exportar) ---- */
.mc-acciones {
  border-top: 2px solid var(--line);
  margin-top: 60px;
  padding: 40px 0 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.mc-accion {
  font-size: .82rem; font-weight: 500; color: var(--ink-soft);
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 10px 20px; background: none; cursor: pointer;
  transition: all .18s;
}
.mc-accion:hover { border-color: var(--ink-soft); color: var(--ink); background: var(--bg-soft); }
.mc-accion.danger { color: #b91c1c; border-color: #fca5a5; }
.mc-accion.danger:hover { border-color: #dc2626; background: #fef2f2; }

/* ---- Reporte mensual ---- */
.mc-reporte-ds { background: var(--bg-soft); border-radius: 16px; padding: 24px; }
.mc-select-mes {
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 6px 12px; font-size: .82rem; font-family: var(--font-sans);
  color: var(--ink); background: var(--bg); cursor: pointer;
  outline: none; transition: border-color .15s;
}
.mc-select-mes:focus { border-color: var(--violeta); }
.mc-reporte { display: flex; flex-direction: column; gap: 24px; }
.mc-reporte__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border-radius: 12px; overflow: hidden;
}
.mc-reporte__stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 12px; background: var(--bg); text-align: center; gap: 4px;
}
.mc-reporte__num {
  font-size: 1.8rem; font-weight: 800;
  background: linear-gradient(135deg, var(--violeta), var(--azul));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.mc-reporte__lbl { font-size: .7rem; color: var(--ink-mute); line-height: 1.3; }
.mc-reporte__section { display: flex; flex-direction: column; gap: 10px; }
.mc-reporte__seclbl { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); margin-bottom: 4px; }

/* ---- Módulo en series ---- */
.mc-serie-card__modulo {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--violeta); margin-bottom: 2px;
}

/* ---- Calendario 30 días ---- */
.mc-calendar__grid--30 { grid-template-columns: repeat(10, 1fr); }
@media (max-width: 480px) { .mc-calendar__grid--30 { grid-template-columns: repeat(6, 1fr); } }

/* ---- Cortes visuales — secciones con fondo propio ---- */

/* ========================================================
   VISUALES: FOTOS INTEGRADAS AL SISTEMA DE TARJETAS
   — Las fotos viven DENTRO del container, con border-radius
     que pertenece al lenguaje visual de cards. Nunca full-bleed
     dentro del flujo de un dashboard. Overlap negativo para
     que el contenido siguiente "emerja" de la imagen.
   ======================================================== */

/* ---- Separador foto antes de "Para vos" (Inicio tab) ---- */
.mc-foto-sep {
  position: relative;
  width: 100%;
  height: clamp(140px, 20vw, 180px);
  border-radius: 20px 20px 0 0;      /* redondeo arriba; abajo lo completa Para vos */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 -32px;               /* −32px: Para vos nace desde dentro de la foto */
  box-shadow: 0 10px 30px rgba(8,8,56,.13);
  /* overlay de marca (navy→violeta), funde abajo hacia el lavanda de #ds-paravos */
  background:
    linear-gradient(to bottom,
      rgba(8,8,38,.38) 0%,
      rgba(40,28,95,.32) 42%,
      rgba(234,231,255,.97) 100%),
    url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1400&q=80') center 40%/cover no-repeat;
}
.mc-foto-sep__overlay {
  text-align: center;
  padding: 0 20px;
  padding-bottom: 32px;              /* sube el texto por encima del solape */
}
.mc-foto-sep__txt { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mc-foto-sep__label {
  font-size: clamp(.92rem,2vw,1.1rem); font-weight: 700; color: #fff;
  letter-spacing: .01em; text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.mc-foto-sep__sub {
  font-size: .8rem; color: rgba(255,255,255,.8);
  text-shadow: 0 1px 5px rgba(0,0,0,.45);
}

/* ---- Para vos: nace desde el solape de la foto ---- */
#ds-paravos {
  position: relative;
  z-index: 1;                        /* sobre el borde de la foto */
  background: linear-gradient(180deg, rgba(234,231,255,.97) 0%, #fff 52%);
  border-radius: 20px;               /* card completa, no sólo esquinas inferiores */
  border: 1px solid rgba(124,58,237,.10);
  padding: clamp(44px,6vw,56px) clamp(20px,4vw,28px) 36px; /* top absorbe el −32px */
  margin-bottom: 40px;
}
#ds-paravos .mc-ds__title { font-size: 1.05rem; color: var(--violeta); }
#ds-paravos .mc-ds__action { color: var(--violeta); opacity: .7; }
#ds-paravos .mc-ds__action:hover { opacity: 1; }

/* ---- Tarjetas premium de "Para vos" ---- */
.mc-pvos-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 14px rgba(8,8,56,.07);
  transition: transform .22s, box-shadow .22s;
  border: 1px solid rgba(0,0,0,.05);
}
.mc-pvos-card:hover { transform: translateY(-5px); box-shadow: 0 10px 32px rgba(8,8,56,.13); }
.mc-pvos-card__top {
  height: 160px; position: relative;
  display: flex; align-items: flex-end; padding: 12px 14px;
}
.mc-pvos-card__cat {
  font-size: .63rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: #fff; background: rgba(0,0,0,.36); border-radius: 4px; padding: 3px 8px;
  backdrop-filter: blur(4px);
}
.mc-pvos-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.mc-pvos-card__titulo { font-size: .95rem; font-weight: 700; color: var(--ink); line-height: 1.45; }
.mc-pvos-card__extracto { font-size: .78rem; color: var(--ink-mute); line-height: 1.55; }
.mc-pvos-card__meta { font-size: .7rem; color: var(--ink-mute); margin-top: auto; padding-top: 6px; }

/* ---- Banners de tab (Progreso y Rutas): contenidos, redondeados, con solape ---- */
.mc-tab-banner {
  position: relative;
  width: 100%;                       /* dentro del container, no full-bleed */
  height: clamp(150px, 22vw, 190px);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;             /* texto abajo-izquierda: más natural */
  margin: 4px 0 -28px;              /* solape: la primera card sube desde la foto */
  box-shadow: 0 10px 30px rgba(8,8,56,.13);
}
/* Scrim localizado: solo detrás del texto, deja ver la foto arriba-derecha */
.mc-tab-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg,
    rgba(8,8,38,.70) 0%,
    rgba(8,8,38,.38) 48%,
    rgba(8,8,38,0) 78%);
  pointer-events: none;
}
/* Overlay de marca unificado para ambas variantes (sin colores externos) */
.mc-tab-banner--progreso {
  background:
    linear-gradient(to bottom, rgba(8,8,38,.18), rgba(8,8,38,.06)),
    url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?w=1400&q=80') center/cover no-repeat;
}
.mc-tab-banner--rutas {
  background:
    linear-gradient(to bottom, rgba(8,8,38,.18), rgba(8,8,38,.06)),
    url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=1400&q=80') center/cover no-repeat;
}
.mc-tab-banner__inner {
  position: relative; z-index: 1;   /* sobre el scrim */
  padding: clamp(18px,3.5vw,28px);
}
.mc-tab-banner__title {
  font-size: clamp(1.3rem, 2.8vw, 1.9rem); font-weight: 800;
  color: #fff; letter-spacing: -.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
  line-height: 1.15;
}
.mc-tab-banner__sub {
  font-size: .82rem; color: rgba(255,255,255,.72);
  margin-top: 5px; max-width: 400px; line-height: 1.5;
  text-shadow: 0 1px 5px rgba(0,0,0,.35);
}
/* Primera card de contenido absorbe el solape del banner */
.mc-tab-banner + .mc-ds {
  position: relative; z-index: 1;
  padding-top: 40px;
  margin-top: 0;
}

/* ---- Divisor ornamental (reemplaza al mini-sep fotográfico) ---- */
.mc-mini-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 36px 0;
  color: rgba(124,58,237,.35);
  font-size: .75rem;
  letter-spacing: .12em;
}
.mc-mini-sep::before,
.mc-mini-sep::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 140px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,.22), transparent);
}

/* Hitos: franja con acento violeta suave */
#ds-hitos {
  background: linear-gradient(135deg, rgba(124,58,237,.06) 0%, rgba(99,102,241,.09) 100%);
  border: 1px solid rgba(124,58,237,.14);
  border-radius: 16px;
  padding: 24px 24px 20px;
  margin-bottom: 40px;
}

/* "Seguí donde quedaste" - acento sutilísimo */
#ds-continuar .mc-continuar-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
}

/* Progreso: banda separadora antes del calendario */
#ds-cats {
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
}

/* Series en curso: fondo blanco con sombra suave */
#ds-series {
  background: var(--bg);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 24px;
  margin-bottom: 40px;
}

/* Rutas de plataforma: fondo tintado */
#rutas-plataforma-grid .mc-ruta-card:first-child {
  border-top: 3px solid #a78bfa;
}
#rutas-plataforma-grid .mc-ruta-card:nth-child(2) {
  border-top: 3px solid var(--verde);
}
#rutas-plataforma-grid .mc-ruta-card:nth-child(3) {
  border-top: 3px solid var(--celeste-d);
}

/* Hero: más impacto visual con patrón de puntos */
.mc-pg-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Hero: hacer que el h2 del hero también sea blanco si aparece */
.mc-pg-hero h2 { color: #fff; }

/* Stats hero más prominentes */
.mc-pg-stats {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 20px 28px;
}

/* Items de historial con mejor visual */
.mc-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mc-item:last-child { border-bottom: none; }
.mc-item__tipo {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--violeta); flex-shrink: 0;
}
.mc-item__tipo.estudio { background: var(--verde); }
.mc-item__ts { font-size: .72rem; color: var(--ink-mute); flex-shrink: 0; }

/* Guardado card mejorado */
.mc-guardado-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow .15s, border-color .15s;
}
.mc-guardado-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); border-color: var(--line-2); }
.mc-guardado-card__body { flex: 1; }
.mc-guardado-card__tipo { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--violeta); margin-bottom: 4px; }
.mc-guardado-card__titulo { font-size: .92rem; font-weight: 600; color: var(--ink); line-height: 1.35; text-decoration: none; display: block; }
.mc-guardado-card__titulo:hover { color: var(--violeta); }
.mc-guardado-card__ts { font-size: .72rem; color: var(--ink-mute); margin-top: 4px; }
.mc-guardado-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.mc-guardado-card__col { font-size: .72rem; color: var(--ink-mute); }
.mc-guardado-card__rm { font-size: .72rem; color: var(--ink-mute); background: none; border: none; cursor: pointer; padding: 0; transition: color .15s; }
.mc-guardado-card__rm:hover { color: #dc2626; }

/* Nota card mejorado */
.mc-nota-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--violeta);
  border-radius: 0 10px 10px 0;
  padding: 16px;
  margin-bottom: 12px;
}
.mc-nota-card__titulo { font-size: .85rem; font-weight: 700; color: var(--violeta); margin-bottom: 6px; }
.mc-nota-card__texto { font-size: .9rem; color: var(--ink-body); line-height: 1.6; }
.mc-nota-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.mc-nota-card__ts { font-size: .72rem; color: var(--ink-mute); }
.mc-nota-card__rm { font-size: .72rem; color: var(--ink-mute); background: none; border: none; cursor: pointer; padding: 0; }
.mc-nota-card__rm:hover { color: #dc2626; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .mc-pg-hero { min-height: 320px; }
  .mc-pg-hero__art { width: 70%; opacity: .7; }
}
@media (max-width: 640px) {
  .mc-pg-hero { padding: 52px 0 44px; min-height: auto; }
  .mc-pg-hero .container { flex-direction: column; align-items: flex-start; gap: 28px; }
  .mc-pg-hero__title { font-size: 2.6rem; }
  .mc-pg-hero__art { width: 100%; opacity: .35; }
  .mc-pg-stats { width: 100%; min-width: auto; grid-template-columns: repeat(3, 1fr); }
  .mc-pg-stat { padding: 18px 12px; }
  .mc-verse-strip { padding: 20px 0; }
  .mc-verse-strip__inner { flex-direction: column; gap: 8px; }
  .mc-series-grid, .mc-rutas-grid { grid-template-columns: 1fr; }
  .mc-guardados-grid { grid-template-columns: 1fr; }
  .mc-cols-grid { grid-template-columns: repeat(2, 1fr); }
  .mc-calendar__grid { grid-template-columns: repeat(9, 1fr); }
  #ds-paravos { padding: 38px 16px 28px; border-radius: 16px; }
  .mc-foto-sep { border-radius: 14px 14px 0 0; margin-bottom: -24px; }
  .mc-tab-banner { border-radius: 16px; margin-bottom: -22px; }
  .mc-tab-banner__inner { padding: 18px 16px; }
  .mc-pvos-card__top { height: 130px; }
}

/* ==================== MODAL DE CUENTA / LOGIN ==================== */
.mc-modal {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.mc-modal[hidden] { display: none; }

.mc-modal__scrim {
  position: absolute; inset: 0;
  background: rgba(8,8,56,.55);
  backdrop-filter: blur(4px);
}
.mc-modal__box {
  position: relative; z-index: 1;
  background: #fff;
  border-radius: 24px;
  padding: clamp(32px,6vw,52px);
  max-width: 400px; width: 100%;
  box-shadow: 0 24px 64px rgba(8,8,56,.22);
  text-align: center;
}
.mc-modal__close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none;
  font-size: 1.4rem; color: var(--ink-mute);
  cursor: pointer; line-height: 1;
}
.mc-modal__close:hover { color: var(--ink); }
.mc-modal__ico { font-size: 2rem; margin-bottom: 10px; }
.mc-modal__titulo {
  font-size: 1.3rem; font-weight: 800;
  color: var(--ink); margin: 0 0 10px;
}
.mc-modal__sub {
  font-size: .88rem; color: var(--ink-mute);
  line-height: 1.65; margin-bottom: 20px;
}
.mc-modal__label {
  display: block; text-align: left;
  font-size: .8rem; font-weight: 700;
  color: var(--ink-mute); margin-bottom: 6px;
}
.mc-modal__input {
  display: block; width: 100%; box-sizing: border-box;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: .95rem;
  color: var(--ink);
  margin-bottom: 14px;
  transition: border-color .18s;
}
.mc-modal__input:focus { outline: none; border-color: var(--violeta); }
.mc-modal__btn {
  display: block; width: 100%;
  padding: 13px;
  background: var(--violeta); color: #fff;
  border: none; border-radius: 10px;
  font-size: .95rem; font-weight: 700;
  cursor: pointer; transition: background .18s;
  margin-bottom: 8px;
}
.mc-modal__btn:hover:not(:disabled) { background: #6d28d9; }
.mc-modal__btn:disabled { opacity: .6; cursor: not-allowed; }
.mc-modal__btn--sec {
  background: transparent; color: var(--violeta);
  border: 1.5px solid var(--violeta);
}
.mc-modal__btn--sec:hover { background: rgba(124,58,237,.07); }
.mc-modal__btn--danger {
  background: transparent; color: #dc2626;
  border: 1.5px solid #dc2626;
  margin-top: 8px;
}
.mc-modal__btn--danger:hover { background: rgba(220,38,38,.07); }
.mc-modal__nota {
  font-size: .78rem; color: var(--ink-mute);
  margin-top: 12px; line-height: 1.5;
}

/* ======================================================================
   PORTAL DE EDAD + CUENTA OBLIGATORIA — Fase 2 (ADR-0010)
   Pantalla de invitación/preview en mi-camino.html (rama adulto o sin
   declarar, sin sesión), popover anclado de NG_EDAD.abrirPopover (Guardar/
   Completar en editorial.html y estudio.html), toast de acción diferida y
   ampliación del modal de perfil ("Tu identidad"). Ver docs/especificaciones/
   fase-2-cuenta-obligatoria-y-perfil.md
   ====================================================================== */

/* ---- Pantalla de invitación / preview (mi-camino.html, §5.1) ---- */
.mc-preview {
  max-width: 640px;
  margin: 28px auto 60px;
  padding: 32px clamp(20px,4vw,40px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
}
.mc-preview__titulo { font-size: 1.15rem; font-weight: 700; color: var(--ink); text-align: center; margin-bottom: 22px; }
.mc-preview__cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(104px,1fr));
  gap: 10px; margin-bottom: 24px;
}
.mc-preview__card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 8px; border-radius: var(--r-md);
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: .78rem; font-weight: 600; color: var(--ink-soft); text-align: center;
}
.mc-preview__card-ico { font-size: 1.4rem; line-height: 1; }
.mc-preview__porque {
  background: var(--bg-tint); border-radius: var(--r-md);
  padding: 18px 20px; margin-bottom: 24px;
}
.mc-preview__porque-title { font-size: .92rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.mc-preview__porque p { font-size: .86rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }

.mc-preview__edad-title { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.mc-preview__edad-txt { font-size: .86rem; color: var(--ink-soft); line-height: 1.6; margin: 0 0 16px; }
.mc-preview__check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .88rem; color: var(--ink-body); line-height: 1.5;
  cursor: pointer; margin-bottom: 18px;
}
.mc-preview__check input { margin-top: 3px; flex: none; width: 17px; height: 17px; accent-color: var(--violeta); cursor: pointer; }
.mc-preview__no {
  display: block; width: 100%;
  background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  padding: 12px; font-size: .92rem; font-weight: 700; color: var(--ink-soft);
  cursor: pointer; transition: all .18s;
}
.mc-preview__no:hover { border-color: var(--violeta); color: var(--violeta); }

.mc-preview__form { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.mc-preview__form[hidden] { display: none; }
.mc-preview__input {
  flex: 1; min-width: 200px; box-sizing: border-box;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; font-size: .92rem; font-family: var(--font-sans);
  color: var(--ink); outline: none; transition: border-color .15s;
}
.mc-preview__input:focus { border-color: var(--violeta); }
.mc-preview__btn {
  flex: none; background: var(--violeta); color: #fff; border: none;
  border-radius: var(--r-sm); padding: 12px 22px; font-size: .9rem; font-weight: 700;
  cursor: pointer; transition: background .18s;
}
.mc-preview__btn:hover:not(:disabled) { background: var(--brand-d); }
.mc-preview__btn:disabled { opacity: .65; cursor: not-allowed; }
.mc-preview__nota { font-size: .76rem; color: var(--ink-mute); margin: 0 0 18px; }
.mc-preview__estado { font-size: .9rem; color: var(--ink); margin: 0 0 18px; line-height: 1.6; }
.mc-preview__estado[hidden], .mc-preview__error[hidden] { display: none; }
.mc-preview__error { font-size: .82rem; color: #dc2626; margin: 0 0 14px; }

.mc-preview__sincuenta {
  display: block; margin: 4px auto 0; background: none; border: none;
  font-size: .78rem; color: var(--ink-mute); text-decoration: underline;
  cursor: pointer; padding: 6px;
}
.mc-preview__sincuenta:hover { color: var(--ink-soft); }

@media (max-width: 640px) {
  .mc-preview { margin: 20px 0 44px; padding: 24px 18px; }
  .mc-preview__form { flex-direction: column; }
  .mc-preview__input { min-width: 0; }
}

/* ---- Popover anclado: gate honesto en Guardar / Completar sin sesión (§5.2) ---- */
.ng-edad-pop {
  position: fixed; z-index: 4200;
  width: min(320px, calc(100vw - 24px));
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-lg);
  padding: 18px 20px;
}
.ng-edad-pop__titulo { font-size: .96rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.ng-edad-pop__desc { font-size: .82rem; color: var(--ink-soft); line-height: 1.55; margin: 0 0 14px; }
.ng-edad-pop__check {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .8rem; color: var(--ink-body); line-height: 1.45;
  cursor: pointer; margin-bottom: 12px;
}
.ng-edad-pop__check input { margin-top: 2px; flex: none; width: 15px; height: 15px; accent-color: var(--violeta); cursor: pointer; }
.ng-edad-pop__form { display: flex; gap: 8px; margin: 0 0 8px; }
.ng-edad-pop__form[hidden] { display: none; }
.ng-edad-pop__input {
  flex: 1; min-width: 0; box-sizing: border-box;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 9px 11px; font-size: .84rem; font-family: var(--font-sans);
  color: var(--ink); outline: none; transition: border-color .15s;
}
.ng-edad-pop__input:focus { border-color: var(--violeta); }
.ng-edad-pop__btn {
  flex: none; background: var(--violeta); color: #fff; border: none;
  border-radius: var(--r-sm); padding: 9px 16px; font-size: .82rem; font-weight: 700;
  cursor: pointer; transition: background .18s;
}
.ng-edad-pop__btn:hover:not(:disabled) { background: var(--brand-d); }
.ng-edad-pop__btn:disabled { opacity: .65; cursor: not-allowed; }
.ng-edad-pop__estado { font-size: .8rem; color: var(--ink); line-height: 1.5; margin: 0 0 8px; }
.ng-edad-pop__error { font-size: .78rem; color: #dc2626; margin: 0 0 8px; }
.ng-edad-pop__ahora-no {
  display: block; background: none; border: none; padding: 0; margin-top: 2px;
  font-size: .78rem; font-weight: 600; color: var(--ink-mute); cursor: pointer;
}
.ng-edad-pop__ahora-no:hover { color: var(--ink-soft); text-decoration: underline; }

@media (max-width: 480px) {
  .ng-edad-pop { width: calc(100vw - 24px); }
}

/* ---- Toast reutilizable: confirmación tras acción diferida (ng_accion_pendiente, §5.2) ---- */
.ng-toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 5000;
  transform: translate(-50%, 12px);
  opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  max-width: min(92vw, 480px);
  background: var(--navy); color: #fff;
  border-radius: var(--r-lg);
  padding: 14px 16px 14px 18px;
  box-shadow: var(--sh-lg);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.ng-toast--visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.ng-toast__txt { font-size: .86rem; line-height: 1.5; flex: 1; min-width: 180px; }
.ng-toast__acciones { display: flex; align-items: center; gap: 10px; flex: none; }
.ng-toast__btn {
  background: var(--violeta); color: #fff; border: none;
  border-radius: var(--r-pill); padding: 8px 16px;
  font-size: .82rem; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.ng-toast__btn:hover { background: var(--brand-d); }
.ng-toast__cerrar {
  background: none; border: none; color: rgba(255,255,255,.6);
  font-size: 1.1rem; cursor: pointer; line-height: 1; padding: 2px;
}
.ng-toast__cerrar:hover { color: #fff; }

/* ---- Modal "Editá tu camino" — sección "Tu identidad" (nombre + objetivo libre) ---- */
.mc-modal__sublabel { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.mc-modal__input-text, .mc-modal__textarea {
  width: 100%; box-sizing: border-box;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 14px; font-size: .92rem; font-family: var(--font-sans);
  color: var(--ink); outline: none; transition: border-color .15s;
}
.mc-modal__input-text:focus, .mc-modal__textarea:focus { border-color: var(--violeta); }
.mc-modal__textarea { resize: vertical; min-height: 56px; line-height: 1.5; }
.mc-modal__counter { font-size: .72rem; color: var(--ink-soft); text-align: right; margin-top: 4px; }
.mc-modal__privacidad {
  margin-top: 24px; padding: 12px 14px;
  background: var(--bg-soft); border-radius: var(--r-md);
  font-size: .8rem; color: var(--ink-soft); line-height: 1.5;
}

/* ---- Hero de Mi Camino — nombre + avatar con inicial (perfil enriquecido) ---- */
.mc-pg-hero__identidad { display: flex; align-items: center; gap: 8px; }
.mc-pg-hero__avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--celeste), var(--violeta));
  color: #fff; font-weight: 700; font-size: .92rem;
}
.mc-pg-hero__nombre { font-size: .95rem; font-weight: 700; color: #fff; }

/* ---- Responsive: toast en pantalla chica ---- */
@media (max-width: 640px) {
  .ng-toast { left: 12px; right: 12px; bottom: 14px; transform: translateY(12px); max-width: none; }
  .ng-toast--visible { transform: translateY(0); }
}


