/* ==========================================
   BLOG & SINGLE POSTS - TECH STYLE
   ========================================== */

/* --- LAYOUT GENERAL --- */
.tech-blog-index,
.tech-single-post {
    background-color: #0b0c10;
    min-height: 100vh;
    padding-top: var(--header-height, 80px);
    color: #c5c6c7;
    padding-bottom: 80px;
}

.narrow-container {
    max-width: 800px; /* Ancho ideal de lectura */
    margin: 0 auto;
}

/* --- ESTILOS INDEX (GRID) --- */
.blog-header {
    text-align: center;
    padding: 60px 0;
    background: #0f1113;
    border-bottom: 1px solid #1f2833;
    margin-bottom: 60px;
}

.blog-title {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 10px;
}

.tech-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Tarjeta de Art¨ªculo */
.tech-post-card {
    background: #131518;
    border: 1px solid #1f2833;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.tech-post-card:hover {
    transform: translateY(-5px);
    border-color: #66fcf1;
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.post-card-content {
    padding: 25px;
}

.post-date {
    font-family: monospace;
    font-size: 0.8rem;
    color: #66fcf1;
}

.post-title {
    font-size: 1.3rem;
    margin: 10px 0;
    line-height: 1.3;
}

.post-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.post-title a:hover { color: #66fcf1; }

.post-excerpt {
    font-size: 0.95rem;
    color: #a0a0a0;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-read-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}

/* --- ESTILOS SINGLE (LECTURA) --- */
.single-header {
    padding: 60px 0 40px;
    text-align: center;
}

.tech-badge {
    background: #1f2833;
    color: #fff;
    padding: 3px 8px;
    font-size: 0.7rem;
    border-radius: 3px;
    margin-right: 10px;
    vertical-align: middle;
}

.single-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #fff;
    line-height: 1.1;
    margin: 20px 0;
}

.featured-image-wrapper {
    margin-bottom: 50px;
    border: 1px solid #333;
}

.featured-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Tipograf¨ªa de Lectura Tech */
.tech-content-typography {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #d1d1d1;
}

.tech-content-typography p { margin-bottom: 25px; }

.tech-content-typography h2 {
    color: #fff;
    font-size: 2rem;
    margin-top: 50px;
    margin-bottom: 25px;
    border-left: 4px solid #66fcf1;
    padding-left: 20px;
}

.tech-content-typography blockquote {
    background: #15171a;
    border-left: 2px solid #ff4757;
    margin: 30px 0;
    padding: 20px;
    font-style: italic;
    color: #fff;
}

/* Navegaci¨®n entre posts */
.post-navigation-tech {
    border-top: 1px solid #333;
    margin-top: 60px;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
}

.post-navigation-tech a {
    color: #66fcf1;
    font-weight: bold;
    text-decoration: none;
}
.post-navigation-tech a:hover { color: #fff; }