/* ══════════════════════════════════════════════
   LED SOLAR BLOG — theme.css
   Tokens + componentes idénticos al design handoff
   Fuentes: Manrope 300–800 + Lora 400/600 italic
══════════════════════════════════════════════ */

/* ─── Design tokens — idénticos a Astro global.css ─── */
:root {
  /* Astro vars */
  --color-green-dark:   #5CB004;
  --color-green-mid:    #4a9003;
  --color-green-brand:  #5CB004;
  --color-green-light:  #eaf4ea;
  --color-orange:       #f5a623;
  --color-bg:           #f5f5f7;
  --color-white:        #ffffff;
  --color-text:         #1d1d1f;
  --color-text-muted:   #6e6e73;
  --font-body:          'Manrope', sans-serif;
  --font-serif:         'Lora', serif;
  --section-gap:        80px;
  --container:          1200px;
  --shadow-soft:        0 2px 20px rgba(0,0,0,0.08);
  --shadow-card:        0 4px 32px rgba(0,0,0,0.12);
  --border-radius:      12px;
  --border-radius-lg:   20px;
  --transition:         all 0.3s ease;
  /* Aliases internos del blog */
  --bg:          var(--color-bg);
  --white:       var(--color-white);
  --ink:         var(--color-text);
  --muted:       var(--color-text-muted);
  --green:       var(--color-green-brand);
  --green-dk:    var(--color-green-dark);
  --green-darker:var(--color-green-dark);
  --green-lt:    var(--color-green-light);
  --green-mid:   #d0ead0;
  --green-bright:#78d974;
  --orange:      var(--color-orange);
  --border:      #e0e0e4;
  --shadow-sm:   0 2px 12px rgba(0,0,0,.07);
  --shadow-md:   0 8px 32px rgba(0,0,0,.10);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.13);
  --r:           20px;
  --r-sm:        12px;
}

/* ─── Reset ─── */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box }
html { scroll-behavior:smooth; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility }
body { font-family:var(--font-body); background:var(--color-bg); color:var(--color-text); overflow-x:hidden; line-height:1.6 }
a { text-decoration:none; color:inherit }
img { display:block; max-width:100%; height:auto }
button { font-family:inherit; cursor:pointer; border:none; background:none }
ul,ol { list-style:none }

/* Container */
.container { max-width:var(--container); margin:0 auto; padding:0 24px }

/* Buttons (Astro exact) */
.btn { display:inline-flex; align-items:center; gap:.5rem; padding:.75rem 1.5rem; border-radius:50px; font-weight:600; text-decoration:none; transition:var(--transition); cursor:pointer; border:none; font-size:1rem; font-family:var(--font-body) }
.btn-primary { background:var(--color-green-brand); color:#fff }
.btn-primary:hover { background:var(--color-green-dark) }

/* ════════════════════════════
   TOPBAR — idéntico a Header.astro
════════════════════════════ */
.topbar {
  background: linear-gradient(135deg, var(--color-green-dark) 0%, var(--color-green-mid) 100%);
  color: white;
  font-size: 0.875rem;
  padding: 0.75rem 0;
}
.topbar-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
}
.topbar-left {
  display: contents;
}
.topbar .contact-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 700;
  font-size: 0.9375rem;
}
.topbar .contact-info:hover { color: var(--color-orange) }
.guarantee-badge {
  background: var(--color-orange);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(245,166,35,0.3);
}

/* ════════════════════════════
   SITE HEADER — idéntico a Header.astro
════════════════════════════ */
/* header completo sticky (topbar + nav), igual que Astro: el <header>
   entero es el contenedor sticky para que .mobile-nav (position:absolute;
   top:100%) se ancle justo debajo sin importar la altura del topbar. */
header {
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header {
  background: linear-gradient(180deg, #d8d8dc 0%, #ffffff 90%, #ffffff 100%);
  border-bottom: 2px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.10) }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
}
.logo img { height: 70px; width: auto }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Manrope', sans-serif;
  color: #1d1d1f;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-link:hover { color: #5CB004 }
.dropdown { position: relative }
.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Manrope', sans-serif;
  color: #1d1d1f;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.dropdown-toggle:hover { color: #5CB004 }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 0.5rem 0;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 200;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.875rem;
}
.dropdown-item:hover {
  background: var(--color-green-light);
  color: var(--color-green-brand);
}

