/* ==========================================================================
   COMPONENTE · Cabecera del artículo (Blog Detalle · Sección 2)
   Mobile-First. Valores del CSS de Figma.
   ========================================================================== */

.ahead {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 0 32px;
}

/* Fila superior: pill de categoría (izq) + Compartir (der) */
.ahead-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.ahead-cat {
    display: inline-flex;
    align-items: center;
    padding: 4px 16px;
    background: #EAF4FA;
    border-radius: 12px;
    font-weight: 400;
    font-size: 14px;
    line-height: 160%;
    letter-spacing: -0.45px;
    color: #006491;
}

.ahead-share {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid #6C7981;
    border-radius: 60px;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    font-size: 14px;
    line-height: 110%;
    letter-spacing: -0.154px;
    color: #4C4E4B;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ahead-share:hover {
    background: #F4F5F6;
    border-color: #4C4E4B;
}

.ahead-share-icon {
    flex: none;
}

.ahead-title {
    margin: 0;
    font-weight: 600;
    font-size: 26px;                /* móvil; 32px en escritorio */
    line-height: 120%;
    letter-spacing: -0.72px;
    color: #111210;
}

.ahead-subtitle {
    margin: 0;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: -0.45px;
    color: #3D4043;
}

/* Imagen destacada */
.ahead-featured {
    margin: 0;
    width: 100%;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.ahead-featured img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

@media (min-width: 992px) {
    .ahead {
        padding: 34px 0 40px;
    }

    .ahead-title {
        font-size: 32px;
    }
}
