/* ------------------------------
   RESET BÁSICO
------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ------------------------------
   BASE
------------------------------ */
body {
    background-color: #050505;
    color: #00ff88;
    font-family: "Courier New", monospace;
    line-height: 1.6;
}

/* ------------------------------
   CONTENEDOR
------------------------------ */
.container {
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
}

/* ------------------------------
   TITULOS
------------------------------ */
.titulo-blog {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 0 8px #00ff88;
}

.titulo-post {
    font-size: 26px;
    margin-bottom: 10px;
    text-shadow: 0 0 6px #00ff88;
}

/* ------------------------------
   LINKS
------------------------------ */
a {
    color: #00ff88;
    text-decoration: none;
}

a:hover {
    text-shadow: 0 0 6px #00ff88;
}

/* ------------------------------
   POST CARD
------------------------------ */
.post-card {
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 20px;
    margin-bottom: 25px;
    background: rgba(0, 255, 136, 0.03);
    transition: 0.2s;
}

.post-card:hover {
    border-color: #00ff88;
    box-shadow: 0 0 10px rgba(0,255,136,0.2);
}

/* ------------------------------
   IMAGEN POST
------------------------------ */
.post-img img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(0,255,136,0.2);
}

/* ------------------------------
   CONTENIDO
------------------------------ */
.post-content h2 {
    margin-bottom: 10px;
}

.fecha {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 10px;
}

.extracto {
    margin-bottom: 15px;
}

/* ------------------------------
   BOTON LEER MÁS
------------------------------ */
.leer-mas {
    display: inline-block;
    font-size: 14px;
}

/* ------------------------------
   CONTENIDO POST
------------------------------ */
.contenido-post {
    margin-top: 20px;
}

.contenido-post p {
    margin-bottom: 15px;
}

/* ------------------------------
   BOTON VOLVER
------------------------------ */
.volver {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ------------------------------
   MENSAJES
------------------------------ */
.no-posts {
    text-align: center;
    opacity: 0.7;
}

/* ------------------------------
   EFECTO TERMINAL (DETALLE)
------------------------------ */
::selection {
    background: #00ff88;
    color: #000;
}

/* ==============================
   POST - ESTILO PROFESIONAL HACKER
   ============================== */

.titulo-post {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #00ff88;
    letter-spacing: 1px;
}

.fecha {
    font-size: 0.85rem;
    color: rgba(0,255,136,0.6);
    margin-bottom: 25px;
}

/* CONTENEDOR DEL POST */
.contenido-post {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #d8ffe8;
}

/* PÁRRAFOS */
.contenido-post p {
    margin-bottom: 18px;
}

/* TÍTULOS INTERNOS */
.contenido-post h1,
.contenido-post h2,
.contenido-post h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #00ff88;
}

/* LISTAS */
.contenido-post ul {
    margin: 15px 0 20px 20px;
}

.contenido-post li {
    margin-bottom: 8px;
}

/* CÓDIGO */
.contenido-post code {
    background: rgba(0,255,136,0.08);
    padding: 3px 6px;
    border-radius: 4px;
    color: #00ff88;
    font-size: 0.95rem;
}

/* IMAGEN DESTACADA */
.post-img {
    margin: 25px 0;
    text-align: center;
}

.post-img img {
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(0,255,136,0.2);
}

/* LINK VOLVER */
.volver {
    display: inline-block;
    margin-bottom: 20px;
    color: #00ff88;
    text-decoration: none;
    opacity: 0.8;
}

.volver:hover {
    opacity: 1;
}

/* ==============================
   REFINAMIENTO PRO DEL POST
   ============================== */

/* LINKS */
.contenido-post a {
    color: #00ff88;
    text-decoration: underline;
    transition: 0.2s;
}

.contenido-post a:hover {
    opacity: 0.7;
}

/* BLOCKQUOTE (citas) */
.contenido-post blockquote {
    border-left: 3px solid #00ff88;
    padding: 10px 15px;
    margin: 20px 0;
    background: rgba(0,255,136,0.05);
    color: #b8ffd9;
    font-style: italic;
}

/* SEPARADORES */
.contenido-post hr {
    border: none;
    height: 1px;
    background: rgba(0,255,136,0.2);
    margin: 30px 0;
}

/* CÓDIGO MEJORADO */
.contenido-post pre {
    background: #0a0a0a;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid rgba(0,255,136,0.15);
    margin: 20px 0;
}

.contenido-post pre code {
    color: #00ff88;
    font-size: 0.9rem;
}

/* MEJOR ESPACIADO ENTRE BLOQUES */
.contenido-post > * {
    margin-bottom: 18px;
}

/* ==============================
   HOME - GRID + CARDS MODERNAS
   ============================== */

/* GRID */
.blog-grid {
    max-width: 750px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* CARD BASE */
.post-card {
    background: #050505;
    border: 1px solid rgba(0,255,136,0.15);
    border-radius: 14px;
    padding: 25px;
    transition: 0.25s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: #00ff88;
}

/* DESTACADO */
.post-card.destacado {
    border: 2px solid #00ff88;
    box-shadow: 0 0 6px rgba(0,255,136,0.2);
}

.titulo-blog {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

/* IMAGEN */
.post-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* CONTENIDO */
.post-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* TITULO */
.post-content h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.post-content h2 a {
    color: #00ff88;
    text-decoration: none;
}

.post-content h2 a:hover {
    text-decoration: underline;
}

/* FECHA */
.post-content .fecha {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-bottom: 10px;
}

/* EXTRACTO */
.post-content .extracto {
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* BOTÓN */
.leer-mas {
    margin-top: 15px;
    display: inline-block;
    color: #00ff88;
    text-decoration: none;
    font-size: 0.9rem;
}

.leer-mas:hover {
    opacity: 0.7;
}