/* DentalReady — Blog · estilos compartidos
   Calca la paleta y tipografías del index.html en vivo. */

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg: #0D1B2A;
    --bg-card: #132232;
    --bg-light: #1B2838;
    --accent: #3D8B9E;
    --accent-light: #4FA0B3;
    --gold: #C9A96E;
    --white: #F0F5F3;
    --gray: #8A9BB0;
    --gray-light: #A8B8C8;
    --line: rgba(61,139,158,0.15);
    --glass: rgba(61,139,158,0.06);
}
html { overflow-x: hidden; scroll-behavior: smooth; }
body { overflow-x: hidden; font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
*, *::before, *::after { max-width: 100vw; }
a { color: inherit; }

/* NAV / MENÚ HAMBURGUESA (idéntico al sitio) */
.burger { display: block; position: fixed; top: 12px; right: 12px; z-index: 150; background: rgba(13,27,42,0.6); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; padding: 8px; }
.burger svg { width: 24px; height: 24px; stroke: var(--white); stroke-width: 1.5; }
.blog-home { position: fixed; top: 14px; left: 16px; z-index: 150; display: flex; align-items: center; gap: 9px; text-decoration: none; }
.blog-home img { height: 30px; width: auto; }
.blog-home span { font-family: 'Fraunces', serif; font-size: 15px; font-weight: 700; color: var(--white); }
.nav-overlay { position: fixed; inset: 0; background: rgba(13,27,42,0.98); z-index: 200; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 30px; transform: translateX(100%); transition: transform 0.3s; backdrop-filter: blur(20px); }
.nav-overlay.open { transform: translateX(0); }
.nav-overlay a { text-decoration: none; color: var(--gray-light); font-family: 'Fraunces', serif; font-size: 24px; font-weight: 500; transition: color 0.3s; }
.nav-overlay a:hover { color: var(--gold); }
.nav-overlay .nav-cta-mobile { padding: 14px 36px; background: var(--gold); color: var(--bg); font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; border-radius: 10px; margin-top: 8px; }
.nav-close { position: absolute; top: 20px; right: 20px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-close svg { width: 24px; height: 24px; stroke: var(--white); stroke-width: 1.5; }

/* ===== LISTADO ===== */
.blog-hero { padding: 130px 24px 56px; text-align: center; position: relative; overflow: hidden; }
.blog-hero-glow { position: absolute; top: -150px; left: 50%; transform: translateX(-50%); width: 500px; height: 500px; background: radial-gradient(circle, rgba(61,139,158,0.10) 0%, transparent 70%); pointer-events: none; }
.blog-hero .eyebrow { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 3px; color: var(--gold); margin-bottom: 16px; }
.blog-hero h1 { font-family: 'Fraunces', serif; font-size: clamp(34px, 5.5vw, 52px); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; max-width: 640px; margin: 0 auto 16px; }
.blog-hero h1 em { font-style: italic; color: var(--gold); }
.blog-hero p { font-size: 15px; color: var(--gray); max-width: 460px; margin: 0 auto; font-weight: 300; }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1040px; margin: 0 auto; padding: 24px 24px 90px; }
.post-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform 0.3s, border-color 0.3s; }
.post-card:hover { transform: translateY(-3px); border-color: rgba(201,169,110,0.35); }
.post-card-cover { width: 100%; height: 190px; object-fit: cover; object-position: center; background: var(--bg-light); display: block; }
.post-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card-cat { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); margin-bottom: 10px; }
.post-card h2 { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 600; line-height: 1.25; margin-bottom: 10px; }
.post-card p { font-size: 13px; color: var(--gray); font-weight: 300; line-height: 1.6; margin-bottom: 16px; flex: 1; }
.post-card-more { font-size: 12px; font-weight: 600; color: var(--accent-light); }

/* ===== ARTÍCULO ===== */
.article-hero { position: relative; min-height: 56vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 24px 44px; overflow: hidden; }
.article-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; }
.article-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,27,42,0.55) 0%, rgba(13,27,42,0.82) 60%, var(--bg) 100%); z-index: -1; }
.article-hero-inner { max-width: 760px; margin: 0 auto; width: 100%; }
.article-hero .eyebrow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 3px; color: var(--gold); margin-bottom: 16px; }
.article-hero h1 { font-family: 'Fraunces', serif; font-size: clamp(30px, 5vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; max-width: 720px; }
.article-hero h1 em { font-style: italic; color: var(--gold); }
.article-meta { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 13px; color: var(--gray-light); }
.article-meta img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--gold); }
.article-meta b { color: var(--white); font-weight: 600; }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gray); }

