/* Estilos del estudio sobre el embed de la API. Se carga DESPUÉS de blog-templates.css. */

.blog-page {
  width: 100%;
  background: #fcfbf8;
  padding: 3.25rem 0 5rem;
}

.blog-missing-key {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
  color: #4a5568;
}

.blog-page .bp-root {
  --bp-ink: #152a4a !important;
  --bp-muted: #4a5568 !important;
  --bp-soft: #718096 !important;
  --bp-line: #e4e0d6 !important;
  --bp-bg: #fcfbf8 !important;
  --bp-card: #ffffff !important;
  --bp-featured: #b7791f !important;
  --bp-featured-bg: transparent !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
  font-family: "Inter", sans-serif !important;
  color: #152a4a !important;
}

body:has([data-bp-detail-pane]:not([hidden])) .page-hero {
  display: none;
}

.blog-page--article,
.blog-page:has([data-bp-detail-pane]:not([hidden])) {
  padding-top: 2.75rem;
  display: flex;
  justify-content: center;
}

.blog-page--article .bp-root,
.blog-page:has([data-bp-detail-pane]:not([hidden])) .bp-root,
.blog-page [data-bp-detail-pane]:not([hidden]) {
  max-width: 920px !important;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}

.blog-page .bp-detail {
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}

.blog-page .bp-detail-body .bp-content {
  max-width: none !important;
}

.blog-page .bp-root a:hover {
  text-decoration: none !important;
}

/* El encabezado del kit no se usa: el sitio ya tiene PageHero */
.blog-page .bp-hero,
.blog-page .bp-theme-toggle,
.blog-page .bp-toolbar {
  display: none !important;
}

.blog-page .blog-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0 2rem;
}

.blog-page .blog-loader-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b7791f;
}

.blog-page .blog-loader-title {
  margin: 0 0 0.85rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #1a365d;
}

.blog-page .blog-loader-rule {
  display: block;
  width: 40px;
  height: 1px;
  background: #c6a15a;
  margin: 0 0 1rem;
}

.blog-page .blog-loader-text {
  margin: 0;
  color: #4a5568;
  font-size: 0.98rem;
}

.blog-page .blog-skeleton {
  width: 100%;
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.blog-page .blog-skeleton-card {
  min-height: 240px;
  border: 1px solid #e4e0d6;
  border-top: 2px solid #c6a15a;
  border-radius: 2px;
  background: #fff;
}

.blog-page .bp-loading {
  min-height: 8rem;
  color: #152a4a;
}

.blog-page .bp-loading-spinner {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0;
  border-width: 1px;
  border-color: #e4e0d6;
  border-top-color: #c6a15a;
}

.blog-page .bp-root .bp-list,
.blog-page .bp-root.bp-magazine .bp-list,
.blog-page .bp-root.bp-minimal .bp-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.75rem !important;
}

.blog-page .bp-root .bp-item,
.blog-page .bp-root .bp-item.has-cover,
.blog-page .bp-root.bp-magazine .bp-item,
.blog-page .bp-root.bp-magazine .bp-item.has-cover,
.blog-page .bp-root.bp-minimal .bp-item,
.blog-page .bp-root.bp-minimal .bp-item.has-cover {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  background: #fff !important;
  border: 1px solid #e4e0d6 !important;
  border-top: 2px solid #c6a15a !important;
  border-radius: 2px !important;
  padding: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  overflow: hidden !important;
}

.blog-page .bp-root .bp-item:hover,
.blog-page .bp-root.bp-magazine .bp-item:hover,
.blog-page .bp-root.bp-minimal .bp-item:hover {
  background: #fcfbf8 !important;
  border-color: #c6a15a !important;
  box-shadow: none !important;
  transform: none !important;
}

.blog-page .bp-root .bp-cover,
.blog-page .bp-root.bp-magazine .bp-cover,
.blog-page .bp-root.bp-minimal .bp-cover,
.blog-page .bp-root .bp-item.has-cover .bp-cover {
  display: block !important;
  order: 0 !important;
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  background: #152a4a !important;
}

.blog-page .bp-root .bp-body,
.blog-page .bp-root.bp-magazine .bp-body,
.blog-page .bp-root .bp-item.has-cover .bp-body {
  order: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  padding: 1.5rem 1.5rem 1.35rem !important;
}

.blog-page .bp-root .bp-badge,
.blog-page .bp-root .bp-chip,
.blog-page .bp-root .bp-tag,
.blog-page .bp-root.bp-magazine .bp-badge:not(.featured) {
  border-radius: 2px !important;
  background: transparent !important;
  border: 1px solid #e4e0d6 !important;
  color: #b7791f !important;
  font-size: 0.62rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 0.2rem 0.5rem !important;
}

.blog-page .bp-root .bp-badge.featured {
  background: none !important;
  border-color: #c6a15a !important;
  color: #b7791f !important;
}

.blog-page .bp-root .bp-title,
.blog-page .bp-root.bp-minimal .bp-title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  color: #1a365d !important;
  font-size: 1.28rem !important;
  line-height: 1.3 !important;
}

.blog-page .bp-root .bp-excerpt {
  color: #4a5568 !important;
  font-size: 0.92rem !important;
  line-height: 1.65 !important;
}

.blog-page .bp-root .bp-cta,
.blog-page .bp-root .bp-back {
  color: #1a365d !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid #c6a15a !important;
  padding-bottom: 0.12rem !important;
  background: none !important;
}

.blog-page .bp-root .bp-cta:hover,
.blog-page .bp-root .bp-back:hover {
  color: #c6a15a !important;
}

