/* v0.98 — Tu ciudad como territorio editorial especial administrable. */

.admin-city-hub-panel {
  margin-bottom: 1rem;
  border-color: rgba(83, 65, 137, .25);
  background: linear-gradient(135deg, #fff 0%, #f7f4ff 100%);
}

.admin-city-hub-panel > header {
  align-items: flex-start;
}

.admin-city-hub-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(83, 65, 137, .18);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(29, 42, 74, .06);
}

.admin-city-hub-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, var(--navy-deep), var(--violet));
  font-size: 1.5rem;
  font-weight: 950;
}

.admin-city-hub-card strong {
  color: var(--navy-deep);
  font-size: 1.1rem;
}

.admin-city-hub-card p {
  max-width: 760px;
  margin: .35rem 0 .65rem;
  color: var(--muted);
}

.admin-city-hub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.admin-city-hub-tags span,
.admin-territory-count {
  display: inline-flex;
  padding: .3rem .55rem;
  border-radius: 999px;
  color: var(--violet);
  background: #efebfb;
  font-size: .74rem;
  font-weight: 850;
}

.admin-city-hub-actions {
  display: grid;
  gap: .5rem;
  min-width: 170px;
}

.admin-tenencias-official-panel > header {
  align-items: flex-start;
}

/* Página pública Tu ciudad */
.city-hub-hero {
  min-height: 430px;
}

.city-hub-hero .detail-hero-overlay {
  background: linear-gradient(90deg, rgba(15, 33, 76, .93) 0%, rgba(21, 42, 89, .73) 50%, rgba(20, 34, 72, .26) 100%);
}

.city-hub-hero-content {
  max-width: 780px;
}

.city-hub-hero-content h1 {
  max-width: 760px;
}

.city-hub-intro-section {
  padding-bottom: 2.5rem;
}

.city-hub-rich-content > p {
  color: #43516e;
  font-size: 1rem;
  line-height: 1.78;
}

.city-info-strip > div {
  min-height: 128px;
}

.city-economic-section {
  border-block: 1px solid #e8edf5;
}

.city-economic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.city-economic-grid a {
  display: grid;
  align-content: start;
  min-height: 220px;
  padding: 1.25rem;
  border: 1px solid #e1e7f1;
  border-radius: 22px;
  color: var(--navy-deep);
  background: #fff;
  box-shadow: 0 14px 34px rgba(29, 42, 74, .055);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.city-economic-grid a:hover,
.city-economic-grid a:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(83, 65, 137, .35);
  box-shadow: 0 22px 48px rgba(29, 42, 74, .105);
}

.city-economic-grid a > span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
  border-radius: 15px;
  color: var(--violet);
  background: #efebfb;
  font-size: 1.4rem;
  font-weight: 900;
}

.city-economic-grid strong {
  font-size: 1.08rem;
}

.city-economic-grid p {
  margin: .55rem 0 1rem;
  color: var(--muted);
  line-height: 1.55;
}

.city-economic-grid em {
  margin-top: auto;
  color: var(--violet);
  font-style: normal;
  font-weight: 850;
}

.city-events-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, .95fr);
  gap: 1rem;
  align-items: stretch;
}

.city-event-featured {
  min-height: 520px;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(11, 23, 55, .08), rgba(15, 28, 66, .9)), var(--city-event-image) center/cover no-repeat;
  box-shadow: 0 24px 54px rgba(20, 36, 75, .2);
}

.city-event-featured > a {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  min-height: 520px;
  padding: 1.6rem;
  color: #fff;
}

.city-event-featured-copy {
  max-width: 540px;
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 20px;
  background: rgba(28, 31, 76, .78);
  backdrop-filter: blur(12px);
}

.city-event-featured-copy h3 {
  margin: .35rem 0 .55rem;
  font-size: clamp(1.65rem, 2.4vw, 2.45rem);
  line-height: 1.05;
}

.city-event-featured-copy p,
.city-event-featured-copy span {
  color: rgba(255,255,255,.88);
}

.city-event-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.city-event-secondary-grid .event-card:first-child {
  grid-column: 1 / -1;
}

.city-event-secondary-grid .event-card img {
  aspect-ratio: 1.65;
}

.city-gallery-section {
  border-top: 1px solid #e8edf5;
}

.city-news-opportunities-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 1.25rem;
  align-items: stretch;
}

.city-news-list {
  display: grid;
  gap: .75rem;
}

.city-news-list article {
  border: 1px solid #e1e7f1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(29, 42, 74, .045);
}

.city-news-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.05rem;
}

.city-news-list span {
  color: var(--violet);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.city-news-list h3 {
  margin: .25rem 0 .35rem;
  color: var(--navy-deep);
  font-size: 1rem;
}

.city-news-list p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
}

.city-news-list a > strong {
  color: var(--violet);
  white-space: nowrap;
}

.city-opportunities-panel {
  padding: 1.4rem;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(145deg, #192f69 0%, #44377c 100%);
  box-shadow: 0 22px 48px rgba(27, 42, 84, .22);
}

.city-opportunities-panel h2 {
  margin: .25rem 0 .55rem;
  color: #fff;
}

.city-opportunities-panel > p:not(.eyebrow) {
  color: rgba(255,255,255,.78);
}

.city-opportunity-links {
  display: grid;
  gap: .65rem;
  margin-top: 1.2rem;
}

.city-opportunity-links a {
  display: grid;
  gap: .2rem;
  padding: .8rem .9rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  color: #fff;
  background: rgba(255,255,255,.08);
}

.city-opportunity-links span {
  font-size: .78rem;
  color: rgba(255,255,255,.72);
}

.city-opportunity-links strong {
  font-size: .9rem;
}

.city-video-section {
  background: #f7f8fc;
}

.city-final-cta-section {
  padding-top: 0;
}

.city-final-cta {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
  padding: 1.6rem;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(120deg, #172e67, #4c3d83);
  box-shadow: 0 24px 52px rgba(27, 42, 84, .2);
}

.city-final-cta h2 {
  margin: .25rem 0 .4rem;
  color: #fff;
}

.city-final-cta p {
  margin: 0;
  color: rgba(255,255,255,.8);
}

.city-final-cta > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

@media (max-width: 1050px) {
  .city-economic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .city-events-showcase,
  .city-news-opportunities-grid {
    grid-template-columns: 1fr;
  }
  .city-event-secondary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .city-event-secondary-grid .event-card:first-child {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .admin-city-hub-card {
    grid-template-columns: 1fr;
  }
  .admin-city-hub-actions {
    min-width: 0;
  }
  .city-hub-hero {
    min-height: 500px;
  }
  .city-economic-grid,
  .city-event-secondary-grid {
    grid-template-columns: 1fr;
  }
  .city-event-featured,
  .city-event-featured > a {
    min-height: 420px;
  }
  .city-news-list a {
    grid-template-columns: 1fr;
  }
  .city-final-cta {
    display: grid;
  }
}

.admin-city-editor-guide {
  display: grid;
  gap: .45rem;
  margin-bottom: 1rem;
}

.admin-city-editor-guide > div {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
