/* ============================================
   SECCIÓN DE NOTICIAS - Estilo portal
   ============================================ */
.np-news-section {
  background: #111;
  padding: 60px 0 70px;
  position: relative;
}

.np-news-header {
  text-align: center;
  margin-bottom: 45px;
}
.np-news-header .np-kicker {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: .8rem;
  letter-spacing: 4px;
  color: #f5a623;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.np-news-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.15;
}
.np-news-header .np-sub {
  color: #aaa;
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}
.np-news-header .np-rule {
  width: 60px;
  height: 3px;
  background: #f5a623;
  margin: 18px auto 0;
  border-radius: 3px;
}

/* Noticia destacada grande */
.np-featured {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0;
  background: #1b1b1b;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 45px;
  box-shadow: 0 15px 40px rgba(0,0,0,.5);
  cursor: pointer;
  transition: transform .3s ease;
}
.np-featured:hover { transform: translateY(-3px); }

.np-featured-media {
  position: relative;
  min-height: 420px;
  background: #000;
  overflow: hidden;
}
.np-featured-media img,
.np-featured-media iframe,
.np-featured-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.np-featured-media .np-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  transition: background .3s;
  pointer-events: none;
}
.np-featured:hover .np-featured-media .np-play { background: rgba(0,0,0,.55); }
.np-featured-media .np-play svg {
  width: 78px; height: 78px;
  fill: #fff;
  opacity: .9;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.5));
}

