/* =============================================
   BLOG STYLESHEET — Calculadora Gestacional
   Shared across all blog posts
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

:root {
  --pink-50: #fff0f6;
  --pink-100: #ffe3ef;
  --pink-200: #ffc1d9;
  --pink-400: #ff5f9a;
  --pink-500: #e8447e;
  --pink-600: #c73168;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-500: #9e9e9e;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(232,68,126,0.10);
  --shadow-md: 0 8px 30px rgba(232,68,126,0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--pink-50);
  color: var(--gray-800);
  line-height: 1.7;
  font-size: 1rem;
}
a { color: var(--pink-500); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; border-radius: var(--radius-md); }

/* ---- Layout ---- */
.container { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---- Header ---- */
header {
  background: var(--white);
  border-bottom: 1px solid var(--pink-100);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(232,68,126,0.08);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.1rem;
  color: var(--pink-500);
}
.logo-icon { font-size: 1.5rem; }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--gray-700); transition: var(--transition); }
.nav-links a:hover { color: var(--pink-500); text-decoration: none; }
@media (max-width: 580px) { .nav-links { display: none; } }

/* ---- Breadcrumb ---- */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.8rem;
  color: var(--gray-500);
  border-bottom: 1px solid var(--pink-100);
  background: var(--white);
}
.breadcrumb a { color: var(--pink-500); }
.breadcrumb span { margin: 0 6px; }

/* ---- Article Hero ---- */
.article-hero {
  background: linear-gradient(135deg, #fff0f6 0%, #ffe3ef 60%, #fce4ec 100%);
  padding: 56px 0 40px;
  text-align: center;
}
.article-category {
  display: inline-block;
  background: rgba(232,68,126,0.12);
  color: var(--pink-600);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 99px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(232,68,126,0.20);
}
.article-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.article-meta {
  display: flex; justify-content: center;
  align-items: center; gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 12px;
}
.article-meta span { display: flex; align-items: center; gap: 5px; }

/* ---- Featured Image ---- */
.featured-image-wrap {
  max-width: 820px;
  margin: -20px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 5;
}
.featured-image-wrap img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ---- Article Body ---- */
.article-body {
  padding: 48px 0 64px;
}

.article-body p {
  font-size: 1.02rem;
  color: var(--gray-700);
  margin-bottom: 20px;
  line-height: 1.8;
}

.article-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pink-100);
  line-height: 1.3;
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 28px 0 12px;
}

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body li {
  font-size: 1rem;
  color: var(--gray-700);
  margin-bottom: 8px;
  line-height: 1.7;
}

.article-body strong { color: var(--gray-900); }

/* ---- Step List ---- */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1.5px solid var(--pink-100);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.step-num {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--pink-400), var(--pink-600));
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(232,68,126,0.30);
}
.step-content h4 {
  font-size: 0.95rem; font-weight: 700;
  color: var(--gray-900); margin-bottom: 4px;
}
.step-content p { font-size: 0.875rem; color: var(--gray-600); margin: 0; }

/* ---- Example Box ---- */
.example-box {
  background: var(--white);
  border: 1.5px solid var(--pink-200);
  border-left: 5px solid var(--pink-500);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 24px 0;
}
.example-box h4 {
  font-size: 0.85rem; font-weight: 700;
  color: var(--pink-600);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}
.example-box p { font-size: 0.95rem; color: var(--gray-700); margin-bottom: 8px; }
.example-box p:last-child { margin-bottom: 0; }

/* ---- Info Box ---- */
.info-box {
  background: var(--pink-50);
  border: 1px dashed var(--pink-300);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 0.95rem;
  color: var(--gray-700);
}
.info-box strong { color: var(--pink-600); }

/* ---- CTA Box ---- */
.cta-box {
  background: linear-gradient(135deg, var(--pink-500) 0%, #c94f80 100%);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  margin: 40px 0;
  color: var(--white);
}
.cta-box h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--white);
}
.cta-box p { font-size: 1rem; opacity: 0.92; margin-bottom: 20px; }
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--pink-600);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  font-family: 'Inter', sans-serif;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.20); text-decoration: none; }

