/* ============================================================
   Zentria — Boletín de Noticias (newsletter)
   ============================================================ */

.nl-hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(90% 130% at 85% 0%, rgba(0, 120, 200, 0.14), transparent 60%),
    radial-gradient(80% 120% at 10% 100%, rgba(124, 58, 237, 0.12), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.nl-hero-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.nl-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 9999px;
  font-size: 12.5px; font-weight: 600; color: var(--accent);
  background: var(--sm-grad-soft, rgba(0,120,200,.12)); border: 1px solid var(--border-strong);
  margin-bottom: 20px;
}
.nl-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.02em; line-height: 1.08; margin-bottom: 14px; }
.nl-hero h1 .nl-accent { color: var(--accent); }
.nl-hero-tagline { font-size: clamp(1.02rem, 2.4vw, 1.25rem); color: var(--muted); line-height: 1.6; max-width: 620px; }
@media (min-width: 900px) { .nl-hero-grid { grid-template-columns: 1.1fr 0.9fr; } }

/* Tarjeta de suscripción */
.nl-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 22px;
  padding: 28px; box-shadow: 0 24px 60px -28px rgba(0,0,0,0.4);
}
.nl-card h2 { font-size: 1.35rem; margin-bottom: 6px; }
.nl-card .nl-card-sub { font-size: 0.92rem; color: var(--muted); margin-bottom: 20px; }
.nl-field { margin-bottom: 14px; }
.nl-field label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.nl-field label .req { color: var(--destructive, #e11d48); }
.nl-field input {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border-strong);
  color: var(--fg); font-size: 0.98rem; font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nl-field input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.nl-row { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 640px) { .nl-row { grid-template-columns: 1fr 1fr; } }
.nl-consent { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 16px; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.nl-consent input { margin-top: 3px; }
.nl-captcha { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 0.95rem; }
.nl-captcha b { font-variant-numeric: tabular-nums; }
.nl-captcha input { width: 90px; padding: 9px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border-strong); color: var(--fg); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.nl-captcha input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.nl-msg { border-radius: 12px; padding: 12px 16px; font-size: 0.92rem; margin-bottom: 16px; }
.nl-msg--ok { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.35); color: #10b981; }
.nl-msg--err { background: color-mix(in srgb, var(--destructive, #e11d48) 12%, transparent); border: 1px solid color-mix(in srgb, var(--destructive, #e11d48) 35%, transparent); color: var(--destructive, #f43f5e); }

/* Beneficios */
.nl-benefits { display: grid; grid-template-columns: 1fr; gap: 12px; }
.nl-benefit { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); }
.nl-benefit .ic { color: var(--accent); flex-shrink: 0; }
.nl-benefit .ic svg { width: 20px; height: 20px; }
.nl-benefit b { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.nl-benefit p { font-size: 0.85rem; color: var(--muted); margin: 0; line-height: 1.5; }
@media (min-width: 700px) { .nl-benefits { grid-template-columns: 1fr 1fr; } }

/* Barra de página / semana y paginador */
.nl-pagebar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-bottom: 16px; font-size: 13px; color: var(--muted); font-weight: 600; }
.nl-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 28px; }
.nl-pager .pill { display: inline-flex; align-items: center; gap: 6px; }
.nl-pager .pill svg { width: 14px; height: 14px; }
.nl-pager-info { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Noticias */
.nl-news { display: grid; grid-template-columns: 1fr; gap: 16px; }
.nl-news-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.nl-news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--border-strong); }
.nl-news-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.nl-news-cat { padding: 3px 10px; border-radius: 9999px; background: var(--sm-grad-soft, rgba(0,120,200,.12)); color: var(--accent); font-weight: 600; }
.nl-news-card h3 { font-size: 1.15rem; margin: 0; }
.nl-news-card .nl-news-sub { font-size: 0.9rem; color: var(--fg-soft); }
.nl-news-card p { font-size: 0.92rem; color: var(--muted); line-height: 1.6; margin: 0; }
.nl-news-card a.nl-read { align-self: flex-start; font-size: 0.9rem; font-weight: 600; color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.nl-news-card a.nl-read svg { width: 14px; height: 14px; }
.nl-news-card a.nl-read:hover { text-decoration: underline; }
@media (min-width: 760px) { .nl-news { grid-template-columns: 1fr 1fr; } }

/* Calendario */
.nl-calendar { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 20px; }
.nl-calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.nl-calendar-head .month { font-weight: 600; font-size: 1.05rem; }
.nl-calendar-head a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--border); font-size: 0.85rem; color: var(--fg); text-decoration: none; }
.nl-calendar-head a:hover { border-color: var(--accent); color: var(--accent); }
.nl-calendar-head a svg { width: 14px; height: 14px; }
.nl-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.nl-calendar-grid .dow { text-align: center; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 0; font-weight: 600; }
.nl-day-picker { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.nl-day-picker label { font-size: 13px; color: var(--muted); font-weight: 600; }
.nl-day-picker input { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--fg); font-family: inherit; }
.nl-day-picker input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.nl-day { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 0.9rem; color: var(--fg-soft); border: 0; background: transparent; font-family: inherit; }
.nl-day:not(:disabled) { cursor: pointer; }
.nl-day:not(:disabled):hover { background: var(--bg-soft); }
.nl-day:disabled { opacity: 0.45; }
.nl-day--empty { pointer-events: none; }
.nl-day--has { background: var(--sm-grad-soft, rgba(0,120,200,.14)); color: var(--accent); font-weight: 700; }
.nl-day--today { outline: 2px solid var(--accent); }
.nl-day--selected { background: var(--accent) !important; color: #fff !important; outline: 2px solid var(--accent); }
.nl-day--selected .dot { background: #fff; }
.nl-day .dot { position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.nl-day-list { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.nl-day-list a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-size: 0.92rem; }
.nl-day-list a .d { color: var(--accent); font-weight: 600; flex-shrink: 0; }
.nl-day-list a:hover { color: var(--accent); }

/* Buscador y filtros de noticias */
.nl-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; align-items: flex-end; }
.nl-filter-search { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 10px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.nl-filter-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.nl-filter-search svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.nl-filter-search input { flex: 1; padding: 12px 0; background: transparent; border: 0; color: var(--fg); font-size: 0.95rem; }
.nl-filter-search input:focus { outline: none; }
.nl-filter-select, .nl-filter-date { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.nl-filter-select select, .nl-filter-date input {
  padding: 10px 12px; border-radius: 10px; background: var(--bg);
  border: 1px solid var(--border-strong); color: var(--fg); font-size: 0.9rem; font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nl-filter-select select:focus, .nl-filter-date input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.nl-news-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.nl-tag { padding: 3px 10px; border-radius: 9999px; background: var(--bg-soft); border: 1px solid var(--border); font-size: 11.5px; color: var(--fg-soft); }
