:root {
    --forest: #234334;
    --forest-dark: #173126;
    --beige: #e9dfc8;
    --cream: #f8f5ee;
    --white: #ffffff;
    --gray: #f5f6f3;
    --text: #292d2a;
    --muted: #667069;
    --border: rgba(35, 67, 52, 0.13);
    --title: 'Cormorant Garamond', serif;
    --body: 'Inter', sans-serif;
    --button: 'Manrope', sans-serif;
    --shadow: 0 18px 55px rgba(26, 55, 42, 0.09);
    --shadow-hover: 0 25px 70px rgba(26, 55, 42, 0.15);
    --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--text); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
.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; }
.blog-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.blog-kicker { display: inline-block; font: 600 .75rem/1 var(--button); text-transform: uppercase; letter-spacing: .18em; color: var(--forest); opacity: .72; margin-bottom: 1rem; }

.blog-navbar { position: fixed; inset: 0 0 auto; z-index: 1000; background: rgba(255,255,255,.9); backdrop-filter: blur(15px); border-bottom: 1px solid rgba(35,67,52,.08); }
.blog-nav-container { width: min(1180px, calc(100% - 40px)); height: 78px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.blog-logo { font: 600 1.55rem/1 var(--title); color: var(--forest); text-decoration: none; }
.blog-nav-links { display: flex; align-items: center; gap: 2.1rem; list-style: none; }
.blog-nav-links a { font: 500 .88rem/1 var(--button); color: var(--text); text-decoration: none; position: relative; }
.blog-nav-links a:not(.blog-nav-cta)::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 0; height: 1px; background: var(--forest); transition: width .3s ease; }
.blog-nav-links a:hover::after, .blog-nav-links a.active::after { width: 100%; }
.blog-nav-cta { border: 1px solid var(--forest); border-radius: 999px; padding: .72rem 1.35rem; color: var(--forest) !important; transition: .3s ease; }
.blog-nav-cta:hover { color: var(--white) !important; background: var(--forest); }
.blog-mobile-toggle { display: none; border: 0; background: transparent; width: 42px; height: 42px; padding: 8px; }
.blog-mobile-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--forest); }
main { padding-top: 78px; }

.blog-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--cream), #f1ede1); min-height: 520px; display: grid; place-items: center; text-align: center; }
.blog-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(35,67,52,.08) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent); }
.blog-hero-content { position: relative; z-index: 2; padding: 85px 20px; }
.blog-hero h1 { font: 400 clamp(2.8rem, 7vw, 5.2rem)/.98 var(--title); color: var(--forest); max-width: 900px; margin: 0 auto 1.4rem; }
.blog-hero p { max-width: 700px; margin: 0 auto 2.3rem; color: var(--muted); font-size: 1.08rem; }
.blog-hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; }
.blog-hero-orb-one { width: 320px; height: 320px; background: rgba(233,223,200,.7); left: -120px; top: -100px; }
.blog-hero-orb-two { width: 260px; height: 260px; border: 1px solid rgba(35,67,52,.15); right: -70px; bottom: -80px; }
.blog-search { max-width: 650px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; background: var(--white); padding: .55rem; border: 1px solid var(--border); border-radius: 999px; box-shadow: 0 15px 45px rgba(35,67,52,.08); }
.blog-search i { color: var(--forest); margin-left: 1rem; }
.blog-search input { width: 100%; border: 0; outline: 0; padding: .7rem .4rem; color: var(--text); background: transparent; }
.blog-search button { border: 0; border-radius: 999px; padding: .85rem 1.6rem; background: var(--forest); color: var(--white); font: 600 .86rem/1 var(--button); cursor: pointer; }

