@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #111827;
  background: #F4F6FA;
  min-height: 100vh;
}

/* Panel admin — override del body base */
body.na-body {
  background: #F0F4F9;
  font-size: 14px;
}

/* ════════════════════════════════════════════════════════
   FEED — index.php
════════════════════════════════════════════════════════ */

/* Banner */
.nf-banner { width: 100%; line-height: 0; }
.nf-banner__img { width: 100%; height: auto; display: block; object-fit: cover; }

/* Filtros */
.nf-bar {
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.nf-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.nf-search { position: relative; flex: 1; min-width: 220px; }
.nf-search__icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: #9CA3AF;
  pointer-events: none;
}
.nf-search__input {
  width: 100%;
  padding: .62rem 2.1rem .62rem 2.4rem;
  border: 1.5px solid #E5E7EB;
  border-radius: 8px;
  font-family: inherit;
  font-size: .88rem;
  outline: none;
  background: #F9FAFB;
  transition: border-color .18s, box-shadow .18s;
  color: #111827;
}
.nf-search__input:focus {
  border-color: #003087;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,48,135,.1);
}
.nf-search__clear {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  display: flex;
  padding: 2px;
  text-decoration: none;
  line-height: 0;
}
.nf-search__clear:hover { color: #374151; }

.nf-years { display: flex; gap: .35rem; flex-wrap: wrap; }
.nf-year {
  padding: .38rem .92rem;
  border-radius: 20px;
  border: 1.5px solid #E5E7EB;
  background: none;
  font-family: inherit;
  font-size: .79rem;
  font-weight: 600;
  cursor: pointer;
  color: #6B7280;
  text-decoration: none;
  transition: all .15s;
  display: inline-block;
}
.nf-year:hover { border-color: #003087; color: #003087; }
.nf-year.is-active { background: #003087; border-color: #003087; color: #fff; }

/* Main */
.nf-main { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem 5rem; }

/* Grid */
.nf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Card */
.nf-card {
  background: #fff;
  border: 1px solid #E9EBF0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, box-shadow .25s, transform .22s;
  animation: nf-up .4s ease both;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  text-decoration: none;
  color: inherit;
}
.nf-card:hover {
  border-color: #BFCFE8;
  box-shadow: 0 12px 36px rgba(0,48,135,.13);
  transform: translateY(-5px);
}
@keyframes nf-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nf-card--featured { grid-column: 1 / -1; flex-direction: row; }
.nf-card--featured .nf-card__img { flex: 0 0 50%; height: auto; min-height: 310px; }
.nf-card--featured .nf-card__body { padding: 2.25rem 2rem; }
.nf-card--featured .nf-card__title { font-size: 1.75rem; -webkit-line-clamp: 4; }
.nf-card--featured .nf-card__excerpt { -webkit-line-clamp: 4; }

.nf-card__img {
  position: relative;
  height: 218px;
  overflow: hidden;
  background: #EEF0F5;
  flex-shrink: 0;
}
.nf-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.nf-card:hover .nf-card__img img { transform: scale(1.05); }
.nf-card__noimg {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C5C9D4;
}

.nf-card__body {
  padding: 1.3rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.nf-card__date {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #C0392B;
  display: block;
  margin-bottom: .5rem;
}
.nf-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.33;
  margin: 0 0 .55rem;
  color: #0F172A;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nf-card__excerpt {
  font-size: .855rem;
  color: #6B7280;
  line-height: 1.65;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nf-card__cta {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  font-weight: 700;
  color: #003087;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 1rem;
  padding-top: .8rem;
  border-top: 1px solid #F3F4F6;
  transition: color .15s, gap .18s;
}
.nf-card:hover .nf-card__cta { gap: .6rem; color: #C0392B; }

/* Vacío */
.nf-empty { text-align: center; padding: 6rem 2rem; max-width: 440px; margin: 0 auto; }
.nf-empty__icon { color: #C5C9D4; margin-bottom: 1.2rem; }
.nf-empty h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: #0F172A;
  margin: 0 0 .5rem;
}
.nf-empty p { color: #6B7280; font-size: .9rem; margin-top: .4rem; }
.nf-btn-reset {
  display: inline-block;
  margin-top: 1.25rem;
  padding: .65rem 1.7rem;
  background: #003087;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.nf-btn-reset:hover { background: #002570; }

/* Paginación */
.nf-pag {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #E9EBF0;
}
.nf-pag__btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem 1.3rem;
  border: 1.5px solid #003087;
  border-radius: 8px;
  background: none;
  font-family: inherit;
  font-size: .83rem;
  font-weight: 600;
  cursor: pointer;
  color: #003087;
  text-decoration: none;
  transition: all .15s;
}
.nf-pag__btn:hover { background: #003087; color: #fff; }
.nf-pag__btn--disabled {
  opacity: .3;
  cursor: not-allowed;
  pointer-events: none;
}
.nf-pag__info { font-size: .83rem; color: #6B7280; }

/* ════════════════════════════════════════════════════════
   DETALLE — detalle.php
════════════════════════════════════════════════════════ */

.nd-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6B7280;
  text-decoration: none;
  margin-bottom: 2rem;
  padding: .45rem .85rem .45rem .6rem;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.nd-back:hover { color: #003087; background: #EFF6FF; }

.nd-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.nd-header { margin-bottom: 2rem; }
.nd-date {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #C0392B;
  margin-bottom: .7rem;
}
.nd-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.2;
  color: #0F172A;
  margin: 0 0 .7rem;
  letter-spacing: -.01em;
}

.nd-hero {
  margin-bottom: 2.5rem;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
}
.nd-hero__img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.nd-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #374151;
  margin-bottom: 3rem;
}
.nd-content p  { margin-bottom: 1.5rem; text-align: justify; }
.nd-content h2,
.nd-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #0F172A;
  margin: 2.2rem 0 .85rem;
  font-weight: 700;
}
.nd-content img    { max-width: 100%; border-radius: 10px; }
.nd-content a      { color: #003087; text-decoration: underline; text-underline-offset: 2px; }
.nd-content ul,
.nd-content ol     { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.nd-content li     { margin-bottom: .55rem; }
.nd-content strong { font-weight: 700; color: #0F172A; }
.nd-content blockquote {
  border-left: 3px solid #003087;
  margin: 1.75rem 0;
  padding: .9rem 1.4rem;
  background: #EFF6FF;
  color: #4B5563;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

.nd-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #E5E7EB; }
.nd-section__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 1.25rem;
}

/* Galería */
.nd-galeria { display: grid; gap: .65rem; }
.nd-galeria--1 { grid-template-columns: 1fr; }
.nd-galeria--2 { grid-template-columns: repeat(2, 1fr); }
.nd-galeria--3 { grid-template-columns: repeat(3, 1fr); }

.nd-gal-item {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 10px;
  overflow: hidden;
  background: #EEF0F5;
  border: 1px solid #E5E7EB;
  cursor: zoom-in;
}
.nd-gal-item--video { cursor: default; }
.nd-gal-media { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.nd-gal-item:not(.nd-gal-item--video):hover .nd-gal-media { transform: scale(1.04); }
.nd-gal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,48,135,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity .22s;
}
.nd-gal-item:not(.nd-gal-item--video):hover .nd-gal-overlay { opacity: 1; }

/* Adjunto */
.nd-adjunto {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.nd-adjunto:hover { border-color: #003087; box-shadow: 0 4px 16px rgba(0,48,135,.1); }
.nd-adjunto__icon {
  width: 46px; height: 46px;
  background: #EFF6FF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #003087;
  flex-shrink: 0;
}
.nd-adjunto__info { flex: 1; min-width: 0; }
.nd-adjunto__name { display: block; font-weight: 600; color: #0F172A; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-adjunto__meta { font-size: .76rem; color: #9CA3AF; }
.nd-adjunto__dl   { color: #6B7280; flex-shrink: 0; transition: color .15s; }
.nd-adjunto:hover .nd-adjunto__dl { color: #003087; }

/* Error */
.nd-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  gap: 1rem;
  text-align: center;
  color: #9CA3AF;
}
.nd-error svg { color: #D1D5DB; }
.nd-error h2 { font-family: 'Playfair Display', serif; color: #0F172A; margin: 0; font-size: 1.5rem; }
.nd-btn-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.3rem;
  border: 1.5px solid #003087;
  border-radius: 8px;
  color: #003087;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 600;
  transition: all .15s;
}
.nd-btn-back:hover { background: #003087; color: #fff; }

/* Lightbox */
.nd-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8,12,18,.94);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nd-lb-close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  background: rgba(255,255,255,.12);
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background .15s;
}
.nd-lb-close:hover { background: rgba(255,255,255,.25); }
.nd-lb-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  border-radius: 50%;
  width: 50px; height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background .15s;
}
.nd-lb-nav:hover:not(:disabled) { background: rgba(255,255,255,.25); }
.nd-lb-nav:disabled { opacity: .25; cursor: not-allowed; }
.nd-lb-nav--prev { left: 1.2rem; }
.nd-lb-nav--next { right: 1.2rem; }
.nd-lb-content {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nd-lb-img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 48px rgba(0,0,0,.6);
}
.nd-lb-counter {
  position: absolute;
  bottom: 1.2rem;
  left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .nf-card--featured { flex-direction: column; }
  .nf-card--featured .nf-card__img { flex: none; height: 230px; min-height: unset; }
  .nf-card--featured .nf-card__body { padding: 1.3rem 1.5rem 1.6rem; }
  .nf-card--featured .nf-card__title { font-size: 1.2rem; }
  .nf-grid { grid-template-columns: 1fr; }
  .nf-bar__inner { flex-direction: column; align-items: stretch; }
  .nd-galeria--3 { grid-template-columns: repeat(2, 1fr); }
  .nd-galeria--2 { grid-template-columns: 1fr; }
  .nd-hero__img { max-height: 280px; }
}

/* ════════════════════════════════════════════════════════
   ADMIN — index.php (na-*)
════════════════════════════════════════════════════════ */

/* Login */
.na-login { min-height: 100vh; display: flex; }

.na-login__left {
  display: none;
  flex: 0 0 42%;
  background: linear-gradient(145deg, #003087 0%, #001340 100%);
  position: relative;
  overflow: hidden;
  padding: 3.5rem;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 860px) { .na-login__left { display: flex; } }

.na-login__left-content { position: relative; z-index: 2; }
.na-login__brand-img {
  width: 210px; height: auto; object-fit: contain;
  filter: brightness(0) invert(1); margin-bottom: 2.5rem;
}
.na-login__slogan { font-size: 1.8rem; font-weight: 700; color: #fff; line-height: 1.28; margin: 0 0 .85rem; }
.na-login__inst   { font-size: .875rem; color: rgba(255,255,255,.55); margin: 0; }

.na-login__decoration { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.na-login__circle { position: absolute; border-radius: 50%; background: rgba(255,255,255,.06); }
.na-login__circle--1 { width: 440px; height: 440px; bottom: -170px; right: -130px; }
.na-login__circle--2 { width: 230px; height: 230px; top: -70px; right: 20px; }
.na-login__circle--3 { width: 120px; height: 120px; top: 40%; left: -40px; }

.na-login__right {
  flex: 1; display: flex; align-items: center;
  justify-content: center; background: #F8FAFC; padding: 2rem;
}
.na-login__card {
  background: #fff; border: 1px solid #E5E7EB; border-radius: 16px;
  padding: 2.5rem; width: 100%; max-width: 420px;
  box-shadow: 0 4px 28px rgba(0,48,135,.08);
}
.na-login__card-logo { display: flex; justify-content: center; margin-bottom: 1.75rem; }
.na-login__card-logo-img { height: 60px; width: auto; object-fit: contain; }
@media (min-width: 860px) { .na-login__card-logo { display: none; } }
.na-login__title { font-size: 1.5rem; font-weight: 700; margin: 0 0 .35rem; color: #0F172A; }
.na-login__sub   { font-size: .875rem; color: #6B7280; margin: 0 0 1.8rem; }

/* Panel layout */
.na-panel { display: flex; min-height: 100vh; }

.na-sidebar {
  width: 230px; flex-shrink: 0; background: #0B1E3D; color: #fff;
  display: flex; flex-direction: column; padding: 1rem .75rem;
}
.na-sidebar__brand {
  padding: .6rem .5rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: .75rem; display: flex; flex-direction: column; gap: .4rem;
}
.na-sidebar__logo-img { width: 150px; height: auto; object-fit: contain; filter: brightness(0) invert(1); }
.na-sidebar__brand-label {
  font-size: .68rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.3); padding-left: 2px;
}
.na-sidebar__nav { display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.na-nav-item {
  display: flex; align-items: center; gap: .6rem; width: 100%;
  text-align: left; background: none; border: none; color: rgba(255,255,255,.5);
  padding: .65rem .75rem; border-radius: 8px; cursor: pointer;
  font-family: inherit; font-size: .84rem; font-weight: 500; transition: all .15s;
}
.na-nav-item:hover { color: #fff; background: rgba(255,255,255,.08); }
.na-nav-item.is-active { color: #fff; background: rgba(255,255,255,.11); box-shadow: inset 3px 0 0 #60A5FA; }
.na-sidebar__logout {
  display: flex; align-items: center; gap: .5rem; background: none;
  border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.4);
  border-radius: 8px; padding: .6rem .75rem; cursor: pointer;
  font-family: inherit; font-size: .82rem; transition: all .15s; margin-top: .5rem;
}
.na-sidebar__logout:hover { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.07); }

/* Main */
.na-main { flex: 1; overflow-y: auto; background: #F0F4F9; }
.na-section { padding: 2rem 2.5rem; max-width: 1100px; }
.na-section__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 1.75rem; gap: 1rem;
}
.na-section__title { margin: 0 0 .25rem; font-size: 1.4rem; font-weight: 700; color: #0F172A; }
.na-section__sub   { margin: 0; color: #6B7280; font-size: .82rem; }

/* Filtros */
.na-filters { display: flex; gap: .75rem; margin-bottom: 1.25rem; flex-wrap: wrap; align-items: center; }
.na-filters__search { position: relative; display: flex; align-items: center; flex: 1; min-width: 180px; }
.na-filters__search svg { position: absolute; left: 10px; color: #9CA3AF; pointer-events: none; }
.na-filters__search .na-input { padding-left: 2.1rem; width: 100%; }

/* Tabla */
.na-table-wrap { border: 1px solid #E5E7EB; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.na-table { width: 100%; border-collapse: collapse; }
.na-th {
  padding: .75rem 1rem; text-align: left; font-size: .72rem; font-weight: 700;
  color: #6B7280; letter-spacing: .07em; text-transform: uppercase;
  background: #F8FAFC; border-bottom: 1px solid #E5E7EB;
}
.na-th--img { width: 64px; }
.na-th--md  { width: 130px; }
.na-th--sm  { width: 120px; }
.na-tr { border-bottom: 1px solid #F3F4F6; transition: background .12s; }
.na-tr:last-child { border-bottom: none; }
.na-tr:hover { background: #F8FAFC; }
.na-td { padding: .8rem 1rem; vertical-align: middle; }
.na-td--img  { padding: .5rem .75rem; }
.na-td--gray { color: #6B7280; font-size: .82rem; }
.na-thumb { width: 60px; height: 44px; object-fit: cover; border-radius: 4px; display: block; }
.na-thumb--empty { background: #F3F4F6; display: flex; align-items: center; justify-content: center; color: #D1D5DB; }
.na-item-title { font-weight: 500; color: #111827; font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Badges */
.na-badge { display: inline-block; padding: .28rem .75rem; border-radius: 20px; font-size: .7rem; font-weight: 600; letter-spacing: .02em; }
.na-badge--publish { background: #D1FAE5; color: #065F46; }
.na-badge--draft   { background: #FEF3C7; color: #92400E; }
.na-badge--future  { background: #DBEAFE; color: #1E40AF; }
.na-badge--pending { background: #EDE9FE; color: #5B21B6; }

/* Acciones */
.na-actions { display: flex; gap: .35rem; align-items: center; }
.na-action-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; background: none; border: 1px solid #E5E7EB;
  border-radius: 8px; cursor: pointer; color: #374151; text-decoration: none; transition: all .15s;
}
.na-action-btn:hover { background: #F3F4F6; border-color: #D1D5DB; }
.na-action-btn--danger:hover { background: #FEF2F2; border-color: #FCA5A5; color: #DC2626; }

/* Paginación */
.na-pag { display: flex; align-items: center; gap: .8rem; margin-top: 1.25rem; justify-content: flex-end; }
.na-pag__info { font-size: .82rem; color: #6B7280; }

/* Loading / Empty */
.na-loading { display: flex; align-items: center; gap: .85rem; color: #6B7280; padding: 2.5rem 0; font-size: .88rem; }
.na-spinner {
  width: 18px; height: 18px; border: 2px solid #E5E7EB;
  border-top-color: #003087; border-radius: 50%;
  animation: na-spin .7s linear infinite; flex-shrink: 0;
}
@keyframes na-spin { to { transform: rotate(360deg); } }
.na-empty { display: flex; flex-direction: column; align-items: center; gap: .65rem; padding: 3.5rem 0; color: #9CA3AF; font-size: .88rem; }
.na-empty svg { color: #D1D5DB; }

/* Formulario */
.na-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.5rem; }
.na-field { display: flex; flex-direction: column; gap: .38rem; }
.na-field--full { grid-column: 1 / -1; }
.na-label { font-size: .82rem; font-weight: 600; color: #374151; }
.na-req   { color: #DC2626; }
.na-hint  { font-size: .76rem; color: #9CA3AF; }
.na-hint code { background: #F3F4F6; padding: .1rem .3rem; border-radius: 3px; color: #374151; }

.na-input, .na-textarea, .na-select {
  padding: .65rem .9rem; border: 1.5px solid #E5E7EB; border-radius: 8px;
  font-family: inherit; font-size: .88rem; outline: none;
  background: #fff; transition: border-color .16s, box-shadow .16s; color: #111827;
}
.na-input:focus, .na-textarea:focus, .na-select:focus {
  border-color: #003087; box-shadow: 0 0 0 3px rgba(0,48,135,.1);
}
.na-input--sm { font-size: .84rem; padding: .55rem .8rem; }
.na-textarea  { resize: vertical; min-height: 220px; }

/* Upload zones */
.na-upload-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; padding: 1.6rem; border: 2px dashed #D1D5DB; border-radius: 10px;
  cursor: pointer; color: #6B7280; font-size: .84rem; background: #F8FAFC;
  transition: border-color .16s, background .16s; text-align: center;
}
.na-upload-zone:hover { border-color: #003087; background: #EFF6FF; }
.na-upload-sm {
  display: inline-flex; align-items: center; gap: .45rem; padding: .52rem .95rem;
  border: 1.5px solid #E5E7EB; border-radius: 8px; cursor: pointer; font-size: .83rem;
  color: #374151; font-weight: 500; background: #fff; transition: background .14s, border-color .14s;
}
.na-upload-sm:hover { background: #F3F4F6; border-color: #D1D5DB; }
.na-file-input { display: none; }

/* Preview portada */
.na-preview-wrap { position: relative; display: inline-block; width: 160px; }
.na-preview-img { width: 160px; height: 100px; object-fit: cover; border-radius: 8px; display: block; border: 1px solid #E5E7EB; }
.na-preview-remove {
  position: absolute; top: -8px; right: -8px; width: 22px; height: 22px;
  border-radius: 50%; background: #DC2626; color: #fff; border: 2px solid #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

/* Galería admin */
.na-galeria { display: flex; flex-wrap: wrap; gap: .5rem; }
.na-gal-item { position: relative; width: 84px; height: 68px; border-radius: 8px; overflow: hidden; border: 1px solid #E5E7EB; }
.na-gal-media { width: 100%; height: 100%; object-fit: cover; }
.na-gal-remove {
  position: absolute; top: 3px; right: 3px; width: 18px; height: 18px;
  background: rgba(15,23,42,.8); color: #fff; border: none; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.na-gal-add {
  width: 84px; height: 68px; border: 2px dashed #D1D5DB; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #9CA3AF; transition: border-color .14s, color .14s;
}
.na-gal-add:hover { border-color: #003087; color: #003087; }

/* Adjunto preview */
.na-adjunto-preview {
  display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem;
  background: #F8FAFC; border: 1px solid #E5E7EB; border-radius: 8px;
  font-size: .85rem; color: #374151;
}
.na-adjunto-preview svg  { color: #6B7280; flex-shrink: 0; }
.na-adjunto-preview span { flex: 1; }

/* Acciones formulario */
.na-form-actions { display: flex; gap: .85rem; align-items: center; padding: 1.25rem 0 0; border-top: 1px solid #F3F4F6; }

/* Mensajes */
.na-msg { border-radius: 8px; padding: .65rem .9rem; font-size: .85rem; margin-top: .85rem; }
.na-msg--error { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.na-msg--ok    { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }

/* Botones */
.na-btn {
  display: inline-flex; align-items: center; gap: .45rem; padding: .65rem 1.2rem;
  border-radius: 8px; border: none; cursor: pointer; font-family: inherit;
  font-size: .875rem; font-weight: 600; transition: all .15s; white-space: nowrap;
}
.na-btn--primary { background: #003087; color: #fff; box-shadow: 0 1px 3px rgba(0,48,135,.25); }
.na-btn--primary:hover { background: #002570; box-shadow: 0 4px 14px rgba(0,48,135,.35); }
.na-btn--ghost  { background: #fff; border: 1.5px solid #E5E7EB; color: #374151; }
.na-btn--ghost:hover { background: #F9FAFB; border-color: #D1D5DB; }
.na-btn--danger { background: #DC2626; color: #fff; box-shadow: 0 1px 3px rgba(220,38,38,.25); }
.na-btn--danger:hover { background: #B91C1C; }
.na-btn--danger-sm {
  background: none; border: 1px solid #FECACA; color: #DC2626; border-radius: 6px;
  padding: .28rem .65rem; cursor: pointer; font-family: inherit; font-size: .78rem;
  font-weight: 600; transition: background .14s;
}
.na-btn--danger-sm:hover { background: #FEF2F2; }
.na-btn--sm {
  padding: .5rem .9rem; font-size: .8rem; border: 1.5px solid #E5E7EB;
  background: #fff; cursor: pointer; font-family: inherit; color: #374151;
  border-radius: 8px; font-weight: 500;
}
.na-btn--sm:hover:not(:disabled) { background: #F3F4F6; }
.na-btn--lg   { padding: .82rem 1.8rem; font-size: .95rem; }
.na-btn--full { width: 100%; justify-content: center; }
.na-btn:disabled { opacity: .45; cursor: not-allowed; }

/* Modal */
.na-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 2rem; backdrop-filter: blur(4px);
}
.na-modal { background: #fff; border-radius: 16px; padding: 2rem; max-width: 420px; width: 100%; box-shadow: 0 24px 64px rgba(0,0,0,.18); }
.na-modal__title { margin: 0 0 .65rem; font-size: 1.1rem; font-weight: 700; color: #0F172A; }
.na-modal__text  { margin: 0 0 .75rem; color: #374151; font-size: .9rem; }
.na-modal__warn  {
  background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A;
  padding: .55rem .85rem; border-radius: 8px; font-size: .82rem; margin-bottom: 1.25rem;
}
.na-modal__actions { display: flex; gap: .75rem; }

@media (max-width: 768px) {
  .na-sidebar { width: 200px; }
  .na-section { padding: 1.25rem 1rem; }
  .na-form-grid { grid-template-columns: 1fr; }
  .na-field--full { grid-column: 1; }
}
