:root {
  --cuban-blue:  #1a3a5c;
  --cuban-red:   #c0392b;
  --cuban-gold:  #d4a843;
  --cream:       #faf7f2;
  --light-gray:  #f0ece4;
  --mid-gray:    #888;
  --dark:        #1a1a1a;
  --border:      #ddd8ce;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Prevent browser default purple for visited links */
a:visited { color: inherit; }

body {
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--cream);
  color: var(--dark);
  min-height: 100vh;
}

/* ── HEADER ─────────────────────────────────────────────────────── */
.header {
  background: var(--cuban-blue);
  color: white;
  padding: 2.5rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent, transparent 20px,
    rgba(255,255,255,0.02) 20px, rgba(255,255,255,0.02) 40px
  );
}
.header-small {
  padding: 1.25rem 2rem;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.header-flag {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
}
.header-small .header-flag {
  margin-bottom: 0.6rem;
}
.flag-stripe { height: 6px; border-radius: 2px; }
.flag-blue  { background: var(--cuban-blue); border: 1px solid rgba(255,255,255,0.3); flex: 2; }
.flag-white { background: white; flex: 1; }
.flag-red   { background: var(--cuban-red);  flex: 1; }

.header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1;
}
.header h1 span { color: var(--cuban-gold); }

.header-back {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  letter-spacing: 0.3px;
}
.header-back:hover { color: white; }

.header-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.header-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cuban-gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* ── CONTROLS ────────────────────────────────────────────────────── */
.controls {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.controls-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.search-box {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
}
.search-box input {
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: 'IBM Plex Sans', sans-serif;
  outline: none;
  flex: 1;
  color: var(--dark);
}
.search-icon { color: var(--mid-gray); font-size: 14px; }

.cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cat-btn {
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
  letter-spacing: 0.3px;
  background: transparent;
}
.cat-btn-all {
  border-color: var(--dark);
  color: var(--dark);
}
.cat-btn-all.active {
  background: var(--dark);
  color: white;
}

/* ── RESULTS BAR ─────────────────────────────────────────────────── */
.results-bar {
  max-width: 1100px;
  margin: 1rem auto 0;
  padding: 0 2rem;
  font-size: 12px;
  color: var(--mid-gray);
  font-family: 'IBM Plex Mono', monospace;
}

/* ── CARD GRID ───────────────────────────────────────────────────── */
.grid-wrap {
  max-width: 1100px;
  margin: 1.25rem auto 3rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .grid-wrap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .grid-wrap { grid-template-columns: 1fr; padding: 0 1rem; }
}

.card {
  display: block;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
  cursor: pointer;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border-color: #c8c2b8;
  transform: translateY(-1px);
}
.card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--light-gray);
  border-radius: 6px 6px 0 0;
  margin: -1rem -1.1rem 0.75rem;
  width: calc(100% + 2.2rem);
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.entry-hero-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  display: block;
  max-height: 360px;
  object-fit: cover;
}
.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0.45rem 0 0.4rem;
  line-height: 1.3;
}
.card-desc {
  font-size: 12px;
  color: var(--mid-gray);
  line-height: 1.5;
  margin-bottom: 0.65rem;
}
.card-addr {
  font-size: 11px;
  color: var(--mid-gray);
  font-family: 'IBM Plex Mono', monospace;
  margin-top: 0.5rem;
  display: flex;
  gap: 5px;
  align-items: flex-start;
}
.card-url {
  font-size: 11px;
  color: var(--cuban-blue);
  font-family: 'IBM Plex Mono', monospace;
  margin-top: 0.35rem;
  display: flex;
  gap: 4px;
  align-items: center;
}

