/* ============================================================
   HACIENDA ALDAMA — BLOG
   Reutiliza la paleta de marca (olivo / sage · Playfair + Inter)
   ============================================================ */

:root {
  --bg-dark:     #56604D;
  --bg-dark2:    #495443;
  --bg-light:    #E8ECE4;
  --bg-card:     #F7F8F5;
  --footer:      #283026;
  --title:       #283026;
  --text:        #4A5248;
  --text-sec:    #7A8278;
  --text-white:  #FFFFFF;
  --accent:      #8DA06F;
  --accent-dark: #6B7562;
  --border:      #D8DDD3;
  --divider:     #C8CEC3;
  --footer-text: #DCE2D6;
  --shadow-sm:   rgba(63,74,58,0.08);
  --shadow-md:   rgba(63,74,58,0.14);
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
  --radius:      12px;
  --radius-sm:   8px;
  --transition:  0.25s ease;
  --max-width:   1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-card);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: var(--accent-dark); transition: color var(--transition); }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

/* === NAVBAR === */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,248,245,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-logo img.logo-icon { height: 38px; width: auto; }
.nav-logo img.logo-text { height: 22px; width: auto; }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a { color: var(--title); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--bg-dark2); color: #fff; padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 600;
}
.nav-cta:hover { background: var(--footer); color: #fff; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* === HERO / HEADER === */
.blog-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--footer) 100%);
  color: #fff; padding: 4rem 0 3rem; text-align: center;
}
.blog-hero .eyebrow {
  color: var(--accent); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; display: block; margin-bottom: 0.8rem;
}
.blog-hero h1 { font-family: var(--font-serif); color: #fff; font-size: clamp(2rem,5vw,3rem); margin-bottom: 0.8rem; }
.blog-hero p { color: var(--footer-text); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* === BLOG INDEX GRID === */
.post-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr));
  gap: 2rem; padding: 3.5rem 0;
}
.post-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 4px 18px var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px var(--shadow-md); }
.post-card-img { aspect-ratio: 16/9; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-card-img img { transform: scale(1.06); }
.post-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-tag {
  display: inline-block; align-self: flex-start; background: var(--bg-light); color: var(--accent-dark);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 20px; margin-bottom: 0.9rem;
}
.post-card-body h2 { font-family: var(--font-serif); font-size: 1.3rem; color: var(--title); line-height: 1.3; margin-bottom: 0.6rem; }
.post-card-body p { color: var(--text-sec); font-size: 0.94rem; flex: 1; }
.post-meta { color: var(--text-sec); font-size: 0.8rem; margin-top: 1.1rem; display: flex; align-items: center; gap: 0.5rem; }
.read-more { margin-top: 1rem; font-weight: 600; color: var(--accent-dark); font-size: 0.9rem; }
.read-more i { transition: transform var(--transition); }
.post-card:hover .read-more i { transform: translateX(4px); }

/* === ARTICLE === */
.article-hero { position: relative; height: 46vh; min-height: 340px; overflow: hidden; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-hero .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,48,38,0.15) 0%, rgba(40,48,38,0.8) 100%); }
.article-hero .headline { position: absolute; bottom: 0; left: 0; right: 0; padding: 2.5rem 0; }
.article-hero .headline .container { color: #fff; }
.article-hero .post-tag { background: var(--accent); color: #fff; }
.article-hero h1 { font-family: var(--font-serif); color: #fff; font-size: clamp(1.8rem,4.5vw,2.9rem); max-width: 900px; line-height: 1.18; }
.article-hero .sub { color: var(--footer-text); margin-top: 0.8rem; font-size: 0.9rem; }

.article-body { max-width: 760px; margin: 0 auto; padding: 3rem 1.25rem 1rem; }
.article-body .lead { font-size: 1.22rem; line-height: 1.7; color: var(--title); font-weight: 400; margin-bottom: 1.8rem; }
.article-body h2 { font-family: var(--font-serif); color: var(--title); font-size: 1.7rem; margin: 2.4rem 0 0.9rem; line-height: 1.25; }
.article-body h3 { font-family: var(--font-serif); color: var(--bg-dark2); font-size: 1.28rem; margin: 1.8rem 0 0.7rem; }
.article-body p { margin-bottom: 1.15rem; }
.article-body ul, .article-body ol { margin: 0 0 1.3rem 0; padding-left: 0; }
.article-body ul li, .article-body ol li { position: relative; padding-left: 1.7rem; margin-bottom: 0.6rem; }
.article-body ul li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--accent); position: absolute; left: 0; font-size: 0.85rem; top: 0.2rem; }
.article-body ol { counter-reset: item; }
.article-body ol li::before { counter-increment: item; content: counter(item); position: absolute; left: 0; top: 0; background: var(--accent); color: #fff; width: 1.15rem; height: 1.15rem; border-radius: 50%; font-size: 0.7rem; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-top: 0.25rem; }
.article-body strong { color: var(--title); }
.article-body a { font-weight: 600; border-bottom: 1px solid transparent; }
.article-body a:hover { border-bottom-color: var(--accent); }
.article-body figure { margin: 2rem 0; }
.article-body figure img { border-radius: var(--radius); box-shadow: 0 8px 26px var(--shadow-sm); }
.article-body figcaption { text-align: center; font-size: 0.84rem; color: var(--text-sec); margin-top: 0.6rem; }

blockquote {
  border-left: 4px solid var(--accent); background: var(--bg-light);
  padding: 1.2rem 1.5rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.8rem 0; font-family: var(--font-serif); font-size: 1.2rem; color: var(--bg-dark2); font-style: italic;
}

/* callout / CTA box */
.cta-box {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--footer) 100%);
  color: #fff; border-radius: var(--radius); padding: 2.2rem; text-align: center; margin: 2.6rem 0;
}
.cta-box h3 { font-family: var(--font-serif); color: #fff; font-size: 1.5rem; margin-bottom: 0.6rem; }
.cta-box p { color: var(--footer-text); margin-bottom: 1.3rem; }
.cta-box .btn { display: inline-block; background: var(--accent); color: #fff; padding: 0.85rem 1.8rem; border-radius: var(--radius-sm); font-weight: 600; }
.cta-box .btn:hover { background: #fff; color: var(--footer); }

.fact-table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: 0.94rem; background: #fff; border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 4px 18px var(--shadow-sm); }
.fact-table th, .fact-table td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.fact-table th { background: var(--bg-dark2); color: #fff; font-weight: 600; }
.fact-table tr:last-child td { border-bottom: none; }
.fact-table tr:nth-child(even) td { background: var(--bg-card); }

/* FAQ */
.faq { margin: 2rem 0; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.9rem; overflow: hidden; background: #fff; }
.faq-item summary { padding: 1.1rem 1.3rem; font-weight: 600; color: var(--title); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 1.02rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "\f067"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--accent); font-size: 0.85rem; }
.faq-item[open] summary::after { content: "\f068"; }
.faq-item .faq-a { padding: 0 1.3rem 1.2rem; color: var(--text); }

/* related + share */
.article-foot { max-width: 760px; margin: 2.5rem auto 0; padding: 0 1.25rem; }
.author-line { display: flex; align-items: center; gap: 0.8rem; padding: 1.4rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--text-sec); font-size: 0.9rem; }
.author-line i { color: var(--accent); font-size: 1.4rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; margin: 2rem 0; font-weight: 600; }

/* === FOOTER === */
footer.site-footer { background: var(--footer); color: var(--footer-text); padding: 3rem 0 1.5rem; margin-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-grid img.logo-icon { height: 42px; margin-bottom: 1rem; }
.footer-grid h4 { color: #fff; font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid a { color: var(--footer-text); display: block; margin-bottom: 0.5rem; font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-tag { font-size: 0.92rem; max-width: 300px; }
.footer-social { display: flex; gap: 0.8rem; margin-top: 1rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #fff; }
.footer-social a:hover { background: var(--accent); }
.footer-bottom { padding-top: 1.5rem; text-align: center; font-size: 0.84rem; color: var(--text-sec); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
