/* ============================================================
   NEWS.CSS — Estilos para noticias / blog
   YEYSON INOX PERU S.A.C.
   ============================================================ */

/* ── NOTICIAS GRID ────────────────────────────────────────── */
.news-section { padding: 64px 0 72px; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

/* Skeleton loaders */
.news-skeleton {
  height: 380px;
  border-radius: var(--rl);
  background: linear-gradient(90deg, #f0f2f5 25%, #e8eaed 50%, #f0f2f5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── NEWS CARD ────────────────────────────────────────────── */
.news-card {
  background: var(--white);
  border-radius: var(--rl);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  transition: all .3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212,105,30,.25);
}

.news-card-img {
  height: 220px;
  background: var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.news-card-img i { font-size: 56px; color: var(--silver-lt); }
.news-card:hover .news-card-img { background-size: 105%; }

.news-card-date {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
}

.news-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }

.news-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--navy-dark);
  line-height: 1.2;
  margin-bottom: 10px;
}

.news-card-excerpt {
  font-size: 13px;
  color: var(--text-lt);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  transition: gap var(--t);
}
.news-card:hover .news-read-more { gap: 10px; }

/* Empty state */
.empty-news {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-lt);
}
.empty-news i { font-size: 64px; display: block; margin-bottom: 16px; }
.empty-news p { font-size: 16px; }

/* ── ARTICLE PAGE ─────────────────────────────────────────── */
.article-page { padding: 40px 0 64px; }

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-lt);
  margin-bottom: 32px;
}
.article-breadcrumb a { color: var(--text-mid); transition: color var(--t); }
.article-breadcrumb a:hover { color: var(--orange); }
.article-breadcrumb .sep { color: var(--border); }
.article-breadcrumb .cur { color: var(--orange); font-weight: 600; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* ── ARTICLE MAIN ─────────────────────────────────────────── */
.art-skeleton .skel-img  { height: 420px; border-radius: var(--rl); background: #edf0f5; margin-bottom: 24px; }
.art-skeleton .skel-title { height: 48px; border-radius: 8px; background: #edf0f5; margin-bottom: 16px; width: 70%; }
.art-skeleton .skel-body  { height: 200px; border-radius: 8px; background: #edf0f5; }

.art-hero-img {
  width: 100%;
  height: 420px;
  border-radius: var(--rl);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.art-header { margin-bottom: 28px; }

.art-meta { margin-bottom: 14px; }
.art-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-lt);
  display: flex;
  align-items: center;
  gap: 6px;
}
.art-date i { color: var(--orange); }

.art-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--navy-dark);
  line-height: 1.0;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.art-excerpt {
  font-size: 18px;
  color: var(--text-mid);
  line-height: 1.6;
  border-left: 3px solid var(--orange);
  padding-left: 16px;
}

/* Article body richtext */
.art-body { font-size: 15px; color: var(--text-mid); line-height: 1.85; }
.art-body p { margin-bottom: 20px; }
.art-body h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px; font-weight: 900; color: var(--navy-dark);
  margin: 36px 0 16px;
}
.art-body h3 {
  font-size: 20px; font-weight: 700; color: var(--navy-dark);
  margin: 24px 0 12px;
}
.art-body ul, .art-body ol { padding-left: 24px; margin-bottom: 20px; }
.art-body li { margin-bottom: 8px; }
.art-body strong { color: var(--navy-dark); font-weight: 700; }
.art-body a { color: var(--orange); text-decoration: underline; }
.art-body img { max-width: 100%; border-radius: var(--rl); margin: 20px 0; box-shadow: var(--shadow); }
.art-body blockquote {
  border-left: 4px solid var(--orange);
  background: var(--bg);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 var(--r) var(--r) 0;
  font-style: italic;
  color: var(--text-mid);
}

/* Share */
.art-share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-lt);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t);
  border: none;
  text-decoration: none;
}
.share-btn.wa   { background: var(--whatsapp); color: #fff; }
.share-btn.wa:hover { background: var(--whatsapp-dark); }
.share-btn.fb   { background: var(--facebook); color: #fff; }
.share-btn.fb:hover { background: var(--facebook-dark); }
.share-btn.copy { background: var(--bg); color: var(--navy); border: 1.5px solid var(--border); }
.share-btn.copy:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

/* Not found */
.art-not-found {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-lt);
}
.art-not-found i { font-size: 64px; display: block; margin-bottom: 16px; color: var(--border); }
.art-not-found h2 { font-size: 28px; color: var(--navy-dark); margin-bottom: 12px; }

/* ── SIDEBAR ──────────────────────────────────────────────── */
.article-sidebar { position: sticky; top: 80px; }

.art-sidebar-cta {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border-radius: var(--rl);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 24px;
  color: #fff;
}
.art-sidebar-cta i { font-size: 36px; color: var(--whatsapp); margin-bottom: 10px; display: block; }
.art-sidebar-cta h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.art-sidebar-cta p  { font-size: 13px; color: rgba(200,208,216,.8); margin-bottom: 16px; line-height: 1.5; }
.art-sidebar-cta .sidebar-cta-btn {
  display: block; background: var(--whatsapp); color: #fff;
  border-radius: 50px; padding: 10px 20px; font-size: 13px; font-weight: 700;
  transition: all var(--t);
}
.art-sidebar-cta .sidebar-cta-btn:hover { background: var(--whatsapp-dark); transform: translateY(-2px); }

.art-recent { background: var(--white); border-radius: var(--rl); padding: 20px; box-shadow: var(--shadow); }
.art-recent-title { font-size: 13px; font-weight: 700; color: var(--navy-dark); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; }

.recent-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--t);
  text-decoration: none;
}
.recent-item:last-child { border-bottom: none; }
.recent-item:hover .recent-title { color: var(--orange); }

