/* PLANNER · Novedades, estilo editorial minimalista. Usa los tokens de planner_landing
   (landing.css): --pl-*, .pl-wrap, .pl-btn. --a es el color de la categoría. */

/* ---------- Comunes ---------- */
.nv-page { padding-top: 24px; }
.nv-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--pl-blue); }
.nv-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13.5px; color: var(--pl-muted); }
.nv-cat { font-weight: 700; color: var(--a, var(--pl-blue)); text-decoration: none; }
.nv-cat:hover { text-decoration: underline; text-underline-offset: 3px; }
.nv-kicker .nv-cat + time::before { content: '·'; margin-right: 10px; color: var(--pl-border); }
.nv-more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--pl-heading); text-decoration: none; }
.nv-more .pl-ico { width: 17px; height: 17px; transition: transform .25s var(--pl-ease); }
.nv-more:hover { color: var(--pl-blue); }
.nv-more:hover .pl-ico { transform: translateX(3px); }
.nv-section-title { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--pl-muted); }
.nv-btn--primary { background: var(--pl-blue); color: #fff !important; }
.nv-btn--primary:hover { background: var(--pl-brand-light); }

/* Títulos enlazados: subrayado fino que aparece al pasar el ratón. */
.nv-lead__title a, .nv-card__title a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--pl-ease); }
.nv-lead__title a:hover, .nv-card__title a:hover { background-size: 100% 1.5px; }

/* ---------- Listado ---------- */
.nv-head { padding-top: 56px; }
.nv-head__title { margin-top: 14px; max-width: 820px; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; color: var(--pl-heading); }
.nv-head__lead { margin-top: 18px; max-width: 620px; font-size: 19px; line-height: 1.55; color: var(--pl-muted); }
.nv-tabs { display: flex; gap: 28px; margin-top: 44px; border-bottom: 1px solid var(--pl-border); overflow-x: auto; scrollbar-width: none; }
.nv-tabs::-webkit-scrollbar { display: none; }
.nv-tab { position: relative; flex: none; padding: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--pl-muted); text-decoration: none; transition: color .2s; }
.nv-tab:hover { color: var(--pl-heading); }
.nv-tab.is-active { color: var(--pl-heading); }
.nv-tab.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--pl-heading); }

.nv-list { padding-top: 48px; padding-bottom: 120px; }
.nv-lead { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.nv-lead__media, .nv-card__media { display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 18px; background: var(--pl-soft); }
.nv-lead__media img, .nv-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--pl-ease); }
.nv-lead:hover .nv-lead__media img, .nv-card:hover .nv-card__media img { transform: scale(1.03); }
.nv-lead__title { margin-top: 14px; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.025em; font-weight: 700; color: var(--pl-heading); }
.nv-lead__summary { margin-top: 14px; font-size: 17.5px; line-height: 1.6; color: var(--pl-muted); }
.nv-lead .nv-more { margin-top: 24px; }

.nv-list .nv-section-title { margin: 88px 0 28px; padding-top: 28px; border-top: 1px solid var(--pl-border); }
.nv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.nv-card { display: flex; flex-direction: column; align-items: flex-start; }
.nv-card__media { width: 100%; margin-bottom: 18px; border-radius: 14px; }
.nv-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--a, var(--pl-blue)); background: color-mix(in srgb, var(--a, var(--pl-blue)) 8%, var(--pl-surface)); }
.nv-card__placeholder .pl-ico { width: 40px; height: 40px; stroke-width: 1.4; }
.nv-card__title { margin-top: 8px; font-size: 21px; line-height: 1.28; letter-spacing: -.01em; font-weight: 700; color: var(--pl-heading); }
.nv-card__summary { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--pl-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.nv-empty { max-width: 480px; padding: 40px 0; }
.nv-empty h2 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--pl-heading); }
.nv-empty p { margin: 10px 0 20px; font-size: 17px; color: var(--pl-muted); }

.nv-pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--pl-border); }
.nv-pager__nums { display: flex; gap: 4px; margin: 0 auto; }
.nv-pager a { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--pl-muted); text-decoration: none; }
.nv-pager a:hover { color: var(--pl-heading); }
.nv-pager__num { justify-content: center; min-width: 36px; height: 36px; border-radius: 10px; }
.nv-pager__num.is-active { background: var(--pl-soft); color: var(--pl-heading) !important; }

