/* =====================================================
   CATEGORY BLOG - Ricardo Lozano
   Archivo: 01-category.css
   ===================================================== */

body.category #main {
  position: relative !important;
}

body.category #main::before {
  content: "" !important;
  position: absolute !important;
  left: -8vw !important;
  right: -8vw !important;
  top: 160px !important;
  height: 420px !important;

  background:
    linear-gradient(90deg,
      rgba(79,124,255,.075),
      rgba(122,109,242,.050),
      rgba(79,124,255,.040)
    ) !important;

  filter: blur(50px) !important;
  opacity: .72 !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

body.category #main > * {
  position: relative !important;
  z-index: 1 !important;
}

body.category .page-header {
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: clamp(42px, 5vw, 72px) !important;
}

body.category .page-title {
  position: relative !important;
  display: inline-block !important;
  padding-top: 36px !important;
}

body.category .page-title::before {
  content: "Blog" !important;
  position: absolute !important;
  left: 50% !important;
  top: 0 !important;
  transform: translateX(-50%) !important;

  padding: 9px 16px !important;
  border-radius: 999px !important;
  border: 1.2px solid transparent !important;

  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(245,249,255,.88)) padding-box,
    linear-gradient(100deg, rgba(79,124,255,.38), rgba(122,109,242,.20)) border-box !important;

  color: var(--rl-blog-blue) !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
}

body.category article.post:nth-of-type(4n + 1) .inside-article {
  background:
    radial-gradient(circle at 18% 12%, rgba(79,124,255,.125), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.99), rgba(248,252,255,.94)) padding-box,
    linear-gradient(145deg, rgba(79,124,255,.34), rgba(255,255,255,.45)) border-box !important;
}

body.category article.post:nth-of-type(4n + 2) .inside-article {
  background:
    radial-gradient(circle at 18% 12%, rgba(122,109,242,.105), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.99), rgba(248,252,255,.94)) padding-box,
    linear-gradient(145deg, rgba(122,109,242,.28), rgba(255,255,255,.45)) border-box !important;
}

body.category article.post:nth-of-type(4n + 3) .inside-article {
  background:
    radial-gradient(circle at 18% 12%, rgba(16,185,129,.075), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.99), rgba(248,252,255,.94)) padding-box,
    linear-gradient(145deg, rgba(16,185,129,.22), rgba(79,124,255,.14)) border-box !important;
}

body.category article.post:nth-of-type(4n + 4) .inside-article {
  background:
    radial-gradient(circle at 18% 12%, rgba(245,158,11,.070), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.99), rgba(248,252,255,.94)) padding-box,
    linear-gradient(145deg, rgba(245,158,11,.22), rgba(79,124,255,.12)) border-box !important;
}

body.category .cat-links,
body.category .tags-links {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

body.category .cat-links a,
body.category .tags-links a {
  padding: 6px 10px !important;
  border-radius: 999px !important;
  background: rgba(79,124,255,.075) !important;
  color: var(--rl-blog-blue) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  text-decoration: none !important;
}

body.category .entry-summary {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

@media (max-width: 767px) {
  body.category .page-header {
    margin-bottom: 34px !important;
  }

  body.category .page-title {
    padding-top: 34px !important;
  }
}

/* =====================================================
   BLOG / CATEGORIA - TARJETAS SOLO FOTO + TITULO
   ===================================================== */

body.blog,
body.archive,
body.category,
body.category-blog {
  background:
    radial-gradient(circle at 12% 18%, rgba(79,124,255,.075), transparent 34%),
    radial-gradient(circle at 86% 26%, rgba(16,185,129,.045), transparent 36%),
    linear-gradient(180deg, #f6f8fb 0%, #ffffff 100%) !important;
}

body.blog #main,
body.archive #main,
body.category #main {
  width: min(calc(100vw - 96px), 1280px) !important;
  margin: 0 auto !important;
  padding: clamp(82px, 8vw, 130px) 0 clamp(90px, 8vw, 140px) !important;

  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 420px)) !important;
  justify-content: center !important;
  gap: clamp(28px, 3vw, 42px) !important;
}

body.blog .page-header,
body.archive .page-header,
body.category .page-header {
  grid-column: 1 / -1 !important;
  max-width: 900px !important;
  margin: 0 auto clamp(54px, 5vw, 78px) !important;
  padding: 0 !important;
  text-align: center !important;
  background: transparent !important;
}

body.blog .page-title,
body.archive .page-title,
body.category .page-title {
  margin: 0 !important;
  color: #071126 !important;
  font-size: clamp(54px, 6vw, 88px) !important;
  line-height: .98 !important;
  font-weight: 950 !important;
}

body.blog article.post,
body.archive article.post,
body.category article.post {
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
}

body.blog article.post .inside-article,
body.archive article.post .inside-article,
body.category article.post .inside-article {
  position: relative !important;
  overflow: hidden !important;

  display: flex !important;
  flex-direction: column !important;

  min-height: 430px !important;
  padding: 0 !important;

  border-radius: 30px !important;
  border: 1.35px solid transparent !important;

  background:
    radial-gradient(circle at 18% 14%, rgba(79,124,255,.16), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(248,251,255,.92)) padding-box,
    linear-gradient(135deg, rgba(79,124,255,.32), rgba(226,232,240,.26)) border-box !important;

  box-shadow:
    0 28px 68px rgba(15,23,42,.075),
    0 18px 46px rgba(79,124,255,.10),
    inset 0 1px 0 rgba(255,255,255,.96) !important;

  transition:
    transform .24s cubic-bezier(.2,.8,.2,1),
    box-shadow .24s cubic-bezier(.2,.8,.2,1) !important;
}

