/* ============================================================
   BLOG.CSS — estilos específicos del blog
   Complementa a style.css (que ya define nav, footer, botones,
   colores, tipografía, etc.)
   ============================================================ */

/* ============ BLOG HERO ============ */
.blog-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, #f7f7f5 0%, #ffffff 100%);
  border-bottom: 1px solid #f2f1ee;
}
.blog-hero-inner {
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
}
.blog-hero h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #133b5c;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0.75rem 0 1rem;
}
.blog-hero p {
  font-size: 1.125rem;
  color: #6f6e69;
  line-height: 1.6;
  margin: 0;
}

/* ============ FILTROS DE CATEGORÍA ============ */
.blog-filters {
  padding: 2rem 0 0;
  background: #ffffff;
}
.blog-filters-inner {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.blog-filter {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6f6e69;
  background: #ffffff;
  border: 1px solid #e8e8e7;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.blog-filter:hover {
  border-color: #bfe3ee;
  color: #2a8fb8;
  background: #e8f4f8;
}
.blog-filter.is-active {
  background: #133b5c;
  border-color: #133b5c;
  color: #ffffff;
}

/* ============ LISTADO DE POSTS ============ */
.blog-list {
  padding: 3rem 0 5rem;
  background: #ffffff;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ============ CARD DE POST ============ */
.blog-card {
  background: #ffffff;
  border: 1px solid #e8e8e7;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -12px rgba(15, 15, 15, 0.12);
  border-color: #bfe3ee;
}
.blog-card-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f7f7f5;
}
.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.blog-card:hover .blog-card-cover img {
  transform: scale(1.04);
}
.blog-card-body {
  padding: 1.25rem 1.375rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: #9b9a97;
}
.blog-card-tag {
  background: #e8f4f8;
  color: #2a8fb8;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.6875rem;
}
.blog-card-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #133b5c;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.blog-card-excerpt {
  font-size: 0.9375rem;
  color: #6f6e69;
  line-height: 1.55;
  margin: 0 0 1rem;
  flex: 1;
}
.blog-card-read {
  font-size: 0.875rem;
  font-weight: 600;
  color: #c24e00;
  transition: color 0.2s ease;
}
.blog-card:hover .blog-card-read {
  color: #a03f00;
}

/* ============ CTA FINAL DEL BLOG ============ */
.blog-cta {
  padding: 4rem 0;
  background: #133b5c;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(61, 172, 217, 0.2) 0%,
    transparent 60%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.blog-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
}
.blog-cta h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.blog-cta p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 2rem;
}
.blog-cta-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   TEMPLATE DE POST INDIVIDUAL
   Estilos para /blog/nombre-post/index.html
   ============================================================ */

/* Header del post */
.post-header {
  padding: 3rem 0 2rem;
  background: #ffffff;
  border-bottom: 1px solid #f2f1ee;
}
.post-header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.post-breadcrumb {
  font-size: 0.875rem;
  color: #9b9a97;
  margin-bottom: 1rem;
}
.post-breadcrumb a {
  color: #6f6e69;
  text-decoration: none;
}
.post-breadcrumb a:hover {
  color: #c24e00;
}
.post-breadcrumb .sep {
  margin: 0 0.5rem;
  color: #c7c7c4;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  color: #9b9a97;
}
.post-meta .post-tag {
  background: #e8f4f8;
  color: #2a8fb8;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.6875rem;
}
.post-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  color: #133b5c;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
.post-subtitle {
  font-size: 1.25rem;
  color: #6f6e69;
  line-height: 1.5;
  margin: 0;
}

/* Cover del post */
.post-cover {
  padding: 2rem 0;
  background: #ffffff;
}
.post-cover-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.post-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: 0 12px 32px -8px rgba(15, 15, 15, 0.15);
}