.blog-page .bp-root .bp-filter,
.blog-page .bp-root .bp-search-btn,
.blog-page .bp-root .bp-pager-btn,
.blog-page .bp-root .bp-share-btn,
.blog-page .bp-root .bp-feed-links a {
  border-radius: 2px !important;
  border: 1px solid #e4e0d6 !important;
  background: #fff !important;
  color: #152a4a !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
}

.blog-page .bp-root .bp-filter.is-active {
  background: #152a4a !important;
  border-color: #152a4a !important;
  color: #fff !important;
}

.blog-page .bp-root .bp-search input,
.blog-page .bp-root .bp-newsletter-form input,
.blog-page .bp-root .bp-comments-form input,
.blog-page .bp-root .bp-comments-form textarea {
  border-radius: 2px !important;
  border: 1px solid #e4e0d6 !important;
  box-shadow: none !important;
  font-family: "Inter", sans-serif !important;
}

.blog-page .bp-root .bp-search input:focus,
.blog-page .bp-root .bp-comments-form input:focus,
.blog-page .bp-root .bp-comments-form textarea:focus {
  outline: none !important;
  border-color: #c6a15a !important;
}

.blog-page .bp-root .bp-newsletter-form button,
.blog-page .bp-root .bp-comments-form .bp-comments-submit {
  border-radius: 2px !important;
  background: #d69e2e !important;
  border: 1px solid #d69e2e !important;
  color: #152a4a !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
}

.blog-page .bp-root .bp-detail-hero,
.blog-page .bp-root .bp-detail-body,
.blog-page .bp-root .bp-detail-footer,
.blog-page .bp-root .bp-related,
.blog-page .bp-root .bp-newsletter,
.blog-page .bp-root .bp-comments,
.blog-page .bp-root .bp-detail-cover-wrap,
.blog-page .bp-root.bp-minimal .bp-detail-hero,
.blog-page .bp-root.bp-minimal .bp-detail-body,
.blog-page .bp-root.bp-minimal .bp-detail-footer,
.blog-page .bp-root.bp-magazine .bp-detail-cover-wrap {
  border-radius: 2px !important;
  box-shadow: none !important;
  border: 1px solid #e4e0d6 !important;
  background: #fff !important;
}

.blog-page .bp-root .bp-detail-hero {
  border-top: 2px solid #c6a15a !important;
  padding: 2rem 1.75rem !important;
}

.blog-page .bp-root .bp-detail-hero .bp-title,
.blog-page .bp-root .bp-content h2,
.blog-page .bp-root .bp-content h3,
.blog-page .bp-root .bp-related-title,
.blog-page .bp-root .bp-newsletter-title,
.blog-page .bp-root .bp-comments-title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  color: #1a365d !important;
}

.blog-page .bp-root .bp-detail-hero .bp-title {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem) !important;
}

.blog-page .bp-root .bp-content a {
  color: #1a365d !important;
  border-bottom: 1px solid #c6a15a;
  font-weight: 600 !important;
}

.blog-page .bp-root .bp-content blockquote {
  border-radius: 0 !important;
  border-left: 1px solid #c6a15a !important;
  background: #fcfbf8 !important;
  color: #4a5568 !important;
}

.blog-page .bp-root .bp-content img,
.blog-page .bp-root .bp-content .bp-editor-image {
  border-radius: 2px !important;
}

.blog-page .bp-root .bp-related-item {
  border-radius: 2px !important;
  border: 1px solid #e4e0d6 !important;
  box-shadow: none !important;
}

.blog-page .bp-root .bp-related-item:hover {
  background: #fcfbf8 !important;
  border-color: #c6a15a !important;
}

.blog-page .bp-root .bp-comments {
  margin-top: 1.5rem;
  padding: 1.75rem 1.5rem !important;
}

.blog-page .bp-root .bp-comments-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e4e0d6;
}

.blog-page .bp-root .bp-comments-count {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #d69e2e;
}

.blog-page .bp-root .bp-comment {
  border: 1px solid #e4e0d6 !important;
  border-radius: 2px !important;
  padding: 1rem 1.1rem;
  margin: 0 0 0.75rem;
  background: #fff;
}

.blog-page .bp-root .bp-comment--reply {
  margin-left: 1.15rem;
  border-left: 1px solid #c6a15a !important;
}

.blog-page .bp-root .bp-comment header strong {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  color: #1a365d;
}

.blog-page .bp-root .bp-comment-staff,
.blog-page .bp-root .bp-comment-badge {
  border-radius: 2px !important;
  background: transparent !important;
  border: 1px solid #c6a15a;
  color: #b7791f;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
}

.blog-page .bp-root .bp-comment-reply,
.blog-page .bp-root .bp-comments-cancel-reply {
  background: none;
  border: 0;
  padding: 0;
  color: #1a365d !important;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid #c6a15a;
  cursor: pointer;
}

.blog-page .bp-root .bp-comments-fields {
  display: grid;
  gap: 0.65rem;
}

.blog-page .bp-root .bp-progress span {
  background: #d69e2e !important;
}

.blog-page .bp-root .bp-share {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e4e0d6;
}

.blog-page .bp-root .bp-meta-strip {
  border-color: rgba(198, 161, 90, 0.35) !important;
}

.blog-page .bp-root .bp-meta-strip strong {
  font-family: "Playfair Display", Georgia, serif !important;
  font-weight: 600 !important;
  color: #d69e2e !important;
}

@media (max-width: 1024px) {
  .blog-page .bp-root .bp-list,
  .blog-page .bp-root.bp-magazine .bp-list,
  .blog-page .blog-skeleton {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .blog-page {
    padding: 2.25rem 0 3.5rem;
  }

  .blog-page .bp-root {
    padding: 0 1.15rem !important;
  }

  .blog-page .bp-root .bp-list,
  .blog-page .bp-root.bp-magazine .bp-list,
  .blog-page .blog-skeleton {
    grid-template-columns: 1fr !important;
  }
}