.np-featured-body {
  padding: 50px 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.np-featured-body .np-cat {
  display: inline-block;
  background: #f5a623;
  color: #111;
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 18px;
  align-self: flex-start;
}
.np-featured-body h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  line-height: 1.2;
  color: #fff;
  font-weight: 700;
  margin: 0 0 16px;
}
.np-featured-body p {
  color: #c9c9c9;
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 22px;
}
.np-featured-body p a {
  color: #f5a623;
  text-decoration: underline;
  word-break: break-word;
}
.np-featured-body p a:hover { color: #ffc857; }

.np-featured-body .np-meta {
  display: flex;
  gap: 18px;
  font-size: .85rem;
  color: #888;
  border-top: 1px solid #2a2a2a;
  padding-top: 16px;
}
.np-featured-body .np-meta span::before {
  content: "•";
  margin-right: 8px;
  color: #f5a623;
}
.np-featured-body .np-meta span:first-child::before { content: ""; margin: 0; }

/* ============================================
   Grilla de noticias: 3 columnas
   ============================================ */
.np-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.np-card {
  background: #1b1b1b;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.np-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0,0,0,.55);
}
.np-card.np-hidden { display: none; }

.np-card-media {
  position: relative;
  height: 185px;
  background: #000;
  overflow: hidden;
}
.np-card-media img,
.np-card-media iframe,
.np-card-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}
.np-card-media .np-play-mini {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0,0,0,.7);
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.np-card-media .np-play-mini svg { width: 16px; height: 16px; fill: #fff; }

.np-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.np-card-body .np-cat {
  font-family: 'Montserrat', sans-serif;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #f5a623;
  margin-bottom: 8px;
}
.np-card-body h4 {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 10px;
}
.np-card-body p {
  color: #b5b5b5;
  font-size: .88rem;
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.np-card-body p a {
  color: #f5a623;
  text-decoration: underline;
  word-break: break-word;
}
.np-card-body p a:hover { color: #ffc857; }

.np-card-body .np-meta {
  color: #777;
  font-size: .76rem;
  border-top: 1px solid #2a2a2a;
  padding-top: 12px;
}

.np-empty {
  color: #888;
  text-align: center;
  padding: 50px 20px;
  font-style: italic;
  border: 1px dashed #333;
  border-radius: 12px;
  grid-column: 1 / -1;
}

/* Botón Ver más noticias */
.np-load-more-wrap {
  text-align: center;
  margin-top: 45px;
}
.np-load-more {
  background: transparent;
  border: 2px solid #f5a623;
  color: #f5a623;
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 40px;
  cursor: pointer;
  transition: all .25s;
}
.np-load-more:hover {
  background: #f5a623;
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245,166,35,.3);
}
.np-load-more.np-hidden { display: none; }

/* ============================================
   MODAL LECTOR DE NOTICIA
   ============================================ */
.np-reader {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 1100;
  padding: 40px 20px;
  overflow-y: auto;
}
.np-reader.active { display: block; }
.np-reader-content {
  background: #1a1a1a;
  color: #ddd;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.7);
}
.np-reader-close {
  position: absolute;
  top: 15px; right: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  transition: background .2s;
}
.np-reader-close:hover { background: #f5a623; color: #111; }

.np-reader-media {
  width: 100%;
  background: #000;
}
.np-reader-media img,
.np-reader-media video {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}
.np-reader-media iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}
.np-reader-body {
  padding: 40px 50px 50px;
}
.np-reader-body .np-cat {
  display: inline-block;
  background: #f5a623;
  color: #111;
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 20px;
}
.np-reader-body h1 {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  font-size: 2.3rem;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 16px;
}
.np-reader-body .np-meta {
  color: #888;
  font-size: .9rem;
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid #2a2a2a;
}
.np-reader-body .np-content {
  color: #cfcfcf;
  font-size: 1.08rem;
  line-height: 1.85;
  word-wrap: break-word;
}
.np-reader-body .np-content a {
  color: #f5a623;
  text-decoration: underline;
  word-break: break-word;
}
.np-reader-body .np-content a:hover { color: #ffc857; }

/* ============================================
   BOTÓN ADMIN EN FOOTER
   ============================================ */
.footer-admin-link {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 10px;
}
.footer-admin-link button {
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color: #cfcfcf;
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: all .25s;
}
.footer-admin-link button:hover {
  border-color: #f5a623;
  color: #f5a623;
  background: rgba(245,166,35,.08);
}

/* ============================================
   CORRECCIÓN TEXTO DEL FOOTER
   ============================================ */
.u-footer .u-text-1 {
  font-size: .85rem !important;
  line-height: 1.5 !important;
  color: #b5b5b5 !important;
}
.u-footer .u-text-1 a {
  font-size: inherit !important;
  color: #f5a623 !important;
}

/* ============================================
   PÁGINA ADMIN (admin.html)
   ============================================ */
body.np-admin-page {
  background: #111;
  color: #eee;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  min-height: 100vh;
}
.np-admin-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.np-admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 20px;
  margin-bottom: 32px;
}
.np-admin-top h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  color: #fff;
  margin: 0;
}
.np-admin-top h1 span { color: #f5a623; }

.np-admin-content {
  background: #161616;
  color: #eee;
  border-radius: 18px;
  padding: 35px 40px 45px;
  border: 1px solid #2a2a2a;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.np-admin-content h3 {
  font-family: 'Montserrat', sans-serif;
  color: #f5a623;
  margin: 0 0 6px;
  font-size: 1.4rem;
}
.np-admin-content .np-admin-sub {
  color: #888;
  font-size: .9rem;
  margin: 0 0 25px;
}

.np-field { margin-bottom: 18px; }
.np-field label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #ddd;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.np-field input[type="text"],
.np-field input[type="password"],
.np-field input[type="url"],
.np-field input[type="email"],
.np-field textarea,
.np-field select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #1e1e1e;
  color: #fff;
  font-family: inherit;
  font-size: .95rem;
  box-sizing: border-box;
  transition: border-color .2s;
}
.np-field input:focus,
.np-field textarea:focus,
.np-field select:focus {
  outline: none;
  border-color: #f5a623;
}
.np-field textarea { resize: vertical; min-height: 90px; }
.np-field small {
  display: block;
  color: #777;
  font-size: .78rem;
  margin-top: 5px;
}
.np-field input[type="file"] {
  width: 100%;
  padding: 8px;
  background: #1e1e1e;
  border: 1px dashed #444;
  border-radius: 8px;
  color: #bbb;
  font-size: .85rem;
  cursor: pointer;
}
.np-field input[type="file"]:hover { border-color: #f5a623; }

.np-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.np-btn {
  background: #f5a623;
  color: #111;
  border: none;
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.np-btn:hover { background: #e6951e; transform: translateY(-2px); }
.np-btn.np-btn-ghost {
  background: transparent;
  color: #f5a623;
  border: 1px solid #f5a623;
}
.np-btn.np-btn-ghost:hover { background: #f5a623; color: #111; }

.np-preview-thumb {
  margin-top: 10px;
  border-radius: 8px;
  overflow: hidden;
  background: #0a0a0a;
  max-height: 160px;
  display: none;
}
.np-preview-thumb.active { display: block; }
.np-preview-thumb img,
.np-preview-thumb video {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  display: block;
}

.np-admin-list {
  margin-top: 30px;
  border-top: 1px solid #2a2a2a;
  padding-top: 22px;
}
.np-admin-list h4 {
  color: #f5a623;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  margin: 0 0 14px;
}
.np-admin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #232323;
}
.np-admin-item:last-child { border-bottom: none; }
.np-admin-item .np-item-info {
  flex: 1;
  min-width: 0;
}
.np-admin-item .np-item-info strong {
  display: block;
  color: #fff;
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.np-admin-item .np-item-info span {
  color: #777;
  font-size: .78rem;
}
.np-admin-item .np-item-actions button {
  background: transparent;
  border: 1px solid #333;
  color: #ddd;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 6px;
  font-size: .85rem;
  transition: all .2s;
}
.np-admin-item .np-item-actions button:hover { border-color: #f5a623; color: #f5a623; }
.np-admin-item .np-item-actions button.np-del:hover { border-color: #ff5c5c; color: #ff5c5c; }

.np-hint {
  background: #1e1a0e;
  border-left: 3px solid #f5a623;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: .85rem;
  color: #c9b482;
  margin-bottom: 20px;
  line-height: 1.55;
}
.np-hint strong { color: #f5a623; }
.np-hint code {
  background: #2a2410;
  color: #f5a623;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: .85em;
}

.np-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.np-login-box {
  max-width: 420px;
  margin: 60px auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
  .np-featured { grid-template-columns: 1fr; }
  .np-featured-media { min-height: 300px; }
  .np-featured-body { padding: 32px 30px; }
  .np-featured-body h3 { font-size: 1.6rem; }
  .np-news-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .np-news-header h2 { font-size: 2.1rem; }
  .np-reader-body { padding: 30px 30px 40px; }
  .np-reader-body h1 { font-size: 1.75rem; }
}

@media (max-width: 575px) {
  .np-news-section { padding: 45px 0 55px; }
  .np-news-header h2 { font-size: 1.75rem; }
  .np-news-header .np-sub { font-size: .95rem; }
  .np-news-grid { grid-template-columns: 1fr; gap: 20px; }
  .np-featured-media { min-height: 220px; }
  .np-featured-body { padding: 24px 22px 28px; }
  .np-featured-body h3 { font-size: 1.35rem; }
  .np-card-media { height: 200px; }
  .np-admin-content { padding: 25px 20px 35px; }
  .np-row { grid-template-columns: 1fr; }
  .np-reader-body { padding: 24px 22px 32px; }
  .np-reader-body h1 { font-size: 1.5rem; }
  .np-reader { padding: 20px 10px; }
  .np-admin-top h1 { font-size: 1.25rem; }
}