/* ---------- Artículo ---------- */
.nv-preview { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 10px 16px; background: #FEF3C7; color: #78350F; font-size: 14.5px; text-align: center; }
.nv-preview a { font-weight: 700; color: inherit; text-decoration: underline; }
.nv-post__head { width: 100%; max-width: 720px; margin: 0 auto; padding: 56px var(--pl-gutter) 0; box-sizing: content-box; }
.nv-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--pl-muted); }
.nv-crumbs a { color: var(--pl-muted); text-decoration: none; }
.nv-crumbs a:hover { color: var(--pl-heading); }
.nv-crumbs .nv-cat { color: var(--a, var(--pl-blue)); }
.nv-post__title { margin-top: 18px; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -.035em; font-weight: 700; color: var(--pl-heading); text-wrap: balance; }
.nv-post__lead { margin-top: 18px; font-size: 20px; line-height: 1.55; color: var(--pl-muted); }
.nv-byline { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding-bottom: 32px; border-bottom: 1px solid var(--pl-border); }
.nv-byline__avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; }
/* El icono es un cuadrado redondeado: con un poco de zoom el círculo no muestra sus esquinas. */
.nv-byline__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.16); }
.nv-byline__text b { display: block; font-size: 15px; color: var(--pl-heading); }
.nv-byline__text small { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1px; font-size: 14px; color: var(--pl-muted); }

.nv-post__cover { width: calc(100% - 2 * var(--pl-gutter)); max-width: 1080px; margin: 40px auto 0; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 20px; background: var(--pl-soft); }
.nv-post__cover img { width: 100%; height: 100%; object-fit: cover; }

/* Columna de lectura centrada; con índice, el índice ocupa el margen izquierdo en pantallas anchas. */
.nv-post__layout { display: grid; grid-template-columns: minmax(0, 720px); justify-content: center; gap: 0 56px; padding: 48px var(--pl-gutter) 64px; }
.nv-post__layout.has-toc { grid-template-columns: 220px minmax(0, 720px) 220px; }
.nv-post__layout.has-toc .nv-post__body { grid-column: 2; }
.nv-toc { grid-column: 1; grid-row: 1; align-self: start; position: sticky; top: 100px; }
.nv-toc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pl-muted); cursor: pointer; }
.nv-toc summary::-webkit-details-marker { display: none; }
.nv-toc summary .pl-ico { display: none; width: 18px; height: 18px; transition: transform .2s; }
.nv-toc ol { margin: 14px 0 0; padding: 0; list-style: none; border-left: 1px solid var(--pl-border); }
.nv-toc a { display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--pl-muted); text-decoration: none; transition: color .2s, border-color .2s; }
.nv-toc a:hover { color: var(--pl-heading); }
.nv-toc a.is-active { color: var(--pl-heading); border-left-color: var(--a, var(--pl-blue)); font-weight: 600; }
.nv-toc__sub a { padding-left: 26px; font-size: 13.5px; }

/* Contenido escrito en el editor de Odoo. */
.nv-prose { font-size: 18.5px; line-height: 1.75; color: var(--pl-text); overflow-wrap: break-word; }
.nv-prose > * + * { margin-top: 1.1em; }
.nv-prose h2 { margin-top: 1.9em; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -.015em; font-weight: 700; color: var(--pl-heading); scroll-margin-top: 100px; }
.nv-prose h3 { margin-top: 1.7em; font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--pl-heading); scroll-margin-top: 100px; }
.nv-prose h4 { margin-top: 1.5em; font-size: 19px; font-weight: 700; color: var(--pl-heading); }
.nv-prose h2 + *, .nv-prose h3 + * { margin-top: .6em; }
.nv-prose a { color: var(--pl-link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.nv-prose strong, .nv-prose b { font-weight: 700; color: var(--pl-heading); }
.nv-prose ul, .nv-prose ol { padding-left: 1.4em; }
.nv-prose ul { list-style: disc; }
.nv-prose ol { list-style: decimal; }
.nv-prose li + li { margin-top: .4em; }
.nv-prose li::marker { color: var(--a, var(--pl-blue)); }
.nv-prose img { max-width: 100%; height: auto; border-radius: 16px; }
.nv-prose figure { margin: 1.6em 0; }
.nv-prose figcaption { margin-top: 8px; font-size: 14.5px; color: var(--pl-muted); text-align: center; }
.nv-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--a, var(--pl-blue)); font-size: 20px; font-style: italic; color: var(--pl-heading); }
.nv-prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--pl-border); }
.nv-prose code { padding: 2px 6px; border-radius: 6px; background: var(--pl-soft); font-size: .88em; }
.nv-prose pre { padding: 16px 18px; border-radius: 14px; background: var(--pl-soft); overflow-x: auto; font-size: 15px; }
.nv-prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.nv-prose th, .nv-prose td { padding: 10px 12px; border: 1px solid var(--pl-border); text-align: left; }
.nv-prose th { background: var(--pl-soft); font-weight: 700; color: var(--pl-heading); }
/* Clases que añade el editor (Bootstrap) sin cargar Bootstrap. */
.nv-prose .float-start { float: left; margin: 0 24px 16px 0; max-width: 50%; }
.nv-prose .float-end { float: right; margin: 0 0 16px 24px; max-width: 50%; }
.nv-prose .mx-auto, .nv-prose .d-block { display: block; margin-left: auto; margin-right: auto; }
.nv-prose .text-center { text-align: center; }
.nv-prose .text-end { text-align: right; }
.nv-prose .rounded-circle { border-radius: 50%; }
.nv-prose .img-thumbnail { padding: 4px; border: 1px solid var(--pl-border); }
.nv-prose .shadow { box-shadow: var(--pl-shadow-card); }
.nv-prose .w-25 { width: 25% !important; } .nv-prose .w-50 { width: 50% !important; } .nv-prose .w-75 { width: 75% !important; } .nv-prose .w-100 { width: 100% !important; }
.nv-prose .media_iframe_video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #000; }
.nv-prose .media_iframe_video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nv-prose .media_iframe_video .media_iframe_video_size { display: none; }
.nv-prose::after { content: ''; display: table; clear: both; }