/* ── WP wp_nav_menu() class mappings ─────────────────── */
.nav-links ul { list-style: none; display: flex; align-items: center; gap: 32px; margin: 0; padding: 0 }
.nav-links ul li { position: static }
.nav-links ul li a { font-size: 14px; font-weight: 500; color: #1d1d1f; text-decoration: none; letter-spacing: -0.01em; transition: color 0.2s }
.nav-links ul li a:hover { color: #5CB004 }
.nav-links .menu-item-has-children { position: relative }
.nav-links .sub-menu { position: absolute; top: 100%; left: 0; background: white; border-radius: var(--border-radius); box-shadow: var(--shadow-card); padding: 0.5rem 0; min-width: 280px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: var(--transition); z-index: 200; list-style: none; margin: 0 }
.nav-links .menu-item-has-children:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0) }
.nav-links .sub-menu li a { display: block; padding: 0.75rem 1.5rem; color: var(--color-text); font-size: 0.875rem; font-weight: 400 }
.nav-links .sub-menu li a:hover { background: var(--color-green-light); color: var(--color-green-brand) }

/* Mobile wp_nav_menu() class mappings */
.mobile-nav-content ul { list-style: none; margin: 0; padding: 0 }
.mobile-nav-content ul li a { display: block; padding: 0.875rem 1.25rem; color: #1d1d1f; font-size: 1rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid #f0f0f0; transition: color 0.2s }
.mobile-nav-content ul li a:hover { color: var(--color-green-brand) }
.mobile-nav-content .menu-item-has-children { position: relative }
.mobile-nav-content .sub-menu { list-style: none; margin: 0; padding: 0; background: #f9f9f9; overflow: hidden; max-height: 0; transition: max-height 0.3s ease }
.mobile-nav-content .menu-item-has-children.open > .sub-menu { max-height: 300px }
.mobile-nav-content .sub-menu li a { padding-left: 2rem; font-size: 0.9rem; font-weight: 400 }


.site-header .btn-primary {
  background: #5CB004;
  color: #ffffff;
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.site-header .btn-primary:hover { background: #4a9003 }

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: row;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.25rem;
}
.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  z-index: 99;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}
.mobile-nav.open {
  max-height: 100vh;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.mobile-nav-content { padding: 1rem }
.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  appearance: none;
}
.mobile-nav-link:hover { color: var(--color-green-brand) }
.mobile-dropdown-menu {
  padding-left: 1rem;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}
.mobile-dropdown.open .mobile-dropdown-menu { max-height: 300px }
.mobile-dropdown-item {
  display: block;
  padding: 0.5rem 0;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}
.mobile-dropdown-item:hover { color: var(--color-green-brand) }
.mobile-cta { margin-top: 1rem; width: 100%; text-align: center; display: block }

/* Header responsive */
@media (max-width: 1024px) { .nav-links { gap: 1.5rem } }
@media (max-width: 768px) {
  /* Topbar apilado: línea 1 = teléfono + WhatsApp; línea 2 = email */
  .topbar-content { flex-direction: row; align-items: center; gap: 0.25rem }
  .topbar-left, .topbar-right {
  flex: 1;
  justify-content: flex-end; gap: 1rem }
  .nav-links, .site-header .btn { display: none }
  .mobile-toggle { display: flex }
  .mobile-nav { display: block }
  .logo img { height: 55px }
}
@media (max-width: 480px) {
  /* Teléfono + WhatsApp permanecen en una sola línea; solo se reduce el gap */
  .topbar-left, .topbar-right {
  flex: 1;
  justify-content: flex-end; gap: 0.75rem }
  .topbar .contact-info { font-size: 0.8rem }
}

/* ════════════════════════════
   FOOTER — idéntico a Footer.astro
════════════════════════════ */
.footer {
  background: var(--color-green-dark);
  color: white;
  padding: 4rem 0 2rem;
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-title {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.footer-column h4.footer-title {
  border-bottom: 2px solid var(--color-green-brand);
  padding-bottom: 0.5rem;
}
.footer-logo img {
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}
.footer-slogan {
  color: rgba(255,255,255,0.8);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.social-links { display: flex; gap: 1rem }
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-green-brand);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}
.social-links a:hover { background: var(--color-orange); transform: translateY(-2px) }
.footer-links { list-style: none; padding: 0; margin: 0 }
.footer-links li { margin-bottom: 0.75rem }
.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-links a:hover { color: #ffffff; padding-left: 0.5rem }
.footer-links a::before { content: '→'; opacity: 0; transform: translateX(-10px); transition: var(--transition) }
.footer-links a:hover::before { opacity: 1; transform: translateX(0) }
.footer .contact-info { display: flex; flex-direction: row; gap: 1.5rem }
.contact-item { display: flex; align-items: flex-start; gap: 0.75rem }
.contact-item svg { margin-top: 0.25rem; color: var(--color-green-brand); flex-shrink: 0 }
.contact-item div { display: flex; flex-direction: column }
.contact-item strong { color: white; font-weight: 600; margin-bottom: 0.25rem }
.contact-item a { color: rgba(255,255,255,0.8); text-decoration: none; transition: var(--transition); font-size: 0.9rem }
.contact-item a:hover { color: var(--color-orange) }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem }
.footer-credits { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem }
.footer-credits p { color: rgba(255,255,255,0.6); margin: 0; font-size: 0.875rem }
.footer-credits a { color: rgba(255,255,255,0.8); text-decoration: none; transition: var(--transition) }
.footer-credits a:hover { color: var(--color-orange) }
.footer-tech { font-style: italic }

/* Footer accordion (mobile) */
.footer__accordion-trigger {
  background: none;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  cursor: default;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  -webkit-appearance: none;
  appearance: none;
}
.footer__chevron { display: none; flex-shrink: 0; transition: transform 0.25s ease }
@media (min-width: 769px) {
  .footer__accordion-trigger:focus,
  .footer__accordion-trigger:focus-visible { outline: none }
  .footer__accordion-content { max-height: none !important; overflow: visible !important }
}
@media (max-width: 768px) {
  .footer__accordion-trigger { cursor: pointer; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1) }
  .footer__chevron { display: block }
  .footer__accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1) }
  .footer__accordion-content.is-open { max-height: 400px }
  .footer__accordion-trigger[aria-expanded="true"] .footer__chevron { transform: rotate(180deg) }
}

