/* ============================================
   BLOG.CSS
   ============================================ */

/* Navegación */
.nav-blog {
    max-width: 900px;
    margin: 0 auto;
    padding: 25px 24px 10px;
}

.volver {
    display: inline-block;
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.volver:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Header del blog */
.header-blog {
    text-align: center;
    padding: 30px 20px 40px;
}

.header-blog .titulo {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Imagen de perfil */
.blog-imagen-perfil {
    width: 150px;
    height: 150px;
    margin: 25px auto 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #666;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-imagen-perfil:hover {
    border-color: var(--acento);
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.3);
}

.blog-imagen-perfil img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Subtítulo */
.subtitulo {
    color: #bbb;
    font-weight: 300;
    font-size: 1.1rem;
    margin-top: 30px;
}

/* Lista de artículos */
.lista-articulos {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 20px 60px;
}

.articulo-simple {
    border-bottom: 1px solid #333;
    padding-bottom: 60px;
    margin-bottom: 60px;
}

.articulo-simple:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.articulo-contenido {
    padding: 0 10px;
}

.fecha {
    display: block;
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.articulo-titulo {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #ffffff;
}

.articulo-extracto {
    color: #d0d0d0;
    line-height: 1.7;
    margin-bottom: 25px;
}

.leer-mas {
    display: inline-block;
    margin-top: 10px;
    color: var(--acento);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.leer-mas:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* LINK PREVIEW */
.link-preview-link {
    text-decoration: none;
    display: block;
    margin: 20px 0;
}

.link-preview {
    display: flex;
    background: #111;
    border: 1px solid #444;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.link-preview-link:hover .link-preview {
    border-color: #888;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.link-img {
    width: 120px;
    min-width: 120px;
    height: 120px;
    background: #1a1a1a;
    overflow: hidden;
}

.link-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-info {
    padding: 15px 20px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.link-info h4 {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 5px;
}

.link-info p {
    font-size: 0.85rem;
    color: #bbb;
    line-height: 1.4;
    margin-bottom: 8px;
}

.link-url {
    font-size: 0.8rem;
    color: #888;
    text-transform: lowercase;
}

/* ============================================
   TELEGRAM
   ============================================ */

.telegram-section {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.telegram-titulo {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: #bbb;
}

.telegram-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.telegram-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #111;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.telegram-box:hover {
    border-color: #888;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.telegram-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.telegram-box h4 {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: #ffffff;
}

.telegram-box p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-telegram {
    display: inline-block;
    margin-top: auto;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--acento);
    color: var(--acento);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-telegram:hover {
    background: var(--acento);
    color: #000;
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.5);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 700px) {
    .telegram-grid {
        grid-template-columns: 1fr;
    }

    .link-preview {
        flex-direction: column;
    }

    .link-img {
        width: 100%;
        height: 150px;
    }

    .nav-blog {
        padding: 20px 20px 5px;
    }

    .header-blog {
        padding: 20px 20px 30px;
    }

    .header-blog .titulo {
        font-size: 1.8rem;
    }

    .subtitulo {
        margin-top: 20px;
    }

    .lista-articulos {
        padding: 40px 20px 50px;
    }

    .articulo-simple {
        padding-bottom: 45px;
        margin-bottom: 45px;
    }

    .blog-imagen-perfil {
        width: 120px;
        height: 120px;
    }
}