/* Página Mi San Pablo: identidad editorial, scoped. No altera el design system global. */

body.page-san-pablo {
  color: #122033;
  background: #efeae2;
}

body.page-san-pablo .app {
  width: 100%;
  max-width: none;
}

body.page-san-pablo main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #efeae2;
  border: 0 !important;
  color: #122033;
}

.msp-kicker {
  margin: 0 0 10px;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5b6d80;
}

.msp-copy {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.65;
  color: #314155;
}

.msp h1,
.msp h2,
.msp h3 {
  font-family: "Roboto", sans-serif;
  letter-spacing: -0.02em;
  color: #102033;
}

.msp h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.98;
}

.msp h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.08;
}

.msp h3 {
  margin: 0 0 8px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
}

.msp-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #2b3b4a;
}

.msp-photo[data-image-label]::before {
  content: none;
}

.msp-image-badge {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(13, 26, 36, 0.88);
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.msp-hero .msp-photo[data-image-label]::before,
.msp-villa .msp-photo[data-image-label]::before {
  content: none;
}

.msp-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msp-photo img[data-missing] {
  display: none;
}

.msp-photo.is-missing::after {
  content: none;
}

/* Hero: imagen a sangre, sin recuadro ni margen azul */
.msp-hero {
  position: relative;
  width: 100%;
  min-height: calc(100dvh - 88px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: #0d1a24;
}

.msp-hero__media,
.msp-hero__media .msp-photo,
.msp-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0 !important;
}

.msp-hero__media .msp-photo {
  background: #1a2a36;
}

.msp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 16, 24, 0.18) 0%, rgba(8, 16, 24, 0.55) 100%);
  pointer-events: none;
}

.msp-hero__content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 88px;
}

.msp-hero .msp-kicker,
.msp-villa .msp-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.msp-hero h1,
.msp-villa h2 {
  color: #fff;
}

.msp-hero .msp-copy,
.msp-villa .msp-copy {
  color: rgba(255, 255, 255, 0.9);
}

.msp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

body.page-san-pablo .msp-hero .btn.secondary,
body.page-san-pablo .msp-villa .btn.secondary {
  background: transparent !important;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: none;
}

body.page-san-pablo .msp-hero .btn.secondary:hover,
body.page-san-pablo .msp-villa .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff;
}

.msp-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 1;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.msp-scroll i {
  font-size: 18px;
}

@media (prefers-reduced-motion: no-preference) {
  .msp-scroll i {
    animation: msp-scroll-hint 1.8s ease-in-out infinite;
  }
}

.msp-hero__content,
.msp-hero__overlay,
.msp-scroll {
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

body.page-san-pablo.is-exploring header {
  display: none;
}

body.page-san-pablo.is-exploring .msp-hero {
  min-height: 42vh;
}

body.page-san-pablo.is-exploring .msp-hero__content,
body.page-san-pablo.is-exploring .msp-hero__overlay,
body.page-san-pablo.is-exploring .msp-scroll {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.msp-mini-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(13, 26, 36, 0.92);
  color: #fff;
  backdrop-filter: blur(8px);
}

body.page-san-pablo.is-exploring .msp-mini-nav {
  display: flex;
}

.msp-mini-nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.msp-mini-nav__actions {
  display: flex;
  gap: 8px;
}

.msp-mini-nav .btn {
  padding: 6px 12px;
  font-size: 13px;
}

/* Layouts */
.msp-block {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) 0;
}

.msp-split {
  display: grid;
  gap: 40px;
  align-items: center;
}

.msp-timeline {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.msp-timeline li {
  display: grid;
  gap: 4px;
  padding-left: 16px;
  border-left: 2px solid rgba(18, 32, 51, 0.18);
}

.msp-timeline strong {
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.msp-split__media {
  min-height: min(62vw, 520px);
}

.msp-split__media .msp-photo,
.msp-split__media img {
  min-height: inherit;
}

.msp-today__media {
  margin: 0 0 36px;
  min-height: min(48vw, 420px);
}

.msp-today__media .msp-photo,
.msp-today__media img {
  min-height: inherit;
  width: 100%;
}

.msp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.msp-stat__value {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 28px;
}

.msp-stat__label {
  margin: 4px 0 0;
  color: #5b6d80;
}

/* Villa */
.msp-villa {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: #fff;
}

.msp-villa__media,
.msp-villa__media .msp-photo,
.msp-villa__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.msp-villa__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 22, 0.28);
  pointer-events: none;
}