/* Footer responsive */
@media (max-width: 1024px) {
  .footer-content { grid-template-columns: 2fr 1fr 1fr; gap: 2rem }
  .footer-content .footer-column:last-child { grid-column: 1 / -1; margin-top: 1rem }
}
@media (max-width: 768px) {
  .footer { padding: 3rem 0 2rem }
  .footer-content { grid-template-columns: 1fr; gap: 2rem }
  .footer-credits { flex-direction: row; text-align: center; gap: 0.5rem }
}
@media (max-width: 480px) {
  .footer { padding: 2rem 0 1.5rem }
  .footer-logo img { height: 32px; width: auto }
  .contact-item { align-items: center }
}

/* WhatsApp FAB */
.wa-fab {
  position:fixed; bottom:28px; right:28px;
  width:56px; height:56px; border-radius:50%;
  background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 24px rgba(37,211,102,.45);
  z-index:9999; transition:transform .2s, box-shadow .2s;
}
.wa-fab svg { width:28px; height:28px }
.wa-fab:hover { transform:scale(1.1); box-shadow:0 10px 32px rgba(37,211,102,.55) }

/* ════════════════════════════
   BLOG HOME — HERO EDITORIAL
════════════════════════════ */
.b-blog-hero {
  background:var(--white); padding:80px 32px 40px;
  border-bottom:1px solid var(--border);
}
.b-hero-inner {
  max-width:var(--container); margin:0 auto;
  display:grid; grid-template-columns:1.2fr 1fr; gap:48px; align-items:end;
}
.b-kicker { font-size:11px; font-weight:700; letter-spacing:3px; text-transform:uppercase; color:var(--green); margin-bottom:14px }
.b-blog-h1 { font-size:clamp(48px,8vw,104px); font-weight:800; letter-spacing:-3px; line-height:.92; color:var(--ink); margin-bottom:18px }
.b-blog-h1 em { font-family:'Lora',serif; font-style:italic; font-weight:400; color:var(--green) }
.b-blog-sub { font-family:'Lora',serif; font-style:italic; font-size:18px; color:var(--muted); line-height:1.5; max-width:520px }
.b-hero-right { padding-bottom:12px }
.b-right-label { font-size:11px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--muted); margin-bottom:14px; padding-bottom:14px; border-bottom:1px solid var(--border) }
.b-right-list li { display:flex; gap:16px; padding:10px 0; font-size:14px; align-items:baseline; border-bottom:1px solid var(--border) }
.b-right-list li:last-child { border-bottom:none }
.b-right-list li a { color:var(--ink); line-height:1.45; flex:1; transition:color .15s }
.b-right-list li a:hover { color:var(--green) }
.b-right-list .num { font-family:'Lora',serif; font-style:italic; font-size:13px; color:var(--muted); min-width:24px }

