/* ========================================================
   PÁGINA DE ARTÍCULO INDIVIDUAL
   ======================================================== */
.single-post-section {
    background-color: #fafafa;
    width: 100%;
}

.single-post-container {
    max-width: 1100px; /* Un poco más angosto que el index para facilitar la lectura */
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- CABECERA DEL ARTÍCULO (Hero) --- */
.single-post-hero {
    background-color: #ffffff;
    padding: 8rem 0 4rem 0; /* Padding top para el navbar fijo */
    border-bottom: 1px solid #e2e8f0;
}

.post-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.post-breadcrumbs {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.post-breadcrumbs a {
    color: var(--color-primary);
}

.post-breadcrumbs i {
    font-size: 0.6rem;
}

.current-cat {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-hero-content h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--color-text-dark);
    margin-bottom: 2rem;
    text-wrap: balance;
}

.post-meta-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 45px;
    height: 45px;
    background: var(--color-gradient);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.author-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.author-name {
    font-weight: 800;
    color: var(--color-text-dark);
    font-size: 0.95rem;
}

.post-date {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* --- CUERPO DEL ARTÍCULO Y LAYOUT --- */
.single-post-body {
    padding: 4rem 0;
}

.post-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr; /* Columna izquierda mucho más ancha */
    gap: 4rem;
}

/* Imagen Destacada */
.post-featured-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 1.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Textos del artículo (Tipografía optimizada para lectura) */
.post-text {
    font-size: 1.1rem;
    color: #334155; /* Gris muy oscuro, mejor que negro puro para lectura larga */
    line-height: 1.8;
}

.post-intro {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 2.5rem;
}

.post-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin: 3rem 0 1.5rem 0;
}

.post-text h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin: 2.5rem 0 1rem 0;
}

.post-text p {
    margin-bottom: 1.5rem;
}

.post-text ul {
    margin: 1.5rem 0 2.5rem 2rem;
    list-style-type: disc;
}

.post-text li {
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
}

/* Cita destacada (Blockquote) */
.post-text blockquote {
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 700;
    color: #ffffff;
    padding: 1rem 0 1rem 2rem;
    margin: 3rem 0;
    background: var(--color-gradient);
    border-radius:  1rem 1rem;
}

/* Etiquetas inferiores */
.post-tags-container {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tag-label {
    font-weight: 800;
    color: var(--color-text-dark);
    font-size: 0.95rem;
}

.post-bottom-tag {
    background-color: #f1f5f9;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.post-bottom-tag:hover {
    background: var(--color-gradient);
    color: #ffffff;
}

/* --- SIDEBAR (Barra lateral) --- */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.sidebar-widget {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.related-post-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.related-post-item:last-child {
    margin-bottom: 0;
}

.related-post-item:hover {
    transform: translateX(5px);
}

.related-post-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 0.8rem;
}

.related-post-text h5 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-text-dark);
    line-height: 1.3;
    margin-bottom: 0.3rem;
}

.related-post-text span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.widget-cta {
    background-color: #f1f5f9;
    text-align: center;
    border: none;
}

.widget-cta h4 {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.widget-cta p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.btn-primary-article{
    width:100%; 
    text-align:center; 
    display:block;
    background: var(--color-gradient);
    color: #ffffff;
    pad: 1rem;
    border-radius: 9999px;
    padding: 1rem;
    font-weight: 600;
}



/* ========================================================
   MEDIA QUERIES - MÓVIL (Responsividad)
   ======================================================== */
@media (max-width: 1024px) {
    .post-hero-content h1 {
        font-size: 2.5rem;
    }

    /* En celulares o tablets, apilamos la barra lateral DEBAJO del artículo */
    .post-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .post-text {
        font-size: 1.05rem; /* Achicamos apenas la letra en móvil */
    }

    .post-featured-image {
        max-height: 300px;
    }
}