/* ── CATEGORY TAG ─────────────────────────────────────────────────── */
.cat-tag {
  display: inline-block;
  font-size: 10px;
  font-family: 'IBM Plex Mono', monospace;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.cat-tag-lg {
  font-size: 12px;
  padding: 4px 12px;
}

/* ── ENTRY PAGE ───────────────────────────────────────────────────── */
.entry-wrap {
  max-width: 680px;
  margin: 2rem auto 4rem;
  padding: 0 2rem;
}

.breadcrumb {
  font-size: 12px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--mid-gray);
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb a {
  color: var(--cuban-blue);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span:not(:last-child) { color: var(--border); }

.entry-header {
  margin-bottom: 2rem;
}
.entry-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--dark);
  margin: 0.75rem 0 0.9rem;
  line-height: 1.15;
}
.entry-desc-text {
  font-size: 1rem;
  color: #555;
  line-height: 1.65;
}

.entry-details {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.detail-row {
  display: flex;
  gap: 1.5rem;
}
.detail-label {
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  min-width: 80px;
  padding-top: 1px;
}
.detail-value {
  font-size: 14px;
  color: var(--dark);
  line-height: 1.5;
}
.detail-link {
  font-size: 14px;
  color: var(--cuban-blue);
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
}
.detail-link:hover { text-decoration: underline; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--cuban-blue);
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  transition: all 0.15s;
}
.back-btn:hover {
  background: var(--cuban-blue);
  color: white;
  border-color: var(--cuban-blue);
}

/* ── FOOTER ───────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: white;
  padding: 1.5rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 12px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--mid-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-inner a {
  color: var(--cuban-blue);
  text-decoration: none;
}
.footer-inner a:hover { text-decoration: underline; }

/* ── MAIN NAV ────────────────────────────────────────────────────── */
.main-nav {
  background: white;
  border-bottom: 2px solid var(--border);
}
.main-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 0;
}
.nav-item {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--mid-gray);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 0.9rem 1.4rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.nav-item:hover { color: var(--dark); }
.nav-item-active {
  color: var(--cuban-blue);
  border-bottom-color: var(--cuban-blue);
  font-weight: 600;
}
.nav-item-contact {
  color: var(--cuban-red);
}
.nav-item-contact:hover { color: #9b2d22; }

.nav-spacer { flex: 1; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 0.6rem;
  align-self: center;
}
.lang-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.45);
  padding: 4px 9px;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}
.lang-btn:hover { color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.4); }
.lang-btn:first-child { border-radius: 4px 0 0 4px; border-right: none; }
.lang-btn:last-child  { border-radius: 0 4px 4px 0; }
.lang-btn.lang-active {
  background: white;
  color: var(--cuban-blue);
  border-color: white;
  font-weight: 700;
}

/* ── CONTACT MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(3px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal {
  background: var(--cream);
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  overflow: hidden;
}
.modal-header {
  background: var(--cuban-blue);
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
}
.modal-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  font-family: 'IBM Plex Mono', monospace;
  margin-top: 3px;
}
.modal-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.modal-close:hover { background: rgba(255,255,255,0.25); }

.contact-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-label {
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--mid-gray);
}
.form-input,
.form-textarea {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  color: var(--dark);
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 11px;
  outline: none;
  transition: border-color 0.15s;
  resize: none;
}
.form-input:focus,
.form-textarea:focus { border-color: var(--cuban-blue); }
.form-error {
  font-size: 12px;
  color: var(--cuban-red);
  font-family: 'IBM Plex Mono', monospace;
}
.submit-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  background: var(--cuban-blue);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.15s;
  align-self: flex-end;
}
.submit-btn:hover:not(:disabled) { background: #152e4a; }
.submit-btn:disabled { opacity: 0.6; cursor: default; }

.modal-success {
  padding: 2.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.modal-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eef4ee;
  color: #2c5f2e;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.modal-success p {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  color: var(--dark);
}

/* ── EMPTY STATE ─────────────────────────────────────────────────── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--mid-gray);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
}

/* ── VIEW TOGGLE ─────────────────────────────────────────────────── */
.view-toggle {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.view-btn {
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--mid-gray);
  cursor: pointer;
  transition: all 0.15s;
}
.view-btn.active {
  background: var(--cuban-blue);
  color: white;
  border-color: var(--cuban-blue);
}