/* Topic/category nav sticky */
.b-topic-nav {
  background:rgba(255,255,255,.92); padding:18px 32px;
  border-bottom:1px solid var(--border);
  position:sticky; top:0; z-index:10; backdrop-filter:blur(20px);
}
.b-topic-inner {
  max-width:var(--container); margin:0 auto;
  display:flex; gap:16px; justify-content:space-between; align-items:center; flex-wrap:wrap;
}
.b-topic-list { display:flex; gap:4px; flex-wrap:wrap }
.b-topic-list a { padding:8px 16px; font-size:13px; font-weight:600; color:var(--muted); border-radius:30px; transition:all .15s; display:block }
.b-topic-list a:hover { color:var(--ink); background:rgba(0,0,0,.05) }
.b-topic-list a.current-cat { background:var(--ink); color:#fff }
.b-count { font-size:12px; color:var(--muted); font-family:ui-monospace,monospace }

/* Content area */
.b-content { max-width:var(--container); margin:0 auto; padding:56px 32px 80px }

/* Lead story */
.b-lead-story {
  display:grid; grid-template-columns:1.5fr 1fr; gap:0;
  margin-bottom:56px; text-decoration:none; color:inherit;
  border-radius:24px; overflow:hidden; box-shadow:var(--shadow-md);
  transition:box-shadow .2s, transform .2s;
}
.b-lead-story:hover { box-shadow:var(--shadow-lg); transform:translateY(-2px) }
.b-lead-media { aspect-ratio:16/10; background:#5CB004; position:relative; overflow:hidden }
.b-lead-media img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s }
.b-lead-story:hover .b-lead-media img { transform:scale(1.03) }
.b-lead-media .no-img { position:absolute; inset:0; background:linear-gradient(180deg,#1f3a1d,#5CB004) }
.b-lead-body { background:var(--white); padding:56px 48px; display:flex; flex-direction:column; justify-content:center }
.b-lead-tag { font-size:11px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--green); margin-bottom:16px }
.b-lead-title { font-size:clamp(28px,3.5vw,44px); font-weight:800; letter-spacing:-1px; line-height:1.05; color:var(--ink); margin-bottom:16px; transition:color .15s }
.b-lead-story:hover .b-lead-title { color:var(--green) }
.b-lead-excerpt { font-family:'Lora',serif; font-style:italic; font-size:17px; color:var(--muted); line-height:1.6; margin-bottom:24px }
.b-lead-meta { display:flex; gap:20px; font-size:12px; color:var(--muted); padding-top:20px; border-top:1px solid var(--border) }

/* 2 columnas por categoría */
.b-cols { display:grid; grid-template-columns:repeat(2,1fr); gap:48px; margin-bottom:56px }
.b-col h3.b-col-title {
  font-family:'Lora',serif; font-style:italic; font-size:20px; font-weight:600;
  color:var(--muted); margin-bottom:24px; padding-bottom:14px;
  border-bottom:2px solid var(--ink);
}
.b-col-list { display:flex; flex-direction:column; gap:24px }
.b-col-post { display:grid; grid-template-columns:120px 1fr; gap:20px; text-decoration:none; color:inherit; align-items:start }
.b-col-media { aspect-ratio:1/1; background:#5CB004; border-radius:var(--r-sm); overflow:hidden; position:relative }
.b-col-media img { width:100%; height:100%; object-fit:cover; transition:transform .3s }
.b-col-post:hover .b-col-media img { transform:scale(1.05) }
.b-col-tag { font-size:10px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--green); margin-bottom:6px }
.b-col-ttl { font-size:17px; font-weight:700; letter-spacing:-.3px; line-height:1.3; color:var(--ink); margin-bottom:8px; transition:color .15s }
.b-col-post:hover .b-col-ttl { color:var(--green) }
.b-col-excerpt { font-size:13px; color:var(--muted); line-height:1.55; margin-bottom:8px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden }
.b-col-date { font-size:11px; color:var(--muted); font-family:ui-monospace,monospace }

/* Topic band */
.b-topic-band {
  background:var(--ink); border-radius:24px; padding:48px;
  color:#fff; margin-bottom:56px; position:relative; overflow:hidden;
}
.b-topic-band::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse 50% 80% at 90% 50%,rgba(120,217,116,.1) 0%,transparent 70%) }
.b-topic-band > * { position:relative }
.b-topic-band h3 { font-size:clamp(24px,3vw,36px); font-weight:800; letter-spacing:-.8px; line-height:1.1; margin-bottom:12px }
.b-topic-band h3 em { font-family:'Lora',serif; font-style:italic; color:var(--green-bright); font-weight:400 }
.b-topic-band p { font-size:15px; color:rgba(255,255,255,.6); max-width:540px; margin-bottom:32px; line-height:1.65 }
.b-topic-chips { display:flex; flex-wrap:wrap; gap:8px }
.b-topic-chips a { padding:9px 18px; font-size:13px; font-weight:500; color:rgba(255,255,255,.8); background:rgba(255,255,255,.08); border-radius:30px; border:1px solid rgba(255,255,255,.12); transition:all .15s }
.b-topic-chips a:hover { background:var(--green-bright); color:#0a1a08; border-color:var(--green-bright) }

/* Secondary grid (últimas publicaciones) */
.b-second-label { font-size:10px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--muted); margin-bottom:28px; padding-bottom:14px; border-bottom:2px solid var(--ink); display:block }
.b-second-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px }
.b-second-card { text-decoration:none; color:inherit; display:flex; flex-direction:column; gap:16px }
.b-second-media { aspect-ratio:4/3; background:#5CB004; border-radius:16px; overflow:hidden; position:relative }
.b-second-media img { width:100%; height:100%; object-fit:cover; transition:transform .3s }
.b-second-card:hover .b-second-media img { transform:scale(1.04) }
.b-second-meta { display:flex; gap:10px; font-size:11px; color:var(--muted); align-items:center }
.b-second-meta .dot { width:3px; height:3px; background:var(--muted); border-radius:50%; flex-shrink:0 }
.b-second-tag { font-size:10px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--green) }
.b-second-title { font-size:20px; font-weight:700; letter-spacing:-.4px; line-height:1.25; color:var(--ink); transition:color .15s }
.b-second-card:hover .b-second-title { color:var(--green) }
.b-second-excerpt { font-size:14px; color:var(--muted); line-height:1.6 }

