/* ============================================================
   visitanayarit.com — Pages CSS
   Estilos compartidos para: /destinos/, single posts y más.
   ============================================================ */

/* ── Variables (reutilizadas de home.css) ───────────────────
   Se declaran aquí también para que este archivo sea autónomo */
:root {
  --vn-teal:   #007b8a;
  --vn-gold:   #c8922a;
  --vn-green:  #2d6a4f;
  --vn-sand:   #f5ede0;
  --vn-dark:   #0f2030;
  --vn-text:   #2c3e50;
  --vn-radius: 14px;
  --vn-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

/* ── Clases compartidas (replicadas de home.css para pages) ── */
.vn-btn-primary {
  background: var(--vn-gold);
  color: #fff !important;
  border: none;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  display: inline-block;
  transition: all .25s;
  box-shadow: 0 4px 20px rgba(200,146,42,0.45);
}
.vn-btn-primary:hover {
  background: #a87118;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200,146,42,0.55);
}
.vn-btn-ghost {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.55);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  display: inline-block;
  transition: all .25s;
  backdrop-filter: blur(4px);
}
.vn-btn-ghost:hover {
  background: rgba(255,255,255,0.14);
  border-color: #fff;
}

.vn-section     { padding: 72px 0; }
.vn-section-alt { background: #f7f4f0; }

.vn-section-label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--vn-teal);
  margin-bottom: .4rem;
  display: block;
}
.vn-section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: var(--vn-dark);
  margin-bottom: .5rem;
  line-height: 1.2;
}
.vn-section-desc {
  color: #667;
  font-size: 1rem;
  max-width: 560px;
  margin-bottom: 2.2rem;
  line-height: 1.65;
}

.vn-read-more {
  font-size: .78rem;
  font-weight: 700;
  color: var(--vn-teal);
  margin-top: 14px;
  display: inline-block;
}

