/*
Theme Name:   Ning Base
Theme URI:    https://ning.com
Author:       Ning Editorial
Author URI:   https://ning.com
Description:  Plantilla madre editorial para la red de sitios Ning. Paleta beige/verde azulado, tipografía Playfair Display + Inter + Source Serif 4. Diseñada para sitios de contenido académico, cultural y de divulgación.
Template:     sonoran
Requires at least: 6.3
Tested up to: 6.9
Requires PHP: 7.4
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain:  ning-base
Tags: blog, editorial, news, full-site-editing, custom-colors, custom-logo, custom-menu, featured-images, translation-ready, wide-blocks
*/

/* ======================
   Header: extra top spacing on inner pages
   ====================== */

header .superbthemes-navigation-004 {
  padding-top: clamp(24px, 3vw, 44px) !important;
}

/* ======================
   Component: Itinerario
   ====================== */

.itinerario-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 1px solid var(--wp--preset--color--mono-3);
  border-bottom: 1px solid var(--wp--preset--color--mono-3);
  padding: 0.6rem 0;
  margin-bottom: 2.5rem;
}
.itinerario-nav a {
  font-size: 15px;
  color: var(--wp--preset--color--primary);
  text-decoration: none;
  padding: 0 0.8rem;
  border-right: 1px solid var(--wp--preset--color--mono-3);
  line-height: 1.4;
}
.itinerario-nav a:first-child { padding-left: 0; }
.itinerario-nav a:last-child { border-right: none; }

.itinerario-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.itinerario-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--wp--preset--color--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.itinerario-highlight {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.itinerario-highlight li {
  padding: 0.75rem 0 0.75rem 1rem;
  border-left: 3px solid var(--wp--preset--color--mono-4);
  margin-bottom: 0.75rem;
}
.itinerario-highlight li strong {
  color: var(--wp--preset--color--primary);
  display: block;
  font-size: 17px;
  margin-bottom: 0.25rem;
}
.filosofo-entry {
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--wp--preset--color--accent);
  background: hsl(48, 33%, 94%) !important;
  border-radius: 0 6px 6px 0;
  margin-bottom: 0.75rem;
}
.filosofo-entry p { margin: 0; font-size: 14px; color: var(--wp--preset--color--mono-2); line-height: 1.5; }
.filosofo-entry .nombre { font-weight: 500; color: var(--wp--preset--color--mono-1); font-size: 15px; margin-bottom: 0.25rem; }
.filosofo-entry .fechas { font-size: 12px; color: var(--wp--preset--color--mono-2); font-weight: 400; }
.ruta-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--wp--preset--color--mono-3);
  border-radius: 8px;
  margin-bottom: 0.6rem;
  text-decoration: none;
  color: var(--wp--preset--color--mono-1);
}
.ruta-card:hover { border-color: var(--wp--preset--color--primary); }
.ruta-card strong { display: block; font-size: 16px !important; margin-bottom: 0.2rem; }
.ruta-card span { font-size: 14px !important; color: var(--wp--preset--color--mono-2); display: block; }
.ruta-arrow { color: var(--wp--preset--color--primary); font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.ruta-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; margin-bottom: 0.75rem; }
.ruta-pills a {
  font-size: 13px;
  color: var(--wp--preset--color--primary);
  text-decoration: none;
  border: 1px solid var(--wp--preset--color--mono-3);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}
.ruta-pills a:hover { border-color: var(--wp--preset--color--primary); }

.itinerario-subtitulo {
  font-size: 17px;
  color: #6f6a63;
  font-style: italic;
  text-align: center;
  margin: -1rem 0 1.5rem;
}

.itinerario-hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  margin-bottom: 2rem;
  border-radius: 6px;
}

/* ======================
   Component: Corriente entry (Las grandes corrientes)
   Diferencia visual de .filosofo-entry:
   - filosofo-entry  → borde accent #b8860b (dorado)
   - corriente-entry → borde primary #446a78 (azul-verde)
   ====================== */

.corriente-entry {
  padding: 0.75rem 1rem;
  border-left: 3px solid #446a78;
  background: rgba(241, 237, 228, 0.35);
  border-radius: 0 6px 6px 0;
  margin-bottom: 1rem;
}
.corriente-entry p {
  margin: 0;
  font-size: 15px;
  color: #6f6a63;
  line-height: 1.65;
}
.corriente-entry .corriente-nombre {
  font-weight: 700;
  color: #446a78;
  font-size: 19px;
  margin-bottom: 0.3rem !important;
  font-family: Arial, sans-serif;
  display: block;
}
.corriente-entry .corriente-zh {
  font-size: 15px;
  color: #6f6a63;
  font-weight: 400;
  margin-left: 0.4rem;
}

/* ======================
   Fix: Single post header spacing
   ====================== */

body.single main.wp-block-group {
  margin-top: 0 !important;
  padding-top: var(--wp--preset--spacing--superbspacing-small) !important;
}

/* ======================
   Archive grid cards: clickable + hover
   ====================== */

.ning-archive-grid .wp-block-post {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.ning-archive-grid .wp-block-post .wp-block-group {
  transition: background-color 0.2s;
}

.ning-archive-grid .wp-block-post:hover .wp-block-group {
  background-color: var(--wp--preset--color--mono-3, #d6d0c7) !important;
}

/* Make entire card clickable via stretched link on title */
.ning-archive-grid .wp-block-post-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Keep other links above the overlay */
.ning-archive-grid .wp-block-post a:not(.wp-block-post-title a) {
  position: relative;
  z-index: 2;
}

/* ======================
   Temas page cards: clickable + hover
   ====================== */

.page-id-610 .wp-block-group .wp-block-group.has-mono-4-background-color {
  position: relative;
  transition: background-color 0.2s;
  cursor: pointer;
}

.page-id-610 .wp-block-group .wp-block-group.has-mono-4-background-color:hover {
  background-color: var(--wp--preset--color--mono-3, #d6d0c7) !important;
}

.page-id-610 .wp-block-group .wp-block-group.has-mono-4-background-color h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