/* ════════════════════════════
   SINGLE POST — VARIACIÓN B (LONGFORM)
════════════════════════════ */
.b-post-hero { background:var(--white); padding:56px 32px 32px; position:relative }
.b-ph-inner { max-width:1100px; margin:0 auto }
.b-ph-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; font-size:12px; color:var(--muted) }
.b-ph-crumbs { display:flex; gap:8px; align-items:center }
.b-ph-crumbs a { color:var(--muted); transition:color .15s }
.b-ph-crumbs a:hover { color:var(--green) }
.b-ph-crumbs .sep { opacity:.4 }
.b-ph-edition { font-family:ui-monospace,monospace; letter-spacing:1px }
.b-ph-kicker { font-size:12px; font-weight:700; letter-spacing:3px; text-transform:uppercase; color:var(--green); margin-bottom:14px }
.b-ph-title { font-size:clamp(28px,4.5vw,56px); font-weight:800; letter-spacing:-1.5px; line-height:1.05; color:var(--ink); margin-bottom:20px; max-width:820px }
.b-ph-title em { font-family:'Lora',serif; font-style:italic; font-weight:400; color:var(--green) }
.b-ph-meta { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:32px; padding:24px 0; border-top:1px solid var(--ink); border-bottom:1px solid var(--border); font-size:13px }
.b-ph-meta-block { display:flex; flex-direction:column; gap:4px }
.b-ph-meta-lbl { font-size:10px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--muted) }
.b-ph-meta-val { color:var(--ink); font-weight:600 }
.b-ph-author { display:flex; align-items:center; gap:12px }
.byline-avatar { width:48px; height:48px; border-radius:50%; background:var(--green-lt); display:flex; align-items:center; justify-content:center; font-weight:700; color:var(--green); font-size:16px; flex-shrink:0 }
.b-ph-author .byline-avatar { width:36px; height:36px; font-size:13px }

