/* =============================================
   BLOG PAGE
   ============================================= */

/* Encabezado con foto (oscura / clara según el tema), en lugar de la franja
   negra: mismo estilo que .tc-size-hero de /medida y /ofertas — título a la
   izquierda sobre la parte lisa, llantas a la derecha y el final de la foto
   desvanecido en el fondo de la página. */
.tc-blog-page-hero {
    --tc-hero-img: url('/img/page/blog/blog-hero.jpg?v=20260928');
    background-color: #101018;
    background-image: var(--tc-hero-img);
    background-repeat: no-repeat;
    background-position: center 70%;
    background-size: cover;
    min-height: 440px;
    padding: 150px 0 24px;
    -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
}
:root[data-theme="light"] .tc-blog-page-hero {
    --tc-hero-img: url('/img/page/blog/blog-hero-light.jpg?v=20260928');
    background-color: #f4f4f6;
}
@media (max-width: 991.98px) {
    .tc-blog-page-hero { padding-top: 120px; }
}
@media (max-width: 767.98px) {
    /* Celular: la foto ancha recortada hacia la derecha para que las
       llantas queden a la vista, igual que .tc-size-hero. */
    .tc-blog-page-hero {
        background-position: 82% bottom;
        padding-top: 110px;
        min-height: 320px;
    }
}
.tc-blog-page-hero h1 {
    color: #fff;
    font-weight: 800;
    margin: 0;
}
:root[data-theme="light"] .tc-blog-page-hero h1 { color: #16161c; }
.pb-6 { padding-bottom: 3rem; margin-top: 24px; }
/* El contenido sube y tapa la parte baja (desvanecida) de la foto del
   encabezado; el título queda libre arriba. */
.tc-blog-page-hero + .pb-6 { position: relative; margin-top: -30px; }
@media (max-width: 767.98px) {
    .tc-blog-page-hero + .pb-6 { margin-top: -20px; }
}

/* ── Featured post hero ── foto a la izquierda, texto a la derecha sobre
   un fondo propio (distinto del fondo de página y del de las tarjetas
   .tc-blog-card de abajo), igual estructura que el resto de las notas pero
   más grande. ───────────────────────────────────────────────────────── */
.tc-blog-hero {
    display: flex;
    align-items: stretch;
    border-radius: 16px;
    overflow: hidden;
    min-height: 360px;
    background: #16161c;
    box-shadow: 0 1px 4px rgba(0,0,0,.2), 0 6px 20px rgba(0,0,0,.25);
}
:root[data-theme="light"] .tc-blog-hero { background: #fff; }

.tc-blog-hero-img-wrap {
    position: relative;
    overflow: hidden;
    flex: 0 0 46%;
}
.tc-blog-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}
.tc-blog-hero:hover .tc-blog-hero-img { transform: scale(1.03); }

.tc-blog-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 44px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.tc-blog-badge {
    display: inline-block;
    background: #ff5c00;
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
    width: fit-content;
}
.tc-blog-hero-title {
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 10px;
}
:root[data-theme="light"] .tc-blog-hero-title { color: #16161c; }
.tc-blog-hero-date {
    font-size: 12px;
    color: rgba(255,255,255,.65);
    margin-bottom: 12px;
}
:root[data-theme="light"] .tc-blog-hero-date { color: #6b7280; }
.tc-blog-hero-date i { color: #ff5c00; }
.tc-blog-hero-excerpt {
    font-size: 14px;
    color: rgba(255,255,255,.75);
    line-height: 1.7;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 520px;
}
:root[data-theme="light"] .tc-blog-hero-excerpt { color: #6b7280; }

/* ── Regular article cards ── oscuro por default (igual que el resto del
   sitio), claro solo bajo :root[data-theme="light"]. ────────────────── */
.tc-blog-card {
    border-radius: 14px;
    overflow: hidden;
    background: #16161c;
    box-shadow: 0 1px 4px rgba(0,0,0,.2), 0 6px 20px rgba(0,0,0,.25);
    display: flex;
    flex-direction: column;
    transition: transform .22s ease, box-shadow .22s ease;
}
:root[data-theme="light"] .tc-blog-card {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 6px 20px rgba(0,0,0,0.06);
}
.tc-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}

.tc-blog-card-img-wrap {
    position: relative;
    overflow: hidden;
    display: block;
    height: 210px;
    flex-shrink: 0;
    text-decoration: none !important;
}
.tc-blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.tc-blog-card:hover .tc-blog-card-img { transform: scale(1.06); }

.tc-blog-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 55%);
}
.tc-blog-card-date {
    position: absolute;
    bottom: 12px;
    left: 14px;
    font-size: 10.5px;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    z-index: 2;
    text-decoration: none !important;
}
.tc-blog-card-date i { color: #ff5c00; }

.tc-blog-card-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.tc-blog-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
:root[data-theme="light"] .tc-blog-card-title { color: #111; }
.tc-blog-card-excerpt {
    font-size: 13.5px;
    color: rgba(255,255,255,.55);
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
:root[data-theme="light"] .tc-blog-card-excerpt { color: #6b7280; }
.tc-blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #ff5c00;
    text-decoration: none !important;
    border-bottom: 1.5px solid #ff5c00;
    padding-bottom: 1px;
    width: fit-content;
    transition: color .15s, border-color .15s;
}
.tc-blog-card-link:hover { color: #fff; border-color: #fff; }
:root[data-theme="light"] .tc-blog-card-link:hover { color: #111; border-color: #111; }
.tc-blog-card-link i { color: inherit !important; }

/* Notas sin foto (imagen_url vacío) — mismo criterio que el fallback de la
   colección del home (redesign/index.css .tc-p-blog-card--no-photo). */
.tc-blog-hero--no-photo,
.tc-blog-card-img-wrap--no-photo {
    background: linear-gradient(155deg, #2a2a35, #111116);
}
.tc-blog-hero-img-wrap.tc-blog-hero--no-photo { display: flex; align-items: center; justify-content: center; }
.tc-blog-fallback-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: rgba(255,255,255,.08);
    z-index: 0;
}
.tc-blog-hero--no-photo .tc-blog-fallback-icon { font-size: 84px; }

/* ── Responsive ───────────────────────────── */
@media (max-width: 767px) {
    .tc-blog-hero { flex-direction: column; min-height: 0; }
    .tc-blog-hero-img-wrap { flex: 0 0 auto; height: 200px; }
    .tc-blog-hero-content { padding: 24px 22px; }
    .tc-blog-card-img-wrap { height: 180px; }
}
