/* BeBo — estilos de blog y artículos. Hereda variables de bebo.css. */

/* ---------- Índice de blog ---------- */
.blog-hero { background: var(--c-black); color: var(--c-white); padding: 132px 0 var(--sp-xl); position: relative; overflow: hidden; }
.blog-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(13,114,114,0.45) 0%, transparent 70%); pointer-events: none; }
.blog-hero .container { position: relative; z-index: 1; }
.blog-hero h1 { font-weight: 300; letter-spacing: -0.01em; line-height: 1.15; color: var(--c-white); }

.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-lg); }
.blog-chip { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 15px; border-radius: 999px; color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.25); background: transparent; }
.blog-chip.is-active { background: var(--c-brand); color: #fff; border-color: var(--c-brand); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--sp-lg); }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.post-card__cover { aspect-ratio: 16/10; position: relative; background-size: cover; background-position: center; }
.post-card__cat { position: absolute; left: 14px; top: 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.45); padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(4px); }
.post-card__body { padding: var(--sp-md); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__title { font-family: var(--f-display); font-size: 23px; line-height: 1.2; color: var(--c-text); }
.post-card__excerpt { font-size: 15px; line-height: 1.6; color: var(--c-text-secondary); }
.post-card__meta { margin-top: auto; font-size: 12.5px; color: var(--c-text-muted); display: flex; gap: 10px; align-items: center; }
.post-card--soon { opacity: .6; pointer-events: none; }
.post-card--soon .post-card__cover { display: grid; place-items: center; }
.post-card--soon .soon-tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; position: relative; z-index: 1; }

/* ---------- Artículo ---------- */
.article-hero { position: relative; min-height: 64vh; display: flex; align-items: flex-end; color: #fff; padding: 0 0 var(--sp-xl); overflow: hidden; }
.article-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; transform: scale(1.04); }
.article-hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,6,7,.25) 0%, rgba(8,6,7,.35) 45%, rgba(8,6,7,.86) 100%); }
.article-hero .container { position: relative; z-index: 2; }
.article-hero__cat { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--c-brand); padding: 6px 13px; border-radius: 999px; margin-bottom: 16px; }
.article-hero h1 { font-weight: 300; line-height: 1.12; letter-spacing: -0.01em; max-width: 880px; color: #fff; }
.article-hero__meta { margin-top: 16px; font-size: 13.5px; color: rgba(255,255,255,.8); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.breadcrumb { font-size: 13px; color: var(--c-text-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--c-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-brand); }

.article-body { max-width: var(--max-w-narrow); margin: 0 auto; }
.article-body > .lead { font-size: 21px; line-height: 1.65; font-weight: 300; color: var(--c-text); margin-bottom: var(--sp-lg); }
.article-body h2 { font-size: clamp(25px, 3vw, 33px); line-height: 1.2; margin: var(--sp-xl) 0 var(--sp-sm); }
.article-body h3 { font-size: 20px; margin: var(--sp-lg) 0 10px; }
.article-body p { font-size: 18px; font-weight: 300; line-height: 1.78; color: var(--c-text-secondary); margin-bottom: var(--sp-md); }
.article-body p strong, .article-body li strong { color: var(--c-text); font-weight: 600; }
.article-body ul, .article-body ol { margin: 0 0 var(--sp-md) 1.1em; }
.article-body li { font-size: 18px; font-weight: 300; line-height: 1.7; color: var(--c-text-secondary); margin-bottom: 9px; }
.article-body a { color: var(--c-brand); text-decoration: underline; text-underline-offset: 2px; }

.article-pull { font-family: var(--f-display); font-size: clamp(24px, 3vw, 36px); font-weight: 400; line-height: 1.28; color: var(--c-brand); margin: var(--sp-xl) 0; padding-left: var(--sp-lg); border-left: 3px solid var(--c-brand); font-style: italic; }

.callout { background: var(--c-cream); border-radius: var(--r-lg); padding: var(--sp-lg); margin: var(--sp-xl) 0; }
.callout__label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-brand); margin-bottom: 10px; }
.callout h3 { margin-top: 0; }
.callout p, .callout li { font-size: 16px; line-height: 1.65; }

.disclaimer { font-size: 13.5px; color: var(--c-text-muted); border-top: 1px solid var(--c-border); padding-top: var(--sp-md); margin-top: var(--sp-xl); }

/* CTA de producto dentro del artículo */
.product-cta { display: grid; grid-template-columns: 150px 1fr; gap: var(--sp-lg); align-items: center; background: var(--c-black); color: #fff; border-radius: var(--r-lg); padding: var(--sp-lg); margin: var(--sp-xl) 0; overflow: hidden; }
.product-cta__img { width: 150px; height: 150px; object-fit: cover; border-radius: var(--r-md); }
.product-cta__label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 8px; }
.product-cta h3 { color: #fff; margin: 0 0 8px; font-size: 24px; }
.product-cta p { color: rgba(255,255,255,.75); font-size: 15px; line-height: 1.55; margin: 0 0 16px; }

/* Artículos relacionados */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-md); }
.related a { display: block; text-decoration: none; color: inherit; border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; transition: transform var(--t-fast) var(--ease); background: #fff; }
.related a:hover { transform: translateY(-3px); }
.related__cover { aspect-ratio: 16/9; background-size: cover; background-position: center; }
.related__t { padding: 14px; font-family: var(--f-display); font-size: 18px; line-height: 1.25; color: var(--c-text); }

/* Lang switcher (reutilizado en blog) */
.lang-switcher { display: flex; gap: 4px; }
.lang-btn { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--r-sm); color: rgba(255,255,255,0.65); background: transparent; border: 1px solid rgba(255,255,255,0.25); cursor: pointer; transition: all var(--t-fast) var(--ease); }
.nav.is-scrolled .lang-btn { color: var(--c-text-muted); border-color: var(--c-border); }
.lang-btn.is-active, .lang-btn:hover { background: var(--c-brand); color: var(--c-white); border-color: var(--c-brand); }

@media (max-width: 640px) {
  .product-cta { grid-template-columns: 1fr; text-align: left; }
  .product-cta__img { width: 100%; height: 200px; }
  .article-hero { min-height: 56vh; }
}

/* QA polish: touch targets, cover fallback, mobile readability */
.blog-chip{min-height:40px;display:inline-flex;align-items:center}
.post-card__cover{background-color:#efe9e1}
@media (max-width:600px){
  .article-body p,.article-body li{font-size:16px}
  .post-card__title{font-size:21px}
}