/* ── TABLE VIEW ──────────────────────────────────────────────────── */
.table-wrap {
  max-width: 1100px;
  margin: 1rem auto 3rem;
  padding: 0 2rem;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  font-size: 13px;
}
thead { background: var(--cuban-blue); color: white; }
th {
  padding: 10px 14px;
  text-align: left;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--light-gray);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--cream); }

.entry-name  { font-weight: 600; font-size: 13px; color: var(--dark); }
.entry-desc  { font-size: 12px; color: var(--mid-gray); max-width: 240px; }
.address     { font-size: 11px; color: var(--mid-gray); max-width: 180px; }
.contact-link {
  font-size: 12px;
  color: var(--cuban-blue);
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
}
.contact-link:hover { text-decoration: underline; }
.row-num {
  color: #aaa;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  width: 28px;
}
.table-name-link {
  text-decoration: none;
  color: inherit;
}
.table-name-link:hover .entry-name {
  color: var(--cuban-blue);
  text-decoration: underline;
}

/* ── AGENDA / EVENTS ─────────────────────────────────────────────── */
.agenda-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}
.agenda-header { margin-bottom: 1.5rem; }
.agenda-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--dark);
}
.agenda-sub {
  font-size: 14px;
  color: var(--mid-gray);
  margin-top: 0.25rem;
}
.agenda-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
}
.agenda-filter-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--mid-gray);
  cursor: pointer;
  transition: all 0.15s;
}
.agenda-filter-btn:hover { border-color: var(--dark); color: var(--dark); }
.agenda-filter-btn.active {
  background: var(--cuban-blue);
  border-color: var(--cuban-blue);
  color: white;
}
.agenda-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--mid-gray);
  margin-bottom: 1rem;
}
.agenda-state {
  padding: 3rem 0;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--mid-gray);
}
.agenda-error { color: var(--cuban-red); }

.ev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .ev-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ev-grid { grid-template-columns: 1fr; } }

.ev-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
}
.ev-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}
.ev-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--light-gray);
}
.ev-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ev-body {
  padding: 0.9rem 1rem 0.5rem;
  flex: 1;
}
.ev-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}
.ev-genre {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 10px;
  background: var(--light-gray);
  color: var(--mid-gray);
}
.ev-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--cuban-red);
}
.ev-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 0.35rem;
}
.ev-venue {
  font-size: 11px;
  color: var(--mid-gray);
  font-family: 'IBM Plex Mono', monospace;
  line-height: 1.4;
}
.ev-price {
  font-size: 12px;
  color: var(--cuban-blue);
  font-family: 'IBM Plex Mono', monospace;
  margin-top: 0.4rem;
}
.ev-cta {
  padding: 0.6rem 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--cuban-blue);
  border-top: 1px solid var(--light-gray);
}

.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.page-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: white;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.15s;
  min-width: 36px;
}
.page-btn:hover:not(:disabled) {
  border-color: var(--cuban-blue);
  color: var(--cuban-blue);
}
.page-btn:disabled { opacity: 0.35; cursor: default; }
.page-btn-active {
  background: var(--cuban-blue);
  border-color: var(--cuban-blue);
  color: white;
}

/* ── LEGAL PAGES (TOS / PRIVACY) ────────────────────────────────── */
.tos-wrap {
  max-width: 720px;
  margin: 2.5rem auto 5rem;
  padding: 0 2rem;
}
.tos-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 0.3rem;
}
.tos-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2.5rem;
}
.tos-section {
  margin-bottom: 2rem;
}
.tos-section h2 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cuban-blue);
  margin-bottom: 0.6rem;
}
.tos-section p {
  font-size: 14px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 0.6rem;
}
.tos-section ul {
  margin: 0.4rem 0 0.6rem 1.25rem;
}
.tos-section li {
  font-size: 14px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 0.25rem;
}
.tos-link {
  color: var(--cuban-blue);
  text-decoration: underline;
}