/* Contenido del post */
.post-content {
  padding: 2rem 0 4rem;
  background: #ffffff;
}
.post-content-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #37352f;
}
.post-content-inner > * + * {
  margin-top: 1.25rem;
}
.post-content-inner h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #133b5c;
  letter-spacing: -0.015em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  scroll-margin-top: 6rem;
}
.post-content-inner h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.3125rem;
  font-weight: 700;
  color: #133b5c;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.post-content-inner p {
  margin: 0;
}
.post-content-inner a {
  color: #c24e00;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.post-content-inner a:hover {
  color: #a03f00;
}
.post-content-inner strong {
  color: #133b5c;
  font-weight: 600;
}
.post-content-inner ul,
.post-content-inner ol {
  padding-left: 1.5rem;
}
.post-content-inner li {
  margin: 0.4rem 0;
}
.post-content-inner blockquote {
  border-left: 4px solid #3dacd9;
  background: #e8f4f8;
  padding: 1rem 1.5rem;
  border-radius: 0 12px 12px 0;
  margin: 1.5rem 0;
  color: #133b5c;
  font-style: italic;
}
.post-content-inner blockquote p {
  margin: 0;
}
.post-content-inner img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
}
.post-content-inner table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  border: 1px solid #e8e8e7;
  border-radius: 12px;
  overflow: hidden;
}
.post-content-inner th,
.post-content-inner td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e8e8e7;
}
.post-content-inner th {
  background: #f7f7f5;
  color: #133b5c;
  font-weight: 600;
  font-size: 0.875rem;
}
.post-content-inner tr:last-child td {
  border-bottom: none;
}

/* Callout box dentro del post */
.post-callout {
  background: #fff3e9;
  border: 1px solid #ffcba4;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.post-callout p {
  margin: 0;
}
.post-callout strong {
  color: #c24e00;
}

/* CTA inline dentro del post */
.post-cta-inline {
  background: linear-gradient(135deg, #fff3e9 0%, #e8f4f8 100%);
  border: 1px solid #ffcba4;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  margin: 2.5rem 0;
  text-align: center;
}
.post-cta-inline h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #133b5c;
  margin: 0 0 0.5rem;
}
.post-cta-inline p {
  color: #6f6e69;
  margin: 0 0 1.25rem;
}

/* Footer del post: autor y fecha */
.post-footer {
  padding: 2rem 0;
  border-top: 1px solid #f2f1ee;
  background: #fafaf9;
}
.post-footer-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.post-share {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.post-share span {
  font-size: 0.875rem;
  color: #6f6e69;
  margin-right: 0.5rem;
}
.post-share a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e8e8e7;
  color: #6f6e69;
  text-decoration: none;
  transition: all 0.2s ease;
}
.post-share a:hover {
  border-color: #c24e00;
  color: #c24e00;
}
.post-back {
  font-size: 0.9375rem;
  color: #6f6e69;
  text-decoration: none;
  font-weight: 500;
}
.post-back:hover {
  color: #c24e00;
}

/* Posts relacionados al final */
.post-related {
  padding: 3rem 0 4rem;
  background: #f7f7f5;
}
.post-related-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.post-related h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #133b5c;
  margin: 0 0 1.5rem;
  text-align: center;
}
.post-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-hero h1 {
    font-size: 2.25rem;
  }
  .post-title {
    font-size: 2rem;
  }
  .post-subtitle {
    font-size: 1.0625rem;
  }
  .post-content-inner h2 {
    font-size: 1.5rem;
  }
  .post-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-hero {
    padding: 3rem 0 2rem;
  }
  .blog-hero h1 {
    font-size: 1.875rem;
  }
  .post-header {
    padding: 2rem 0 1.5rem;
  }
  .post-title {
    font-size: 1.625rem;
  }
  .post-content-inner {
    font-size: 1rem;
  }
  .post-related-grid {
    grid-template-columns: 1fr;
  }
  .post-footer-inner {
    justify-content: center;
    text-align: center;
  }
}
.post-content-inner .oddu-btn {
  color: inherit;
  text-decoration: none;
}
.post-content-inner .oddu-btn--primary {
  color: #ffffff;
}
.post-content-inner .oddu-btn--primary:hover {
  color: #ffffff;
}
