/* === Blog Dr. Casarsa — estilos compartidos === */
:root {
  --navy: #0C447C;
  --blue: #185FA5;
  --teal-dark: #0F6E56;
  --teal: #1D9E75;
  --mint: #5DCAA5;
  --light-blue: #85B7EB;
  --ice: #E6F1FB;
  --dark: #0A1628;
  --white: #F5F8FC;
  --text: #1a2a3a;
  --muted: #5a6a7a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* TOP NAV */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(8px);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topnav .brand {
  color: var(--ice);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.topnav .brand:hover { color: var(--mint); }
.topnav .nav-links {
  margin-left: auto;
  display: flex;
  gap: 1.4rem;
  list-style: none;
  align-items: center;
}
.topnav .nav-links a {
  color: var(--light-blue);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.topnav .nav-links a:hover { color: var(--mint); }
.topnav .nav-links a.cta {
  background: var(--teal);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
}
.topnav .nav-links a.cta:hover { background: var(--teal-dark); color: #fff; }

@media (max-width: 720px) {
  .topnav .nav-links li:not(.cta-li) { display: none; }
}

/* BREADCRUMB */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 1.5rem 2rem 0;
  max-width: 1100px;
  margin: 0 auto;
}
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb .sep { margin: 0 0.5rem; opacity: 0.6; }

/* INDEX HERO */
.blog-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--navy) 100%);
  color: var(--ice);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(133,183,235,0.12) 0%, transparent 35%),
    radial-gradient(circle at 80% 30%, rgba(93,202,165,0.10) 0%, transparent 35%);
  pointer-events: none;
}
.blog-hero .container { position: relative; max-width: 800px; margin: 0 auto; }
.blog-hero .eyebrow {
  font-size: 0.8rem;
  color: var(--mint);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 600;
}
.blog-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--ice);
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.blog-hero p {
  font-size: 1.1rem;
  color: var(--light-blue);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* INDEX GRID */
.blog-grid-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.category-label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  font-weight: 600;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-bottom: 3rem;
}
.blog-card {
  background: #fff;
  border: 1px solid #d5e0ec;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
}
.blog-card:hover {
  border-color: var(--teal);
  box-shadow: 0 12px 32px rgba(12,68,124,0.10);
  transform: translateY(-3px);
}
.blog-card .thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy), var(--teal-dark));
  position: relative;
  overflow: hidden;
}
.blog-card .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 60%, rgba(255,255,255,0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 40%, rgba(93,202,165,0.18) 0%, transparent 40%);
}
.blog-card .thumb .tag {
  position: absolute;
  bottom: 0.8rem; left: 0.8rem;
  background: rgba(10,22,40,0.7);
  color: var(--mint);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-weight: 600;
  z-index: 1;
}
.blog-card .body { padding: 1.3rem 1.4rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.blog-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
  font-weight: 600;
  line-height: 1.3;
}
.blog-card .excerpt {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1rem;
  flex: 1;
}
.blog-card .meta {
  font-size: 0.78rem;
  color: #8a9aaa;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  border-top: 1px solid #e5eaf0;
  padding-top: 0.8rem;
}
.blog-card .meta .read-time::before { content: '⏱'; margin-right: 0.3rem; }

/* ARTICLE PAGE */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5eaf0;
}
.article-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  font-weight: 600;
}
.article-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--dark);
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.article-header .lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.article-header .meta {
  font-size: 0.85rem;
  color: #8a9aaa;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.article-header .meta strong { color: var(--navy); }
.article-header .meta .read-time::before { content: '⏱'; margin-right: 0.3rem; }

.article-content {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
}
.article-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  font-weight: 600;
}
.article-content h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 1.8rem 0 0.5rem;
  font-weight: 600;
}
.article-content p { margin-bottom: 1.1rem; }
.article-content ul, .article-content ol {
  margin: 0 0 1.2rem 1.4rem;
  color: var(--text);
}
.article-content li { margin-bottom: 0.5rem; }
.article-content strong { color: var(--navy); }
.article-content a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(24,95,165,0.3);
  text-underline-offset: 3px;
  transition: all 0.2s;
}
.article-content a:hover { color: var(--teal); text-decoration-color: var(--teal); }

.article-content blockquote {
  border-left: 4px solid var(--teal);
  background: var(--ice);
  padding: 1rem 1.4rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #3a4a5a;
}