/* Post card (también usada en /destinos/ en la sección de guías) */
.vn-post-card {
  background: #fff;
  border-radius: var(--vn-radius);
  overflow: hidden;
  border: 1px solid #e4e9ed;
  transition: all .25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.vn-post-card-link {
  text-decoration: none;
  color: var(--vn-text);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.vn-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.vn-post-thumb {
  height: 195px;
  overflow: hidden;
  flex-shrink: 0;
}
.vn-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
  display: block;
}
.vn-post-card:hover .vn-post-thumb img { transform: scale(1.05); }
.vn-post-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.vn-post-cat-tag {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vn-teal);
  margin-bottom: 7px;
  display: block;
}
.vn-post-body h3 {
  font-size: .97rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
  color: var(--vn-dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vn-post-excerpt {
  font-size: .82rem;
  color: #778;
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA banner */
.vn-cta-banner {
  padding: 80px 0;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.vn-cta-banner h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: .8rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.vn-cta-banner p {
  opacity: .88;
  font-size: 1.1rem;
  margin-bottom: 2.2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* Breadcrumb */
.vn-breadcrumb {
  font-size: .78rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}
.vn-breadcrumb a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color .2s;
}
.vn-breadcrumb a:hover { color: #fff; }
.vn-breadcrumb span[aria-current] { color: #fff; font-weight: 600; }

/* Hero compartido (versión completa) */
.vn-hero {
  min-height: 92vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.vn-hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}
.vn-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 680px;
  padding: 80px 0 100px;
}
.vn-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.vn-hero h1 span { color: #7ee8dc; }
.vn-hero-sub {
  font-size: 1.1rem;
  opacity: .9;
  margin-bottom: 2.2rem;
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* ── Hero corto (para /destinos/) ────────────────────────── */
.vn-hero--short {
  min-height: 52vh;
}
.vn-hero--short .vn-hero-content {
  padding: 60px 0 80px;
}
.vn-hero--short h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

/* ── Datos rápidos de destinos ───────────────────────────── */
.vn-dest-quick-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  border-bottom: 1px solid #e0dbd5;
}
.vn-dest-qfact {
  text-align: center;
  padding: 22px 36px;
  border-right: 1px solid #e0dbd5;
}
.vn-dest-qfact:last-child { border-right: none; }
.vn-dest-qfact strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--vn-teal);
  line-height: 1;
  margin-bottom: 4px;
}
.vn-dest-qfact span {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #889;
}

/* ── Región header ───────────────────────────────────────── */
.vn-region-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 2.4rem;
}

/* ── Municipio grid ──────────────────────────────────────── */
.vn-muni-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── Municipio card ──────────────────────────────────────── */
.vn-muni-card {
  background: #fff;
  border-radius: var(--vn-radius);
  overflow: hidden;
  border: 1px solid #e4e9ed;
  transition: all .25s;
  box-shadow: var(--vn-shadow);
}
.vn-muni-card-link {
  text-decoration: none;
  color: var(--vn-text);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.vn-muni-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.13);
}
.vn-muni-img {
  height: 175px;
  overflow: hidden;
  flex-shrink: 0;
}
.vn-muni-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
  display: block;
}
.vn-muni-card:hover .vn-muni-img img { transform: scale(1.06); }
.vn-muni-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.vn-muni-body h3 {
  font-size: .97rem;
  font-weight: 800;
  color: var(--vn-dark);
  margin: 0 0 7px;
  line-height: 1.25;
}
.vn-muni-body p {
  font-size: .80rem;
  color: #667;
  line-height: 1.55;
  flex: 1;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vn-muni-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.vn-muni-tag {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #edf4f6;
  color: var(--vn-teal);
  border-radius: 50px;
  padding: 3px 10px;
}
.vn-muni-card .vn-read-more { margin-top: auto; }

/* ═══════════════════════════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════════════════════════ */

/* Hero del post */
.vn-single-hero {
  min-height: 440px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.vn-single-hero--plain {
  min-height: auto;
  background: var(--vn-dark);
}
.vn-single-hero-inner {
  padding: 48px 0 40px;
  position: relative;
  z-index: 2;
}
.vn-single-hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
  max-width: 820px;
}

/* Meta bar debajo del título */
.vn-single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 4px;
  color: rgba(255,255,255,0.80);
  font-size: .82rem;
}
.vn-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.vn-meta-sep { opacity: .5; }
.vn-meta-cat {
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 3px 12px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  text-decoration: none;
  transition: background .2s;
}
.vn-meta-cat:hover { background: rgba(255,255,255,0.28); color: #fff; }

/* Wrapper del artículo */
.vn-single-wrap {
  padding: 56px 0 24px;
}

/* Barra de compartir */
.vn-share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px;
  background: #f7f4f0;
  border-radius: 10px;
  margin-bottom: 2rem;
  font-size: .80rem;
}
.vn-share-label {
  font-weight: 700;
  color: #889;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-right: 4px;
}
.vn-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.vn-share-fb  { background: #1877f2; color: #fff; }
.vn-share-tw  { background: #1da1f2; color: #fff; }
.vn-share-wa  { background: #25d366; color: #fff; }
.vn-share-btn:hover { opacity: .85; transform: translateY(-1px); color: #fff; }

/* Tipografía del artículo */
.vn-prose {
  font-size: 1.04rem;
  line-height: 1.80;
  color: #2a3440;
}
.vn-prose h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--vn-dark);
  margin: 2.2rem 0 .8rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid #edf4f6;
}
.vn-prose h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--vn-dark);
  margin: 1.8rem 0 .6rem;
}
.vn-prose h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--vn-teal);
  margin: 1.4rem 0 .5rem;
}
.vn-prose p { margin-bottom: 1.3rem; }
.vn-prose a {
  color: var(--vn-teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.vn-prose a:hover { color: #005a66; }
.vn-prose ul,
.vn-prose ol { padding-left: 1.5rem; margin-bottom: 1.3rem; }
.vn-prose li { margin-bottom: .5rem; }
.vn-prose blockquote {
  border-left: 4px solid var(--vn-teal);
  padding: 16px 20px;
  margin: 2rem 0;
  background: #edf4f6;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #445;
}
.vn-prose img {
  max-width: 100%;
  border-radius: 10px;
  margin: 1.6rem 0;
}
.vn-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  font-size: .92rem;
}
.vn-prose table th {
  background: var(--vn-dark);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
}
.vn-prose table td {
  padding: 9px 14px;
  border-bottom: 1px solid #e4e9ed;
}
.vn-prose table tr:nth-child(even) td { background: #f7f4f0; }
.vn-prose figure { margin: 1.6rem 0; }
.vn-prose figcaption {
  text-align: center;
  font-size: .8rem;
  color: #889;
  margin-top: 6px;
}

/* Tags del artículo */
.vn-article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid #e4e9ed;
  margin-top: 2.4rem;
}
.vn-tags-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #889;
  margin-right: 4px;
}
.vn-tag-pill {
  background: #edf4f6;
  color: var(--vn-teal);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: .76rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.vn-tag-pill:hover {
  background: var(--vn-teal);
  color: #fff;
}

/* Navegación anterior / siguiente */
.vn-post-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid #e4e9ed;
  margin-top: 8px;
}
.vn-post-nav a {
  font-size: .85rem;
  font-weight: 700;
  color: var(--vn-teal);
  text-decoration: none;
  max-width: 46%;
  line-height: 1.35;
  transition: color .2s;
}
.vn-post-nav a:hover { color: #005a66; }
.vn-post-nav-next { text-align: right; }

/* Sidebar */
.vn-sidebar { position: sticky; top: 90px; }
.vn-sidebar-widget {
  background: #fff;
  border: 1px solid #e4e9ed;
  border-radius: var(--vn-radius);
  padding: 22px 20px;
  margin-bottom: 20px;
}
.vn-sidebar-title {
  font-size: .9rem;
  font-weight: 800;
  color: var(--vn-dark);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.vn-sidebar-body {
  font-size: .84rem;
  color: #667;
  line-height: 1.6;
  margin-bottom: 16px;
}
.vn-sidebar-cats {
  list-style: none;
  padding: 0;
  margin: 0;
}
.vn-sidebar-cats li {
  border-bottom: 1px solid #f0f0f0;
}
.vn-sidebar-cats li:last-child { border-bottom: none; }
.vn-sidebar-cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: .87rem;
  font-weight: 600;
  color: var(--vn-text);
  text-decoration: none;
  transition: color .2s;
}
.vn-sidebar-cats a:hover { color: var(--vn-teal); }
.vn-cat-count {
  font-size: .76rem;
  color: #aab;
  font-weight: 400;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1199px) {
  .vn-muni-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .vn-muni-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .vn-dest-qfact { padding: 16px 20px; }
  .vn-dest-qfact strong { font-size: 1.4rem; }
  .vn-single-hero { min-height: 340px; }
  .vn-single-wrap { padding: 36px 0 16px; }
  .vn-post-nav a { max-width: 100%; }
}

@media (max-width: 575px) {
  .vn-hero--short { min-height: 48vh; }
  .vn-muni-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .vn-muni-img { height: 130px; }
  .vn-dest-quick-facts { flex-direction: column; align-items: stretch; }
  .vn-dest-qfact { border-right: none; border-bottom: 1px solid #e0dbd5; }
  .vn-dest-qfact:last-child { border-bottom: none; }
  .vn-section { padding: 52px 0; }
}

/* ═══════════════════════════════════════════════════════════
   DESTINATION PAGE (page.php para hijos de /destinos/)
═══════════════════════════════════════════════════════════ */

/* Hero del destino */
.vn-dest-hero {
  min-height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}
.vn-dest-hero-inner {
  padding: 56px 0 50px;
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.vn-dest-hero-inner h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: .6rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.45);
}
.vn-dest-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  color: #d4f0ec;
  font-size: .70rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 1rem;
  backdrop-filter: blur(6px);
}

/* Wrapper del destino */
.vn-dest-wrap {
  padding: 52px 0 24px;
}
.vn-dest-body { /* extiende vn-prose */ }

/* Widget de destinos facts */
.vn-dest-facts-widget { border-top: 3px solid var(--vn-teal); }

/* Responsive */
@media (max-width: 767px) {
  .vn-dest-hero { min-height: 380px; }
  .vn-dest-hero-inner { padding: 40px 0 36px; }
  .vn-dest-wrap { padding: 36px 0 16px; }
}
@media (max-width: 575px) {
  .vn-dest-hero { min-height: 310px; }
}

/* ═══════════════════════════════════════════════════════════
   PUEBLOS MÁGICOS PAGE
═══════════════════════════════════════════════════════════ */

/* Lista resumen de pueblos */
.vn-pm-map-card {
  background: #fff;
  border-radius: var(--vn-radius);
  border: 1px solid #e4e9ed;
  overflow: hidden;
  box-shadow: var(--vn-shadow);
}
.vn-pm-map-inner { padding: 8px 0; }
.vn-pm-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  text-decoration: none;
  color: var(--vn-text);
  border-bottom: 1px solid #f0f3f5;
  transition: background .18s;
}
.vn-pm-list-item:last-child { border-bottom: none; }
.vn-pm-list-item:hover { background: #f0f8fa; color: var(--vn-teal); }
.vn-pm-list-item:hover svg { stroke: var(--vn-teal); }
.vn-pm-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--vn-teal);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vn-pm-list-item div { flex: 1; }
.vn-pm-list-item strong { display: block; font-size: .9rem; font-weight: 700; color: var(--vn-dark); }
.vn-pm-list-item span  { font-size: .75rem; color: #889; }
.vn-pm-list-item svg   { flex-shrink: 0; stroke: #bbb; transition: stroke .18s; }

/* Grid de Pueblos Mágicos */
.vn-pm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card de Pueblo Mágico */
.vn-pm-card {
  background: #fff;
  border-radius: var(--vn-radius);
  overflow: hidden;
  border: 1px solid #e4e9ed;
  box-shadow: var(--vn-shadow);
  transition: all .28s;
}
.vn-pm-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.14);
}
.vn-pm-card-link {
  text-decoration: none;
  color: var(--vn-text);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Imagen con badges */
.vn-pm-img {
  position: relative;
  height: 210px;
  overflow: hidden;
}
.vn-pm-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
  display: block;
}
.vn-pm-card:hover .vn-pm-img img { transform: scale(1.07); }