.recent-thumb {
  width: 60px; height: 60px; border-radius: var(--r); flex-shrink: 0;
  background: var(--bg);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.recent-thumb i { font-size: 20px; color: var(--silver-lt); }

.recent-title { font-size: 13px; font-weight: 700; color: var(--navy-dark); line-height: 1.3; transition: color var(--t); }
.recent-date  { font-size: 11px; color: var(--text-lt); margin-top: 4px; }

/* ── BLOG LAYOUT (listing page) ─────────────────────────────── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 44px;
  align-items: start;
}
.blog-main { min-width: 0; }
.blog-main .news-grid { grid-template-columns: repeat(2, 1fr); }

/* Blog Sidebar */
.blog-sidebar { position: sticky; top: 82px; display: flex; flex-direction: column; gap: 20px; }

.bs-card {
  background: var(--white);
  border-radius: var(--rl);
  padding: 20px;
  box-shadow: var(--shadow);
}
.bs-card-title {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-lt);
  margin-bottom: 14px; display: flex; align-items: center; gap: 7px;
}
.bs-card-title i { color: var(--orange); }

/* CTA card */
.bs-cta {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border-radius: var(--rl); padding: 22px 20px; text-align: center; color: #fff;
}
.bs-cta .bs-cta-icon { font-size: 36px; color: #25D366; display: block; margin-bottom: 10px; }
.bs-cta h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.bs-cta p  { font-size: 12px; color: rgba(200,208,216,.8); margin-bottom: 16px; line-height: 1.5; }
.bs-cta-btn {
  display: block; background: #25D366; color: #fff;
  border-radius: 50px; padding: 10px 18px; font-size: 13px; font-weight: 700;
  transition: all var(--t); text-align: center;
}
.bs-cta-btn:hover { background: #128C7E; transform: translateY(-2px); }

/* Featured products */
.bs-prod-item {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; transition: all var(--t);
}
.bs-prod-item:last-child { border-bottom: none; padding-bottom: 0; }
.bs-prod-item:hover .bs-prod-name { color: var(--orange); }

.bs-prod-img {
  width: 56px; height: 56px; border-radius: var(--r); flex-shrink: 0;
  background: var(--bg); background-size: contain;
  background-repeat: no-repeat; background-position: center;
}
.bs-prod-name { font-size: 12px; font-weight: 700; color: var(--navy-dark); line-height: 1.3; transition: color var(--t); }
.bs-prod-price { font-size: 11px; color: var(--orange); font-weight: 700; margin-top: 3px; }

/* Categories */
.bs-cat-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--navy-dark);
  font-size: 13px; font-weight: 600; transition: color var(--t);
}
.bs-cat-item:last-child { border-bottom: none; }
.bs-cat-item i { width: 16px; text-align: center; color: var(--orange); font-size: 12px; }
.bs-cat-item:hover { color: var(--orange); }

/* FAQ Accordion */
.bs-faq-item { border-bottom: 1px solid var(--border); }
.bs-faq-item:last-child { border-bottom: none; }
.bs-faq-q {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 8px; padding: 10px 0; cursor: pointer;
  font-size: 12px; font-weight: 700; color: var(--navy-dark);
  transition: color var(--t); background: none; border: none;
  width: 100%; text-align: left; line-height: 1.4;
}
.bs-faq-q:hover { color: var(--orange); }
.bs-faq-q i { font-size: 10px; flex-shrink: 0; margin-top: 2px; transition: transform var(--t); color: var(--orange); }
.bs-faq-q.open i { transform: rotate(180deg); }
.bs-faq-a {
  font-size: 12px; color: var(--text-mid); line-height: 1.7;
  padding: 0 0 10px; display: none;
}
.bs-faq-a.open { display: block; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .blog-main .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
  .blog-main .news-grid { grid-template-columns: 1fr; }
  .art-title { font-size: 34px; }
  .art-hero-img { height: 260px; }
}