/* CALLOUTS */
.callout {
  background: var(--ice);
  border-left: 4px solid var(--teal);
  border-radius: 0 10px 10px 0;
  padding: 1.2rem 1.4rem;
  margin: 1.8rem 0;
  font-size: 0.97rem;
  line-height: 1.65;
}
.callout strong { color: var(--navy); display: block; margin-bottom: 0.4rem; font-size: 0.95rem; letter-spacing: 0.02em; text-transform: uppercase; font-weight: 700; }
.callout.warning { background: #FFF8E1; border-color: #F5A623; }
.callout.warning strong { color: #8B6800; }

/* CTA BOX */
.cta-box {
  background: linear-gradient(135deg, var(--navy), var(--teal-dark));
  color: var(--ice);
  padding: 2rem 1.8rem;
  border-radius: 14px;
  margin: 3rem 0;
  text-align: center;
}
.cta-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--ice);
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.cta-box p { color: var(--light-blue); margin-bottom: 1.3rem; font-size: 0.97rem; }
.cta-box .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff;
  padding: 0.85rem 1.6rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s;
}
.cta-box .btn:hover { background: #1fb855; transform: translateY(-2px); }

/* REFERENCES */
.references {
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid #e5eaf0;
}
.references h3 {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  font-weight: 700;
}
.references ol {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 1.4rem;
}
.references li { margin-bottom: 0.6rem; }
.references li em { color: #3a4a5a; }

/* RELATED ARTICLES */
.related {
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid #e5eaf0;
}
.related h3 {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  font-weight: 700;
}
.related-list { display: grid; gap: 0.7rem; }
.related-list a {
  display: block;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  text-decoration: none;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
}
.related-list a:hover { border-color: var(--teal); background: var(--ice); transform: translateX(4px); }
.related-list a::before { content: '→'; color: var(--teal); margin-right: 0.5rem; font-weight: 700; }

/* AUTHOR BOX */
.author-box {
  margin: 3rem 0;
  padding: 1.5rem;
  background: var(--ice);
  border-radius: 12px;
  display: flex;
  gap: 1.2rem;
  align-items: center;
}
.author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #fff;
}
.author-box .info h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.author-box .info p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.author-box .info .credentials {
  font-size: 0.78rem;
  color: var(--teal);
  margin-top: 0.4rem;
  font-weight: 500;
}
@media (max-width: 480px) {
  .author-box { flex-direction: column; text-align: center; }
}

/* FAB WhatsApp (shared) */
.wa-fab {
  position: fixed;
  bottom: 1.4rem; right: 1.4rem;
  z-index: 999;
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: #25D366; color: #fff;
  padding: 0.85rem 1.25rem 0.85rem 1.05rem;
  border-radius: 50px;
  text-decoration: none; font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(37,211,102,0.35), 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
}
.wa-fab:hover {
  background: #1fb855;
  transform: translateY(-2px);
}
@media (max-width: 480px) {
  .wa-fab { padding: 0.85rem 1rem; }
  .wa-fab .wa-label { display: none; }
}

/* FAB Reseña Google (bottom-left, complementario al WA FAB) */
.review-fab {
  position: fixed;
  bottom: 1.4rem; left: 1.4rem;
  z-index: 998;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #422006;
  padding: 0.7rem 1.05rem 0.7rem 0.9rem;
  border-radius: 50px;
  text-decoration: none; font-weight: 700;
  font-size: 0.88rem; line-height: 1;
  box-shadow: 0 6px 18px rgba(245,158,11,0.32), 0 2px 6px rgba(0,0,0,0.12);
  transition: all 0.25s ease;
  font-family: 'DM Sans', sans-serif;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.review-fab.review-fab--visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.review-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(245,158,11,0.45), 0 4px 10px rgba(0,0,0,0.18);
}
.review-fab svg { flex-shrink: 0; }
.review-fab .review-fab__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  margin-left: 4px; padding: 0; border: 0;
  background: rgba(66,32,6,0.18);
  border-radius: 50%;
  color: #422006;
  font-size: 12px; font-weight: 700; line-height: 1; cursor: pointer;
  transition: background 0.15s;
}
.review-fab .review-fab__close:hover { background: rgba(66,32,6,0.32); }
@media (max-width: 480px) {
  .review-fab { padding: 0.6rem 0.85rem 0.6rem 0.75rem; font-size: 0.82rem; bottom: 1rem; left: 1rem; }
  .review-fab .review-fab__label { display: none; }
}

/* FOOTER */
footer.site-footer {
  background: #060e1a;
  color: #8a98a8;
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
}
footer.site-footer a { color: var(--mint); text-decoration: none; margin: 0 0.5rem; }
footer.site-footer p { line-height: 1.6; margin-bottom: 0.5rem; }
footer.site-footer .legal {
  font-size: 0.75rem;
  color: #566678;
  margin-top: 0.8rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}


/* FAQ Block */
.faq-block { margin: 32px 0; padding: 24px; background: #f7faff; border-radius: 12px; border: 1px solid #d9e6f5; }
.faq-block h2 { margin-top: 0; color: #0C447C; font-size: 1.4rem; }
.faq-block details { margin: 12px 0; padding: 14px 16px; background: #fff; border: 1px solid #e2eaf2; border-radius: 8px; }
.faq-block details[open] { border-color: #0C447C; }
.faq-block summary { cursor: pointer; font-weight: 600; color: #0C447C; font-size: 1.02rem; list-style: none; padding-right: 24px; position: relative; }
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after { content: "+"; position: absolute; right: 0; top: 0; font-size: 1.4rem; line-height: 1; color: #0C447C; transition: transform 0.2s; }
.faq-block details[open] summary::after { content: "−"; }
.faq-block .answer { margin-top: 10px; color: #1f2d3d; line-height: 1.6; font-size: 0.97rem; }


/* TOC + Last Reviewed */
.article-toc { margin: 24px 0; padding: 18px 22px; background: linear-gradient(135deg, #f8fafc 0%, #f0fdfa 100%); border-radius: 10px; border-left: 4px solid #14b8a6; }
.article-toc-title { font-size: 13px; font-weight: 700; color: #0C447C; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 10px; }
.article-toc ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.8; color: #1f2d3d; }
.article-toc ol li a { color: #0C447C; text-decoration: none; border-bottom: 1px solid transparent; }
.article-toc ol li a:hover { border-bottom-color: #14b8a6; color: #14b8a6; }
.last-reviewed { font-size: 13px; color: #14b8a6; font-weight: 500; }