.vn-pm-num-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--vn-teal);
  color: #fff;
  font-size: .84rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 2;
}
.vn-pm-highlight {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  z-index: 2;
}

/* Cuerpo del card */
.vn-pm-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.vn-pm-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vn-gold);
  margin-bottom: 5px;
  display: block;
}
.vn-pm-body h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--vn-dark);
  margin: 0 0 9px;
}
.vn-pm-body p {
  font-size: .82rem;
  color: #667;
  line-height: 1.58;
  flex: 1;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Barrio Mágico banner */
.vn-barrio-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: #fff;
  border-radius: var(--vn-radius);
  overflow: hidden;
  border: 1px solid #e4e9ed;
  box-shadow: var(--vn-shadow);
}
.vn-barrio-img { height: 300px; overflow: hidden; }
.vn-barrio-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vn-barrio-text {
  padding: 32px 40px 32px 0;
}
.vn-barrio-text p {
  font-size: .9rem;
  color: #556;
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

/* Corredor cards */
.vn-corredor-card {
  background: #fff;
  border: 1px solid #e4e9ed;
  border-radius: var(--vn-radius);
  padding: 26px 24px;
  height: 100%;
  box-shadow: var(--vn-shadow);
  transition: transform .22s;
}
.vn-corredor-card:hover { transform: translateY(-3px); }
.vn-corredor-card--featured {
  background: var(--vn-dark);
  color: #fff;
  border-color: transparent;
}
.vn-corredor-card--featured h3 { color: #7ee8dc; }
.vn-corredor-card--featured p  { color: rgba(255,255,255,0.8); }
.vn-corredor-card--featured ul { color: rgba(255,255,255,0.75); }
.vn-corredor-card--featured .vn-read-more { color: var(--vn-gold); }

.vn-corredor-icon { font-size: 2rem; margin-bottom: 10px; }
.vn-corredor-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--vn-dark);
  margin-bottom: 4px;
}
.vn-corredor-card p {
  font-size: .82rem;
  color: #889;
  margin-bottom: 12px;
  font-weight: 600;
}
.vn-corredor-card ul {
  font-size: .82rem;
  color: #556;
  padding-left: 1.1rem;
  margin-bottom: 1rem;
}
.vn-corredor-card ul li { margin-bottom: 4px; }