.breadcrumb { max-width: 760px; margin: 26px auto 0; padding: 0 24px; font-size: 12px; color: var(--gray); }
.breadcrumb a { color: var(--gray); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

.article-body { max-width: 720px; margin: 0 auto; padding: 30px 24px 20px; }
.article-body .lead { font-size: 18px; color: var(--gray-light); line-height: 1.7; font-weight: 300; margin-bottom: 30px; }
.article-body h2 { font-family: 'Fraunces', serif; font-size: clamp(22px, 3vw, 28px); font-weight: 700; line-height: 1.25; margin: 40px 0 14px; }
.article-body h3 { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 600; margin: 26px 0 10px; }
.article-body p { font-size: 16px; color: var(--gray-light); margin-bottom: 18px; }
.article-body strong { color: var(--white); font-weight: 600; }
.article-body ul { list-style: none; margin: 0 0 22px; }
.article-body ul li { position: relative; padding-left: 26px; margin-bottom: 12px; font-size: 16px; color: var(--gray-light); }
.article-body ul li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.article-body a.inline { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }

.callout { border: 1px solid var(--line); border-left: 3px solid var(--gold); background: var(--bg-card); border-radius: 10px; padding: 22px 26px; margin: 28px 0; }
.callout.teal { border-left-color: var(--accent); }
.callout p { font-size: 15px; color: var(--gray-light); margin: 0; }
.callout p strong { color: var(--white); }
.callout .callout-label { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); margin-bottom: 8px; }
.callout.teal .callout-label { color: var(--accent-light); }

.pullquote { font-family: 'Fraunces', serif; font-size: clamp(20px, 3vw, 26px); font-style: italic; line-height: 1.45; color: rgba(240,245,243,0.85); text-align: center; margin: 38px auto; max-width: 600px; }
.pullquote span { color: var(--gold); font-style: normal; }

/* CTA WhatsApp dentro del artículo */
.article-cta { max-width: 720px; margin: 44px auto; padding: 0 24px; }
.article-cta-box { background: linear-gradient(135deg, var(--bg-card), var(--bg-light)); border: 1px solid rgba(201,169,110,0.2); border-radius: 16px; padding: 36px 32px; text-align: center; }
.article-cta-box h3 { font-family: 'Fraunces', serif; font-size: clamp(20px, 3vw, 26px); font-weight: 700; margin-bottom: 10px; line-height: 1.25; }
.article-cta-box p { font-size: 14px; color: var(--gray); margin-bottom: 22px; font-weight: 300; }
.wa-btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 32px; background: var(--gold); color: var(--bg); font-size: 14px; font-weight: 600; border-radius: 10px; text-decoration: none; transition: transform 0.3s, box-shadow 0.3s; }
.wa-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,169,110,0.25); }
.wa-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Caja autor */
.author-box { max-width: 720px; margin: 10px auto 0; padding: 0 24px; }
.author-box-inner { display: flex; gap: 18px; align-items: center; background: var(--bg-card); border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: 12px; padding: 22px 26px; }
.author-box img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--gold); flex-shrink: 0; }
.author-box .name { font-size: 14px; font-weight: 600; color: var(--white); }
.author-box .role { font-size: 12px; color: var(--gray); margin-bottom: 6px; }
.author-box .bio { font-size: 13px; color: var(--gray-light); font-weight: 300; line-height: 1.6; }

/* Relacionados */
.related { max-width: 1040px; margin: 60px auto 0; padding: 40px 24px 90px; border-top: 1px solid var(--line); }
.related h2 { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* Footer (idéntico al sitio) */
footer { padding: 22px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
footer p { font-size: 11px; color: rgba(138,155,176,0.45); font-weight: 300; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 11px; color: rgba(138,155,176,0.45); text-decoration: none; }
.footer-links a:hover { color: var(--white); }

.wa-float { position: fixed; bottom: 16px; right: 12px; z-index: 999; width: 46px; height: 46px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 4px 16px rgba(37,211,102,0.3); transition: transform 0.3s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 24px; height: 24px; fill: #fff; }

@media (max-width: 860px) {
    .posts-grid, .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .blog-home span { display: none; }
    .posts-grid { padding: 20px 20px 70px; gap: 18px; }
    .post-card-cover { height: 180px; }
    .article-hero { min-height: 42vh; padding: 104px 20px 32px; }
    .article-body, .article-cta, .author-box { padding-left: 20px; padding-right: 20px; }
    footer { flex-direction: column; gap: 8px; text-align: center; }
    .author-box-inner { flex-direction: column; text-align: center; }
}
