/*
Theme Name: ReferenceCheck Blog
Theme URI: https://blog.referencecheck.mx
Description: Tema hijo de Twenty Twenty-Five para el blog de ReferenceCheck MX
Author: ReferenceCheck MX
Author URI: https://referencecheck.mx
Template: twentytwentyfive
Version: 1.0.2
Text Domain: referencecheck-blog
*/

/* ═══ RESET & GLOBAL ═══ */
body {
  background: #fff !important;
  color: #1a1a2a;
}

/* ═══ CUSTOM HEADER ═══ */
.rc-header {
  background: #0a1628;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.rc-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}
.rc-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.rc-logo img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
}
.rc-logo span {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.rc-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rc-nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
.rc-nav a:hover {
  color: #fff;
}
.rc-nav .rc-cta-btn {
  background: #2563eb;
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.2s, transform 0.2s;
}
.rc-nav .rc-cta-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* ═══ HEADINGS ═══ */
h1, h2, h3, h4, h5, h6,
.wp-block-post-title,
.entry-title {
  color: #0a1628 !important;
}

/* ═══ LINKS & ACCENTS ═══ */
.wp-block-post-content a,
.entry-content a {
  color: #2563eb;
}
.wp-block-post-content a:hover,
.entry-content a:hover {
  color: #1d4ed8;
}

/* ═══ BUTTONS ═══ */
.wp-block-button__link,
.wp-element-button {
  background: #2563eb !important;
  color: #fff !important;
  border-radius: 8px !important;
}
.wp-block-button__link:hover,
.wp-element-button:hover {
  background: #1d4ed8 !important;
}

/* ═══ BLOG GRID (HOME) ═══ */
.rc-blog-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
/* Force WP post-template into grid */
.rc-blog-grid .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
  list-style: none;
  padding: 0;
}
.rc-blog-grid .wp-block-post-template > li {
  width: 100% !important;
  margin: 0 !important;
}
.rc-post-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.rc-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(10,22,40,0.10);
}
.rc-post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.rc-post-card-body {
  padding: 24px;
}
.rc-post-card .rc-cat-badge {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.rc-post-card h3 {
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}
.rc-post-card h3 a {
  color: #0a1628;
  text-decoration: none;
}
.rc-post-card h3 a:hover {
  color: #2563eb;
}
.rc-post-card .rc-excerpt {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 16px;
}
.rc-post-card .rc-read-more {
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rc-post-card .rc-read-more:hover {
  gap: 8px;
}

/* ═══ SINGLE POST LAYOUT ═══ */
.rc-single-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
}
.rc-single-main {
  min-width: 0;
}
.rc-single-main .rc-cat-badge {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.rc-single-main h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 16px;
}
.rc-single-meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
}
.rc-single-main .rc-featured-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 32px;
}
.rc-single-content h2 {
  font-size: 24px;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.5px;
}
.rc-single-content h3 {
  font-size: 20px;
  margin: 1.5rem 0 0.5rem;
}
.rc-single-content p {
  font-size: 17px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 1.2em;
}
.rc-single-content ul, .rc-single-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2em;
}
.rc-single-content li {
  font-size: 17px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 8px;
}
.rc-single-tags {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}
.rc-single-tags a {
  display: inline-block;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 100px;
  text-decoration: none;
  margin: 0 6px 6px 0;
}
.rc-single-tags a:hover {
  background: #eff6ff;
  color: #2563eb;
}

/* ═══ SIDEBAR ═══ */
.rc-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.rc-sidebar-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
}
.rc-sidebar-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0a1628;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
/* CTA Card */
.rc-sidebar-cta {
  background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 100%);
  border: none;
  color: #fff;
}
.rc-sidebar-cta h4 {
  color: #fff;
  font-size: 18px;
  text-transform: none;
  letter-spacing: -0.3px;
  line-height: 1.3;
}
.rc-sidebar-cta p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.rc-sidebar-cta .rc-btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  padding: 11px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  transition: background 0.2s;
}
.rc-sidebar-cta .rc-btn-wa:hover { background: #1fb855; }
.rc-sidebar-cta .rc-btn-services {
  display: block;
  text-align: center;
  background: rgba(255,255,255,0.12);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.2s;
}
.rc-sidebar-cta .rc-btn-services:hover { background: rgba(255,255,255,0.2); }

.rc-sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rc-sidebar-card ul li {
  border-bottom: 1px solid #e5e7eb;
}
.rc-sidebar-card ul li:last-child { border-bottom: none; }
.rc-sidebar-card ul li a {
  display: block;
  padding: 10px 0;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.rc-sidebar-card ul li a:hover { color: #2563eb; }
.rc-sidebar-card ul li .rc-count {
  float: right;
  color: #9ca3af;
  font-size: 12px;
}

/* ═══ CUSTOM FOOTER ═══ */
.rc-footer {
  background: #0a1628;
  color: #fff;
  padding: 56px 2rem 32px;
  margin-top: 4rem;
}
.rc-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.rc-footer-brand img {
  height: 36px;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}
.rc-footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  line-height: 1.7;
  max-width: 360px;
}
.rc-footer h5 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  margin: 0 0 16px;
}
.rc-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rc-footer ul li { margin-bottom: 10px; }
.rc-footer ul a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.rc-footer ul a:hover { color: #fff; }
.rc-footer-cta {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.rc-footer-cta a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.rc-footer-cta a:hover { color: #93bbfc; }
.rc-footer-copy {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 13px;
}

/* ═══ BLOG HEADING ═══ */
.rc-blog-heading {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 0;
}
.rc-blog-heading h1 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -1.5px;
  margin: 0 0 8px;
}
.rc-blog-heading p {
  color: #6b7280;
  font-size: 17px;
  margin: 0;
}

/* ═══ PAGINATION ═══ */
.rc-pagination {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.rc-pagination a, .rc-pagination span {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.rc-pagination a {
  color: #374151;
  background: #f3f4f6;
}
.rc-pagination a:hover { background: #eff6ff; color: #2563eb; }
.rc-pagination .current {
  background: #2563eb;
  color: #fff;
}

/* ═══ HIDE WP DEFAULT HEADER/FOOTER ═══ */
/* Only hide WP default elements, not our custom rc-header/rc-footer */
.wp-block-template-part:has(.wp-block-site-title) {
  display: none !important;
}

/* ═══ MOBILE HAMBURGER ═══ */
.rc-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.rc-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .rc-blog-grid .wp-block-post-template { grid-template-columns: 1fr !important; }
  .rc-single-wrap { grid-template-columns: 1fr; }
  .rc-footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .rc-hamburger { display: block; }
  .rc-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #0a1628;
    flex-direction: column;
    padding: 20px 2rem;
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .rc-nav.open { display: flex; }
  .rc-header-inner { position: relative; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .rc-blog-grid .wp-block-post-template { grid-template-columns: repeat(2, 1fr) !important; }
}
