/* ================================================================
   blog.css — Estilos del blog de mauriciobustos.com
   Consistente con el diseño del sitio principal (mauriciobustos.html)
   ================================================================ */

:root {
  --black: #0a0a0a;
  --black-soft: #111111;
  --black-deeper: #050505;
  --yellow: #F0C60A;
  --yellow-soft: rgba(240, 198, 10, 0.12);
  --navy: #0B1E3D;
  --cream: #f5f1e8;
  --white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-dim: rgba(255, 255, 255, 0.5);
  --border-soft: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4, h5, .serif {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.tm { font-size: 0.45em; vertical-align: super; color: var(--yellow); }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

/* =========== NAV =========== */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
}
nav.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 38px;
  list-style: none;
}
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 2px;
  background: var(--yellow);
  transition: width 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--yellow); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* =========== HAMBURGER TOGGLE (mobile) =========== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 22px;
  position: relative;
  z-index: 1002;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle.active span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { top: 10px; transform: rotate(-45deg); }
.nav-cta-mobile { display: none; }
.nav-cta-desktop { display: inline-block; }

/* =========== BUTTONS =========== */
.btn-yellow {
  background: var(--yellow);
  color: var(--black);
  padding: 15px 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 2px solid var(--yellow);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: inline-block;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.btn-yellow:hover {
  background: transparent;
  color: var(--yellow);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(240, 198, 10, 0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  padding: 14px 28px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: all 0.35s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }

/* =========== BLOG INDEX — HERO =========== */
.blog-hero {
  padding: 180px 0 80px;
  background:
    radial-gradient(ellipse at top right, rgba(240, 198, 10, 0.08), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(11, 30, 61, 0.4), transparent 70%),
    var(--black);
  border-bottom: 1px solid var(--border-soft);
  text-align: center;
}
.blog-hero .eyebrow {
  color: var(--yellow);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3.5px;
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.blog-hero .eyebrow::before,
.blog-hero .eyebrow::after {
  content: '';
  width: 40px; height: 2px;
  background: var(--yellow);
}
.blog-hero h1 {
  font-size: clamp(56px, 9vw, 104px);
  margin-bottom: 22px;
  font-weight: 600;
}
.blog-hero p {
  max-width: 680px;
  margin: 0 auto;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========== BLOG INDEX — GRID =========== */
.blog-grid-section {
  padding: 90px 0 120px;
  background: var(--black);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.post-card {
  background: var(--black-soft);
  border: 1px solid var(--border-soft);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.post-card:hover {
  border-color: rgba(240, 198, 10, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.post-card-image {
  aspect-ratio: 1200 / 630;
  background: var(--black-deeper);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.post-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 10, 10, 0.3) 100%);
}
.post-card-body {
  padding: 30px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card-category {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.post-card-title {
  font-size: 25px;
  line-height: 1.18;
  margin-bottom: 14px;
  color: var(--white);
  font-weight: 600;
}
.post-card:hover .post-card-title { color: var(--yellow); transition: color 0.3s; }
.post-card-excerpt {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  margin-top: auto;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.4px;
}
.post-card-cta {
  color: var(--yellow);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.post-card-cta::after { content: '→'; transition: transform 0.3s; }
.post-card:hover .post-card-cta::after { transform: translateX(4px); }

/* =========== SINGLE POST — HERO =========== */
.post-hero {
  padding: 150px 0 0;
  background:
    radial-gradient(ellipse at top left, rgba(240, 198, 10, 0.06), transparent 60%),
    var(--black);
}
.post-hero-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 40px 60px;
  text-align: center;
}
.breadcrumb {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb .sep { color: rgba(255, 255, 255, 0.25); margin: 0 10px; }
.post-category {
  display: inline-block;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
  padding: 7px 16px;
  border: 1px solid rgba(240, 198, 10, 0.35);
}
.post-hero h1 {
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.12;
  margin-bottom: 26px;
  font-weight: 600;
}
.post-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.5px;
}
.post-meta .dot { color: rgba(255, 255, 255, 0.2); }
.post-hero-image {
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 1200 / 630;
  background-size: cover;
  background-position: center;
  background-color: var(--black-deeper);
}

/* =========== SINGLE POST — CONTENT =========== */
.post-content-wrap {
  padding: 70px 0 90px;
  background: var(--black);
}
.post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 18px;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.88);
}
.post-content p {
  margin-bottom: 26px;
}
.post-content p:first-of-type {
  font-size: 21px;
  line-height: 1.65;
  color: var(--white);
  margin-bottom: 34px;
}
.post-content h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  margin: 58px 0 22px;
  color: var(--white);
  line-height: 1.18;
}
.post-content h3 {
  font-size: clamp(22px, 2.4vw, 27px);
  margin: 44px 0 16px;
  color: var(--yellow);
  line-height: 1.22;
}
.post-content h2 + h3 { margin-top: 22px; }
.post-content ul,
.post-content ol {
  margin: 0 0 28px 22px;
  padding-left: 8px;
}
.post-content li {
  margin-bottom: 12px;
  padding-left: 8px;
}
.post-content ul li::marker { color: var(--yellow); }
.post-content ol li::marker { color: var(--yellow); font-weight: 700; }
.post-content strong {
  color: var(--white);
  font-weight: 700;
}
.post-content em { font-style: italic; color: var(--cream); }
.post-content blockquote {
  border-left: 3px solid var(--yellow);
  padding: 8px 0 8px 28px;
  margin: 32px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-style: italic;
  line-height: 1.4;
  color: var(--cream);
}
.post-content a {
  color: var(--yellow);
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 198, 10, 0.3);
  transition: border-color 0.3s;
}
.post-content a:hover { border-color: var(--yellow); }
.post-content hr {
  border: none;
  height: 1px;
  background: var(--border-soft);
  margin: 50px 0;
}

/* =========== TABLES =========== */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 36px 0;
  font-size: 15.5px;
  background: var(--black-soft);
  border: 1px solid var(--border-soft);
}
.post-content thead th {
  background: rgba(240, 198, 10, 0.08);
  color: var(--yellow);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 18px 20px;
  text-align: left;
  border-bottom: 2px solid rgba(240, 198, 10, 0.25);
  vertical-align: top;
}
.post-content tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
  color: rgba(255, 255, 255, 0.85);
  vertical-align: top;
  line-height: 1.5;
}
.post-content tbody tr:last-child td { border-bottom: none; }
.post-content tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.post-content table strong { color: var(--white); }

@media (max-width: 600px) {
  .post-content table { font-size: 14px; }
  .post-content thead th,
  .post-content tbody td { padding: 12px 14px; }
}

/* =========== POST CTA =========== */
.post-cta {
  max-width: 880px;
  margin: 60px auto 0;
  padding: 52px 48px;
  background:
    linear-gradient(135deg, rgba(240, 198, 10, 0.08), rgba(11, 30, 61, 0.15)),
    var(--black-soft);
  border: 1px solid rgba(240, 198, 10, 0.25);
  text-align: center;
}
.post-cta .eyebrow {
  color: var(--yellow);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 18px;
}
.post-cta h3 {
  font-size: clamp(28px, 3.5vw, 42px);
  margin-bottom: 18px;
  line-height: 1.2;
}
.post-cta p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 540px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* =========== RELATED POSTS =========== */
.related-section {
  padding: 90px 0 100px;
  background: var(--black-deeper);
  border-top: 1px solid var(--border-soft);
}
.related-section .section-title {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 48px;
  text-align: center;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* =========== FOOTER =========== */
footer.site-footer {
  background: var(--black-deeper);
  padding: 70px 0 40px;
  border-top: 1px solid rgba(240, 198, 10, 0.1);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-links {
  display: flex;
  gap: 34px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--yellow); }
.social-links { display: flex; gap: 14px; align-items: center; }
.social-links a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.35s ease;
}
.social-links a svg { width: 18px; height: 18px; fill: currentColor; }
.social-links a:hover {
  color: var(--yellow);
  border-color: var(--yellow);
  transform: translateY(-2px);
  background: rgba(240, 198, 10, 0.06);
}
.copyright {
  text-align: center;
  padding-top: 36px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

/* =========== RESPONSIVE =========== */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@keyframes navFadeSlide {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 760px) {
  .container { padding: 0 24px; }
  .nav-toggle { display: block; order: 3; }
  .nav-cta-desktop { display: none !important; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--black);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 1001;
    padding: 0 24px;
    margin: 0;
    overflow: hidden;
    list-style: none;
  }
  .nav-links.open {
    display: flex !important;
    animation: navFadeSlide 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }
  .nav-links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links li:last-child,
  .nav-links li:nth-last-child(2) { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 16px 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: none;
    color: var(--white);
    transition: color 0.2s;
  }
  .nav-links a:hover,
  .nav-links a:active { color: var(--yellow); }
  .nav-links a::after { display: none !important; }
  .nav-cta-mobile {
    display: block;
    border-bottom: none !important;
    margin-top: 16px;
  }
  .nav-cta-mobile .btn-yellow {
    display: inline-block !important;
    padding: 17px 40px;
    font-size: 12px;
    letter-spacing: 1.8px;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    text-transform: uppercase;
  }
  .blog-hero { padding: 140px 0 60px; }
  .blog-grid-section { padding: 60px 0 80px; }
  .blog-grid { grid-template-columns: 1fr; gap: 30px; }
  .related-grid { grid-template-columns: 1fr; gap: 24px; }
  .post-hero { padding: 130px 0 0; }
  .post-hero-inner { padding: 30px 24px 45px; }
  .post-content-wrap { padding: 50px 0 60px; }
  .post-content { font-size: 17px; }
  .post-content p:first-of-type { font-size: 19px; }
  .post-cta { padding: 40px 28px; margin-top: 40px; }
  .post-card-body { padding: 26px 24px 30px; }
  .post-card-title { font-size: 22px; }
}