/* Responsive Pueblos Mágicos */
@media (max-width: 991px) {
  .vn-pm-grid { grid-template-columns: repeat(2, 1fr); }
  .vn-barrio-banner { grid-template-columns: 1fr; }
  .vn-barrio-img { height: 220px; }
  .vn-barrio-text { padding: 24px; }
}
@media (max-width: 575px) {
  .vn-pm-grid { grid-template-columns: 1fr; gap: 16px; }
  .vn-pm-img { height: 200px; }
}

/* ═══════════════════════════════════════════════════════════
   CATEGORY ARCHIVE
═══════════════════════════════════════════════════════════ */

/* Hero de categoría */
.vn-cat-archive-hero {
  min-height: 340px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding-bottom: 30px;
}
.vn-cat-archive-inner {
  padding: 56px 0 44px;
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 660px;
}
.vn-cat-archive-icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.vn-cat-archive-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: .6rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.vn-cat-archive-sub {
  font-size: 1rem;
  opacity: .88;
  margin-bottom: .8rem;
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.vn-cat-archive-meta {
  font-size: .78rem;
  opacity: .70;
  letter-spacing: .06em;
}

/* Wrapper del archive */
.vn-archive-wrap { padding: 52px 0 32px; }

/* Descripción de categoría */
.vn-cat-desc-block {
  background: #edf4f6;
  border-left: 4px solid var(--vn-teal);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  font-size: .9rem;
  color: #445;
  line-height: 1.65;
  margin-bottom: 28px;
}

/* Header del archive */
.vn-archive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e4e9ed;
}
.vn-archive-count {
  font-size: .84rem;
  color: #889;
  margin: 0;
}