/* ---- FAQ Section ---- */
.faq-section {
  background: var(--white);
  border: 1.5px solid var(--pink-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
}
.faq-section h2 {
  border: none !important;
  padding: 0 !important;
  margin: 0 0 24px !important;
}
.faq-item { border-bottom: 1px solid var(--pink-100); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  padding: 16px 0;
  background: none; border: none;
  cursor: pointer;
  font-size: 0.95rem; font-weight: 600;
  color: var(--gray-800);
  text-align: left;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}
.faq-q:hover { color: var(--pink-600); }
.faq-q.open { color: var(--pink-600); }
.faq-icon {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--pink-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--pink-400);
  transition: var(--transition);
}
.faq-q.open .faq-icon { transform: rotate(45deg); background: var(--pink-100); }
.faq-a { display: none; padding: 0 0 16px; font-size: 0.9rem; color: var(--gray-600); line-height: 1.7; }
.faq-a.open { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }

/* ---- Related Posts ---- */
.related-posts { margin: 48px 0; }
.related-posts h2 {
  border: none !important;
  padding: 0 !important;
  font-size: 1.3rem !important;
  margin: 0 0 20px !important;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.related-card {
  background: var(--white);
  border: 1.5px solid var(--pink-100);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: var(--transition);
}
.related-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); border-color: var(--pink-200); }
.related-card .rc-cat {
  font-size: 0.72rem; font-weight: 700; color: var(--pink-500);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}
.related-card h4 { font-size: 0.9rem; font-weight: 600; color: var(--gray-800); line-height: 1.4; }
.related-card a { text-decoration: none; color: inherit; }
.related-card a:hover h4 { color: var(--pink-600); }

/* ---- Table of Contents ---- */
.toc {
  background: var(--pink-50);
  border: 1px solid var(--pink-200);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0 32px;
}
.toc h4 { font-size: 0.85rem; font-weight: 700; color: var(--pink-600); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.toc ol { padding-left: 18px; margin: 0; }
.toc li { font-size: 0.875rem; margin-bottom: 6px; }
.toc a { color: var(--gray-700); font-weight: 500; }
.toc a:hover { color: var(--pink-500); }

/* ---- Footer ---- */
footer {
  background: var(--gray-900);
  color: #9e9e9e;
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .logo { color: #f48fb1; font-weight: 800; font-size: 1.05rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; color: #757575; max-width: 280px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; color: #ffffff; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.85rem; color: #757575; transition: var(--transition); }
.footer-col ul li a:hover { color: #f48fb1; text-decoration: none; }
.footer-bottom {
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { font-size: 0.82rem; margin-bottom: 5px; }


/* ---- Blog Index Cards ---- */
.blog-hero {
  background: linear-gradient(135deg, #fff0f6 0%, #ffe3ef 60%, #fce4ec 100%);
  padding: 64px 0 48px;
  text-align: center;
}
.blog-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 14px;
}
.blog-hero p { font-size: 1.05rem; color: var(--gray-600); max-width: 560px; margin: 0 auto; }
.blog-grid-section { padding: 56px 0; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border: 1.5px solid var(--pink-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  display: block;
  color: inherit;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--pink-200); text-decoration: none; }
.blog-card-img {
  width: 100%; height: 178px;
  object-fit: cover;
  border-radius: 0;
}
.blog-card-body { padding: 20px; }
.blog-card-cat {
  font-size: 0.72rem; font-weight: 700;
  color: var(--pink-500); text-transform: uppercase;
  letter-spacing: 0.7px; margin-bottom: 8px;
}
.blog-card h2 { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); line-height: 1.4; margin-bottom: 8px; }
.blog-card p { font-size: 0.85rem; color: var(--gray-600); line-height: 1.6; }
.blog-card-meta { font-size: 0.75rem; color: var(--gray-500); margin-top: 12px; }

/* ---- Utilities ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.back-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--pink-500); color: var(--white);
  border: none; cursor: pointer; font-size: 1rem;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transition: var(--transition); z-index: 99;
  display: flex; align-items: center; justify-content: center;
}
.back-top.visible { opacity: 1; pointer-events: all; }
.back-top:hover { transform: translateY(-3px); }
