:root {
  --bg: #0f1419;
  --bg-soft: #151b21;
  --panel: #171d23;
  --panel-2: #1d242b;
  --border: #2b343d;

  --text: #edf2f7;
  --text-soft: #d6dde5;
  --muted: #a7b0ba;

  --green: #20c875;
  --green-dark: #12a65f;
  --green-soft: rgba(32, 200, 117, 0.15);

  --yellow: #f8c14a;
  --danger: #ff6b6b;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

/* ============================================================
   BASE
============================================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(32, 200, 117, 0.08), transparent 28%),
    linear-gradient(180deg, #0c1116 0%, #111820 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

a {
  color: inherit;
}

/* ============================================================
   HEADER
============================================================ */

.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 17, 22, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 18px 34px 14px;
  display: grid;
  grid-template-columns: 280px 1fr 230px;
  align-items: center;
  gap: 26px;
}

/* ============================================================
   LOGO REAL
   Ruta esperada: assets/img/logo-antioquia-conecta.png
============================================================ */

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: auto;
  height: 46px;
  max-width: 172px;
  object-fit: contain;
  display: block;
}

/* Si por alguna razón queda el logo anterior en HTML, lo ocultamos */
.brand-mark,
.brand-pin,
.brand-wave,
.brand-text,
.brand-region,
.brand-name {
  display: none;
}

/* ============================================================
   BUSCADOR
============================================================ */

.search-box {
  height: 54px;
  border-radius: 999px;
  background: #1f262d;
  border: 1px solid #3a444f;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  max-width: 760px;
  width: 100%;
  justify-self: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.search-icon {
  color: var(--muted);
  font-size: 18px;
  flex: 0 0 auto;
}

.search-box input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 17px;
  outline: none;
}

.search-box input::placeholder {
  color: #9aa4ae;
}

/* ============================================================
   ACCIONES HEADER
============================================================ */

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.icon-button {
  position: relative;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
}

.icon-button:hover {
  color: var(--green);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), #0d7a49);
  color: #fff;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ============================================================
   NAVEGACIÓN SUPERIOR
============================================================ */