.msp-villa__content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 80px;
}

.msp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.msp-tags li {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}

/* Naturaleza */
.msp-words,
.msp-words {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 48px;
  padding: 0;
  list-style: none;
}

.msp-word-chip,
.msp-word-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: #f7f3ed;
  border: 1px solid rgba(18, 32, 51, 0.1);
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #102033;
}

.msp-word-chip__icon,
.msp-word-chip__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sp-yellow, #ffca1a);
  color: var(--sp-blue, #005aa0);
  font-size: 18px;
}

.msp-nature-card__map,
.msp-nature-card__map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--sp-blue, #005aa0);
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.msp-nature-card__map:hover,
.msp-nature-card__map:hover {
  text-decoration: underline;
}

.msp-feature {
  display: grid;
  gap: 12px;
  margin-bottom: 36px;
  max-width: 68ch;
}

.msp-nature-cards,
.msp-nature-cards {
  display: grid;
  gap: 18px;
}

.msp-nature-card,
.msp-nature-card {
  color: inherit;
}

.msp-nature-card .msp-photo,
.msp-nature-card .msp-photo {
  height: 220px;
}

.msp-nature-card__body,
.msp-nature-card__body {
  padding: 14px 2px 0;
}

/* Patrimonio */
.msp-heritage {
  display: grid;
  gap: 28px;
}