.nv-gallery { margin-top: 48px; }
.nv-gallery__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.nv-gallery h2 { font-size: 24px; font-weight: 700; color: var(--pl-heading); }
.nv-carousel { margin-top: 16px; }
.nv-carousel__count { font-size: 14px; font-weight: 600; color: var(--pl-muted); font-variant-numeric: tabular-nums; }
.nv-carousel__count b { color: var(--pl-heading); }
.nv-carousel__viewport { position: relative; }
.nv-carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: var(--pl-r-lg); outline: none; }
.nv-carousel__track::-webkit-scrollbar { display: none; }
.nv-carousel__track:focus-visible { box-shadow: 0 0 0 3px #6EA8FE; }
.nv-carousel__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
/* Las imágenes se ven enteras (también las verticales) sobre un fondo suave. */
.nv-carousel__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--pl-r-lg); background: var(--pl-soft); }
.nv-carousel__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.nv-carousel__slide figcaption { margin-top: 10px; font-size: 15px; color: var(--pl-muted); text-align: center; }
.nv-carousel__arrow { position: absolute; top: calc(50% - 22px); width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--pl-surface); color: var(--pl-heading); box-shadow: var(--pl-shadow-card); cursor: pointer; transition: opacity .2s, transform .2s var(--pl-ease); }
.nv-carousel__arrow--prev { left: 14px; }
.nv-carousel__arrow--next { right: 14px; }
.nv-carousel__arrow:hover { transform: scale(1.06); }
.nv-carousel__arrow[disabled] { opacity: 0; pointer-events: none; }
.nv-carousel__arrow .pl-ico { width: 22px; height: 22px; }
.nv-carousel__thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding: 3px 3px 5px; }
.nv-carousel__thumbs::-webkit-scrollbar { display: none; }
.nv-carousel__thumb { flex: none; width: 88px; height: 60px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--pl-soft); cursor: pointer; opacity: .55; transition: opacity .2s, box-shadow .2s; }
.nv-carousel__thumb img { width: 100%; height: 100%; object-fit: cover; }
.nv-carousel__thumb:hover { opacity: .85; }
.nv-carousel__thumb.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--pl-surface), 0 0 0 4px var(--a, var(--pl-blue)); }

.nv-carousel__media { cursor: zoom-in; }

