@import url("https://fonts.googleapis.com/css?family=Raleway:300,400,400i,500,700,900");

body.page-novedades {
  margin: 0;
  font-family: "Raleway", sans-serif;
  color: #3b3d48;
}

.inner-padding {
  padding: 50px 0;
}

.section-title {
  color: #f55b25;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 1.875rem;
  letter-spacing: 4px;
  margin: 0 0 30px 0;
}

.section-title.with-line {
  position: relative;
  padding-bottom: 25px;
}

.section-title.with-line:before {
  position: absolute;
  content: "";
  left: 0;
  bottom: 0;
  height: 4px;
  background: #3b3d48;
  width: 60px;
}

.section-title.with-line.center:before {
  left: calc(50% - 30px);
}

.section-title.inverse {
  color: #3b3d48;
}

.section-title.inverse:before {
  background: #f55b25;
}

.section-subtitle {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.text-center {
  text-align: center;
}

/* Listado blog: cabecera alineada a fundación */
.blog-page-hero {
  margin-bottom: 0.5rem;
}

.blog-page-hero__title {
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.blog-page-hero__subtitle {
  margin: 0 0 1.5rem;
  color: #6b7280;
  font-size: 1rem;
}

/* Chips de categoría */
.category-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 2rem;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
}

.category-chips__item {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .category-chips {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
  }
}

.category-chip {
  display: inline-block;
  padding: 0.45rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #3b3d48;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.category-chip:hover {
  border-color: #e33538;
  color: #e33538;
}

.category-chip.is-active {
  background: #e33538;
  border-color: #e33538;
  color: #fff;
}

/* Rejilla de entradas */
.blog-post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .blog-post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .blog-post-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.blog-card__media-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-card__media {
  aspect-ratio: 16 / 10;
  background: #f1f2f2;
  overflow: hidden;
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__meta {
  display: block;
  font-size: 0.8125rem;
  color: #6b7280;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.blog-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.65rem;
}

.blog-card__title a {
  color: #231f20;
  text-decoration: none;
}

.blog-card__title a:hover {
  color: #e33538;
}

.blog-card__excerpt {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #6b7280;
  flex: 1;
}

.blog-card__cta {
  align-self: flex-start;
  margin-top: auto !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.8125rem !important;
}

.blog-empty {
  color: #6b7280;
  padding: 2rem 0;
}

/* Nota abierta */
.blog-post-breadcrumb {
  margin-bottom: 1.25rem;
}

.blog-post-breadcrumb__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
}

.blog-post-breadcrumb__back:hover {
  color: #e33538;
}

.blog-post-header {
  margin-bottom: 1.5rem;
}

.blog-post-header .fundacion-eyebrow {
  margin-bottom: 0.4rem;
}

.blog-post-header__title {
  margin: 0 0 0.75rem;
  font-weight: 700;
  text-transform: none;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.25;
  color: #231f20;
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 600;
}

.blog-post-meta__sep {
  color: #d1d5db;
}

.blog-post-hero {
  margin: 0 0 1.75rem;
}

.blog-post-author-row {
  margin-bottom: 1.5rem;
}

.post-author-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  max-width: 420px;
}

.post-author-card__photo {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.post-author-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.post-author-card__name {
  font-weight: 700;
  color: #231f20;
  font-size: 0.95rem;
}

.post-author-card__role {
  font-size: 0.8125rem;
  color: #6b7280;
}

.blog-post-body-row {
  margin-top: 0.5rem;
}

#post-content iframe {
  width: 100%;
  margin: 0 auto 30px auto;
}

#post-content img {
  width: 100%;
  margin: 30px auto;
}

#post-content blockquote {
  border-color: #e33538;
  margin: 30px auto;
}

#post-content a {
  color: #e33538;
}

.aside-title {
  margin: 0 0 20px 0;
  color: #231f20;
  padding: 0 0 10px 0;
  border-bottom: 2px solid #e33538;
  font-weight: 700;
  font-size: 1.05rem;
}

.blog-aside {
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .blog-aside {
    margin-top: 0;
  }
}

.blog-mini-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-mini-list__item + .blog-mini-list__item {
  margin-top: 0.65rem;
}

.blog-mini-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.blog-mini-card:hover {
  border-color: rgba(227, 53, 56, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.blog-mini-card__media {
  flex-shrink: 0;
  width: 72px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f2f2;
}

.blog-mini-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-mini-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.blog-mini-card__title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #231f20;
  line-height: 1.35;
}

.blog-mini-card:hover .blog-mini-card__title {
  color: #e33538;
}

.blog-mini-card__excerpt {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.35;
}

.blog-post-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.5rem 0 0;
  padding: 1.25rem 0;
  border-top: 1px solid #e5e7eb;
}

.blog-post-pager__link {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 700;
  color: #3b3d48;
  text-decoration: none;
}

.blog-post-pager__link:hover {
  color: #e33538;
}

.blog-post-pager__link--prev {
  text-align: left;
}

.blog-post-pager__link--next {
  text-align: right;
}

.blog-post-pager__home {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  color: #3b3d48;
  text-decoration: none;
}

.blog-post-pager__home:hover {
  color: #e33538;
  border-color: #e33538;
}

.blog-post-pager__spacer {
  flex: 1;
}

.blog-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.blog-related__title {
  margin-bottom: 1.75rem;
  font-size: 1.5rem;
}

.site-header--blog {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-header--blog.navbar {
  --bs-navbar-padding-y: 0;
}

/* El layout del navbar lo define Bootstrap (.navbar > .container); solo afinamos blog abajo */
.inner--blog-nav {
  align-items: center;
}

.site-header--blog .site-header__nav .nav-link {
  margin-left: 0;
}

.blog-nav-search--collapse {
  width: 100%;
  max-width: none;
  margin-left: 0;
}

@media (min-width: 992px) {
  .blog-nav-search--collapse {
    flex: 0 1 320px;
    max-width: 320px;
  }

  .inner--blog-collapse-inner {
    width: auto;
    flex: 1 1 auto;
    justify-content: flex-end;
  }
}

.blog-nav-search {
  display: flex;
  align-items: stretch;
  flex: 1 1 200px;
  min-width: 0;
  max-width: 320px;
  margin-left: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.blog-nav-search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: none;
  font-family: inherit;
  font-size: 14px;
}

.blog-nav-search input[type="search"]:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(227, 53, 56, 0.25);
}

.blog-nav-search__btn {
  flex-shrink: 0;
  padding: 0 14px;
  border: none;
  background: #f4f4f4;
  color: #3b3d48;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.blog-nav-search__btn:hover {
  background: #e33538;
  color: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-index-main {
  background: linear-gradient(180deg, #fafafa 0%, #fff 120px);
}

.blog-post-main {
  padding-bottom: 3rem;
}

.blog-container {
  max-width: 1140px;
}

.post-hero-figure {
  margin: 0 0 1.75rem;
}

.post-hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

#post-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #3b3d48;
}

#post-content p {
  margin: 0 0 1.1em;
}

#post-content h2,
#post-content h3,
#post-content h4 {
  color: #231f20;
  font-weight: 700;
  margin: 1.5em 0 0.75em;
  line-height: 1.3;
}

.blog-post-main .aside-title {
  margin-top: 0.5rem;
}