/* ── NUESTRA GENTE ───────────────────────────────────────────────── */
.ng-admin {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 2rem;
}
.ng-admin-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ng-admin-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}
.ng-form {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 280px;
}
.ng-input {
  flex: 1;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 6px 10px;
  background: var(--cream);
  color: var(--dark);
  outline: none;
}
.ng-input:focus { border-color: var(--cuban-blue); }
.ng-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 5px;
  border: none;
  background: var(--cuban-blue);
  color: white;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.ng-btn:hover:not(:disabled) { background: #152e4a; }
.ng-btn:disabled { opacity: 0.5; cursor: default; }
.ng-btn-ghost {
  background: transparent;
  color: var(--mid-gray);
  border: 1px solid var(--border);
}
.ng-btn-ghost:hover { background: var(--light-gray); color: var(--dark); }
.ng-error { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--cuban-red); }
.ng-ok    { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #2c5f2e; }

.ng-preview-wrap {
  background: var(--light-gray);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
}
.ng-preview-inner {
  max-width: 560px;
  margin: 0 auto;
}
.ng-preview-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.ng-preview-author {
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
}
.ng-preview-url {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--mid-gray);
  word-break: break-all;
}

.ng-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}
.ng-header { margin-bottom: 2rem; }
.ng-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--dark);
}
.ng-sub {
  font-size: 14px;
  color: var(--mid-gray);
  margin-top: 0.25rem;
}
.ng-empty {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--mid-gray);
  padding: 3rem 0;
  text-align: center;
}

.ng-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .ng-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ng-grid { grid-template-columns: 1fr; } }

.ng-post {
  position: relative;
}
.ng-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.15s;
}
.ng-delete:hover { background: var(--cuban-red); }

.ig-embed-wrap { width: 100%; }
.ig-embed-wrap .instagram-media {
  min-width: unset !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* ── NEWS ────────────────────────────────────────────────────────── */
.news-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}
.news-header { margin-bottom: 1.75rem; }
.news-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--dark);
}
.news-sub {
  font-size: 14px;
  color: var(--mid-gray);
  margin-top: 0.25rem;
}
.news-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--mid-gray);
}
.news-source {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--mid-gray);
  margin-top: 0.4rem;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
}
.news-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-1px); }
.news-img-wrap { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--light-gray); }
.news-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.news-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.news-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
}
.news-card-summary { font-size: 12px; color: var(--mid-gray); line-height: 1.5; flex: 1; }

/* ── ARTICLE ─────────────────────────────────────────────────────── */
.article-wrap {
  max-width: 720px;
  margin: 2rem auto 4rem;
  padding: 0 2rem;
}
.article-header { margin-bottom: 1.5rem; }
.article-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 0.75rem; flex-wrap: wrap; }
.article-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 0.75rem;
}
.article-summary {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  border-left: 3px solid var(--cuban-gold);
  padding-left: 1rem;
}
.article-img {
  width: 100%;
  border-radius: 8px;
  margin: 1.5rem 0;
  display: block;
}
.article-body {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  margin: 1.5rem 0 2rem;
}
.article-link-out {
  background: var(--light-gray);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0 2rem;
  text-align: center;
}
.article-link-out p { font-size: 14px; color: var(--mid-gray); margin-bottom: 1rem; }
.read-more-btn {
  display: inline-block;
  background: var(--cuban-blue);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  transition: background 0.15s;
}
.read-more-btn:hover { background: #152e4a; }

/* ── NEWSPAPER LAYOUT ────────────────────────────────────────────── */
.np-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem 3rem 4rem;
}

.np-masthead {
  text-align: center;
  padding: 1rem 0 0.5rem;
  margin-bottom: 1.5rem;
}
.np-masthead-rule {
  height: 3px;
  background: var(--dark);
  margin: 0.5rem 0;
}
.np-masthead-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--dark);
  line-height: 1;
}
.np-masthead-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-top: 0.25rem;
}