/* Post cover panorámico 21:9 */
.b-post-cover { max-width:1200px; margin:0 auto; padding:0 32px; overflow:hidden; background:transparent }
.b-post-cover img { width:100%; aspect-ratio:16/9; object-fit:cover; display:block; border-radius:16px }
.b-post-cover .no-img { aspect-ratio:16/9; background:linear-gradient(180deg,#1f3a1d,#5CB004); border-radius:16px }

/* Layout article + sidebar */
.b-post-layout { max-width:var(--container); margin:0 auto; padding:48px 32px 80px; display:grid; grid-template-columns:1fr 300px; gap:64px; align-items:start }

/* Article */
.b-article { max-width:720px }
.b-article .b-dek { font-family:'Lora',serif; font-style:italic; font-size:22px; font-weight:400; color:var(--muted); line-height:1.5; margin-bottom:40px; padding-left:20px; border-left:3px solid var(--green) }
.b-article h2 { font-family:'Manrope',sans-serif; font-size:32px; font-weight:800; letter-spacing:-.8px; line-height:1.15; margin-top:56px; margin-bottom:20px; color:var(--ink); padding-top:32px; border-top:1px solid var(--border) }
.b-article h2 .num { font-family:'Lora',serif; font-style:italic; font-weight:400; color:var(--green); font-size:20px; display:block; margin-bottom:6px; letter-spacing:0 }
.b-article h3 { font-size:22px; font-weight:700; margin-top:32px; margin-bottom:14px; color:var(--ink); letter-spacing:-.3px }
.b-article p { font-size:18px; line-height:1.8; color:#2a2a2e; margin-bottom:22px }
.b-article p:first-of-type { font-size:22px; font-weight:400; color:var(--ink); line-height:1.55 }
.b-article strong { color:var(--ink); font-weight:700 }
.b-article em { font-style:italic }
.b-article a { color:var(--green); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px }
.b-article a:hover { color:var(--green-dk) }
.b-article ul, .b-article ol { padding-left:24px; margin-bottom:22px }
.b-article li { margin-bottom:10px; font-size:18px; line-height:1.7 }
.b-article ul li::marker { color:var(--green) }
.b-article blockquote { margin:40px -32px; padding:40px; background:var(--ink); color:#fff; border-radius:0; font-family:'Lora',serif; font-style:italic; font-size:28px; line-height:1.4; font-weight:400; letter-spacing:-.5px }
.b-article blockquote cite { display:block; margin-top:20px; font-size:14px; font-style:normal; font-family:'Manrope',sans-serif; color:var(--green-bright); letter-spacing:2px; text-transform:uppercase; font-weight:700 }
.b-article figure { margin:40px -64px }
.b-article figure img { width:100%; border-radius:16px }
.b-article figcaption { font-size:13px; color:var(--muted); margin-top:12px; padding:0 64px; font-style:italic; font-family:'Lora',serif }
.b-article .pull { font-family:'Lora',serif; font-style:italic; font-size:28px; line-height:1.35; color:var(--green-dk); margin:40px 0; padding:20px 0; border-top:2px solid var(--green); border-bottom:2px solid var(--green); font-weight:500 }
.b-article .callout { background:var(--green-lt); border:1px solid var(--green-mid); border-radius:16px; padding:24px 28px; margin:32px 0; font-size:15px; line-height:1.7 }
.b-article .callout strong { color:var(--green-dk); display:block; margin-bottom:6px; font-size:12px; letter-spacing:2px; text-transform:uppercase }
.b-article table.data-table { width:100%; border-collapse:collapse; font-size:14px; margin:24px 0 }
.b-article table.data-table th { background:var(--ink); color:#fff; text-align:left; padding:14px 18px; font-weight:600; font-size:12px; letter-spacing:1px; text-transform:uppercase }
.b-article table.data-table td { padding:14px 18px; border-bottom:1px solid var(--border); color:#2a2a2e }
.b-article table.data-table tr:nth-child(even) td { background:#fafafa }

/* Sidebar derecho del post */
.b-sidebar { position:sticky; top:100px; display:flex; flex-direction:column; gap:24px }
.b-toc { padding:24px; background:var(--white); border-radius:20px }
.b-toc-label { font-size:10px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--muted); margin-bottom:16px; display:flex; align-items:center; gap:8px }
.b-toc-label::after { content:''; flex:1; height:1px; background:var(--border) }
.b-toc-list { list-style:none; display:flex; flex-direction:column; gap:3px; counter-reset:toc }
.b-toc-list li { counter-increment:toc }
.b-toc-list a { display:flex; gap:10px; padding:8px 12px; font-size:13px; color:var(--muted); line-height:1.4; border-radius:8px; transition:all .15s; align-items:baseline }
.b-toc-list a::before { content:counter(toc,decimal-leading-zero); font-family:'Lora',serif; font-style:italic; font-size:11px; color:var(--green); min-width:22px }
.b-toc-list a:hover, .b-toc-list a.active { background:var(--green-lt); color:var(--green-dk) }
.b-toc-list a.active { font-weight:600 }

.b-side-cta { background:linear-gradient(135deg,#1f3a1d,#5CB004); color:#fff; border-radius:20px; padding:28px; position:relative; overflow:hidden }
.b-side-cta::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse 80% 50% at 100% 0%,rgba(120,217,116,.18) 0%,transparent 65%) }
.b-side-cta > * { position:relative }
.b-side-cta .badge { display:inline-block; font-size:10px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--orange); margin-bottom:14px }
.b-side-cta h4 { font-size:24px; font-weight:800; letter-spacing:-.5px; line-height:1.15; margin-bottom:10px }
.b-side-cta h4 em { font-family:'Lora',serif; font-style:italic; color:var(--green-bright); font-weight:400 }
.b-side-cta p { font-size:13px; line-height:1.55; color:rgba(255,255,255,.65); margin-bottom:20px }
.b-side-cta .btn { display:block; background:var(--orange); color:#000; padding:12px 18px; border-radius:50px; font-weight:700; font-size:13px; text-align:center; transition:transform .15s }
.b-side-cta .btn:hover { transform:translateY(-1px) }
.b-side-cta .wa { display:block; text-align:center; margin-top:10px; font-size:12px; color:rgba(255,255,255,.5) }

.b-related { background:var(--white); border-radius:20px; padding:24px }
.b-rel-item { padding:12px 0; display:block; text-decoration:none; color:inherit; border-bottom:1px solid var(--border) }
.b-rel-item:last-child { border-bottom:none; padding-bottom:0 }
.b-rel-item .tag { font-size:10px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--green); margin-bottom:4px }
.b-rel-item .ttl { font-size:14px; font-weight:700; color:var(--ink); line-height:1.3; margin-bottom:4px }
.b-rel-item:hover .ttl { color:var(--green) }
.b-rel-item .date { font-size:11px; color:var(--muted); font-family:ui-monospace,monospace }

/* Big CTA al final del post */
.post-cta-big { background:var(--green-darker); color:#fff; padding:80px 32px; text-align:center; position:relative; overflow:hidden }
.post-cta-big::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse 60% 80% at 50% 100%,rgba(120,217,116,.14) 0%,transparent 70%) }
.post-cta-big > * { position:relative }
.post-cta-big h3 { font-size:clamp(28px,4vw,44px); font-weight:800; letter-spacing:-1px; line-height:1.1; margin-bottom:14px; max-width:700px; margin-left:auto; margin-right:auto }
.post-cta-big h3 em { font-family:'Lora',serif; font-style:italic; color:var(--green-bright); font-weight:400 }
.post-cta-big p { font-size:16px; color:rgba(255,255,255,.65); max-width:520px; margin:0 auto 28px; line-height:1.7 }
.post-cta-big-btns { display:flex; gap:12px; justify-content:center; flex-wrap:wrap }
.btn-orange { background:var(--orange); color:#000; padding:13px 28px; border-radius:50px; font-size:15px; font-weight:700; display:inline-flex; align-items:center; gap:7px; transition:transform .15s, box-shadow .2s }
.btn-orange:hover { transform:translateY(-1px); box-shadow:0 8px 24px rgba(245,166,35,.35) }
.btn-white-ghost { border:1.5px solid rgba(255,255,255,.25); color:#fff; padding:12px 26px; border-radius:50px; font-size:15px; font-weight:500; display:inline-flex; align-items:center; gap:7px; transition:background .2s }
.btn-white-ghost:hover { background:rgba(255,255,255,.08); border-color:#fff }

/* Post tags + nav */
.b-post-tags { display:flex; gap:8px; flex-wrap:wrap; margin-top:48px; padding-top:24px; border-top:1px solid var(--border) }
.b-post-tags a { font-size:12px; font-weight:600; letter-spacing:1px; text-transform:uppercase; padding:6px 14px; border-radius:30px; background:var(--green-lt); color:var(--green-dk); transition:background .15s }
.b-post-tags a:hover { background:var(--green-mid) }
.b-post-nav { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:40px; padding-top:24px; border-top:1px solid var(--border) }
.b-post-nav a { font-size:14px; font-weight:600; color:var(--muted); transition:color .15s; line-height:1.4 }
.b-post-nav a:hover { color:var(--green) }
.b-post-nav__next { text-align:right }

/* ════════════════════════════
   ARCHIVE / CATEGORY / SEARCH
════════════════════════════ */
.b-arc-hero { background:var(--white); padding:64px 32px 40px; border-bottom:1px solid var(--border) }
.b-arc-inner { max-width:var(--container); margin:0 auto }
.b-arc-kicker { font-size:11px; font-weight:700; letter-spacing:3px; text-transform:uppercase; color:var(--green); margin-bottom:12px }
.b-arc-h1 { font-size:clamp(36px,6vw,72px); font-weight:800; letter-spacing:-2px; line-height:1; color:var(--ink); margin-bottom:12px }
.b-arc-h1 em { font-family:'Lora',serif; font-style:italic; font-weight:400; color:var(--green) }
.b-arc-desc { font-family:'Lora',serif; font-style:italic; font-size:17px; color:var(--muted); max-width:560px; line-height:1.5 }
.b-arc-content { max-width:var(--container); margin:0 auto; padding:48px 32px 80px }
.b-arc-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-bottom:48px }

/* Pagination */
.b-pagination { display:flex; justify-content:center; gap:8px; margin-top:48px }
.b-pagination .page-numbers { width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; font-size:14px; font-weight:600; color:var(--muted); transition:all .15s }
.b-pagination .page-numbers:hover { background:var(--green-lt); color:var(--green) }
.b-pagination .page-numbers.current { background:var(--ink); color:#fff }
.b-pagination .page-numbers.prev, .b-pagination .page-numbers.next { width:auto; padding:0 18px; border-radius:50px; border:1px solid var(--border) }

/* 404 */
.b-404 { min-height:60vh; display:flex; align-items:center; justify-content:center; padding:80px 32px; text-align:center }
.b-404__inner { max-width:540px }
.b-404__num { font-size:120px; font-weight:800; letter-spacing:-6px; line-height:1; color:var(--green); opacity:.18; display:block }
.b-404__title { font-size:36px; font-weight:800; letter-spacing:-1px; margin-bottom:12px }
.b-404__sub { font-family:'Lora',serif; font-style:italic; font-size:18px; color:var(--muted); margin-bottom:32px }
.b-404__cta { display:inline-flex; align-items:center; gap:8px; background:var(--green); color:#fff; padding:12px 28px; border-radius:50px; font-weight:600; font-size:15px; transition:background .2s }
.b-404__cta:hover { background:var(--green-dk) }

/* Static page */
.b-page-wrap { max-width:820px; margin:0 auto; padding:64px 32px 80px }
.b-page-wrap h1 { font-size:clamp(32px,5vw,56px); font-weight:800; letter-spacing:-1.5px; margin-bottom:32px }
.b-page-content { font-size:17px; line-height:1.85; color:#2a2a2e }
.b-page-content > * + * { margin-top:20px }
.b-page-content h2 { font-size:28px; font-weight:800; margin-top:40px }
.b-page-content a { color:var(--green) }

/* Search form */
.search-form { display:flex; gap:0 }
.search-form input[type="search"] { flex:1; padding:10px 16px; font-size:14px; font-family:'Manrope',sans-serif; border:1px solid var(--border); border-right:none; border-radius:50px 0 0 50px; outline:none; background:var(--bg); color:var(--ink) }
.search-form input[type="search"]:focus { border-color:var(--green) }
.search-form button[type="submit"] { padding:10px 20px; background:var(--green); color:#fff; font-size:13px; font-weight:600; font-family:'Manrope',sans-serif; border-radius:0 50px 50px 0; transition:background .15s }
.search-form button[type="submit"]:hover { background:var(--green-dk) }
.ls-no-results { font-size:16px; color:var(--muted); padding:48px 0; text-align:center }

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media(max-width:1100px) {
  .b-post-layout { grid-template-columns:1fr; gap:40px }
  .b-sidebar { position:static }
  .b-article figure { margin:32px 0 }
  .b-article figcaption { padding:0 }
  .b-article blockquote { margin:32px 0; padding:32px }
}
@media(max-width:960px) {
  .nav-links, .nav-cta { display:none }
  .ls-mobile-toggle { display:flex }
  .b-hero-inner, .b-lead-story, .b-cols, .b-second-grid, .b-arc-grid { grid-template-columns:1fr }
  .b-lead-body { padding:36px 28px }
  .b-blog-h1 { font-size:56px; letter-spacing:-2px }
  .b-blog-hero { padding:56px 20px 32px }
  .b-post-hero { padding:40px 20px 24px }
  .b-post-cover { padding:0 20px }
  .b-ph-meta { grid-template-columns:1fr 1fr; gap:16px }
  .b-ph-title { font-size:clamp(24px,6vw,40px); letter-spacing:-1px }
  .ft-top { grid-template-columns:1fr 1fr }
}
@media(max-width:600px) {
  .topbar { padding:8px 16px; font-size:11px }
  .nav-wrap { padding:0 16px }
  .ft-top { grid-template-columns:1fr }
  .b-content, .b-arc-content { padding:32px 20px 60px }
  .b-post-layout { padding:32px 20px 60px }
  .b-cols { gap:32px }
  .b-article h2 { font-size:26px }
  .b-article blockquote { font-size:22px; margin:24px 0; padding:24px }
  .b-article .pull { font-size:22px }
  .b-ph-meta { grid-template-columns:1fr }
  .b-topic-band { padding:32px 24px }
  .post-cta-big { padding:56px 20px }
  .b-post-nav { grid-template-columns:1fr }
}