.top-nav {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 34px;
  display: flex;
  gap: 34px;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-nav button {
  background: transparent;
  border: none;
  color: #cbd5df;
  font-size: 15px;
  padding: 16px 0 14px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.top-nav button:hover {
  color: var(--green);
}

.top-nav button.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* ============================================================
   CONTENEDOR GENERAL
============================================================ */

.page-shell {
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px 34px 42px;
}

/* ============================================================
   TÍTULO + CLIMA
============================================================ */

.dashboard-title {
  display: grid;
  grid-template-columns: 1fr 460px;
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
}

.dashboard-title h1 {
  margin: 0 0 8px;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.dashboard-title p {
  margin: 0;
  color: var(--muted);
}

.weather-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 58px 1fr 1fr;
  gap: 18px;
  align-items: center;
  box-shadow: var(--shadow);
}

.weather-icon {
  font-size: 38px;
}

.weather-card span,
.weather-card small {
  display: block;
  color: #cbd5df;
}

.weather-card strong {
  display: block;
  font-size: 31px;
  margin: 4px 0;
}

.weather-extra {
  border-left: 1px solid var(--border);
  padding-left: 18px;
}

/* ============================================================
   LAYOUT PRINCIPAL ESCRITORIO
============================================================ */

.desktop-layout {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.main-column,
.side-column {
  min-width: 0;
}

/* ============================================================
   PANELES
============================================================ */

.panel {
  background: rgba(23, 29, 35, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-header h2 {
  margin: 0;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.panel-header button {
  border: none;
  background: transparent;
  color: var(--green);
  font-weight: 800;
  cursor: pointer;
}

.panel-header button:hover {
  color: #54e59d;
}

/* ============================================================
   NOTICIA PRINCIPAL / DESTACADA
============================================================ */

.featured-card {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr;
  gap: 0;
}

.media-box {
  position: relative;
  min-height: 280px;
  background:
    linear-gradient(135deg, rgba(32, 200, 117, 0.25), rgba(7, 23, 42, 0.6)),
    #26323a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dce6ee;
  overflow: hidden;
}

.media-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 35%, rgba(255, 255, 255, 0.18), transparent 20%),
    linear-gradient(135deg, rgba(32, 200, 117, 0.14), rgba(15, 20, 25, 0.8));
}

.media-label {
  position: relative;
  z-index: 2;
  text-align: center;
  font-weight: 900;
  font-size: 18px;
  color: var(--text);
}

.media-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 8px;
  max-width: calc(100% - 28px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.play-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
}

/* ============================================================
   CONTENIDO NOTICIAS
============================================================ */

.news-content {
  padding: 20px;
}

.kicker {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.news-title {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.22;
  color: var(--text);
}

.featured-card .news-title {
  font-size: 29px;
}

.news-text {
  margin: 0 0 16px;
  color: #cbd5df;
  font-size: 15px;
  line-height: 1.55;
}

.news-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.news-meta strong {
  color: var(--text);
}

.read-more {
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* ============================================================
   REACCIONES
============================================================ */

.news-actions {
  border-top: 1px solid var(--border);
  padding-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.news-actions button {
  background: #212932;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.news-actions button:hover {
  color: var(--green);
  border-color: var(--green);
  background: rgba(32, 200, 117, 0.08);
}

/* ============================================================
   COLUMNA LATERAL
============================================================ */

.side-news-list {
  padding: 0 16px 12px;
}

.side-news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.side-news-item:last-child {
  border-bottom: none;
}

.side-thumb {
  min-height: 88px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(32, 200, 117, 0.25), rgba(255, 255, 255, 0.06)),
    #27323a;
}

.side-title {
  font-size: 17px;
  line-height: 1.25;
  margin: 5px 0 8px;
  color: var(--text);
}

/* ============================================================
   GRILLA INFERIOR
============================================================ */

.cards-section {
  margin-top: 10px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.news-card {
  background: rgba(23, 29, 35, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.news-card .media-box {
  min-height: 160px;
}

.news-card .news-title {
  font-size: 19px;
}

/* ============================================================
   CARGAR MÁS / EMPTY
============================================================ */

.load-more-wrapper {
  text-align: center;
  margin: 30px 0 4px;
}

.load-more-button {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 900;
  cursor: pointer;
}

.load-more-button:hover {
  background: var(--green-dark);
}

.empty-state {
  background: rgba(23, 29, 35, 0.94);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 26px;
  text-align: center;
}

/* ============================================================
   FOOTER
============================================================ */

.footer {
  background: #080c10;
  border-top: 1px solid var(--border);
  color: #cbd5df;
  padding: 30px 20px;
  text-align: center;
}

.footer a {
  color: var(--text);
  margin: 0 10px;
  text-decoration: none;
  font-weight: 800;
}

.footer a:hover {
  color: var(--green);
}

.footer p {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   UTILIDADES
============================================================ */

.hidden {
  display: none !important;
}

/* ============================================================
   PÁGINA INDIVIDUAL DE NOTICIA
============================================================ */

.back-link-wrapper {
  margin: 8px 0 16px;
}

.detail-card {
  max-width: 860px;
  margin: 0 auto;
}

.detail-title {
  margin: 8px 0 14px;
  font-size: 34px;
  line-height: 1.15;
  color: var(--text);
}

.detail-embed {
  min-height: 260px;
}

.detail-text {
  font-size: 17px;
  line-height: 1.65;
  color: #dce6ee;
}

.detail-text p {
  margin: 0 0 18px;
}

.detail-x-clean-card {
  min-height: 320px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.detail-instagram-embed {
  min-height: 520px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   RESPONSIVE TABLET
============================================================ */

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: 240px 1fr 120px;
  }

    .brand-logo {
      width: auto;
      height: 50px;
      max-width: 190px;
    }

  .dashboard-title {
    grid-template-columns: 1fr;
  }

  .desktop-layout {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   RESPONSIVE MÓVIL
============================================================ */

@media (max-width: 767px) {
  .header-inner {
    padding: 14px 16px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

    .brand-logo {
      width: auto;
      height: 44px;
      max-width: 170px;
    }

  .search-box {
    grid-column: 1 / -1;
    order: 3;
    height: 48px;
    margin-top: 10px;
    max-width: none;
  }

  .search-box input {
    font-size: 15px;
  }

  .header-actions {
    display: none;
  }

  .top-nav {
    padding: 0 16px;
    gap: 22px;
  }

  .top-nav button {
    font-size: 14px;
  }

  .page-shell {
    padding: 22px 16px;
  }

  .dashboard-title h1 {
    font-size: 30px;
  }

  .weather-card {
    grid-template-columns: 50px 1fr;
  }

  .weather-extra {
    grid-column: 1 / -1;
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 12px;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-card .news-title {
    font-size: 23px;
  }

  .media-box {
    min-height: 210px;
  }

  .side-news-item {
    grid-template-columns: 100px 1fr;
  }

  .side-title {
    font-size: 15px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-actions {
    gap: 7px;
  }

  .news-actions button {
    font-size: 12px;
    padding: 8px 10px;
  }

  .detail-title {
    font-size: 26px;
  }

  .detail-text {
    font-size: 16px;
  }
}

/* ============================================================
   MODO CLARO
============================================================ */

body.light-mode {
  --bg: #f4f7fb;
  --bg-soft: #eef3f8;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --border: #d9e2ec;

  --text: #102033;
  --text-soft: #243447;
  --muted: #64748b;

  background:
    radial-gradient(circle at top left, rgba(32, 200, 117, 0.10), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #edf3f8 100%);
  color: var(--text);
}

body.light-mode .main-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
}

body.light-mode .search-box {
  background: #f1f5f9;
  border-color: #d5dde7;
}

body.light-mode .search-box input {
  color: var(--text);
}

body.light-mode .search-box input::placeholder {
  color: #64748b;
}

body.light-mode .top-nav button {
  color: #475569;
}

body.light-mode .top-nav button.active,
body.light-mode .top-nav button:hover {
  color: var(--green-dark);
}

body.light-mode .weather-card,
body.light-mode .panel,
body.light-mode .news-card,
body.light-mode .empty-state {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--border);
  box-shadow: 0 16px 36px rgba(16, 32, 51, 0.08);
}

body.light-mode .news-title,
body.light-mode .side-title,
body.light-mode .dashboard-title h1,
body.light-mode .panel-header h2,
body.light-mode .detail-title {
  color: var(--text);
}

body.light-mode .news-text,
body.light-mode .detail-text {
  color: #334155;
}

body.light-mode .news-meta,
body.light-mode .dashboard-title p,
body.light-mode .weather-card span,
body.light-mode .weather-card small {
  color: var(--muted);
}

body.light-mode .news-meta strong {
  color: var(--text);
}

body.light-mode .media-box {
  background:
    linear-gradient(135deg, rgba(32, 200, 117, 0.18), rgba(7, 23, 42, 0.08)),
    #e7eef5;
  color: var(--text);
}

body.light-mode .side-thumb {
  background:
    linear-gradient(135deg, rgba(32, 200, 117, 0.18), rgba(15, 23, 42, 0.05)),
    #e7eef5;
}

body.light-mode .news-actions {
  border-top-color: var(--border);
}

body.light-mode .news-actions button {
  background: #f8fafc;
  color: var(--text);
  border-color: var(--border);
}

body.light-mode .news-actions button:hover {
  color: var(--green-dark);
  border-color: var(--green);
  background: rgba(32, 200, 117, 0.08);
}

body.light-mode .footer {
  background: #ffffff;
  border-top-color: var(--border);
  color: var(--muted);
}

body.light-mode .footer a {
  color: var(--text);
}

body.light-mode .footer p {
  color: var(--muted);
}

/* ============================================================
   PANEL ADMIN / REPORTERO
============================================================ */

.admin-header-inner {
  grid-template-columns: 260px 1fr 230px;
}

.admin-title {
  display: flex;
  flex-direction: column;
  justify-self: center;
  text-align: center;
}

.admin-title strong {
  font-size: 20px;
  color: var(--text);
}

.admin-title span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.admin-shell {
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px 34px 48px;
}

.admin-auth-card {
  max-width: 440px;
  margin: 60px auto;
  background: rgba(23, 29, 35, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.admin-auth-card h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.admin-auth-card p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.45;
}

.admin-auth-card label {
  display: block;
  margin: 14px 0 7px;
  color: var(--text-soft);
  font-weight: 800;
  font-size: 14px;
}

.admin-auth-card input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #111820;
  color: var(--text);
  padding: 0 14px;
  outline: none;
  font-size: 15px;
}

.admin-auth-card input:focus {
  border-color: var(--green);
}

.admin-primary-button {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 900;
  cursor: pointer;
}

.admin-primary-button:hover {
  background: var(--green-dark);
}

.admin-auth-card .admin-primary-button {
  width: 100%;
  margin-top: 22px;
  height: 46px;
}

.admin-message {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.admin-message.error {
  color: var(--danger);
}

.admin-message.success {
  color: var(--green);
}

.admin-dashboard {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
}

.admin-sidebar {
  background: rgba(23, 29, 35, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  height: fit-content;
  position: sticky;
  top: 118px;
}

.admin-user-box {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.admin-user-box span {
  color: var(--muted);
  font-size: 13px;
}

.admin-user-box strong {
  display: block;
  margin-top: 5px;
  font-size: 17px;
}

.admin-menu-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  border-radius: 12px;
  padding: 13px 14px;
  margin-bottom: 8px;
  font-weight: 800;
  cursor: pointer;
}

.admin-menu-item:hover,
.admin-menu-item.active {
  background: rgba(32, 200, 117, 0.12);
  border-color: rgba(32, 200, 117, 0.28);
  color: var(--green);
}

.admin-content {
  min-width: 0;
}

.admin-content-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.admin-content-header h1 {
  margin: 0 0 6px;
  font-size: 30px;
}

.admin-content-header p {
  margin: 0;
  color: var(--muted);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}

.admin-tabs button {
  background: rgba(23, 29, 35, 0.94);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.admin-tabs button.active,
.admin-tabs button:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.admin-list {
  display: grid;
  gap: 14px;
}

.admin-item {
  background: rgba(23, 29, 35, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
}

.admin-item h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.admin-item p {
  margin: 0 0 10px;
  color: #cbd5df;
  line-height: 1.45;
}

.admin-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-badges span {
  background: #212932;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}

.admin-badges .badge-green {
  background: rgba(32, 200, 117, 0.14);
  color: var(--green);
  border-color: rgba(32, 200, 117, 0.35);
}

.admin-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.admin-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 150px;
}

.admin-actions button {
  background: #212932;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 800;
  cursor: pointer;
}

.admin-actions button:hover {
  border-color: var(--green);
  color: var(--green);
}

.admin-empty {
  background: rgba(23, 29, 35, 0.94);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--muted);
}

/* Modo claro admin */
body.light-mode .admin-auth-card,
body.light-mode .admin-sidebar,
body.light-mode .admin-item,
body.light-mode .admin-tabs button,
body.light-mode .admin-empty {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--border);
  box-shadow: 0 16px 36px rgba(16, 32, 51, 0.08);
}

body.light-mode .admin-auth-card input {
  background: #f8fafc;
  color: var(--text);
}

body.light-mode .admin-item p {
  color: #334155;
}

body.light-mode .admin-badges span,
body.light-mode .admin-actions button {
  background: #f8fafc;
  color: var(--text);
  border-color: var(--border);
}

/* Responsive admin */
@media (max-width: 900px) {
  .admin-header-inner {
    grid-template-columns: 1fr auto;
  }

  .admin-title {
    display: none;
  }

  .admin-dashboard {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-item {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
/* ============================================================
   EMBEDS DE VIDEO / REDES
============================================================ */

.media-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.media-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.media-embed-featured {
  min-height: 280px;
}

.featured-card .media-embed {
  height: 100%;
}

.news-card .media-embed {
  min-height: 160px;
}

.detail-media-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.detail-media-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


/* ============================================================
   EMBED X / TWITTER
============================================================ */

.x-embed-wrapper {
  background: #000;
  min-height: 220px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.x-embed-wrapper .twitter-tweet {
  margin: 0 auto !important;
}

.x-embed-featured {
  min-height: 280px;
}

.embed-fallback-link {
  margin: 10px auto 0;
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
  font-size: 13px;
}

.embed-fallback-link:hover {
  text-decoration: underline;
}

body.light-mode .x-embed-wrapper {
  background: #f8fafc;
}

/* ============================================================
   EMBED INSTAGRAM
============================================================ */

.instagram-embed-wrapper {
  background: #fff;
  min-height: 360px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.instagram-embed-featured {
  min-height: 480px;
}

.instagram-embed-wrapper .instagram-media {
  margin: 0 auto !important;
}

body.light-mode .instagram-embed-wrapper {
  background: #ffffff;
}

.instagram-embed-wrapper .embed-fallback-link {
  margin-top: 10px;
}

/* ============================================================
   MINIATURAS NOTICIAS LOCALES
============================================================ */

.side-thumb {
  min-height: 94px;
  border-radius: 12px;
  overflow: hidden;
}

.side-thumb-image {
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-thumb-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
}

.side-thumb-image span {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding-left: 2px;
}

.side-thumb-source {
  background:
    linear-gradient(135deg, rgba(32, 200, 117, 0.22), rgba(255, 255, 255, 0.05)),
    #27323a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.side-thumb-source span {
  font-size: 28px;
  font-weight: 900;
  color: var(--green);
}

.side-thumb-source small {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.instagram-thumb span {
  color: #ff5b8f;
}

.x-thumb span {
  color: #ffffff;
}

.own-thumb span {
  color: var(--green);
}

.side-summary {
  margin: 0 0 8px;
  color: #cbd5df;
  font-size: 13px;
  line-height: 1.4;
}

.side-summary .read-more {
  margin-left: 4px;
  white-space: nowrap;
}

body.light-mode .side-summary {
  color: #334155;
}

body.light-mode .side-thumb-source {
  background:
    linear-gradient(135deg, rgba(32, 200, 117, 0.16), rgba(15, 23, 42, 0.04)),
    #eef3f8;
}

body.light-mode .side-thumb-source small {
  color: var(--text);
}

body.light-mode .x-thumb span {
  color: #111827;
}

/* ============================================================
   AJUSTE ADMIN TABS EN MODO CLARO
============================================================ */

body.light-mode .admin-tabs button.active {
  background: var(--green) !important;
  border-color: var(--green) !important;
  color: #ffffff !important;
}

body.light-mode .admin-tabs button:hover {
  background: var(--green-dark) !important;
  border-color: var(--green-dark) !important;
  color: #ffffff !important;
}

/* ============================================================
   ADMIN MÓVIL - MOSTRAR ACCIONES DEL HEADER
============================================================ */

@media (max-width: 767px) {
  .admin-header-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .admin-header-inner .header-actions {
    display: flex !important;
    gap: 8px;
  }

  .admin-header-inner .icon-button {
    font-size: 18px;
    padding: 5px;
  }

  .admin-header-inner .user-avatar {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .admin-header-inner .brand-logo {
    height: 38px !important;
    max-width: 150px !important;
  }
}
/* ============================================================
   HEADER MÓVIL - MOSTRAR MODO, ALERTAS Y AVATAR
============================================================ */

@media (max-width: 767px) {
  .header-actions {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
  }

  .icon-button {
    font-size: 18px;
    padding: 5px;
  }

  .user-avatar {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .notification-badge {
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .search-box {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   PÁGINAS ESTÁTICAS: QUIÉNES SOMOS / CONTACTO
============================================================ */

.static-page-title {
  justify-content: center;
  font-weight: 900;
  color: var(--text);
  font-size: 18px;
}

.about-hero,
.contact-hero {
  background:
    linear-gradient(135deg, rgba(32, 200, 117, 0.18), rgba(255, 255, 255, 0.03)),
    rgba(23, 29, 35, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 38px;
  margin-bottom: 24px;
}

.about-hero {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 26px;
  align-items: center;
}

.about-kicker {
  color: var(--green);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 13px;
}

.about-hero h1,
.contact-hero h1 {
  margin: 12px 0 16px;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -1px;
}

.about-hero p,
.contact-hero p {
  color: #cbd5df;
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

.about-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.secondary-link-button {
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 900;
}

.secondary-link-button:hover {
  border-color: var(--green);
  color: var(--green);
}

.about-card-highlight {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(32, 200, 117, 0.28);
  border-radius: var(--radius);
  padding: 24px;
}

.about-card-highlight strong {
  color: var(--green);
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
}

.about-card-highlight p {
  font-size: 16px;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.about-panel,
.contact-card {
  background: rgba(23, 29, 35, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.about-panel span,
.contact-card span {
  font-size: 34px;
}

.about-panel h2,
.contact-card h2 {
  margin: 14px 0 10px;
  font-size: 22px;
}

.about-panel p,
.contact-card p {
  color: #cbd5df;
  line-height: 1.55;
  margin: 0;
}

.about-story-content {
  padding: 24px;
}

.about-story-content p {
  color: #cbd5df;
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 18px;
}

.contact-card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.social-links {
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links a {
  background: #212932;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 12px 16px;
  text-decoration: none;
  font-weight: 900;
}

.social-links a:hover {
  color: var(--green);
  border-color: var(--green);
}

/* Modo claro páginas estáticas */

body.light-mode .about-hero,
body.light-mode .contact-hero,
body.light-mode .about-panel,
body.light-mode .contact-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--border);
  box-shadow: 0 16px 36px rgba(16, 32, 51, 0.08);
}

body.light-mode .about-hero p,
body.light-mode .contact-hero p,
body.light-mode .about-panel p,
body.light-mode .contact-card p,
body.light-mode .about-story-content p {
  color: #334155;
}

body.light-mode .about-card-highlight {
  background: #f8fafc;
}

body.light-mode .social-links a {
  background: #f8fafc;
  color: var(--text);
}

/* Responsive páginas estáticas */

@media (max-width: 900px) {
  .about-hero {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-hero h1,
  .contact-hero h1 {
    font-size: 34px;
  }

  .about-hero,
  .contact-hero {
    padding: 26px;
  }
}


/* ============================================================
   FOOTER CON ICONOS SOCIALES
============================================================ */

.footer-links {
  margin-bottom: 18px;
}

.footer-social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.footer-social-icons a {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #212932;
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-social-icons a:hover {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-contact {
  font-size: 13px;
  color: var(--muted);
}

.footer-contact a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.footer-contact a:hover {
  color: var(--green);
}

body.light-mode .footer-social-icons a {
  background: #f8fafc;
  color: var(--text);
  border-color: var(--border);
}

body.light-mode .footer-social-icons a:hover {
  background: var(--green);
  color: #ffffff;
}

/* ============================================================
   CORTINA DE EXPECTATIVA
============================================================ */

.launch-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(circle at top left, rgba(32, 200, 117, 0.22), transparent 34%),
    radial-gradient(circle at bottom right, rgba(32, 200, 117, 0.12), transparent 36%),
    linear-gradient(135deg, #071018 0%, #0f1419 55%, #101820 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.launch-overlay.hidden {
  display: none !important;
}

.launch-card {
  width: min(620px, 100%);
  background: rgba(23, 29, 35, 0.78);
  border: 1px solid rgba(32, 200, 117, 0.28);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  padding: 42px 36px;
  text-align: center;
  backdrop-filter: blur(16px);
}

.launch-logo {
  width: auto;
  height: 88px;
  max-width: 320px;
  object-fit: contain;
  margin-bottom: 26px;
}

.launch-kicker {
  display: inline-block;
  color: #ffffff;
  background: rgba(32, 200, 117, 0.22);
  border: 1px solid rgba(32, 200, 117, 0.42);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.launch-card h1 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -1px;
}

.launch-card p {
  margin: 0 auto 28px;
  color: #cbd5df;
  font-size: 18px;
  line-height: 1.55;
  max-width: 500px;
}

.launch-button {
  border: none;
  background: var(--green);
  color: #ffffff;
  border-radius: 999px;
  padding: 14px 34px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(32, 200, 117, 0.28);
}

.launch-button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

body.light-mode .launch-overlay {
  background:
    radial-gradient(circle at top left, rgba(32, 200, 117, 0.18), transparent 34%),
    linear-gradient(135deg, #f8fafc 0%, #eaf2f8 100%);
}

body.light-mode .launch-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(32, 200, 117, 0.28);
}

body.light-mode .launch-card h1 {
  color: var(--text);
}

body.light-mode .launch-card p {
  color: #334155;
}

body.light-mode .launch-kicker {
  color: var(--green-dark);
}

@media (max-width: 767px) {
  .launch-card {
    padding: 34px 24px;
    border-radius: 24px;
  }

  .launch-logo {
    height: 70px;
    max-width: 260px;
  }

  .launch-card h1 {
    font-size: 32px;
  }

  .launch-card p {
    font-size: 16px;
  }
}

/* ============================================================
   CÓDIGO DE ACCESO - CORTINA
============================================================ */

.launch-access {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.launch-access input {
  height: 48px;
  width: 210px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 0 18px;
  outline: none;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
}

.launch-access input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.launch-access input:focus {
  border-color: var(--green);
}

.launch-message {
  margin-top: 14px;
  color: var(--danger);
  font-size: 14px;
  font-weight: 800;
  min-height: 18px;
}

body.light-mode .launch-access input {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border);
}

body.light-mode .launch-access input::placeholder {
  color: var(--muted);
}

@media (max-width: 767px) {
  .launch-access {
    flex-direction: column;
  }

  .launch-access input,
  .launch-access .launch-button {
    width: 100%;
  }
}