.blog-section { padding: 90px 0; }
.blog-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.6rem; }
.blog-toolbar h2 { font: 400 clamp(2.25rem, 4vw, 3.4rem)/1.05 var(--title); color: var(--forest); }
.blog-clear-filter { color: var(--forest); text-decoration: none; font: 600 .84rem/1 var(--button); }
.blog-category-list { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 2.3rem; }
.blog-category-list a { text-decoration: none; border: 1px solid var(--border); border-radius: 999px; padding: .65rem 1rem; font: 500 .79rem/1 var(--button); color: var(--muted); transition: .25s ease; }
.blog-category-list a span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: .35rem; border-radius: 50%; background: var(--gray); font-size: .68rem; }
.blog-category-list a:hover, .blog-category-list a.active { background: var(--forest); border-color: var(--forest); color: var(--white); }
.blog-category-list a.active span { color: var(--forest); }

.blog-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; }
.blog-card { min-width: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 30px rgba(35,67,52,.05); transition: transform .35s ease, box-shadow .35s ease; }
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.blog-card-image { display: block; height: 235px; overflow: hidden; background: var(--cream); text-decoration: none; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.045); }
.blog-card-placeholder { height: 100%; display: grid; place-items: center; color: rgba(35,67,52,.5); background: radial-gradient(circle at 30% 20%, #fff, var(--beige)); font-size: 2.3rem; }
.blog-card-body { padding: 1.65rem; }
.blog-card-meta { display: flex; align-items: center; justify-content: space-between; gap: .7rem; color: var(--muted); font-size: .75rem; margin-bottom: .9rem; }
.blog-card-meta span { color: var(--forest); text-transform: uppercase; letter-spacing: .09em; font: 600 .69rem/1 var(--button); }
.blog-card h3 { font: 600 1.65rem/1.14 var(--title); color: var(--forest); margin-bottom: .8rem; }
.blog-card h3 a { text-decoration: none; }
.blog-card p { color: var(--muted); font-size: .91rem; line-height: 1.65; margin-bottom: 1.3rem; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.blog-card-footer span { color: var(--muted); font-size: .72rem; }
.blog-card-footer a, .related-link { color: var(--forest); text-decoration: none; font: 600 .76rem/1 var(--button); }
.blog-card-footer a i, .related-link i { margin-left: .35rem; transition: transform .25s ease; }
.blog-card-footer a:hover i, .related-link:hover i { transform: translateX(4px); }
.blog-card.compact .blog-card-image { height: 190px; }
.blog-card.compact .blog-card-body { padding: 1.35rem; }
.blog-card.compact h3 { font-size: 1.4rem; }

.blog-empty-state, .blog-not-found { text-align: center; padding: 70px 20px; }
.blog-not-found { min-height: calc(100vh - 78px); display: grid; place-items: center; }
.blog-empty-icon { width: 76px; height: 76px; margin: 0 auto 1.4rem; display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: var(--forest); font-size: 1.8rem; }
.blog-empty-state h3, .blog-not-found h1 { font: 600 2rem/1.1 var(--title); color: var(--forest); margin-bottom: .8rem; }
.blog-empty-state p, .blog-not-found p { max-width: 560px; margin: 0 auto 1.8rem; color: var(--muted); }
.blog-button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border: 0; border-radius: 999px; padding: 1rem 1.7rem; background: var(--forest); color: var(--white); text-decoration: none; font: 600 .87rem/1 var(--button); transition: .3s ease; }
.blog-button:hover { transform: translateY(-2px); background: var(--forest-dark); }
.blog-button-light { background: var(--white); color: var(--forest); }
.blog-button-light:hover { background: var(--beige); color: var(--forest-dark); }
.blog-pagination { display: flex; justify-content: center; gap: .55rem; margin-top: 3rem; }
.blog-pagination a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 50%; text-decoration: none; color: var(--forest); font: 600 .82rem/1 var(--button); }
.blog-pagination a.active, .blog-pagination a:hover { background: var(--forest); color: var(--white); }

.blog-cta-section { padding: 0 0 90px; }
.blog-cta-box { position: relative; overflow: hidden; padding: 3.6rem; border-radius: 28px; background: var(--forest); display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; }
.blog-cta-box::after { content: ''; position: absolute; width: 300px; height: 300px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; right: -120px; top: -100px; }
.blog-cta-box > * { position: relative; z-index: 1; }
.blog-cta-box .blog-kicker, .blog-cta-box h2, .blog-cta-box p { color: var(--white); }
.blog-cta-box h2 { font: 400 clamp(2rem, 4vw, 3rem)/1 var(--title); margin-bottom: .8rem; }
.blog-cta-box p { opacity: .75; max-width: 650px; }

.article-header { padding: 90px 0 60px; background: linear-gradient(150deg, var(--cream), #fff); text-align: center; }
.article-header-inner { max-width: 960px; }
.article-breadcrumb { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; color: var(--muted); font-size: .74rem; }
.article-breadcrumb a { text-decoration: none; }
.article-breadcrumb i { font-size: .55rem; }
.article-category { display: inline-block; margin-bottom: 1.1rem; padding: .55rem .85rem; border-radius: 999px; background: rgba(35,67,52,.08); color: var(--forest); font: 600 .69rem/1 var(--button); text-transform: uppercase; letter-spacing: .1em; }
.article-header h1 { max-width: 900px; margin: 0 auto 1.35rem; font: 600 clamp(2.8rem, 6vw, 5.2rem)/.98 var(--title); color: var(--forest); }
.article-lead { max-width: 760px; margin: 0 auto 1.6rem; color: var(--muted); font-size: 1.08rem; }
.article-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1.2rem; color: var(--muted); font-size: .79rem; }
.article-meta i { color: var(--forest); margin-right: .35rem; }
.article-cover-wrap { margin-top: 55px; }
.article-cover { width: 100%; max-height: 610px; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.article-layout { display: grid; grid-template-columns: 100px minmax(0, 760px); justify-content: center; gap: 2.2rem; padding-top: 70px; padding-bottom: 90px; }
.article-share { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; align-items: center; gap: .65rem; }
.article-share span { writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: .5rem; color: var(--muted); text-transform: uppercase; letter-spacing: .15em; font: 600 .61rem/1 var(--button); }
.article-share a, .article-share button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--forest); background: var(--white); text-decoration: none; cursor: pointer; transition: .25s ease; }
.article-share a:hover, .article-share button:hover { background: var(--forest); color: var(--white); }
.article-content { font-size: 1.04rem; color: #3b413d; line-height: 1.9; }
.article-content p { margin: 0 0 1.45rem; }
.article-content h2 { font: 600 2.25rem/1.1 var(--title); color: var(--forest); margin: 2.7rem 0 1rem; }
.article-content h3 { font: 600 1.7rem/1.15 var(--title); color: var(--forest); margin: 2.2rem 0 .9rem; }
.article-content h4 { font: 600 1.25rem/1.2 var(--title); color: var(--forest); margin: 1.8rem 0 .7rem; }
.article-content ul, .article-content ol { margin: 0 0 1.5rem 1.4rem; }
.article-content li { margin-bottom: .45rem; padding-left: .25rem; }
.article-content blockquote { margin: 2rem 0; padding: 1.4rem 1.7rem; border-left: 3px solid var(--beige); background: var(--cream); border-radius: 0 15px 15px 0; color: var(--forest); font-family: var(--title); font-size: 1.35rem; font-style: italic; }
.article-content a { color: var(--forest); text-underline-offset: 3px; }
.article-content hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.article-tags { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2.8rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.article-tags span { padding: .5rem .75rem; border-radius: 999px; background: var(--gray); color: var(--muted); font-size: .72rem; }
.article-author-section { padding: 0 0 90px; }
.article-author-card { max-width: 880px; display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 2.2rem; padding: 2.4rem; border-radius: 25px; background: var(--cream); }
.article-author-card img { width: 170px; height: 170px; object-fit: cover; border-radius: 50%; }
.article-author-card h2 { font: 600 2rem/1 var(--title); color: var(--forest); margin-bottom: .7rem; }
.article-author-card p { color: var(--muted); margin-bottom: .8rem; }
.article-author-card a { color: var(--forest); text-decoration: none; font: 600 .79rem/1 var(--button); }
.related-posts { background: var(--gray); }

.blog-footer { background: var(--forest-dark); padding: 55px 0; color: var(--white); }
.blog-footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.blog-footer h3 { font: 600 1.65rem/1 var(--title); margin-bottom: .5rem; }
.blog-footer p { color: rgba(255,255,255,.62); font-size: .78rem; }
.blog-footer-links { display: flex; gap: 1.4rem; }
.blog-footer-links a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .78rem; }
.blog-footer-legal { text-align: right; }
.blog-whatsapp { position: fixed; right: 24px; bottom: 24px; z-index: 900; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; font-size: 1.55rem; text-decoration: none; box-shadow: 0 10px 30px rgba(37,211,102,.3); }

.preview-body { padding-top: 52px; }
.preview-banner { position: fixed; inset: 0 0 auto; height: 52px; z-index: 2000; display: flex; align-items: center; justify-content: center; gap: 1rem; background: #17251f; color: #fff; font-size: .78rem; }
.preview-banner span { opacity: .65; }
.preview-banner button { border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: transparent; color: #fff; padding: .35rem .8rem; cursor: pointer; }
.preview-layout { grid-template-columns: minmax(0,760px); }

@media (max-width: 980px) {
    .blog-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .blog-footer-grid { grid-template-columns: 1fr 1fr; }
    .blog-footer-links { grid-row: 2; grid-column: 1 / -1; }
    .article-layout { grid-template-columns: minmax(0,760px); }
    .article-share { position: static; flex-direction: row; justify-content: center; order: 2; }
    .article-share span { writing-mode: initial; transform: none; margin: 0 .5rem 0 0; }
}

@media (max-width: 760px) {
    .blog-container { width: min(100% - 28px, 1180px); }
    .blog-nav-container { width: min(100% - 28px, 1180px); }
    .blog-mobile-toggle { display: block; }
    .blog-nav-links { position: fixed; top: 78px; right: -100%; width: min(86vw, 340px); height: calc(100vh - 78px); background: var(--white); padding: 2.2rem; flex-direction: column; align-items: stretch; gap: 1.5rem; box-shadow: -20px 25px 50px rgba(0,0,0,.1); transition: right .35s ease; }
    .blog-nav-links.open { right: 0; }
    .blog-nav-links a { display: block; font-size: 1rem; }
    .blog-nav-cta { text-align: center; }
    .blog-hero { min-height: 500px; }
    .blog-hero-content { padding: 65px 8px; }
    .blog-search { grid-template-columns: auto 1fr; border-radius: 20px; padding: .7rem; }
    .blog-search button { grid-column: 1 / -1; width: 100%; border-radius: 14px; }
    .blog-toolbar { align-items: flex-start; flex-direction: column; }
    .blog-section { padding: 65px 0; }
    .blog-card-grid { grid-template-columns: 1fr; }
    .blog-card-image { height: 240px; }
    .blog-cta-box { padding: 2.3rem 1.6rem; flex-direction: column; align-items: flex-start; }
    .article-header { padding: 65px 0 45px; }
    .article-header h1 { font-size: clamp(2.45rem, 13vw, 4rem); }
    .article-cover-wrap { margin-top: 30px; }
    .article-cover { border-radius: 18px; }
    .article-layout { padding-top: 48px; padding-bottom: 65px; gap: 2rem; }
    .article-content { font-size: .98rem; }
    .article-content h2 { font-size: 1.9rem; }
    .article-author-card { grid-template-columns: 1fr; text-align: center; }
    .article-author-card img { margin: 0 auto; width: 140px; height: 140px; }
    .blog-footer-grid { grid-template-columns: 1fr; text-align: center; }
    .blog-footer-links { grid-column: auto; grid-row: auto; justify-content: center; flex-wrap: wrap; }
    .blog-footer-legal { text-align: center; }
    .preview-banner { justify-content: space-between; padding: 0 12px; }
    .preview-banner span { display: none; }
}