.np-dateline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.4rem;
}
.np-cat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid currentColor;
  line-height: 1.4;
  background: #f1f5f9;
  color: #475569;
}
.np-cat-miami     { background: #ecfdf5; color: #059669; }
.np-cat-cuba      { background: #fff1f2; color: #e11d48; }
.np-cat-culture   { background: #faf5ff; color: #7c3aed; }
.np-cat-music     { background: #fff7ed; color: #c2410c; }
.np-cat-business  { background: #f0fdf4; color: #16a34a; }
.np-cat-community { background: #eff6ff; color: #2563eb; }
.np-lang-chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid currentColor;
  line-height: 1.4;
}
.np-lang-en    { background: #eff6ff; color: #2563eb; }
.np-lang-es    { background: #fff7ed; color: #c2410c; }
.np-lang-es-en { background: #faf5ff; color: #7c3aed; }
.np-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--mid-gray);
  letter-spacing: 0.3px;
}

.np-source {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--mid-gray);
  margin-top: 0.5rem;
  font-style: italic;
}
.np-source a {
  color: var(--cuban-blue);
  text-decoration: none;
}
.np-source a:hover { text-decoration: underline; }

.np-hero-link {
  text-decoration: none;
  color: inherit;
}
.np-hero-link:hover h2,
.np-hero-link:hover h3 { color: var(--cuban-red); }

/* Hero + sidebar row */
.np-hero-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  border-top: 1px solid var(--dark);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
@media (max-width: 800px) {
  .np-hero-wrap { grid-template-columns: 1fr; }
}

.np-hero-body {
  padding-right: 2rem;
  border-right: 1px solid var(--border);
}
@media (max-width: 800px) {
  .np-hero-body { padding-right: 0; border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
}

.np-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}
.np-hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}
.np-hero-summary {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
}

/* Sidebar */
.np-hero-sidebar {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (max-width: 800px) {
  .np-hero-sidebar { padding-left: 0; padding-top: 1.5rem; }
}

.np-sidebar-item {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.np-sidebar-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.np-sidebar-headline {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 0.4rem;
}
.np-sidebar-summary {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #555;
}

/* Divider rule */
.np-rule {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
  position: relative;
}
.np-rule::before {
  content: '◆';
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  background: var(--cream);
  padding: 0 8px;
  font-size: 10px;
  color: var(--mid-gray);
}

/* Small stories grid */
.np-small-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
@media (max-width: 1100px) { .np-small-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .np-small-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .np-small-grid { grid-template-columns: 1fr; } }

.np-small-item {
  padding: 0 1.25rem 1.25rem 0;
  margin-right: 1.25rem;
  border-right: 1px solid var(--border);
}
.np-small-item:last-child { border-right: none; margin-right: 0; }
@media (max-width: 900px) {
  .np-small-item { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 1.25rem; margin-bottom: 1.25rem; }
  .np-small-item:last-child { border-bottom: none; }
}

.np-small-headline {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 0.35rem;
}
.np-small-summary {
  font-size: 0.78rem;
  line-height: 1.55;
  color: #666;
}

.np-empty {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--mid-gray);
  padding: 3rem 0;
  text-align: center;
}

/* ── VER TODAS BUTTON ────────────────────────────────────────────── */
.ver-todas-btn {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--cuban-blue);
  text-decoration: none;
  padding: 8px 18px;
  border: 1px solid var(--cuban-blue);
  border-radius: 4px;
  transition: all 0.15s;
}
.ver-todas-btn:hover { background: var(--cuban-blue); color: white; }

/* ── SIDEBAR IMAGE ───────────────────────────────────────────────── */
.np-sidebar-img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
  margin-bottom: 0.6rem;
  border: 1px solid var(--border);
}

/* ── NEWS LIST (todas) ───────────────────────────────────────────── */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.news-row {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}
.news-row:hover { background: rgba(0,0,0,0.015); }
.news-row-img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.news-row-body { flex: 1; }
.news-row-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin: 0.25rem 0 0.3rem;
}
.news-row:hover .news-row-title { color: var(--cuban-red); }
.news-row-summary {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.5;
}