/* Visor a pantalla completa (<dialog>): imagen al centro y la página detrás, oscurecida y algo borrosa. */
.nv-lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
.nv-lightbox::backdrop { background: rgba(5, 8, 14, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.nv-lightbox[open] { display: flex; flex-direction: column; animation: nv-lb-in .25s var(--pl-ease); }
.nv-lightbox[open]::backdrop { animation: nv-lb-fade .25s ease; }
@keyframes nv-lb-in { from { opacity: 0; transform: scale(.98); } }
@keyframes nv-lb-fade { from { opacity: 0; } }
.nv-lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 0; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nv-lightbox__count { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.nv-lightbox__btn { width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: background-color .2s, transform .2s var(--pl-ease), opacity .2s; }
.nv-lightbox__btn:hover { background: rgba(255, 255, 255, .26); }
.nv-lightbox__btn:focus-visible { outline: 2px solid #6EA8FE; outline-offset: 2px; }
.nv-lightbox__btn .pl-ico { width: 22px; height: 22px; }
.nv-lightbox__stage { position: relative; flex: 1; min-height: 0; }
.nv-lightbox__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.nv-lightbox__track::-webkit-scrollbar { display: none; }
.nv-lightbox__slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px 84px 22px; }
.nv-lightbox__slide img { max-width: 100%; max-height: calc(100% - 44px); object-fit: contain; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); }
.nv-lightbox__slide figcaption { max-width: 720px; font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, .88); text-align: center; }
.nv-lightbox__arrow { position: absolute; top: 50%; margin-top: -23px; }
.nv-lightbox__arrow--prev { left: 20px; }
.nv-lightbox__arrow--next { right: 20px; }
.nv-lightbox__arrow[disabled] { opacity: 0; pointer-events: none; }
html.nv-lightbox-open { overflow: hidden; }

.nv-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--pl-border); }
.nv-share__label { font-size: 14px; font-weight: 700; color: var(--pl-muted); }
.nv-share__links { display: flex; gap: 6px; }
.nv-share__btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--pl-muted); cursor: pointer; transition: background-color .2s, color .2s; }
.nv-share__btn .pl-ico { width: 18px; height: 18px; }
.nv-share__btn:hover { color: var(--nv-share, var(--pl-heading)); background: var(--pl-soft); }
.nv-share__btn--whatsapp { --nv-share: #1DA851; }
.nv-share__btn--facebook { --nv-share: #0866FF; }
.nv-share__msg { font-size: 14px; font-weight: 600; color: var(--pl-success); }

.nv-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-top: 40px; padding: 22px 0; border-top: 1px solid var(--pl-border); border-bottom: 1px solid var(--pl-border); }
.nv-cta img { width: 52px; height: 52px; border-radius: 14px; }
.nv-cta h2 { font-size: 18px; font-weight: 700; color: var(--pl-heading); }
.nv-cta p { margin-top: 2px; font-size: 15px; color: var(--pl-muted); }

.nv-related { padding-top: 24px; padding-bottom: 120px; }
.nv-related__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 28px; padding-top: 28px; border-top: 1px solid var(--pl-border); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .nv-post__layout.has-toc { grid-template-columns: minmax(0, 720px); }
    .nv-post__layout.has-toc .nv-post__body { grid-column: 1; }
    .nv-toc { grid-column: 1; grid-row: auto; position: static; margin-bottom: 36px; padding: 16px 18px; border-radius: 14px; background: var(--pl-soft); }
    .nv-toc summary .pl-ico { display: block; }
    .nv-toc[open] summary .pl-ico { transform: rotate(180deg); }
    .nv-toc ol { border-left: 0; }
    .nv-toc a { padding-left: 0; border-left: 0; }
    .nv-toc__sub a { padding-left: 14px; }
}
@media (max-width: 1100px) {
    .nv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .nv-lead { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 700px) {
    .nv-page { padding-top: 8px; }
    .nv-head { padding-top: 32px; }
    .nv-head__lead, .nv-post__lead { font-size: 17px; }
    .nv-tabs { gap: 22px; margin-top: 32px; }
    .nv-list { padding-top: 32px; }
    .nv-list .nv-section-title { margin-top: 56px; }
    .nv-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .nv-post__head { padding-top: 32px; }
    .nv-post__cover { width: 100%; margin-top: 28px; border-radius: 0; }
    .nv-post__layout { padding-top: 32px; }
    .nv-prose { font-size: 17px; }
    .nv-prose .float-start, .nv-prose .float-end { float: none; margin: 1em auto; max-width: 100%; }
    .nv-carousel__media { aspect-ratio: 4 / 3; }
    .nv-carousel__arrow { display: none; }
    .nv-lightbox__slide { padding: 12px 12px 18px; }
    .nv-lightbox__arrow { display: none; }
    .nv-lightbox__bar { padding: 14px 14px 0; }
    .nv-cta { grid-template-columns: auto minmax(0, 1fr); }
    .nv-cta .pl-btn { grid-column: 1 / -1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .nv-card__media img, .nv-lead__media img, .nv-share__btn, .nv-carousel__arrow, .nv-more .pl-ico { transition: none; }
    .nv-carousel__track { scroll-behavior: auto; }
    .nv-lightbox[open], .nv-lightbox[open]::backdrop { animation: none; }
}
