a{
    color:#38bdf8;
    text-decoration: none;
}

/* --- ESTILOS DEL BLOG Y ARTÍCULOS --- */
.blog-post-page {
    line-height: 1.7;
    color: #e0e0e0;
    background-color: #0f172a; /* Fondo oscuro moderno */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.post-container {
    max-width: 760px;
    margin: 40px auto;
    padding: 0 20px;
}

.post-header {
    margin-bottom: 30px;
}

.post-meta {
    font-size: 0.9rem;
    color: #38bdf8;
    margin-bottom: 12px;
}

.post-meta .category {
    background: rgba(56, 189, 248, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 10px;
    font-weight: 600;
}

.post-header h1 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.25;
}

.post-header .lead {
    font-size: 1.15rem;
    color: #94a3b8;
}

.divider {
    border: 0;
    height: 1px;
    background: #1e293b;
    margin: 30px 0;
}

.post-content h2 {
    font-size: 1.5rem;
    color: #f8fafc;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 8px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul, .post-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

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

.post-content code {
    background-color: #1e293b;
    color: #38bdf8;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Cajas destacadas (Callouts) */
.callout-box {
    background: #1e293b;
    border-left: 4px solid #38bdf8;
    padding: 18px 20px;
    border-radius: 0 8px 8px 0;
    margin: 25px 0;
}

.callout-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #ffffff;
}

.callout-box p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.callout-box p:last-child {
    margin-bottom: 0;
}

/* Botones de enlace */
.project-links {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-primary {
    background-color: #0284c7;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #0369a1;
}

.btn-secondary {
    background-color: #334155;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #475569;
}



/* --- NAVEGACIÓN LIMPIA Y RESPONSIVE --- */
.site-header {
    background-color: #0f172a;
    border-bottom: 1px solid #1e293b;
    padding: 15px 0;
    position: sticky !important;
    top: 0;
    z-index: 100;
}

.site-header .container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.site-header .logo:hover {
    color: #7dd3fc;
}

.site-header nav a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 12px;
    border-radius: 4px;
    background-color: #1e293b;
    transition: all 0.2s ease;
}



/* ---- TARJETA PRESENTACIÓN -- */

.tarjeta-presentacion {
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }
    .tarjeta-presentacion:hover {
        border-color: rgba(56, 189, 248, 0.6) !important;
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
    }

.site-header nav a:hover {
    color: #ffffff;
    background-color: #334155;
}


/* títulos tarjetas blog  */
.tarjeta-post h2{
    font-size: 1.4rem; color: #ffffff; margin: 10px 0; border: none; padding: 0;
}
.tarjeta-post h2 a:hover{
    color: #F4FFAD !important;
}

/* --- NAV DE CATEGORÍAS DEL INDEX DEL BLOG ---*/

/* Estilo base para todos los botones de filtro */
.filtros-blog .btn-filtro {
    background-color: #f0f2f5;
    color: #333;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Efecto al pasar el ratón por encima */
.filtros-blog .btn-filtro:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

/* Estilo destacado para el botón ACTIVO (el último pulsado) */
.filtros-blog .btn-filtro.activo {
    background-color: #2563eb; /* Un azul elegante (puedes cambiarlo a tu color corporativo) */
    color: #ffffff;
    border-color: #1d4ed8;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}


/* para bloques de código */
pre {
    overflow-x: auto;          /* Añade barra de desplazamiento horizontal si el código es muy largo */
    max-width: 100%;           /* Evita que se salga del contenedor principal */
    white-space: pre;          /* Mantiene el formato de las líneas */
    word-wrap: normal;         /* Evita saltos de línea forzados extraños dentro del código */
    padding: 1rem;             /* Un poco de espacio interno para que no pegue con los bordes */
    /*background-color: #f4f4f4; /* Opcional: un fondo suave para distinguir el bloque de código */
    border-radius: 6px;        /* Opcional: bordes redondeados */
}

code {
    word-break: break-all;     /* Para fragmentos de código inline largos si fuera necesario */
    font-size: 16px !important;
}
