/* =============================================
   Noticias / Blog — Polarizarte
   ============================================= */

/* ── Article hero ── */
.article-hero {
    padding: 140px 0 80px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

.article-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(208,116,40,0.09);
    border: 1px solid rgba(208,116,40,0.25);
    color: #d07428;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.article-hero h1 {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    opacity: 0.5;
    margin-top: 24px;
}

.article-meta span { display: flex; align-items: center; gap: 6px; }

/* ── Article body layout ── */
.article-layout {
    padding: 70px 0 80px;
}

.article-content {
    max-width: 780px;
}

.article-content p {
    font-size: 16px;
    line-height: 1.85;
    margin-bottom: 22px;
    color: inherit;
    opacity: 0.85;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 44px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(208,116,40,0.2);
    color: inherit;
}

.article-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 30px 0 12px;
    color: inherit;
}

.article-content ul, .article-content ol {
    padding-left: 22px;
    margin-bottom: 22px;
}

.article-content li {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 8px;
    opacity: 0.85;
}

.article-content strong { color: inherit; opacity: 1; font-weight: 700; }

/* ── Price / comparison table ── */
.precio-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 14px;
    border-radius: 12px;
    overflow: hidden;
}

.precio-table th {
    background: #d07428;
    color: #fff;
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.precio-table td {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    vertical-align: middle;
}

.precio-table tr:last-child td { border-bottom: none; }

.precio-table tr:nth-child(even) td {
    background: rgba(208,116,40,0.04);
}

/* ── Info / highlight box ── */
.info-box {
    background: rgba(208,116,40,0.06);
    border-left: 4px solid #d07428;
    border-radius: 0 10px 10px 0;
    padding: 20px 24px;
    margin: 30px 0;
}

.info-box p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
}

/* ── CTA box ── */
.article-cta {
    background: linear-gradient(135deg, rgba(208,116,40,0.08), rgba(208,116,40,0.03));
    border: 1px solid rgba(208,116,40,0.25);
    border-radius: 16px;
    padding: 34px 36px;
    margin: 50px 0;
    text-align: center;
}

.article-cta h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    border: none !important;
}

.article-cta p {
    font-size: 15px;
    margin-bottom: 24px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: #d07428;
    color: #fff;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}

.cta-btn:hover {
    background: #b5611f;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* ── Sidebar ── */
.article-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-card h5 {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #d07428;
    margin-bottom: 16px;
}

.sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-card li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 13px;
    line-height: 1.5;
}

.sidebar-card li:last-child { border-bottom: none; }

.sidebar-card a {
    color: inherit;
    opacity: 0.75;
    transition: opacity 0.2s, color 0.2s;
    text-decoration: none;
}

.sidebar-card a:hover { opacity: 1; color: #d07428; }

/* ── Noticias index grid ── */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 60px 0;
}

@media (max-width: 992px) { .noticias-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .noticias-grid { grid-template-columns: 1fr; } }

.noticia-card {
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
}

.noticia-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.noticia-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.noticia-card-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #d07428;
    margin-bottom: 10px;
}

.noticia-card h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.noticia-card p {
    font-size: 13px;
    opacity: 0.6;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 18px;
}

.noticia-card a.read-more {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #d07428;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.noticia-card a.read-more:hover { gap: 10px; }

/* ══════════════════════════════════════
   NEWS LISTING — nuevo diseño con thumbs
   ══════════════════════════════════════ */
.news-section { background: #f4f4f2; }

/* Featured card — horizontal */
.featured-card {
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 28px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    transition: box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}
.featured-card:hover { box-shadow: 0 14px 44px rgba(0,0,0,0.14); color: inherit; text-decoration: none; }
.featured-card .feat-img { flex: 0 0 52%; overflow: hidden; max-height: 440px; }
.featured-card .feat-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.featured-card:hover .feat-img img { transform: scale(1.04); }
.featured-card .feat-body { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 767px) {
    .featured-card { flex-direction: column; }
    .featured-card .feat-img { flex: none; max-height: 240px; }
    .featured-card .feat-body { padding: 28px 24px; }
}

/* Standard card — vertical */
.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 30px;
}
.news-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(0,0,0,0.12); }
.card-thumb { display: block; overflow: hidden; height: 210px; flex-shrink: 0; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s ease; }
.news-card:hover .card-thumb img { transform: scale(1.06); }
.n-card-body { padding: 24px 22px; display: flex; flex-direction: column; flex: 1; }
.n-card-body .n-read-more { margin-top: auto; }

/* Category badges */
.news-tag {
    display: inline-block;
    padding: 4px 13px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
}
.tag-vehiculos     { background: rgba(208,116,40,0.11); color: #c0690a; border: 1px solid rgba(208,116,40,0.22); }
.tag-materiales    { background: rgba(41,128,185,0.11);  color: #2171a3; border: 1px solid rgba(41,128,185,0.22); }
.tag-seguridad     { background: rgba(142,68,173,0.11);  color: #7d3d9a; border: 1px solid rgba(142,68,173,0.22); }
.tag-hogar         { background: rgba(39,174,96,0.11);   color: #1e9e5a; border: 1px solid rgba(39,174,96,0.22); }
.tag-guia          { background: rgba(230,126,34,0.11);  color: #b5621c; border: 1px solid rgba(230,126,34,0.22); }
.tag-mantenimiento { background: rgba(231,76,60,0.11);   color: #c0392b; border: 1px solid rgba(231,76,60,0.22); }
.tag-normativa     { background: rgba(52,73,94,0.11);    color: #2c3e50; border: 1px solid rgba(52,73,94,0.22); }

.n-title {
    font-family: 'Allerta Stencil', monospace;
    font-weight: 400;
    font-size: 1.08rem;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #1a1a1a;
}
.featured-card .n-title { font-size: 1.65rem; }
.n-excerpt { font-size: 0.87rem; color: #666; line-height: 1.75; margin-bottom: 20px; }
.n-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.83rem;
    font-weight: 600;
    color: #d07428;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    transition: gap 0.2s ease, color 0.2s ease;
}
.n-read-more:hover { gap: 10px; color: #c0690a; text-decoration: none; }

/* Article hero with full-bleed background image */
.article-hero.bg-img {
    padding: 200px 0 100px;
    border-bottom: none;
    position: relative;
    overflow: hidden;
    background-color: #111;       /* fallback oscuro si la imagen no carga */
    background-size: cover;
    background-position: center center;
}
.article-hero.bg-img > .container { position: relative; z-index: 2; }
.article-hero.bg-img .article-tag { background: rgba(208,116,40,0.85); border-color: #d07428; color: #fff; }
.article-hero.bg-img h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.55); font-family: 'Allerta Stencil', monospace; font-weight: 400; }
.article-hero.bg-img .container > .row > div > p { color: rgba(255,255,255,0.88); }
.article-hero.bg-img .article-meta { color: rgba(255,255,255,0.72); opacity: 1; }
@media (max-width: 767px) { .article-hero.bg-img { padding: 140px 0 60px; } }