/* Grid de artículos */
.vn-archive-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Card horizontal de artículo */
.vn-arc-card {
  background: #fff;
  border-radius: var(--vn-radius);
  overflow: hidden;
  border: 1px solid #e4e9ed;
  transition: all .22s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.vn-arc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.11);
}
.vn-arc-card-link {
  display: grid;
  grid-template-columns: 240px 1fr;
  text-decoration: none;
  color: var(--vn-text);
  min-height: 160px;
}
.vn-arc-img {
  overflow: hidden;
  height: 100%;
  min-height: 160px;
}
.vn-arc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.vn-arc-card:hover .vn-arc-img img { transform: scale(1.06); }

.vn-arc-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.vn-arc-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--vn-dark);
  line-height: 1.3;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vn-arc-excerpt {
  font-size: .84rem;
  color: #667;
  line-height: 1.6;
  margin: 0 0 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vn-arc-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .76rem;
}
.vn-arc-date { color: #aab; }
.vn-arc-readtime {
  background: #edf4f6;
  color: var(--vn-teal);
  padding: 2px 9px;
  border-radius: 50px;
  font-weight: 700;
}
.vn-arc-more {
  margin-left: auto;
  font-weight: 700;
  color: var(--vn-teal);
}

/* Paginación */
.vn-pagination { margin-top: 36px; }
.vn-pagination .page-numbers {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.vn-pagination .page-numbers li a,
.vn-pagination .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid #e4e9ed;
  color: var(--vn-text);
  transition: all .18s;
}
.vn-pagination .page-numbers li a:hover {
  background: var(--vn-teal);
  border-color: var(--vn-teal);
  color: #fff;
}
.vn-pagination .page-numbers li span.current {
  background: var(--vn-teal);
  border-color: var(--vn-teal);
  color: #fff;
}
.vn-pagination .page-numbers li a.prev,
.vn-pagination .page-numbers li a.next {
  width: auto;
  padding: 0 14px;
}

.vn-no-posts {
  text-align: center;
  color: #889;
  padding: 40px 0;
  font-size: .95rem;
}

/* Responsive category archive */
@media (max-width: 767px) {
  .vn-arc-card-link {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .vn-arc-img { height: 180px; min-height: 180px; }
  .vn-cat-archive-hero { min-height: 280px; }
  .vn-cat-archive-inner { padding: 40px 0 32px; }
}
@media (max-width: 575px) {
  .vn-archive-wrap { padding: 36px 0 20px; }
  .vn-arc-img { height: 150px; min-height: 150px; }
}