.msp-heritage-item a {
  display: grid;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.msp-heritage-item .msp-photo {
  min-height: 240px;
}

.msp-heritage-item__num {
  margin: 0 0 6px;
  font-family: "Roboto", sans-serif;
  color: #7a8b9c;
  letter-spacing: 0.12em;
}

.msp-heritage-item p {
  margin: 0;
  color: #314155;
}

/* Comunidad */
.msp-community {
  display: grid;
  gap: 12px;
}

.msp-community-card {
  display: grid;
  gap: 8px;
  padding: 18px 16px;
  border: 1px solid rgba(18, 32, 51, 0.1);
  border-radius: 12px;
  background: #f7f3ed;
  text-decoration: none;
  color: inherit;
}

.msp-community-card i {
  font-size: 20px;
  color: var(--brand);
}

.msp-community-card p {
  margin: 0;
  color: #5b6d80;
  font-size: 14px;
}

/* Turismo */
.msp-routes {
  display: grid;
  gap: 14px;
}

.msp-route-card {
  padding: 22px 18px;
  border-radius: 12px;
  background: #f7f3ed;
  border: 1px solid rgba(18, 32, 51, 0.1);
  text-decoration: none;
  color: inherit;
}

.msp-route-card p {
  margin: 0;
  color: #5b6d80;
}

.msp-access {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
}

.msp-access a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.msp-access a:hover,
.msp-community-card:hover,
.msp-heritage-item a:hover,
.msp-route-card:hover {
  text-decoration: underline;
}

/* Mapa */
.msp-map {
  display: grid;
  gap: 22px;
}

.msp-map__canvas-wrap,
.msp-map__canvas {
  min-height: 420px;
  height: 520px;
  border-radius: 14px;
  overflow: hidden;
  background: #d8e1e8;
}

.msp-map__canvas {
  width: 100%;
  padding: 0;
}

.msp-map__canvas .leaflet-container {
  width: 100%;
  height: 100%;
  font-family: inherit;
}

.msp-map__side-label {
  margin: 0 0 10px;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a365d;
}

.msp-map__note:not(:empty) {
  display: block;
  margin: 14px 0 0;
  color: #5b6d80;
  font-size: 14px;
}

.msp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.msp-filter {
  appearance: none;
  border: 1px solid rgba(18, 32, 51, 0.16);
  background: transparent;
  color: #122033;
  border-radius: 999px;
  padding: 8px 12px;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.msp-filter.is-active {
  background: #122033;
  color: #fff;
  border-color: #122033;
}

.msp-map__count {
  margin: 0 0 10px;
  color: #5b6d80;
  font-size: 14px;
}

.msp-map-list {
  display: grid;
  gap: 10px;
}

.msp-map-item {
  display: block;
  padding: 14px 0;
  border-top: 1px solid rgba(18, 32, 51, 0.1);
  text-decoration: none;
  color: inherit;
}

.msp-map-item p {
  margin: 0;
  color: #314155;
}

.msp-map__empty {
  margin: 0;
  color: #5b6d80;
}

@media (min-width: 1100px) {
  .msp-community {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 800px) {
  .msp-split {
    grid-template-columns: 0.92fr 1.08fr;
  }

  .msp-community {
    grid-template-columns: repeat(2, 1fr);
  }

  .msp-nature-cards,
  .msp-nature-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .msp-routes {
    grid-template-columns: repeat(3, 1fr);
  }

  .msp-map {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }

  .msp-heritage {
    grid-template-columns: repeat(12, 1fr);
  }

  .msp-heritage-item--1 {
    grid-column: 1 / 8;
  }

  .msp-heritage-item--2 {
    grid-column: 8 / 13;
    margin-top: 48px;
  }

  .msp-heritage-item--3 {
    grid-column: 4 / 11;
  }

  .msp-heritage-item--1 .msp-photo {
    min-height: 420px;
  }
}

@media (max-width: 799px) {
  .msp-hero__content,
  .msp-villa__content,
  .msp-block {
    width: min(100% - 28px, 1120px);
  }

  .msp-hero__content,
  .msp-villa__content {
    padding-bottom: 72px;
  }
}

/* Guía comunitaria */
.msp-guide__hero {
  padding-top: 36px;
}

.msp-guide__hero .msp-kicker a {
  color: inherit;
  text-decoration: none;
}

.msp-guide__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.msp-guide__cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(18, 32, 51, 0.12);
  background: #f7f3ed;
  color: #102033;
  text-decoration: none;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.msp-guide__cat i {
  color: var(--sp-blue, #005aa0);
}

.msp-guide__cat.is-active {
  background: var(--sp-yellow, #ffca1a);
  border-color: transparent;
}

.msp-guide__layout {
  display: grid;
  gap: 22px;
}

.msp-guide__list {
  display: grid;
  gap: 12px;
}

.msp-guide__place {
  padding: 16px;
  border-radius: 14px;
  background: #f7f3ed;
  border: 1px solid rgba(18, 32, 51, 0.1);
  cursor: pointer;
}

.msp-guide__place.is-active {
  border-color: var(--sp-blue, #005aa0);
}

.msp-barrio-page .msp-route-page__photo {
  margin-top: 0;
}

.msp-guide__place h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.msp-guide__place p {
  margin: 0 0 8px;
  color: #314155;
}

.msp-guide__addr {
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  color: #5b6d80;
}

.msp-guide__map-wrap {
  min-height: 360px;
  border-radius: 16px;
  overflow: hidden;
  background: #d8e1e8;
}

.msp-guide__map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.msp-route-page {
  padding-top: 36px;
  max-width: 760px;
}

.msp-route-page .msp-kicker a {
  color: inherit;
  text-decoration: none;
}

.msp-route-page__photo {
  margin: 24px 0;
  min-height: 240px;
}

.msp-route-page__body {
  display: grid;
  gap: 14px;
  margin: 20px 0 32px;
  color: #314155;
  font-size: 17px;
  line-height: 1.65;
}

.msp-route-page__stops {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.msp-route-page__stops li {
  padding: 16px;
  border-radius: 14px;
  background: #f7f3ed;
  border: 1px solid rgba(18, 32, 51, 0.1);
}

.msp-route-page__stops h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.msp-route-page__stops p {
  margin: 0 0 8px;
}

@media (min-width: 900px) {
  .msp-guide__layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .msp-guide__map-wrap,
  .msp-guide__map {
    min-height: 560px;
    position: sticky;
    top: 88px;
  }
}