body.blog article.post .post-image,
body.archive article.post .post-image,
body.category article.post .post-image,
body.blog article.post .featured-image,
body.archive article.post .featured-image,
body.category article.post .featured-image {
  order: 1 !important;
  width: 100% !important;
  height: 240px !important;
  margin: 0 !important;
  overflow: hidden !important;
}

body.blog article.post .post-image a,
body.archive article.post .post-image a,
body.category article.post .post-image a,
body.blog article.post .featured-image a,
body.archive article.post .featured-image a,
body.category article.post .featured-image a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

body.blog article.post img,
body.archive article.post img,
body.category article.post img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

body.blog article.post .entry-header,
body.archive article.post .entry-header,
body.category article.post .entry-header {
  order: 2 !important;
  padding: 32px 30px 36px !important;
  margin: 0 !important;
}

body.blog article.post .entry-title,
body.archive article.post .entry-title,
body.category article.post .entry-title {
  margin: 0 !important;
  font-size: clamp(27px, 2vw, 36px) !important;
  line-height: 1.12 !important;
  font-weight: 950 !important;
}

body.blog article.post .entry-title a,
body.archive article.post .entry-title a,
body.category article.post .entry-title a {
  color: #071126 !important;
  text-decoration: none !important;
}

body.blog article.post .entry-title a::after,
body.archive article.post .entry-title a::after,
body.category article.post .entry-title a::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 5 !important;
}

body.blog article.post .entry-summary,
body.archive article.post .entry-summary,
body.category article.post .entry-summary,
body.blog article.post .entry-content,
body.archive article.post .entry-content,
body.category article.post .entry-content,
body.blog article.post .entry-meta,
body.archive article.post .entry-meta,
body.category article.post .entry-meta,
body.blog article.post .read-more,
body.archive article.post .read-more,
body.category article.post .read-more {
  display: none !important;
}

@media (hover: hover) {
  body.blog article.post:hover .inside-article,
  body.archive article.post:hover .inside-article,
  body.category article.post:hover .inside-article {
    transform: translateY(-8px) !important;
    box-shadow:
      0 36px 84px rgba(15,23,42,.10),
      0 24px 62px rgba(79,124,255,.16),
      inset 0 1px 0 rgba(255,255,255,1) !important;
  }

  body.blog article.post:hover .entry-title a,
  body.archive article.post:hover .entry-title a,
  body.category article.post:hover .entry-title a {
    color: #4f7cff !important;
  }
}

@media (max-width: 767px) {
  body.blog #main,
  body.archive #main,
  body.category #main {
    width: calc(100vw - 48px) !important;
    padding: 64px 0 84px !important;
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }

  body.blog article.post .inside-article,
  body.archive article.post .inside-article,
  body.category article.post .inside-article {
    min-height: auto !important;
    border-radius: 26px !important;
  }

  body.blog article.post .post-image,
  body.archive article.post .post-image,
  body.category article.post .post-image,
  body.blog article.post .featured-image,
  body.archive article.post .featured-image,
  body.category article.post .featured-image {
    height: 210px !important;
  }

  body.blog article.post .entry-header,
  body.archive article.post .entry-header,
  body.category article.post .entry-header {
    padding: 28px 24px 32px !important;
  }

  body.blog article.post .entry-title,
  body.archive article.post .entry-title,
  body.category article.post .entry-title {
    font-size: 29px !important;
  }
}

/* =====================================================
   PATCH CATEGORY BLOG - TITULO LIMPIO Y MAS COMPACTO
   Quita el chip decorativo y deja "Blog" en negro
   ===================================================== */

body.category-blog #main,
body.category #main {
  padding-top: clamp(35px, 3.5vw, 45px) !important;
}

body.category-blog .page-header,
body.category .page-header {
  margin-bottom: clamp(18px, 2.8vw, 26px) !important;
}

body.category-blog .page-title,
body.category .page-title {
  display: block !important;
  padding-top: 0 !important;
  color: #071126 !important;
  font-size: clamp(34px, 4vw, 54px) !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  text-align: center !important;
}

body.category-blog .page-title::before,
body.category .page-title::before {
  content: none !important;
  display: none !important;
}

/* Movil */
@media (max-width: 767px) {
  body.category-blog #main,
  body.category #main {
    padding-top: 30px !important;
  }

  body.category-blog .page-header,
  body.category .page-header {
    margin-bottom: 20px !important;
  }

  body.category-blog .page-title,
  body.category .page-title {
    font-size: 32px !important;
  }
}

/* =====================================================
   PATCH CATEGORY BLOG - SOLO REDUCIR ESPACIOS
   Mantiene el titulo Blog grande como estaba antes
   ===================================================== */

body.category #main,
body.category-blog #main {
  padding-top: clamp(38px, 4vw, 58px) !important;
}

body.category .page-header,
body.category-blog .page-header {
  margin-bottom: clamp(22px, 3vw, 34px) !important;
}

body.category .page-title,
body.category-blog .page-title {
  color: #071126 !important;
  font-size: clamp(54px, 6vw, 88px) !important;
  line-height: .98 !important;
  font-weight: 950 !important;
  padding-top: 0 !important;
}

/* Quita el chip decorativo superior si aparece */
body.category .page-title::before,
body.category-blog .page-title::before {
  content: none !important;
  display: none !important;
}

/* Movil */
@media (max-width: 767px) {
  body.category #main,
  body.category-blog #main {
    padding-top: 30px !important;
  }

  body.category .page-header,
  body.category-blog .page-header {
    margin-bottom: 20px !important;
  }

  body.category .page-title,
  body.category-blog .page-title {
    font-size: clamp(44px, 10vw, 58px) !important;
  }
}